/* E-Mobil: секции 01-04 (поток 1). Префиксы .hero__ .audience__ .why__ .how__ */

/* ===== 01. Первый экран (светлый, 05-07.10.2026) =====
   Слева заголовок и лид (по центру высоты), справа фото целиком 4:3 и под ним две кнопки.
   Всё вместе с полосой цифр помещается в один экран ноутбука (1440x800 и выше).
   «ВАШЕГО ЖК» - цвет-перелив #03525F -> бирюзовый (контраст крупного текста >= 3:1) и рукописный росчерк акцентом. */
.hero {
  position: relative; overflow: hidden;
  padding-top: 32px; padding-bottom: 40px;
  background:
    radial-gradient(560px 380px at 95% 0%, rgba(104, 173, 173, .30), transparent 70%),
    radial-gradient(520px 360px at 0% 100%, rgba(104, 173, 173, .20), transparent 70%),
    var(--c-light);
}
@media (min-width: 1024px) { .hero { padding-top: 28px; padding-bottom: 32px; } }

.hero__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
}
.hero h1 { color: var(--c-primary); }
.hero__mark { position: relative; display: inline-block; white-space: nowrap; color: var(--c-primary); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__mark {
    background-image: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary) 30%, var(--c-accent) 130%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}
.hero__mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.16em; height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 45 3, 110 2, 197 6' fill='none' stroke='%2368ADAD' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}
.hero__lead { margin-top: 20px; color: var(--c-text); font-weight: 500; max-width: 620px; }

/* Фото и кнопки под ним */
.hero__media { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .hero__media { gap: 24px; } }
.hero__photo { position: relative; }
.hero__photo img {
  display: block; width: 100%; height: auto;
  border-radius: 16px; box-shadow: 0 20px 50px rgba(3, 55, 61, .20);
}
@media (min-width: 1024px) {
  .hero__photo { isolation: isolate; }
  .hero__photo::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
    border: 2px solid rgba(104, 173, 173, .55); border-radius: 18px;
  }
}
.hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 600px) { .hero__actions { grid-template-columns: auto auto; gap: 12px; } }
.hero__actions .btn { width: 100%; white-space: nowrap; padding-left: 18px; padding-right: 18px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: 40px;
}
@media (min-width: 1024px) { .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; } }
.hero__stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent);
  border-radius: var(--radius-card); background: var(--c-white); box-shadow: var(--shadow);
}
@media (min-width: 1024px) { .hero__stat { padding: 14px 20px 16px; } }
.hero__stat-value { font-weight: 800; font-size: 20px; line-height: 26px; color: var(--c-primary); overflow-wrap: anywhere; }
@media (min-width: 768px) { .hero__stat-value { font-size: 26px; line-height: 32px; } }
.hero__stat-label { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-text); }

/* ===== 02. С кем мы работаем =====
   Шапка карточки: значок роли + заголовок в строку; текст 15/24; ссылка внизу над линией,
   во всех трёх карточках на одной высоте (карточки в ряду равной высоты, низ - margin-top: auto). */
.audience__card { display: flex; flex-direction: column; }
.audience__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.audience__head h3 { margin: 0; }
.audience__icon {
  flex: none; width: 40px; height: 40px; padding: 8px;
  color: var(--c-primary); background: var(--c-light); border-radius: 10px;
}
.audience__card > p { margin-bottom: 16px; }
.audience__link { font-size: 15px; line-height: 20px; text-wrap: pretty; }
.audience__nowrap { white-space: nowrap; }
/* Читабельность 2: шапка карточки одной высоты во всех карточках ряда (заголовок в 1 или 2 строки -
   текст всё равно начинается на одной высоте); первое предложение - вбегающий жирный лид (точка входа) */
@media (min-width: 768px) and (max-width: 1279px) { .audience__head { min-height: 44px; } }
.audience__head h3 { text-wrap: wrap; } /* перенос «ЕСЛИ У ВАС / МАШИНО-МЕСТО», а не «ЕСЛИ У / ВАС ...» */
.audience__lead { font-weight: 600; color: var(--c-dark); }
@media (min-width: 768px) and (max-width: 1023px) {
  .audience__card:last-child { grid-column: 1 / -1; }
}

/* ===== 03. Почему это сложно =====
   Та же шкала карточек; значок компактнее (48 px вместе с подложкой), меньше пустоты слева. */
