/* svetofor avtomaktab — продающие страницы (лендинги, Мирабад, цены). Подключается после styles.css только на этих страницах.
   Все правила под .lp / lp-*: на другие страницы не влияют. Фон секций и цвет карточек — через --lp-card. */

.lp .sec{padding:72px 0}
.lp .sec--white{--lp-card:var(--bg)}
.lp .sec--bg{--lp-card:#fff}
.lp .sec--dark{--lp-card:var(--card-dark)}

/* ---------- hero ---------- */
.lp .hero__in{padding:40px 32px 64px;gap:48px}
.lp .h1{font-size:clamp(30px,3.7vw,46px)}
.lp .hero__sub{font-size:16px;line-height:1.65;max-width:580px;margin-bottom:28px}
.lp .fact__n{font-size:17px}
.lp .facts{margin-bottom:28px}
.lp-date{margin:20px 0 0;font-size:13px;color:var(--muted2)}
.lp-hero__fig{margin:0}
.lp-hero__fig figcaption{padding:10px 4px 0;font-size:13px;color:var(--muted)}
.lp-hero--solo .hero__in{grid-template-columns:1fr;gap:36px}
.lp-hero--solo .hero__sub{max-width:760px}

/* ---------- секция: слева заголовок, справа содержимое ---------- */
.lp-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);gap:56px;align-items:start}
.lp-split__h{position:sticky;top:96px}
.lp-split__h .h2{margin:0;font-size:clamp(22px,2.5vw,32px)}
.lp-body{min-width:0}
.lp-body>*:last-child{margin-bottom:0}
.lp-body p{font-size:16px;line-height:1.7;max-width:720px;margin:0 0 16px}
.lp-body a:not(.btn):not(.lp-chip){text-decoration:underline;text-underline-offset:2px}
.lp-body .btn{margin:4px 0 0}
.lp .sec--dark .lp-body p{color:var(--bg)}
.lp .sec--dark a:not(.btn){color:var(--green-l)}
.lp .sec--dark .btn{margin-top:4px;width:auto}

/* ---------- списки -> карточки с галочкой (колонки задаёт генератор: lp-c1 / lp-c2 / lp-c3) ---------- */
.lp-cards,.lp .lp-tbl--cards tbody{display:grid;gap:14px}
.lp-cards{list-style:none;margin:0 0 24px;padding:0}
.lp-c1{grid-template-columns:minmax(0,1fr)}
.lp-c2{grid-template-columns:repeat(2,minmax(0,1fr))}
.lp-c2>:last-child:nth-child(odd){grid-column:1/-1}
.lp-c3{grid-template-columns:repeat(6,minmax(0,1fr))}
.lp-c3>*{grid-column:span 2}
.lp-c3>:nth-child(4):nth-last-child(2),.lp-c3>:nth-child(5):last-child{grid-column:span 3}
.lp-cards li{position:relative;margin:0;background:var(--lp-card);border-radius:18px;padding:20px 20px 20px 62px;font-size:15px;line-height:1.55}
.lp-c3 li{padding:62px 20px 20px}
.lp-cards li::before{content:"";position:absolute;left:20px;top:20px;width:28px;height:28px;border-radius:50%;
  background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/16px no-repeat}
.lp-cards strong{font-family:Manrope,system-ui,sans-serif;font-weight:600;display:block;margin-bottom:2px}
.lp-cards li::marker{content:""}

