/* ============================================================
   TATIANA PIVKINA — студия дизайна интерьера
   Дизайн-система: тёплый редакционный минимализм
   ============================================================ */

:root {
  --bg: #F6F3ED;            /* тёплая слоновая кость */
  --bg-soft: #FCFAF5;       /* карточки */
  --bg-dark: #171511;       /* тёмные секции */
  --bg-dark-2: #12100D;     /* подвал */
  --ink: #1E1B16;           /* основной текст */
  --ink-light: #F6F3ED;     /* текст на тёмном */
  --muted: #877F71;         /* приглушённый */
  --muted-dark: #A39B8B;    /* приглушённый на тёмном */
  --line: #DFD8C9;          /* линии на светлом */
  --line-dark: #2E2A23;     /* линии на тёмном */
  --accent: #9A7B4F;        /* бронза */
  --accent-soft: #C9AE85;
  --accent-ink: #7E6238;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;

  --container: 1240px;
  --radius: 0px;            /* премиальная прямоугольная геометрия */
  --tr: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 900px; }

/* ---------- Типографика секций ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.section-label--light { color: var(--accent-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--accent-ink);
}
.section-title--light { color: var(--ink-light); }
.section-title--light em { color: var(--accent-soft); }

.section-sub { max-width: 560px; color: var(--muted); margin-bottom: 56px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  white-space: nowrap;
}
.btn--sm { padding: 12px 22px; }
.btn--block { width: 100%; }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); color: #fff; }

.btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }

.btn--ghost { border-color: rgba(246, 243, 237, 0.6); color: var(--ink-light); background: transparent; }
.btn--ghost:hover { background: rgba(246, 243, 237, 0.12); border-color: var(--ink-light); }

.btn--outline.btn--dark { color: var(--ink); }

/* на тёмных секциях сплошная кнопка инвертируется */
.section--dark .btn--solid,
.calc .btn--solid { background: var(--bg); color: var(--ink); }
.section--dark .btn--solid:hover,
.calc .btn--solid:hover { background: var(--accent); color: #fff; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: var(--ink-light);
  transition: background var(--tr), color var(--tr), box-shadow var(--tr);
}
.header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: currentColor;
  opacity: 0.14;
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 24px;
}
.header__left { display: flex; align-items: center; gap: 20px; }
.header__right { display: flex; align-items: center; justify-content: flex-end; }
.header__nav { display: flex; gap: 28px; }
.header__nav a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity var(--tr);
  white-space: nowrap;
}
.header__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.header__logo {
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}
.header__logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.header__logo-sub {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.65;
}

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.header__phone:hover { color: var(--accent-soft); }

/* бургер скрыт на десктопе */
.burger { display: none; flex-direction: column; gap: 6px; padding: 6px; }
.burger span { width: 26px; height: 1.5px; background: currentColor; transition: transform var(--tr), opacity var(--tr); }
.burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* шапка после скролла */
.header.is-scrolled {
  background: rgba(246, 243, 237, 0.92);
  backdrop-filter: blur(14px);
  color: var(--ink);
}
.header.is-scrolled .header__phone:hover { color: var(--accent-ink); }

/* мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg-dark);
  color: var(--ink-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: 34px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--tr), padding-left var(--tr);
}
.mobile-menu__nav a:hover { color: var(--accent-soft); padding-left: 10px; }
.mobile-menu__footer { margin-top: 40px; color: var(--muted-dark); }
.mobile-menu__footer a { display: block; font-size: 20px; font-weight: 600; color: var(--ink-light); margin-bottom: 6px; }

/* ============================================================
   ГЛАВНЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink-light);
  overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 16, 13, 0.58) 0%, rgba(18, 16, 13, 0.2) 38%, rgba(18, 16, 13, 0.74) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 150px 32px 30px;
  text-align: center;
}
.hero__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--accent-soft); }
.hero__lead {
  max-width: 560px;
  margin: 0 auto 38px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(246, 243, 237, 0.88);
}
.hero__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 26px 32px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(246, 243, 237, 0.22);
}
.hero__stat { text-align: center; }
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--ink-light);
}
.hero__stat span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 243, 237, 0.62);
}

.hero__scroll {
  display: none; /* индикатор прокрутки — только на больших экранах */
}
@media (min-width: 1100px) {
  .hero__scroll {
    display: block;
    position: absolute;
    right: 40px;
    bottom: 140px;
    z-index: 3;
    width: 1.5px;
    height: 64px;
    background: rgba(246, 243, 237, 0.45);
    overflow: hidden;
  }
  .hero__scroll::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 26px;
    background: var(--accent-soft);
    animation: scrollHint 2.2s var(--tr) infinite;
  }
}
@keyframes scrollHint {
  0% { transform: translateY(-30px); }
  60%, 100% { transform: translateY(70px); }
}

