/* ===== MyLoc Landing — стили по мотивам my_loc_flutter ===== */

:root {
  --blue: #1fa2ff;
  --cyan: #12d8fa;
  --primary: #00b6ff;
  --primary-light: #bbe9ff;
  --button-blue: #2563eb;
  --navy: #023047;
  --text: #33475b;
  --bg-soft: #f3f6f9;
  --bg-tint: #eef9ff;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(2, 48, 71, 0.10);
  --shadow-soft: 0 8px 22px rgba(2, 48, 71, 0.08);
  --gradient: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Кнопки (как в приложении) ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--main {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 22px rgba(31, 162, 255, 0.35);
}

.btn--main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 162, 255, 0.45);
}

.btn--ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(31, 162, 255, 0.55);
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: rgba(31, 162, 255, 0.08);
}

.btn--small {
  height: 40px;
  padding: 0 22px;
  font-size: 14px;
}

.btn--big {
  height: 58px;
  padding: 0 44px;
  font-size: 17px;
}

/* ===== Шапка (тёмная, логотип белый — виден) ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 48, 71, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.brand__logo {
  display: block;
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  color: #cfe6f5;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--primary-light);
}

.header .btn--main {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===== Главная секция (картинка + полупрозрачная панель слева) ===== */

.main-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 72px 0;
  background-image:
    linear-gradient(90deg, rgba(2, 48, 71, 0.16) 0%, rgba(2, 48, 71, 0.03) 60%),
    url("../assets/main-section.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-section__inner {
  width: 100%;
}

.main-panel {
  max-width: 580px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 26px;
  padding: 42px 44px;
  box-shadow: 0 24px 54px rgba(2, 48, 71, 0.28);
}

.main-panel__title {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.main-panel__text {
  font-size: 17px;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: 30px;
}

.main-panel__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Старт приложения (таймер) ===== */

.launch {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}

.launch__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.launch__title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.launch__date {
  font-size: 22px;
  font-weight: 800;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.countdown__item {
  min-width: 92px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 14px 14px;
  backdrop-filter: blur(4px);
}

.countdown__value {
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 13px;
  font-weight: 500;
  color: #cfe6f5;
  margin-top: 6px;
  text-transform: lowercase;
}

.countdown__sep {
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  padding-bottom: 22px;
}

/* ===== Секции ===== */

.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--bg-tint);
}

.section__title {
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section__lead {
  text-align: center;
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 44px;
}

/* ===== Как всё устроено (скрин карты + шаги) ===== */

.how {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.how--reverse {
  grid-template-columns: 1fr 340px;
}

.how__media {
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 300px;
  display: block;
  border-radius: 30px;
  border: 6px solid #fff;
  box-shadow: 0 24px 48px rgba(2, 48, 71, 0.25);
}

.how__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Шаги ===== */

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}

.step__number {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.step__body {
  flex: 1;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step__text {
  font-size: 15px;
  color: var(--text);
}

.step__note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--button-blue);
  font-weight: 500;
}

.steps {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

/* ===== Карточки ===== */

.cards {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--gradient);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card--accent {
  border-top-color: var(--button-blue);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card__icon--2 { background: var(--button-blue); }
.card__icon--3 { background: var(--navy); }

.card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.card__text {
  font-size: 15px;
  color: var(--text);
}

/* ===== Дисклеймер ===== */

.notice {
  margin-top: 48px;
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 22px 26px;
}

.notice__text {
  font-size: 14px;
  color: var(--navy);
}

/* ===== Статистика ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.stat {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 20px;
  box-shadow: var(--shadow-soft);
}

.stat__value {
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* ===== Тарифы ===== */

.tariffs {
  display: grid;
  grid-template-columns: repeat(2, 320px);
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}

.tariff {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--gradient);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tariff:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tariff--featured {
  border: 2px solid var(--blue);
  border-top: 2px solid var(--blue);
}

.tariff__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(31, 162, 255, 0.4);
}

.tariff__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.tariff__price {
  font-size: 46px;
  font-weight: 800;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 8px;
}

.tariff__hint {
  font-size: 14px;
  color: var(--text);
}

.cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== Подвал ===== */

.footer {
  background: var(--navy);
  color: #cfe6f5;
  padding: 52px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer__logo {
  height: 48px;
  width: auto;
  opacity: 0.95;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: #cfe6f5;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: var(--primary-light);
}

.footer__copy {
  font-size: 13px;
  color: rgba(207, 230, 245, 0.7);
}

/* ===== Адаптивность ===== */

@media (max-width: 900px) {
  .cards--3,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .how__media {
    order: -1;
  }

  .tariffs {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .main-panel__title {
    font-size: 36px;
  }

  .section__title {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .cards--3,
  .stats,
  .tariffs {
    grid-template-columns: 1fr;
  }

  .main-section {
    min-height: 520px;
    padding: 48px 0;
  }

  .main-panel {
    padding: 30px 26px;
  }

  .main-panel__title {
    font-size: 30px;
  }

  .main-panel__text {
    font-size: 15px;
  }

  .section {
    padding: 64px 0;
  }

  .step {
    flex-direction: column;
  }
}