.why__card { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .why__card { flex-direction: row; align-items: flex-start; gap: 16px; } }
.why__icon {
  flex: none; width: 32px; height: 32px; padding: 8px; box-sizing: content-box;
  color: var(--c-primary); background: var(--c-light); border-radius: 10px;
}
.why__body { min-width: 0; }
.why__body h3 { margin-bottom: 8px; }
@media (min-width: 768px) { .why__body h3 { min-height: 48px; display: flex; align-items: center; margin-bottom: 4px; } }
/* Сравнение «Станция и электрик / E-Mobil» (правка 1; читабельность 2, 05.10.2026).
   Колонка E-Mobil - светлая подложка --c-light в рамке --c-accent, сверху залитый ярлык #03525F,
   в каждой ячейке знак ✓ (SVG). «Станция и электрик» - обычный текст со знаком «минус».
   Знаки стоят на одной вертикали: сравнение видно по колонке знаков. От 1200 px все строки в одну линию.
   Телефон: шапка таблицы - легенда из двух ярлыков, строки - блоки с разделителями. */
.why__compare { margin-top: 16px; }
@media (min-width: 768px) { .why__compare { margin-top: 24px; } }
.why__compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.why__compare-table caption { caption-side: top; text-align: left; padding-bottom: 16px; }
.card .why__compare-title { margin: 0; }
.why__compare-table th, .why__compare-table td {
  padding: 12px; text-align: left; vertical-align: top;
  /* ячейки - ступень small 14/20, не body 15/24: при 15/24 на 1440 строки рвутся в 2 линии (#why +124 px, на 375 +254 px) */
  font-size: var(--fs-small); line-height: var(--lh-small); border-bottom: 1px solid var(--c-line);
}
.why__compare-table thead th {
  padding-top: 10px; padding-bottom: 10px; vertical-align: middle;
  font-size: var(--fs-micro); line-height: var(--lh-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text);
}
.why__compare-table tbody th { font-weight: 600; color: var(--c-dark); }
.why__compare-self { color: var(--c-text); font-weight: 400; }
.why__compare-table .why__compare-self, .why__compare-table .why__compare-us { position: relative; padding-left: 40px; }
.why__mark { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; }
.why__compare-table thead .why__mark { top: 9px; }
.why__mark--no { color: rgba(70, 70, 70, .65); } /* не ниже 3:1 к белому */
.why__mark--yes { color: var(--c-primary); }
.why__mark-tick { stroke: var(--c-white); }
.why__compare-table .why__compare-us {
  background: var(--c-light); color: var(--c-primary); font-weight: 600;
  border-left: 2px solid var(--c-accent); border-right: 2px solid var(--c-accent); border-bottom-color: rgba(3, 82, 95, .1);
}
.why__compare-table thead .why__compare-us {
  font-weight: 700; /* шапка таблицы - micro 13/18 700, как соседняя ячейка */
  background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); border-radius: 10px 10px 0 0;
}
.why__compare-table thead .why__mark--yes { color: var(--c-white); }
.why__compare-table thead .why__mark-tick { stroke: var(--c-primary); }
.why__compare-table tbody tr:last-child > * { border-bottom: 0; }
.why__compare-table tbody tr:last-child .why__compare-us { border-bottom: 2px solid var(--c-accent); border-radius: 0 0 10px 10px; }
@media (min-width: 768px) {
  .why__compare-table tbody th, .why__compare-table thead th:first-child { padding-left: 0; }
  /* ширины под длину содержимого: на 1200+ (таблица 1152 px) каждая ячейка в одну строку */
  .why__compare-table th:first-child { width: 30.3%; }
  .why__compare-table .why__compare-self { width: 27.8%; }
  .why__compare-table .why__compare-us { width: 41.9%; }
}

/* Телефон: строки - блоки с разделителями; шапка таблицы - легенда «минус / ✓» один раз сверху,
   подписи data-label скрыты визуально (остаются для экранного диктора) */
