/* =========================================================
   ТЕЛЕПАРТНЕР — стили лендинга
   Чистый CSS, без препроцессоров и фреймворков.
   ========================================================= */

/* ---------- Переменные темы ---------- */
:root {
  --navy: #0E2A47;       /* тёмный фон */
  --navy-deep: #0A1F35;  /* футер, затемнённые блоки */
  --light: #F6F8FB;      /* светлые секции */
  --accent: #2563EB;     /* акцент синий */
  --cta: #F97316;        /* кнопка призыва */
  --cta-hover: #EA6A0B;
  --ink: #0F172A;        /* основной текст */
  --muted: #55637A;      /* второстепенный текст */
  --muted-dark: #A9BBD1; /* второстепенный текст на тёмном */
  --line: #E2E8F0;       /* границы на светлом */
  --line-dark: rgba(255, 255, 255, .14);

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-cta: 0 8px 20px rgba(249, 115, 22, .32);

  --maxw: 1160px;
}

/* ---------- Базовый сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;   /* плавный скролл по якорям */
  scroll-padding-top: 24px;  /* чтобы заголовок секции не прилипал к верху */
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Контейнеры ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 760px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.btn--cta {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(249, 115, 22, .38);
}

.btn--cta:active { transform: translateY(0); }

/* Прозрачная кнопка в шапке на тёмном фоне */
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-dark);
  padding: 10px 18px;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .35);
}

.btn--lg { padding: 17px 34px; font-size: 18px; }
.btn--block { width: 100%; }

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Видимый фокус для клавиатуры */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding-bottom: 96px;
  overflow: hidden;
}

/* Мягкое синее свечение справа сверху — добавляет глубины */
.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(37, 99, 235, .38), transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* --- Навигация --- */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .14em;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  color: var(--muted-dark);
}

.nav__list a { transition: color .18s ease; }
.nav__list a:hover { color: #fff; }

/* --- Контент hero --- */
.hero__content {
  max-width: 900px;
  padding-top: 88px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted-dark);
}

.hero__title {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}

.hero__subtitle {
  max-width: 640px;
  margin: 26px 0 40px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted-dark);
}

/* Тезисы под кнопкой */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
}

.hero__fact strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
}

.hero__fact span {
  font-size: 15px;
  color: var(--muted-dark);
}

/* =========================================================
   ОБЩИЕ СЕКЦИИ
   ========================================================= */
.section { padding: 96px 0; }
.section--light { background: var(--light); }

.section--dark {
  background: var(--navy);
  color: #fff;
}

.section__eyebrow {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--dark .section__eyebrow { color: #7FA6F5; }

.section__title {
  max-width: 820px;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 800;
}

.section__lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

.section--dark .section__lead { color: var(--muted-dark); }

/* ---------- Сетки ---------- */
.grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

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

.grid--services {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

/* ---------- Карточки ---------- */
.card {
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #C7D6EC;
}

.card__icon {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
}

.card__title {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.card__text {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* Карточка преимуществ — на белой секции, с акцентной полосой сверху */
.card--accent {
  border-top: 3px solid var(--accent);
  background: var(--light);
}

/* ---------- Блоки услуг ---------- */
.service {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service__title {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
}

.service__list li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 16px;
  color: var(--muted);
}

/* Маркер-точка вместо list-style */
.service__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.step__title {
  font-size: 19px;
  font-weight: 700;
}

.step__text {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
}

/* =========================================================
   СЕКЦИЯ «ВАШ ПЕРСОНАЛЬНЫЙ МЕНЕДЖЕР»
   ========================================================= */
.manager {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.manager__media { margin: 0; }

.manager__photo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;   /* исходник квадратный — кадрируем без искажений */
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  /* Тонировка: исходный снимок чёрно-белый. Мягкий тёплый тон убирает
     «плоскость» и даёт коже живой оттенок, не превращая кадр в сепию.
     Крутилка — первое значение sepia(): больше = теплее и «цветнее»,
     но фон сильнее уходит в коричневый. Ноль или удаление строки
     возвращает исходное ЧБ. */
  filter: sepia(.26) saturate(1.25) hue-rotate(-6deg) contrast(1.04) brightness(1.02);
}

.manager__caption {
  max-width: 320px;
  margin-top: 18px;
}

.manager__name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.manager__role {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.manager__text {
  max-width: 560px;
  margin: 20px 0 32px;
  font-size: 18px;
  color: var(--muted);
}

/* =========================================================
   ФОРМА ЗАЯВКИ
   ========================================================= */
.form { margin-top: 40px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { margin-bottom: 20px; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #E7EEF8;
}

.req { color: var(--cta); }

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  transition: border-color .18s ease, background-color .18s ease;
}

.field__input::placeholder { color: #7E93AE; }

.field__input:focus {
  background: rgba(255, 255, 255, .1);
  border-color: var(--accent);
}

.field__input--area {
  resize: vertical;
  min-height: 120px;
}

/* Подсветка поля с ошибкой (класс вешает JS) */
.field__input.is-invalid { border-color: #F87171; }

.field__error {
  margin-top: 7px;
  font-size: 14px;
  color: #FCA5A5;
  min-height: 0;
}

.form__status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 16px;
  display: none;               /* показывается из JS через класс is-visible */
}

.form__status.is-visible { display: block; }

.form__status.is-success {
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .45);
  color: #A7F3C0;
}

.form__status.is-error {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .45);
  color: #FCA5A5;
}

.form__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-dark);
}

/* =========================================================
   ФУТЕР
   ========================================================= */
.footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 48px 0;
}

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

.footer__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .14em;
}

.footer__text {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted-dark);
}

.footer .btn { margin-left: auto; }

.footer__copy {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--muted-dark);
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* Планшеты */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__content { padding-top: 64px; }
  .section { padding: 76px 0; }
  .manager { gap: 40px; }
}

/* Блок менеджера складывается в одну колонку раньше остальных сеток:
   при двух колонках уже нет места для фото 320px и читаемой строки текста */
@media (max-width: 768px) {
  .manager {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .manager__text {
    font-size: 17px;
    margin: 18px 0 26px;
  }
}

/* Мобильные: одна колонка, верхнее меню скрыто */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .container { padding: 0 18px; }

  /* Убираем пункты меню — на мобиле остаётся логотип и якорная кнопка */
  .nav__list { display: none; }
  .nav { gap: 16px; padding: 20px 0; }
  .nav__cta { margin-left: auto; font-size: 15px; }

  .hero { padding-bottom: 64px; }
  .hero__content { padding-top: 48px; }
  .hero__subtitle { margin: 20px 0 32px; }

  .btn--lg { padding: 15px 26px; font-size: 17px; }

  .hero__facts {
    gap: 22px;
    margin-top: 44px;
    flex-direction: column;
  }

  .section { padding: 60px 0; }

  .grid,
  .grid--4,
  .grid--services,
  .steps {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer .btn { margin-left: 0; width: 100%; }
}