/* ---------- таблицы: белая карточка / карточки-строки ---------- */
.lp .tbl{overflow:hidden;margin:0 0 24px;border-radius:20px;background:var(--lp-card)}
.lp .tbl table{min-width:0;width:100%;background:transparent;border-radius:0;font-size:15px}
.lp .tbl th,.lp .tbl td{padding:16px 20px;border-bottom:1px solid var(--line)}
.lp .tbl thead th{background:rgba(30,42,38,.05);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lp .tbl tbody th{background:transparent;font-weight:600;width:32%}
.lp .tbl tbody tr:last-child th,.lp .tbl tbody tr:last-child td{border-bottom:0}
.lp .tbl td:nth-of-type(1){font-family:Manrope,system-ui,sans-serif;font-weight:800;font-size:17px;line-height:1.3}
.lp .tbl td:nth-of-type(2){color:var(--ink2);font-size:14px}
.lp .tbl a{text-decoration:underline;text-underline-offset:2px}
.lp-tbl--sum tbody tr:last-child{background:rgba(47,191,113,.18)}
.lp-tbl--sum tbody tr:last-child th,.lp-tbl--sum tbody tr:last-child td{font-size:17px}

.lp .lp-tbl--cards{background:none;border-radius:0;overflow:visible}
.lp .lp-tbl--cards table{display:block}
.lp .lp-tbl--cards thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lp .lp-tbl--cards tr{display:flex;flex-direction:column;gap:6px;background:var(--lp-card);border-radius:18px;padding:22px}
.lp .lp-tbl--cards th,.lp .lp-tbl--cards td{display:block;padding:0;border:0;width:auto}
.lp .lp-tbl--cards tbody th{font-size:15px;width:auto}
.lp .lp-tbl--cards td:nth-of-type(1){font-size:22px}
.lp .lp-tbl--cards td:nth-of-type(2){font-size:13.5px;color:var(--muted);line-height:1.5}

/* ---------- акцент «07:00–22:00» ---------- */
.lp-accent{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;background:var(--lp-card);border-radius:20px;padding:22px 26px;margin:0 0 20px}
.lp-accent b{font-family:Manrope,system-ui,sans-serif;font-weight:800;font-size:clamp(32px,5vw,46px);line-height:1.05;letter-spacing:-.02em}
.lp-accent span{font-size:15px;color:var(--muted)}

/* ---------- Мирабад: инфо-карточки, карты, ссылки ---------- */
.lp-infos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 20px}
.lp-info{display:flex;gap:14px;align-items:flex-start;background:var(--lp-card);border-radius:18px;padding:20px}
.lp-info__i{flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:rgba(15,123,77,.12);color:var(--green);display:flex;align-items:center;justify-content:center}
.lp-info__k{font-size:12px;color:var(--muted);margin-bottom:2px}
.lp-info__v{font-weight:500;font-size:15px;line-height:1.45}
.lp-info__v a{text-decoration:underline;text-underline-offset:2px}
.lp-after{margin-top:40px}
.lp .about__maps{margin-bottom:0}
.lp-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}
.lp-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:var(--lp-card);color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-weight:600;font-size:14px}
.lp-chip:hover{color:var(--green)}
.lp-plates{margin-top:8px}
.lp .sec--white .branch{background:var(--bg)}

