/* «Аполлон» — фирменная палитра, снятая с логотипа:
   графит #3c3230, слоновая кость #eae3e0, песочный акцент #d8a882 */
:root {
  --dark: #322926;
  --dark-2: #3c3230;
  --dark-3: #494039;
  --cream: #eae3e0;
  --cream-dim: #b3a79e;
  --accent: #d8a882;
  --accent-hover: #e6bb95;
  --accent-ink: #322926;
  --light-bg: #f1ece7;
  --light-card: #ffffff;
  --ink: #322926;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--cream);
  line-height: 1.5;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(28px, 4.5vw, 48px); }

.tag {
  display: inline-block; padding: 8px 18px; border-radius: 100px;
  background: rgba(0,0,0,.08); color: inherit; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}

/* Кнопки */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit;
  font-weight: 700; text-decoration: none; text-align: center;
  padding: 15px 28px; border-radius: 100px; transition: .2s;
  color: var(--cream);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--outline { background: transparent; border: 1.5px solid currentColor; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: rgba(255,255,255,.1); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 44px; font-size: 18px; }
.btn--wide { width: 100%; }

.link-arrow {
  background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--accent); padding: 0; text-align: left;
}
.link-arrow::after { content: ' →'; transition: .2s; }
.link-arrow:hover::after { padding-left: 4px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(33,29,26,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(236,227,208,.08);
}
.header__in { display: flex; align-items: center; gap: 28px; padding-top: 10px; padding-bottom: 10px; }
.header__logo img { height: 54px; border-radius: 10px; }
.header__nav { display: flex; gap: 22px; margin-right: auto; }
.header__nav a { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 500; }
.header__nav a:hover { color: var(--accent); }
.header__right { display: flex; align-items: center; gap: 16px; }
.header__phone { color: var(--cream); text-decoration: none; font-weight: 700; }

/* Хиро */
.hero { padding: 28px 0 10px; }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero__media > img { width: 100%; height: min(78vh, 640px); object-fit: cover; }
.hero__badge {
  position: absolute; top: 24px; left: 24px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(33,29,26,.82); color: var(--cream);
  padding: 12px 20px; border-radius: 100px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero__badge-icon { color: var(--accent); }
.hero__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 40px 40px;
  background: linear-gradient(transparent, rgba(20,17,15,.88) 45%);
}
.hero__panel h1 {
  font-size: clamp(34px, 5.5vw, 64px); color: #fff; line-height: 1.05;
}
.hero__panel h1 span { color: var(--accent); }
.hero__panel p { margin: 14px 0 24px; font-size: 18px; color: var(--cream); max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* УТП */
.usp { padding: 56px 0; }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp__card {
  background: var(--dark-2); border: 1px solid rgba(236,227,208,.07);
  border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.usp__card--light { background: var(--light-card); color: var(--ink); }
.usp__card--accent { background: var(--accent); color: var(--accent-ink); }
.usp__card--accent .link-arrow { color: var(--accent-ink); }
.usp__card p { font-size: 13px; opacity: .8; flex: 1; }
.usp__num { font-size: 52px; font-weight: 300; line-height: 1; }
.usp__num span { font-size: 15px; font-weight: 600; margin-left: 6px; }
.usp__title { font-weight: 700; font-size: 17px; }

/* Расчёт сметы */
.calc { padding: 40px 0 70px; }
.calc__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.calc__head p { max-width: 300px; color: var(--cream-dim); font-size: 14px; }
.calc__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  background: var(--dark-2); border: 1px solid rgba(236,227,208,.07);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.cat-card__img img { width: 100%; height: 220px; object-fit: cover; }
.cat-card__body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cat-card__body h3 { font-size: 20px; }
.cat-card__body ul { list-style: none; display: grid; gap: 8px; flex: 1; }
.cat-card__body li { font-size: 13px; color: var(--cream-dim); padding-left: 18px; position: relative; }
.cat-card__body li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.cat-card__meta { display: flex; justify-content: space-between; align-items: baseline; }
.cat-card__meta span { font-size: 13px; color: var(--cream-dim); }
.cat-card__meta b { color: var(--accent); font-size: 20px; }

/* Проекты */
.projects { padding: 10px 0 80px; }
.projects h2 { margin-bottom: 34px; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj-card { background: var(--dark-2); border: 1px solid rgba(236,227,208,.07); border-radius: var(--radius); overflow: hidden; }
.proj-card img { width: 100%; height: 200px; object-fit: cover; }
.proj-card__body { padding: 18px 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.proj-card__body h3 { font-size: 16px; grid-column: 1 / -1; }
.proj-card__body span { font-size: 13px; color: var(--cream-dim); }
.proj-card__body b { color: var(--accent); font-size: 17px; grid-column: 1; }
.proj-card__body .btn { grid-column: 2; grid-row: 2 / 4; }

/* Светлые секции */
.payment, .cycle, .gallery { background: var(--light-bg); color: var(--ink); }
.payment { padding: 80px 0 40px; }
.payment h2 { margin-bottom: 34px; }
.payment__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pay-card {
  background: var(--light-card); border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 30px rgba(38,34,30,.06);
}
.pay-card--dark { background: var(--dark-2); color: var(--cream); }
.pay-card h3 { font-size: 19px; text-transform: none; letter-spacing: 0; }
.pay-card p { font-size: 14px; opacity: .75; flex: 1; }

/* Полный цикл */
.cycle { padding: 50px 0; }
.cycle__head { margin-bottom: 30px; }
.cycle__head h2 { margin-top: 16px; max-width: 640px; }
.cycle__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: stretch; }
.cycle__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.cycle__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact-card {
  background: var(--light-card); border-radius: var(--radius); padding: 24px 22px;
  box-shadow: 0 8px 30px rgba(38,34,30,.06);
}
.fact-card b { display: block; font-size: 17px; margin-bottom: 8px; }
.fact-card p { font-size: 13px; opacity: .75; }

/* Галерея */
.gallery { padding: 30px 0 80px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.gallery__grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; }

/* CTA */
.cta-band { padding: 90px 0; text-align: center; }
.cta-band h2 { max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: var(--cream-dim); margin-bottom: 30px; }

/* Футер */
.footer { border-top: 1px solid rgba(236,227,208,.08); padding: 50px 0 24px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer__brand img { height: 72px; border-radius: 12px; margin-bottom: 12px; }
.footer__brand p { color: var(--cream-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col b { text-transform: uppercase; font-size: 13px; letter-spacing: .08em; margin-bottom: 6px; }
.footer__col a, .footer__link {
  color: var(--cream-dim); text-decoration: none; font-size: 14px;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.footer__col a:hover, .footer__link:hover { color: var(--accent); }
.footer__bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(236,227,208,.08); color: var(--cream-dim); font-size: 12px; }

/* Квиз */
.quiz { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.quiz[hidden] { display: none; }
.quiz__overlay { position: absolute; inset: 0; background: rgba(15,13,11,.75); backdrop-filter: blur(4px); }
.quiz__modal {
  position: relative; width: min(560px, calc(100vw - 32px));
  background: var(--dark-2); border: 1px solid rgba(236,227,208,.1);
  border-radius: 22px; padding: 40px 36px 32px;
  max-height: 90vh; overflow-y: auto;
}
.quiz__close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0;
  color: var(--cream-dim); font-size: 30px; cursor: pointer; line-height: 1;
}
.quiz__close:hover { color: var(--accent); }
.quiz__progress { height: 4px; background: rgba(236,227,208,.12); border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 4px; transition: .3s; }
.quiz__step h3, .quiz__done h3 { font-size: 22px; margin-bottom: 20px; text-transform: none; letter-spacing: 0; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opts label { cursor: pointer; }
.quiz__opts input { position: absolute; opacity: 0; }
.quiz__opts span {
  display: block; padding: 15px 18px; border-radius: 12px;
  background: rgba(236,227,208,.06); border: 1.5px solid rgba(236,227,208,.1);
  font-size: 15px; transition: .15s;
}
.quiz__opts input:checked + span { border-color: var(--accent); background: rgba(216,168,130,.16); }
.quiz__opts span:hover { border-color: rgba(216,168,130,.55); }
.quiz__fields { display: grid; gap: 12px; }
.quiz__fields input[type=text], .quiz__fields input[type=tel] {
  padding: 15px 18px; border-radius: 12px; border: 1.5px solid rgba(236,227,208,.15);
  background: rgba(236,227,208,.06); color: var(--cream); font: inherit; font-size: 15px;
}
.quiz__fields input:focus { outline: none; border-color: var(--accent); }
.quiz__agree { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--cream-dim); cursor: pointer; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.quiz__nav .btn--accent { margin-left: auto; }
.quiz__done { text-align: center; padding: 20px 0; }
.quiz__done-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.quiz__done p { color: var(--cream-dim); font-size: 14px; }

/* Адаптив */
@media (max-width: 980px) {
  .usp__grid, .payment__grid { grid-template-columns: 1fr 1fr; }
  .calc__grid, .projects__grid { grid-template-columns: 1fr 1fr; }
  .cycle__grid { grid-template-columns: 1fr; }
  .cycle__photo img { max-height: 320px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .header__nav { display: none; }
}
@media (max-width: 620px) {
  .usp__grid, .payment__grid, .calc__grid, .projects__grid, .cycle__facts { grid-template-columns: 1fr; }
  .hero__panel { padding: 32px 20px 24px; }
  .header__phone { display: none; }
  .footer__in { grid-template-columns: 1fr; }
}
