@import url("fonts/fonts.css");

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* height:auto обязателен: у картинок проставлены width/height, и без него
   ужатая по ширине обложка сохраняет исходную высоту и получает поля. */
img, svg { max-width: 100%; height: auto; display: block; }

/* ===== ПАЛИТРА ===== */
/* Та же песочно-терракотовая гамма, что у лид-магнита «7 ошибок» */
:root {
  --bg:        #F7F0E6;
  --bg-2:      #FCF8F2;
  --card:      #FFFCF6;
  --panel:     #F1E3D2;
  --panel-2:   #EAD8C2;
  --soft:      #F2D9C8;
  --line:      #E4D9C8;
  --line-2:    #D6C7B0;
  --ink:       #221F1B;
  --ink-2:     #4A443C;
  --muted:     #786E60;
  --accent:    #C2562F;
  --accent-d:  #A8451F;
  --accent-l:  #D67A53;
  --dark:      #2B2723;
  --on-dark:   #F7F0E6;
  --on-dark-2: #BDB1A0;
  --on-dark-a: #F0A184;
  --shadow:    0 2px 18px rgba(43,39,35,.06);
  --shadow-l:  0 14px 44px rgba(43,39,35,.13);
  --r:  14px;
  --r-s: 9px;
}

body {
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--ink-2); background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
}

/* ===== СЛУЖЕБНОЕ ===== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.s-title {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(27px, 3.2vw, 40px); line-height: 1.14;
  letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px;
}
.s-sub { font-size: 17px; color: var(--muted); max-width: 640px; margin-bottom: 44px; }
.s-head--center { text-align: center; }
.s-head--center .s-sub { margin-left: auto; margin-right: auto; }
.accent { color: var(--accent); }
section { padding: 86px 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-s); border: none; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(194,86,47,.3); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: var(--on-dark); color: var(--dark); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--full { width: 100%; }

/* ===== ШАПКА ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,248,242,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(43,39,35,.05); }
.header__in { display: flex; align-items: center; gap: 26px; height: 72px; }
.logo { display: flex; align-items: baseline; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo__mark {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: -.01em; color: var(--ink);
}
.logo__sub {
  font-size: 10px; font-weight: 500; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap; transition: color .15s;
}
.nav a:hover { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header__tel {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header__tel:hover { color: var(--accent); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== ПЕРВЫЙ ЭКРАН ===== */
.hero { padding: 62px 0 0; background: linear-gradient(168deg, var(--panel) 0%, var(--bg-2) 58%); }
.hero__in {
  display: grid; grid-template-columns: 1fr 420px; gap: 56px;
  align-items: start; padding-bottom: 52px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 12px; background: var(--soft);
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--accent-d); margin-bottom: 22px;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero__title {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08;
  letter-spacing: -.03em; color: var(--ink); margin-bottom: 22px;
}
.hero__desc { font-size: 18px; color: var(--ink-2); max-width: 520px; margin-bottom: 18px; }
.hero__who { font-size: 15px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-l);
}
.hero__card-t { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; color: var(--ink); }
.hero__card-p { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.form { display: flex; flex-direction: column; gap: 11px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inp {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-s); background: #fff; outline: none;
  font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--ink);
  appearance: none; transition: border-color .15s;
}
.inp:focus { border-color: var(--accent); }
select.inp {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23786E60' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 34px;
}
textarea.inp { resize: vertical; min-height: 92px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 4px; }
.form__ok {
  display: none; padding: 12px 14px; border-radius: var(--r-s);
  background: var(--soft); color: var(--accent-d);
  font-size: 14px; font-weight: 600; text-align: center;
}
.form__ok.on { display: block; }