/* ============================================================
   БЕГУЩАЯ СТРОКА
   ============================================================ */
.marquee {
  background: var(--bg-dark);
  color: var(--muted-dark);
  overflow: hidden;
  padding: 13px 0;
  border-block: 1px solid var(--bg-dark);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 12px;
}
.marquee i { font-style: normal; color: var(--accent); padding: 0 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   МАНИФЕСТ
   ============================================================ */
.manifest__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.14;
  max-width: 900px;
  margin-bottom: 48px;
  text-wrap: balance;
}
.manifest__title em { font-style: italic; color: var(--accent-ink); }
.manifest__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin-left: auto;
  color: var(--muted);
  font-size: 16.5px;
}
.manifest__grid p { max-width: 430px; }
.manifest__sign {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
}

.manifest__points {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.manifest__points li {
  position: relative;
  background: var(--bg);
  padding: 22px 24px 22px 48px;
  font-size: 14.5px;
  line-height: 1.5;
}
.manifest__points li::before {
  content: '✦';
  position: absolute;
  left: 22px;
  top: 22px;
  color: var(--accent);
  font-size: 13px;
}

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.portfolio__filters { display: flex; gap: 6px; }
.filter {
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); border-color: var(--ink); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 32px;
}
.project { cursor: pointer; }
.project--wide { grid-column: span 2; }

.project__img {
  overflow: hidden;
  background: var(--line);
}
.project__img img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.project--wide .project__img img { aspect-ratio: 21 / 10; }
.project:hover .project__img img { transform: scale(1.045); }

.project__info {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 2px 0;
}
.project__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}
.project__meta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project__link {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr);
}
.project__link i { font-style: normal; display: inline-block; transition: transform var(--tr); }
.project:hover .project__link { border-color: var(--accent-ink); }
.project:hover .project__link i { transform: translateX(5px); }

/* скрытие карточек фильтром */
.project.is-hidden { display: none; }

/* ============================================================
   УСЛУГИ (тёмная секция)
   ============================================================ */
.section--dark { background: var(--bg-dark); color: var(--ink-light); }

.services__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.service { background: var(--bg-dark); padding: 38px 34px; min-height: 260px; display: flex; flex-direction: column; transition: background var(--tr); }
.service:hover { background: #1E1B15; }
.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-soft);
  margin-bottom: 22px;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 14px;
}
.service p { color: var(--muted-dark); font-size: 14.5px; line-height: 1.7; }

/* ============================================================
   ЭТАПЫ
   ============================================================ */
.process__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.process__note {
  margin-top: 56px;
  padding: 26px 32px;
  border: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--muted);
}

/* лента деталей проектов */
.strip-wrap { margin-top: 64px; }
.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.strip img {
  height: 250px;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
  scroll-snap-align: start;
}
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); }
.strip__caption {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   О ДИЗАЙНЕРЕ
   ============================================================ */
.about { background: var(--bg-soft); }
.about__inner {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__photo { position: relative; }
.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 3.8;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  right: -26px;
  bottom: 36px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
.about__badge b { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.about__badge span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }

.about__content > p { max-width: 560px; color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.about__facts { margin: 34px 0 38px; display: grid; gap: 0; }
.about__facts li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.about__facts li:last-child { border-bottom: 1px solid var(--line); }
.about__facts b { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--accent-ink); }
.about__facts span { color: var(--muted); align-self: center; }

/* ============================================================
   ЦЕНЫ
   ============================================================ */
.prices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
  margin-top: 56px;
}
.tariff {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
}
.tariff:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(30, 27, 22, 0.25); }
.tariff--hit { background: var(--bg-dark); color: var(--ink-light); border-color: var(--bg-dark); }
.tariff__badge {
  position: absolute;
  top: -13px;
  left: 34px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
}
.tariff__name { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-ink); }
.tariff--hit .tariff__name { color: var(--accent-soft); }
.tariff__price {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  margin: 14px 0 26px;
}
.tariff__price span { font-size: 20px; font-weight: 500; color: var(--muted); }
.tariff--hit .tariff__price span { color: var(--muted-dark); }
.tariff__list { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.tariff__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--muted);
}
.tariff--hit .tariff__list li { color: var(--muted-dark); }
.tariff__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11px;
  color: var(--accent);
}
.tariff__for {
  font-size: 13px;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}
