/* RELEASE — мебель на заказ. Тёмная премиальная вёрстка, без фреймворков. */

:root {
  --bg: #0e0d0c;
  --bg-soft: #161412;
  --card: #1c1a17;
  --border: #2c2823;
  --text: #f2ede6;
  --text-muted: #b8afa4;
  --accent: #c9a05a;
  --accent-hover: #e0b56a;
  --radius: 4px;
  --container-w: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

/* height:auto обязателен: атрибуты width/height в разметке браузер применяет
   как CSS-подсказку, и без этого картинка растягивается по высоте. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.28s var(--ease), border-color 0.28s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.28s var(--ease);
}

/* Заливка наезжает слева — общий признак всех кнопок сайта */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }

.btn > * { position: relative; }

/* Стрелка: едет вперёд вместе с заливкой */
.btn-arrow {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.42s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: #17140f;
}
.btn-primary::before { background: var(--accent-hover); }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -12px rgba(201, 160, 90, 0.55);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost::before { background: var(--accent); }
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--accent); color: #17140f; }

.btn:active { transform: translateY(0) scale(0.985); }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* Видимый фокус фирменным цветом вместо системной синей рамки */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(14, 13, 12, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
  margin-left: 40px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); }

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Первый экран: непрерывное движение по кадрам.
   Шва нет по устройству — кадры не склеены встык, а перетекают друг в друга,
   и каждый в это время продолжает своё медленное движение.
   Когда появится снятый обход реальной кухни, он подставляется в .hero-media
   тегом <video class="hero-video"> и всё остальное менять не надо. */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0a09;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1800ms var(--ease);
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  animation: heroDrift 13000ms linear forwards;
}
.hero-slide.is-active:nth-child(even) { animation-name: heroDriftAlt; }

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.6%, -1.2%, 0); }
}
@keyframes heroDriftAlt {
  from { transform: scale(1.15) translate3d(1.4%, 1%, 0); }
  to   { transform: scale(1.04) translate3d(0, 0, 0); }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,9,8,0.82) 0%, rgba(10,9,8,0.45) 55%, rgba(10,9,8,0.25) 100%),
    linear-gradient(180deg, rgba(10,9,8,0.5) 0%, rgba(10,9,8,0.62) 55%, rgba(10,9,8,0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  color: #fff;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Поверх фотографии обычная рамка не читается — на первом экране она светлее */
.hero .btn-ghost { border-color: rgba(242, 237, 230, 0.4); }
.hero .btn-ghost:hover { border-color: var(--accent); }

/* ---------- УТП ---------- */

.utp { background: var(--bg-soft); }

.utp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.utp-item {
  text-align: left;
}

.utp-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
}
.utp-icon svg { width: 30px; height: 30px; display: block; }
.utp-item:hover .utp-icon { color: var(--accent-hover); }

.utp-item h3 { font-size: 18px; margin-bottom: 8px; }
.utp-item p { font-size: 14.5px; margin: 0; }

/* ---------- Numbers ---------- */

.numbers { padding: 64px 0; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.number-value {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--accent);
  font-weight: 600;
}

.number-label {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- Unique ---------- */

.unique-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.unique-text h2 { font-size: clamp(26px, 4vw, 36px); }

.unique-image img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Process ---------- */

.process { background: var(--bg-soft); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.process-num {
  display: block;
  font-family: "Playfair Display", serif;
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 10px;
}

.process-step h3 { font-size: 18px; }
.process-step p { font-size: 14.5px; margin: 0; }

/* ---------- Portfolio carousel ---------- */

.carousel {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.carousel-slide:hover img { transform: scale(1.05); }

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel-arrow svg { width: 20px; height: 20px; }

/* ---------- About ---------- */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about-text h2 { font-size: clamp(26px, 4vw, 36px); }

/* ---------- Reviews ---------- */

.reviews { background: var(--bg-soft); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 8px;
}

.review-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}

.review-card p {
  color: var(--text);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.review-card footer {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.review-stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 14px;
}

.reviews-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.75;
  max-width: 560px;
  margin: 16px auto 32px;
}

.reviews-cta { text-align: center; }

/* ---------- Contacts ---------- */

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contacts-info h2 { font-size: clamp(26px, 4vw, 36px); }

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.contacts-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.contacts-list a:hover { color: var(--accent); }

.contacts-label {
  color: var(--text-muted);
  min-width: 90px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 3px;
}

.socials { display: flex; gap: 14px; flex-wrap: wrap; }

.socials a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }

.lead-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.lead-form label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 16px;
}
.lead-form label:first-child { margin-top: 0; }

.lead-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}
.form-consent input {
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.form-consent a { color: var(--text); }

.lead-form .btn { margin-top: 24px; }

.form-status {
  margin: 14px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.form-status.ok { color: #7fbf7f; }
.form-status.err { color: #e08080; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .utp-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .unique-inner,
  .about-inner,
  .contacts-inner { grid-template-columns: 1fr; }

  .unique-image { order: -1; }

  .carousel-slide { width: 280px; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 18px;
    margin: 0;
  }

  .section { padding: 56px 0; }

  .utp-grid,
  .process-grid { grid-template-columns: 1fr; }

  .reviews-grid { grid-template-columns: 1fr; }

  .hero { min-height: 92vh; }

  .lead-form { padding: 24px; }

  .carousel { padding: 0 16px; gap: 6px; }
  .carousel-slide { width: calc(100vw - 116px); }
  .carousel-slide img { height: 200px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow svg { width: 18px; height: 18px; }
}

/* ---------- Появление первого экрана ---------- */

.hero-content > * {
  opacity: 0;
  animation: heroIn 900ms var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 120ms; }
.hero-content > *:nth-child(2) { animation-delay: 240ms; }
.hero-content > *:nth-child(3) { animation-delay: 360ms; }
.hero-content > *:nth-child(4) { animation-delay: 480ms; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow { display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

/* Подсказка «страница продолжается» */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: heroIn 900ms var(--ease) 900ms forwards;
  transition: color 0.3s var(--ease);
}
.hero-scroll:hover { color: var(--accent); }

.hero-scroll-rail {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(201, 160, 90, 0.25);
  overflow: hidden;
}
.hero-scroll-rail::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 14px;
  background: var(--accent);
  animation: scrollRail 2200ms var(--ease) infinite;
}
@keyframes scrollRail {
  0%   { top: -14px; }
  100% { top: 44px; }
}

/* ---------- Появление блоков при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Шапка при прокрутке ---------- */

.site-header { transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.site-header.is-scrolled {
  background: rgba(14, 13, 12, 0.96);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.header-inner { transition: height 0.3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 64px; }

.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Портфолио: подпись на карточке ---------- */

.carousel-slide { position: relative; }

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #f2ede6;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.88) 70%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.carousel-slide:hover .carousel-caption,
.carousel-slide:focus-within .carousel-caption { opacity: 1; transform: none; }

/* ---------- Плавающая кнопка связи ---------- */

.dock {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  /* 🔴 visibility обязателен: pointer-events прячет кнопку от мыши,
     но НЕ убирает её из обхода табом — на невидимой кнопке можно было
     нажать Enter и инициировать звонок. */
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
              visibility 0s linear 0.35s;
}
.dock.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(22, 20, 18, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.95);
  transition: border-color 0.28s var(--ease), color 0.28s var(--ease), transform 0.2s var(--ease);
}
.dock-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.dock-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.dock-btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #17140f;
}
.dock-btn-accent:hover { background: var(--accent-hover); color: #17140f; }

/* ---------- Квиз ---------- */

.quiz { background: var(--bg-soft); }

.quiz-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 36px 32px;
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.quiz-step-num {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quiz-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}

.quiz-question {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin: 0 0 22px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quiz-option {
  display: block;
  text-align: left;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.18s var(--ease);
}
.quiz-option:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.quiz-option.is-picked {
  border-color: var(--accent);
  background: rgba(201, 160, 90, 0.1);
}

.quiz-fields { display: flex; flex-direction: column; }
.quiz-fields label {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 6px;
}
.quiz-fields label:first-child { margin-top: 0; }
.quiz-fields input[type="text"],
.quiz-fields input[type="tel"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
}
.quiz-fields input:focus { outline: none; border-color: var(--accent); }

.quiz-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.quiz-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.quiz-back:hover { color: var(--accent); }
.quiz-foot .btn { margin-left: auto; }

.quiz-recap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.quiz-recap b { color: var(--text); font-weight: 600; }

.quiz-done { text-align: center; padding: 20px 0 8px; }
.quiz-done .quiz-tick {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-done .quiz-tick svg { width: 24px; height: 24px; }

/* ---------- Счётчики ---------- */

.number-value { font-variant-numeric: tabular-nums; }

/* ---------- Уважение к системной настройке «меньше движения» ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > *,
  .hero-scroll { opacity: 1; animation: none; }
  .hero-slide.is-active,
  .hero-slide.is-active:nth-child(even) { animation: none; transform: scale(1.04); }
  .hero-scroll-rail::after { animation: none; top: 15px; }
  .btn::before { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Адаптив для нового ---------- */

@media (max-width: 960px) {
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-card { padding: 28px 24px 24px; }
}

@media (max-width: 720px) {
  .dock { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .dock-btn { padding: 11px 15px; font-size: 13px; }
  .hero-scroll { display: none; }
  /* На узких экранах движение кадров отключено: на телефоне это лишний
     расход батареи, а разница на глаз почти не видна.
     🔴 Второй селектор обязателен: без него правило легче, чем
     `.hero-slide.is-active:nth-child(even)` выше, и чётные кадры
     продолжали двигаться. */
  .hero-slide.is-active,
  .hero-slide.is-active:nth-child(even) { animation: none; transform: scale(1.04); }
}

/* Сводка ответов над полями контактов */
.quiz-recap-top {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-top: none;
  border-left: 2px solid var(--accent);
  background: rgba(201, 160, 90, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Свой флажок согласия — системный белый квадрат выбивается из тёмной темы */
.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-consent input[type="checkbox"]:hover { border-color: var(--accent); }
.form-consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #17140f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Под заголовком отзывов больше нет подписи — отступ держит сам заголовок */
.reviews-title { margin-bottom: 44px; }

/* Поле-ловушка для роботов: убрано с глаз, но остаётся в форме */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Заглушка под карточку отзыва — держит высоту, пока отзывы едут с сервера */
.review-card-stub {
  min-height: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 720px) {
  .review-card-stub { min-height: 330px; }
}

/* ---------- Просмотр фотографии во весь экран ---------- */

.carousel-slide img { cursor: zoom-in; }

.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px
           calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 7, 6, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.viewer.is-open { opacity: 1; }

.viewer img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.viewer-caption {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  max-width: 640px;
}

.viewer-close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  background: rgba(28, 26, 23, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.viewer-close:hover { border-color: var(--accent); color: var(--accent); }