/* лента цифр под первым экраном */
.hstats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
}
.hstat { padding: 22px 24px; border-right: 1px solid var(--line); }
.hstat:last-child { border-right: none; }
.hstat b {
  display: block; font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 26px; line-height: 1; color: var(--accent); margin-bottom: 6px;
}
.hstat span { font-size: 13px; color: var(--muted); line-height: 1.35; }
/* Полоса во всю ширину закрывает первый экран. Высота фиксированная,
   кадр подрезается по ней: иначе на широком мониторе полоса вырастает
   до полутора экранов и отталкивает блок «с чем приходят» за сгиб. */
.hero__band { width: 100%; height: 240px; object-fit: cover; margin-top: 56px; }

/* ===== С ЧЕМ ПРИХОДЯТ ===== */
.topics { background: var(--bg-2); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.topic { background: var(--card); padding: 30px 28px; transition: background .2s; }
.topic:hover { background: var(--panel); }
.topic__n {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px;
  color: var(--accent); letter-spacing: .08em; margin-bottom: 14px;
}
.topic__t { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.topic__d { font-size: 14.5px; color: var(--muted); }
.topics__note { margin-top: 26px; font-size: 14.5px; color: var(--muted); }

/* ===== ЛИД-МАГНИТ ===== */
.magnet { background: var(--dark); color: var(--on-dark); }
.magnet__in { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.magnet .eyebrow { color: var(--on-dark-a); }
.magnet h2 {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.14;
  letter-spacing: -.02em; color: var(--on-dark); margin-bottom: 16px;
}
.magnet p { color: var(--on-dark-2); font-size: 16.5px; max-width: 560px; }
.magnet__list { list-style: none; margin: 22px 0 28px; display: grid; gap: 11px; }
.magnet__list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--on-dark); }
.magnet__list b {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  color: var(--on-dark-a); flex-shrink: 0; min-width: 20px;
}
/* .form выше задаёт колонку — здесь нужна строка, иначе flex-basis
   уходит в высоту и поле почты вытягивается на 220 px вниз. */
.magnet__form { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.magnet__form .inp { flex: 1 1 220px; background: #3A3530; border-color: #4C4640; color: var(--on-dark); }
.magnet__form .inp::placeholder { color: #8C8378; }
.magnet__form .inp:focus { border-color: var(--on-dark-a); }
.magnet__form .form__ok { flex: 1 0 100%; background: #3A3530; color: var(--on-dark-a); }
.magnet__note { font-size: 12.5px; color: #8C8378; margin-top: 12px; }
.magnet__cover { box-shadow: 0 22px 50px rgba(0,0,0,.35); }

/* ===== ОБО МНЕ ===== */
.about { background: var(--bg); }
.about__in { display: grid; grid-template-columns: 400px 1fr; gap: 60px; align-items: start; }
/* Фото кадрируется по колонке, а не растягивается: у портрета и у кадра
   кабинета разные пропорции, а высоту в сетке держит соседняя колонка. */
.about__art { border: 1px solid var(--line-2); aspect-ratio: 5 / 6; object-fit: cover; }
.about__lead { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.fact { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.fact dt { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--muted); }
.fact dd { font-size: 15.5px; color: var(--ink); }
.about__no {
  margin-top: 26px; padding: 20px 22px; background: var(--card);
  border-left: 3px solid var(--accent); font-size: 15px; color: var(--ink-2);
}
.about__no b { font-family: 'Manrope', sans-serif; color: var(--ink); }

/* ===== КАК ПРОХОДИТ ===== */
.steps { background: var(--bg-2); }
.steps__art {
  width: 100%; max-width: 760px; margin: 0 auto 54px;
  border: 1px solid var(--line-2);
}
.step-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { padding: 0 22px 0 0; position: relative; }
.step::before {
  content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 1px; background: var(--line-2);
}
.step:last-child::before { right: 22px; }
.step__n {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 14px; margin-bottom: 18px;
}
.step__t { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 7px; }
.step__d { font-size: 14.5px; color: var(--muted); }
.steps__note { margin-top: 40px; font-size: 15px; color: var(--muted); border-left: 3px solid var(--line-2); padding-left: 18px; }

/* ===== ЦЕНЫ ===== */
.prices { background: var(--bg); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px; display: flex; flex-direction: column;
}
.price--pick { border-color: var(--accent); box-shadow: var(--shadow-l); position: relative; }
.price__tag {
  position: absolute; top: -11px; left: 24px; padding: 4px 11px;
  background: var(--accent); color: #fff; border-radius: 100px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .04em;
}
.price__t { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.price__d { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.price__v {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 27px;
  color: var(--ink); line-height: 1; margin-bottom: 4px;
}
.price__u { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.price-note { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; font-size: 14.5px; color: var(--muted); }
.price-note span { display: flex; gap: 9px; }
.price-note b { color: var(--accent); font-family: 'Manrope', sans-serif; }

/* ===== ОТЗЫВЫ ===== */
.reviews { background: var(--bg-2); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.rev__q {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 58px;
  line-height: .62; color: var(--soft); margin-bottom: 14px; height: 34px;
}
.rev__txt { font-size: 15.5px; color: var(--ink-2); flex: 1; }
.rev__who { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.rev__who b { display: block; font-family: 'Manrope', sans-serif; color: var(--ink); }
.rev__who span { color: var(--muted); }
.reviews__note { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

/* ===== ВОПРОСЫ ===== */
.faq { background: var(--bg); }
.faq__list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.q { border-bottom: 1px solid var(--line-2); }
.q__btn {
  width: 100%; display: flex; align-items: center; gap: 18px; justify-content: space-between;
  padding: 22px 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 17.5px; color: var(--ink);
}
.q__btn:hover { color: var(--accent); }
.q__ico { flex-shrink: 0; width: 16px; height: 16px; position: relative; }
.q__ico::before, .q__ico::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.q__ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.q__ico::after { left: 7px; top: 0; width: 2px; height: 16px; }
.q.open .q__ico::after { transform: rotate(90deg); opacity: 0; }
.q__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.q__a p { padding: 0 44px 22px 0; font-size: 15.5px; color: var(--muted); }

/* ===== ЗАЯВКА ===== */
.cta { background: var(--panel); }
.cta__in { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.cta__t { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px; }
.cta__d { font-size: 17px; color: var(--ink-2); max-width: 480px; margin-bottom: 26px; }
.cta__ways { display: grid; gap: 14px; }
.cta__way { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--ink-2); }
.cta__way b { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--ink); min-width: 108px; }
.cta__way a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cta__way a:hover { text-decoration: underline; }
.cta__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-l); }

/* ===== ПОДВАЛ ===== */
.footer { background: var(--dark); color: var(--on-dark-2); padding: 62px 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid #3E3833; }
.footer__mark { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 21px; color: var(--on-dark); margin-bottom: 4px; }
.footer__sub { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: #8C8378; margin-bottom: 16px; }
.footer p { font-size: 14px; max-width: 300px; }
.footer h4 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--on-dark); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--on-dark-2); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--on-dark-a); }
.footer__bot { padding-top: 24px; display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; font-size: 13px; color: #8C8378; }
.footer__demo { color: #8C8378; font-size: 13px; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1000px) {
  .hero__in, .about__in, .magnet__in, .cta__in { grid-template-columns: 1fr; gap: 36px; }
  .about__art { max-width: 380px; }
  .magnet__cover { max-width: 240px; }
  .topic-grid, .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-note { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .step::before { display: none; }
  .hstats { grid-template-columns: repeat(3, 1fr); }
  .hstat:nth-child(3) { border-right: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 62px 0; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .header__right { display: none; }
  .burger { display: flex; }
  .hero { padding-top: 40px; }
  .hero__band { height: 190px; margin-top: 36px; }
  .hero__cta .btn { width: 100%; }
  .topic-grid, .rev-grid, .price-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; gap: 26px; }
  .hstats { grid-template-columns: repeat(2, 1fr); }
  .hstat { border-right: none; border-bottom: 1px solid var(--line); }
  .hstat:nth-child(3) { border-right: none; }
  .form__row { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
}