.tariff--hit .tariff__for { color: var(--accent-soft); }

/* ============================================================
   КАЛЬКУЛЯТОР / КВИЗ
   ============================================================ */
.calc { background: var(--bg-dark); color: var(--ink-light); }
.calc__sub { max-width: 560px; color: var(--muted-dark); margin-bottom: 52px; }

.quiz {
  max-width: 780px;
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 4vw, 56px);
  background: #1B1813;
}
.quiz__progress { height: 2px; background: var(--line-dark); margin-bottom: 40px; }
.quiz__bar { height: 100%; width: 25%; background: var(--accent); transition: width 0.5s var(--tr); }

.quiz__step { display: none; animation: stepIn 0.5s var(--tr); }
.quiz__step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.quiz__q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 30px;
}
.quiz__options { display: grid; gap: 12px; }
.quiz__options--tariff { grid-template-columns: repeat(3, 1fr); }

.quiz__opt {
  border: 1px solid var(--line-dark);
  padding: 20px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--tr), background var(--tr);
}
.quiz__opt span { color: var(--muted-dark); font-weight: 500; font-size: 13px; }
.quiz__opt:hover { border-color: var(--accent); }
.quiz__opt.is-selected { border-color: var(--accent); background: rgba(154, 123, 79, 0.12); }
.quiz__options--tariff .quiz__opt b { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

.quiz__slider { margin: 12px 0 36px; }
.quiz__area {
  display: block;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.quiz__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 10px;
}

input[type='range'] {
  width: 100%;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--accent) var(--fill, 16%), var(--line-dark) var(--fill, 16%));
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 5px solid var(--accent);
  cursor: grab;
  transition: transform var(--tr);
}
input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 5px solid var(--accent);
  cursor: grab;
}
input[type='range']::-moz-range-track { height: 2px; background: var(--line-dark); }

.quiz__next { margin-top: 8px; }
.quiz__estimate {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--accent-soft);
}

.quiz__form { display: grid; gap: 14px; }
.quiz__form input[type='text'],
.quiz__form input[type='tel'],
.cta__form input[type='text'],
.cta__form input[type='tel'] {
  font-family: inherit;
  font-size: 16px;
  padding: 17px 20px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--ink-light);
  transition: border-color var(--tr);
  border-radius: 0;
}
.quiz__form input::placeholder,
.cta__form input::placeholder { color: var(--muted-dark); }
.quiz__form input:focus,
.cta__form input:focus { outline: none; border-color: var(--accent); }

.quiz__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted-dark);
  cursor: pointer;
}
.quiz__consent input { accent-color: var(--accent); width: 15px; height: 15px; }
.quiz__consent--light { color: rgba(246, 243, 237, 0.7); justify-content: center; }

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.quiz__count { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dark); }
.quiz__back { font-size: 13px; font-weight: 600; color: var(--muted-dark); transition: color var(--tr); }
.quiz__back:hover { color: var(--ink-light); }

