/* PomiGrow (проект «Помиботто») — сайт проекта.
   Ванильный CSS, без сборки и зависимостей.

   Палитра намеренно НЕ из Tailwind-лестницы: приглушённая, тёплая бумага
   вместо зелёного фона, зелёный работает только как акцент. Шрифт — Golos Text
   (родная кириллица, рисовался под русский, а не с добавленной кириллицей).

   Ритм намеренно разный по секциям: где-то рамка, где-то только линия сверху,
   где-то полноширинная плашка — чтобы страница не читалась одним шаблоном. */

@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&display=swap');

:root {
  --ink:      #16211C;   /* основной текст */
  --ink-2:    #58635C;   /* вторичный текст */
  --ink-3:    #8A938C;   /* подписи */
  --paper:    #FBFAF7;   /* фон страницы — тёплая бумага */
  --paper-2:  #F3F1EB;   /* фон чередующихся секций */
  --line:     #DFDBD1;   /* границы, тёплые */
  --line-2:   #C9C3B5;
  --green:    #35624A;   /* акцент */
  --green-d:  #264836;
  --clay:     #A85433;   /* второй акцент: цифры, отклонения */
  --maxw:     1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.14; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }

.wrap    { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt  { background: var(--paper-2); }
.section--tight { padding: 60px 0; }
.lead    { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.muted   { color: var(--ink-2); }
.nowrap  { white-space: nowrap; }

/* Заголовок секции — слева, с короткой чертой. Не центрируем: центрированные
   «шапки» четыре раза подряд и создают шаблонное ощущение. */
.shead { max-width: 58ch; margin-bottom: 40px; }
.shead__kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 12px;
}
.shead h2 { margin-bottom: .35em; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand__name { font-weight: 800; font-size: 1.2rem; line-height: 1.05; letter-spacing: -.02em; }
.brand__sub  { font-size: .72rem; color: var(--ink-3); line-height: 1.05; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--green); }

.header__logos {
  display: flex; align-items: center; gap: 16px;
  margin-left: 24px; padding-left: 22px; border-left: 1px solid var(--line);
}
.header__logos img { height: 28px; width: auto; object-fit: contain; }
.header__logos img.is-tall { height: 34px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .header__logos { margin-left: auto; padding-left: 0; border-left: 0; gap: 13px; }
  .header__logos img { height: 25px; }
  .header__logos img.is-tall { height: 30px; }
}
@media (max-width: 480px) {
  .header__logos { display: none; }   /* ниже минимального размера по фирменному стилю */
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 4px;              /* почти прямой угол вместо повсеместных 10-14px */
  border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: .98rem;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-d); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 2px;
}

/* ---------- Первый экран: асимметричный, скриншот вылезает за колонку ---------- */
.hero { padding: 76px 0 84px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: .38em; }
.hero__lead { font-size: 1.16rem; color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: .85rem; color: var(--ink-3); }