/* ---------- страница цен: три карточки в hero ---------- */
.lp-pcards{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lp-pc{display:flex;flex-direction:column;gap:6px;background:#fff;border-radius:22px;padding:28px}
.lp-pc__t{font-family:Manrope,system-ui,sans-serif;font-weight:600;font-size:16px}
.lp-pc__p{font-family:Manrope,system-ui,sans-serif;font-weight:800;font-size:clamp(28px,3vw,38px);line-height:1.1;letter-spacing:-.02em}
.lp-pc__d{font-size:14px;color:var(--muted);margin-bottom:18px;flex:1}
.lp-pc .btn{align-self:flex-start;margin-top:auto}
.lp-pc--main{background:var(--dark);color:var(--bg)}
.lp-pc--main .lp-pc__d{color:var(--onDark2)}

/* ---------- фото и отзывы: 1-3 картинки по теме страницы, компактно ---------- */
.lp .photos--1{grid-template-columns:minmax(0,520px)}
.lp .photos--2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.lp .proof--2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
.lp .proof--3 figure:first-child img{aspect-ratio:1/1;object-fit:cover;object-position:50% 82%}

/* ---------- форма на странице ---------- */
.lp-form .h2{margin-bottom:12px}
.lp-form .sub{margin-bottom:40px}

/* ---------- «Читайте также» ---------- */
.lp div.h2{font-family:Manrope,system-ui,sans-serif;font-weight:800}
.lp .h2+.lp-rel{margin-top:28px}
.lp-rel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lp-rel__c{display:flex;flex-direction:column;gap:14px;background:var(--lp-card);border-radius:20px;padding:24px;color:var(--ink)}
.lp-rel__c:hover{color:var(--ink);box-shadow:0 4px 16px rgba(30,42,38,.08)}
.lp-rel__t{font-family:Manrope,system-ui,sans-serif;font-weight:600;font-size:17px;line-height:1.35}
.lp-rel__m{margin-top:auto;font-weight:500;font-size:14px;color:var(--green)}

/* ============ tablet ============ */
@media (max-width:1024px){
  .lp-split{grid-template-columns:1fr;gap:20px}
  .lp-split__h{position:static}
  .lp-pcards{grid-template-columns:1fr}
}

/* ============ mobile ============ */
@media (max-width:760px){
  .lp .sec{padding:44px 0}
  .lp .hero__in{padding:24px 16px 40px;gap:24px}
  .lp .hero__sub{font-size:15px;margin-bottom:20px}
  .lp .facts{margin-bottom:20px}
  .lp .fact{flex-wrap:wrap;gap:2px 10px}
  .lp-date{margin-top:16px}
  .lp-cards,.lp .lp-tbl--cards tbody{grid-template-columns:minmax(0,1fr)}
  .lp-cards>*,.lp .lp-tbl--cards tbody>*{grid-column:auto!important}
  .lp-cards li,.lp-c3 li{padding:16px 16px 16px 56px}
  .lp-cards li::before{left:16px;top:16px}
  .lp-infos{grid-template-columns:1fr}
  .lp-after{margin-top:28px}
  /* на телефоне внизу уже висит плавающая кнопка «Позвонить» — вторую такую же в hero не показываем */
  .lp .hero .cta .btn--outline[href^="tel:"]{display:none}
  .lp .about__mapimg img{height:220px}
  /* на телефоне одна карта (картинка 2ГИС) и три кнопки: два iframe подряд — это лишние два экрана и лишний вес */
  .lp .about__map iframe{display:none}
  .lp .about__map:last-child{order:-1}

  /* таблица -> карточки-строки: никакой горизонтальной прокрутки */
  .lp .tbl table,.lp .tbl tbody,.lp .tbl tr,.lp .tbl th,.lp .tbl td{display:block;width:auto}
  .lp .tbl thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .lp .tbl tbody tr{padding:16px 18px;border-bottom:1px solid var(--line)}
  .lp .tbl tbody tr:last-child{border-bottom:0}
  .lp .tbl th,.lp .tbl td{padding:0;border:0}
  .lp .tbl tbody th{font-size:15px;width:auto}
  .lp .tbl td:nth-of-type(1){margin-top:4px;font-size:19px}
  .lp .tbl td:nth-of-type(2){margin-top:6px;font-size:13.5px;color:var(--muted)}
  .lp .lp-tbl--cards tbody{display:grid}
  .lp .lp-tbl--cards tbody tr{padding:18px;border-bottom:0}
  .lp .lp-tbl--cards td:nth-of-type(1){font-size:21px;margin-top:0}
  .lp .lp-tbl--cards td:nth-of-type(2){margin-top:0}

  /* фото: одна картинка 16:10, две - в два столбца; отзывы: выпускники во всю ширину (кадр по группе), два скриншота рядом */
  .lp .photos--1 img{aspect-ratio:16/10}
  .lp .photos--2{gap:12px}
  .lp .photos--2 img{aspect-ratio:1/1}
  .lp .photos--2 small,.lp .proof figcaption{font-size:12px;line-height:1.4}
  .lp .proof{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .lp .proof--3 figure:first-child{grid-column:1/-1}
  .lp .proof--3 figure:first-child img{aspect-ratio:16/9}
  .lp .proof figcaption{padding:8px 2px 0}

  .lp-pc{padding:22px}
  .lp-pc .btn{align-self:stretch}
  .lp-accent{padding:18px 20px}
  .lp-rel{grid-template-columns:1fr;gap:12px}
  .lp-rel__c{padding:20px}
  .lp-chip{flex:1 1 100%}
  .lp-form .sub{margin-bottom:28px}
  .lp .sec--dark .btn{width:100%}
}