.quiz__step--success { text-align: center; padding: 30px 0 10px; }
.quiz__step--success p { max-width: 460px; margin: 0 auto 14px; color: var(--muted-dark); }
.quiz__done {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 18px;
  animation: pop 0.6s var(--tr);
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quiz__summary { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.review {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review__stars { color: var(--accent); font-size: 13px; letter-spacing: 5px; }
.review blockquote {
  font-family: var(--font-display);
  font-size: 19.5px;
  line-height: 1.5;
  flex: 1;
}
.review figcaption b { display: block; font-size: 14px; }
.review figcaption span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  font-size: 18px;
  font-weight: 600;
  transition: color var(--tr);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-ink); }
.faq__item summary i {
  font-style: normal;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--tr);
  flex-shrink: 0;
}
.faq__item[open] summary i { transform: rotate(45deg); }
.faq__item p { padding: 0 4px 28px; max-width: 700px; color: var(--muted); font-size: 15.5px; }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; padding: clamp(90px, 12vw, 150px) 0; color: var(--ink-light); overflow: hidden; }
.cta__bg, .cta__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__bg img { object-fit: cover; }
.cta__scrim { position: absolute; inset: 0; background: rgba(18, 16, 13, 0.72); }
.cta__inner { position: relative; z-index: 2; text-align: center; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta h2 em { font-style: italic; color: var(--accent-soft); }
.cta p { max-width: 520px; margin: 0 auto 40px; color: rgba(246, 243, 237, 0.82); }

.cta__form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto;
}
.cta__form input { flex: 1 1 220px; max-width: 300px; border-color: rgba(246, 243, 237, 0.28); }
.cta__form input:focus { border-color: var(--accent-soft); }
.cta__form .quiz__consent--light { flex-basis: 100%; margin-top: 6px; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--bg-dark-2); color: var(--ink-light); padding: clamp(60px, 8vw, 96px) 0 36px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__logo { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.footer__tagline { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 22px; }
.footer__note { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--muted-dark); max-width: 280px; }
.footer__note--sm { font-family: var(--font-body); font-style: normal; font-size: 13px; margin-top: 18px; }

.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 20px;
}
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: rgba(246, 243, 237, 0.82); margin-bottom: 10px; }
.footer__col a:hover { color: var(--accent-soft); }
.footer__phone { font-size: 19px !important; font-weight: 700; }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
}
.footer__social a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--muted-dark);
}
.footer__bottom a:hover { color: var(--ink-light); }

/* ============================================================
   МОДАЛКА ПРОЕКТА
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity var(--tr), visibility var(--tr); }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14, 12, 9, 0.82); backdrop-filter: blur(6px); }
.modal__box {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  max-width: 1060px;
  width: 100%;
  max-height: 88vh;
  background: var(--bg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--tr);
}
.modal.is-open .modal__box { transform: none; }

.modal__stage { position: relative; background: var(--bg-dark); min-height: 320px; }
.modal__stage img { width: 100%; height: 100%; max-height: 88vh; object-fit: cover; }
.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.9);
  color: var(--ink);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr);
}
.modal__nav:hover { background: var(--accent); color: #fff; }
.modal__nav--prev { left: 16px; }
.modal__nav--next { right: 16px; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  background: rgba(23, 21, 17, 0.55);
  color: var(--ink-light);
  font-size: 16px;
  transition: background var(--tr);
}
.modal__close:hover { background: var(--accent); }

.modal__info { padding: 38px 36px; overflow-y: auto; }
.modal__info h3 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 34px; margin-bottom: 8px; }
.modal__meta { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.modal__desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.modal__thumbs { display: flex; gap: 8px; margin-bottom: 28px; }
.modal__thumbs img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity var(--tr);
}
.modal__thumbs img.is-active, .modal__thumbs img:hover { opacity: 1; }

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--tr), transform 0.9s var(--tr); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__scroll::after { animation: none; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .header__nav, .header__actions .btn { display: none; }
  .burger { display: flex; }
  .header__inner { gap: 16px; }
}

@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .prices__grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; }
  .manifest__points { grid-template-columns: repeat(2, 1fr); }
  .about__photo { max-width: 430px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .modal__box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__stage { min-height: 260px; max-height: 46vh; }
  .modal__stage img { max-height: 46vh; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .portfolio__grid { grid-template-columns: 1fr; gap: 36px; }
  .project--wide { grid-column: auto; }
  .project--wide .project__img img { aspect-ratio: 4 / 4.6; }
  .project__link { margin-left: 0; flex-basis: 100%; }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .quiz__options--tariff { grid-template-columns: 1fr; }
  .manifest__points { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .manifest__grid { grid-template-columns: 1fr; gap: 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__badge { right: 12px; width: 110px; height: 110px; }
  .header__phone { display: none; }
  .section-head { margin-bottom: 36px; }
  .portfolio__filters { width: 100%; }
}