/* Скриншот уходит вправо за край контейнера — ломает «две ровные колонки» */
.hero__shot { position: relative; margin-right: calc(-1 * max(24px, (100vw - var(--maxw)) / 2)); }
.hero__shot img {
  width: 100%; border-radius: 6px 0 0 6px;
  border: 1px solid var(--line); border-right: 0;
  box-shadow: -18px 22px 50px rgba(22, 33, 28, .10);
}
@media (max-width: 980px) {
  .hero { padding: 52px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__shot { margin-right: 0; }
  .hero__shot img { border-radius: 6px; border-right: 1px solid var(--line); }
}


/* ---------- Блок Фонда (обязателен по ТЗ 3.2б) ---------- */
.fund { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; }
.fund__in { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.fund__logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.fund__logos img { height: 58px; width: auto; object-fit: contain; }
.fund__logos img.is-tall { height: 70px; }
.fund__text { font-size: .95rem; color: var(--ink-2); margin: 0; max-width: 64ch; }
@media (max-width: 900px) {
  .fund__in { grid-template-columns: 1fr; gap: 24px; }
  .fund__logos { justify-content: flex-start; gap: 26px; }
  .fund__logos img { height: 44px; }
  .fund__logos img.is-tall { height: 53px; }
}

/* ---------- «Что происходит между обходами» — текст + врезка ---------- */
.axis { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .axis { grid-template-columns: 1fr; gap: 32px; } }
.axis p { font-size: 1.05rem; }
.axis__aside {
  border-left: 3px solid var(--clay); padding: 4px 0 4px 22px;
  font-size: .97rem; color: var(--ink-2);
}
.axis__aside b { color: var(--ink); }

/* ---------- Чередующиеся ряды «фича + скриншот» ---------- */
.row {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.row:first-of-type { border-top: 0; padding-top: 24px; }
.row--flip .row__text { order: 2; }
.row--flip .row__shot { order: 1; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .row--flip .row__text, .row--flip .row__shot { order: initial; }
}
.row__num {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--clay); margin-bottom: 10px;
}
.row__text h3 { font-size: 1.45rem; letter-spacing: -.015em; }
.row__text p { color: var(--ink-2); }
.row__text ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.row__text li { margin-bottom: 6px; }
.row__shot img {
  width: 100%; border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 14px 34px rgba(22, 33, 28, .09);
}
.row__cap { margin-top: 10px; font-size: .8rem; color: var(--ink-3); }

/* Ряд «Цифровой паспорт»: картинка обёрнута в ссылку на демо-страницу */
.row__shot a { display: block; }

/* ---------- Как устроено: плотная спецификация ---------- */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
@media (max-width: 800px) { .spec { grid-template-columns: 1fr; } }
.spec dl { margin: 0; }
.spec div { display: grid; grid-template-columns: 40% 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); font-size: .88rem; }
.spec dd { margin: 0; font-size: .95rem; }

/* ---------- Таблицы (сравнение, комплектации) ---------- */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 620px; }
table.t th, table.t td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--line-2); }
table.t tbody th { font-weight: 500; color: var(--ink); }
table.t .is-us { background: #fff; box-shadow: inset 3px 0 0 var(--green); }
table.t thead .is-us { color: var(--green); font-weight: 700; }
table.t .y { color: var(--green); font-weight: 600; }
table.t .n { color: var(--ink-3); }
.t-note { margin-top: 14px; font-size: .84rem; color: var(--ink-3); }

.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; display: block; margin-bottom: 2px; }
.price small { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

/* ---------- Роли ---------- */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
@media (max-width: 820px) { .roles { grid-template-columns: 1fr; } }
.role { padding: 26px 0; border-top: 1px solid var(--line); }
.role h3 { font-size: 1.08rem; margin-bottom: .35em; }
.role p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Статус проекта ---------- */
.status { background: var(--green-d); color: #E8F0EA; }
.status h2 { color: #fff; }
.status .lead { color: #B9CDBF; }
.status__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 820px) { .status__grid { grid-template-columns: 1fr; gap: 20px; } }
.status__item { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }
.status__item b { display: block; color: #fff; font-size: .98rem; margin-bottom: 5px; }
.status__item span { font-size: .9rem; color: #B9CDBF; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 15px;
  font-size: 1.5rem; font-weight: 400; color: var(--ink-3); line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: var(--ink-2); font-size: .96rem; max-width: 68ch; }

/* ---------- Заявка ----------
   Формы нет намеренно: обработчика под неё не существует, а кнопка, которая
   молчит, хуже отсутствия кнопки — посетитель уверен, что заявку отправил.
   Вместо неё один крупный почтовый адрес: он работает всегда и везде. */
.cta2 {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 44px 48px;
}
@media (max-width: 900px) {
  .cta2 { grid-template-columns: 1fr; gap: 30px; padding: 32px 26px; }
}
.cta2__text h2 { margin-bottom: .4em; }
.cta2__text .lead { margin-bottom: 14px; }
.cta2__hint { font-size: .92rem; color: var(--ink-3); margin: 0; }

/* Почта — главный элемент секции: крупная, кликабельная, с подчёркиванием
   на всю ширину, чтобы читалась как действие, а не как строка контактов. */
.cta2__mail { border-left: 3px solid var(--green); padding-left: 26px; }
.cta2__mail > span {
  display: block; font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 8px;
}
.cta2__mail > a {
  display: inline-block;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700;
  letter-spacing: -.02em; color: var(--green); text-decoration: none;
  border-bottom: 2px solid var(--green); padding-bottom: 3px;
  word-break: break-word;
}
.cta2__mail > a:hover { color: var(--green-d); border-color: var(--green-d); }
.cta2__mail > p { margin: 14px 0 0; font-size: .86rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .cta2__mail { border-left: 0; border-top: 3px solid var(--green); padding: 22px 0 0; }
}

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #C6CEC8; padding: 46px 0 30px; font-size: .9rem; }
.footer a { color: #A8C4B2; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 26px; }
.footer__brand { font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: -.02em; }
.footer__sub { color: #8B968E; font-size: .85rem; }
/* Реквизиты юрлица — служебная информация, намеренно мельче и тусклее
   остального подвала: нужны для проверяющего, а не для читателя. */
.footer__req { color: #77817A; font-size: .78rem; line-height: 1.6; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.13); padding-top: 20px; color: #8B968E; font-size: .82rem; line-height: 1.65; }

/* Данные, которые подставим позже (реквизиты ООО, контакты) */
.todo { background: #FBF3D0; border-bottom: 1px dashed var(--clay); padding: 0 3px; }