@media (max-width: 767px) {
  .why__compare-table, .why__compare-table caption, .why__compare-table thead, .why__compare-table tbody,
  .why__compare-table tr, .why__compare-table th, .why__compare-table td { display: block; width: auto; }
  .why__compare-table thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
  .why__compare-table thead th:first-child {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .why__compare-table thead th.why__compare-self, .why__compare-table thead th.why__compare-us {
    /* micro 13/18 без разрядки: от 375 px обе метки в одну строку, уже - переносятся второй строкой */
    padding: 5px 8px 5px 28px; border: 0; border-radius: 999px; font-size: var(--fs-micro); line-height: var(--lh-micro); letter-spacing: 0;
  }
  .why__compare-table thead .why__compare-self { box-shadow: inset 0 0 0 1px var(--c-line); }
  .why__compare-table thead .why__compare-us { border: 0; border-radius: 999px; }
  .why__compare-table thead .why__mark { left: 6px; top: 4px; }
  .why__compare-table tbody tr { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
  .why__compare-table tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .why__compare-table tbody th, .why__compare-table td { padding: 0; border: 0; }
  .why__compare-table tbody th { margin-bottom: 6px; }
  .why__compare-table td.why__compare-self { padding-left: 30px; margin-bottom: 4px; }
  .why__compare-table td.why__compare-self .why__mark { left: 0; top: 0; }
  .why__compare-table td.why__compare-us,
  .why__compare-table tbody tr:last-child td.why__compare-us { padding: 6px 10px 6px 40px; border: 0; border-radius: 8px; }
  .why__compare-table td.why__compare-us .why__mark { left: 10px; top: 6px; }
  .why__compare-table td::before {
    content: attr(data-label) ": ";
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  }

/* ===== 04. Как мы работаем: маршрут из 6 этапов =====
   Номер в кружке, срок - чип рядом с номером (сразу видно «сколько длится»), заголовок, текст.
   Телефон: вертикальная линия слева через кружки. От 768: шкала по рядам (2, с 1024 - 3 этапа в ряд),
   линия идёт от чипа к следующему кружку; весь путь на светлой подложке, почти в один экран. */
.how__list { display: grid; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
.how__card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "num title" "rail term" "rail text";
  column-gap: 16px;
  align-content: start;
  padding-bottom: 28px;
  font-size: var(--fs-card); line-height: var(--lh-card);
}
.how__card:last-child { padding-bottom: 0; }
.how__num {
  grid-area: num;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
  font-weight: 800; font-size: 15px; line-height: 1;
  position: relative; z-index: 1;
}
.how__card h3 {
  grid-area: title; align-self: center; margin: 0;
  font-weight: 800; font-size: var(--fs-card-title); line-height: var(--lh-card-title);
  letter-spacing: .03em; text-transform: uppercase; color: var(--c-primary);
}
.how__term {
  grid-area: term; justify-self: start; margin: 8px 0 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(104, 173, 173, .2); color: var(--c-dark);
  font-weight: 700; font-size: var(--fs-meta); line-height: var(--lh-meta);
  text-wrap: balance;
}
.how__card p { grid-area: text; }
/* Линия маршрута (телефон): от кружка вниз до следующего кружка */
.how__card::after {
  content: ""; grid-area: rail; justify-self: center;
  width: 2px; margin-bottom: -28px;
  background: rgba(104, 173, 173, .45);
}
.how__card:last-child::after { content: none; }

@media (min-width: 768px) {
  .how__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 32px;
    padding: 32px;
    background: var(--c-light);
    border-radius: var(--radius-card);
  }
  .how__card {
    grid-template-columns: 40px auto minmax(16px, 1fr);
    grid-template-areas: "num term rail" "title title title" "text text text";
    column-gap: 12px;
    padding-bottom: 0;
  }
  .how__card h3 { margin: 16px 0 8px; align-self: start; }
  .how__term { align-self: center; margin: 0; background: var(--c-white); box-shadow: inset 0 0 0 1px rgba(104, 173, 173, .5); }
  /* Линия (шкала): от чипа вправо через промежуток к следующему кружку */
  .how__card::after {
    content: ""; justify-self: stretch; align-self: center;
    width: auto; height: 2px; margin: 0 -32px 0 0;
  }
  .how__card:nth-child(2n)::after, .how__card:last-child::after { content: ""; margin-right: 0; background: none; }
}
@media (min-width: 1024px) {
  .how__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; padding: 36px 40px; }
  .how__card::after { margin-right: -40px; }
  .how__card:nth-child(2n)::after { margin-right: -40px; background: rgba(104, 173, 173, .45); }
  .how__card:nth-child(3n)::after, .how__card:last-child::after { margin-right: 0; background: none; }
}
/* 768-1199: длинный срок в строку с кружком не помещается - чип под кружком, линия сразу от кружка */
@media (min-width: 768px) and (max-width: 1199px) {
  .how__card {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "num rail" "term term" "title title" "text text";
  }
  .how__term { justify-self: start; margin-top: 14px; }
  .how__card h3 { margin-top: 12px; }
}
@media (min-width: 1200px) {
  /* Срок в одну строку: кружок, чип и линия на одной оси, заголовки этапов в ряду на одной высоте */
  .how__term { white-space: nowrap; }
}
