/* ============================================================
   DRAFTSMAN — Главная (option 1a «Галерея»)
   Токены из DESIGN.md (золотой вариант акцента #C9A227)
   ============================================================ */

:root {
  /* Цвета */
  --gold: #C9A227;
  --gold-ghost: #a8861d;
  --black: #000000;
  --surface: #1c1c1c;
  --carbon: #333333;
  --gunmetal: #4b4b4b;
  --aluminum: #afafaf;
  --white: #eeeeee;
  --hairline-dark: #1f1f1f;

  /* Типографика */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Радиусы */
  --radius-btn: 6px;
  --radius-card: 9px;
  --radius-img: 16px;

  /* Ритм */
  --section-gap: 120px;
  --gap: 16px;
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--black); }

img { display: block; max-width: 100%; }

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

h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 40px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.2;
  padding: 12px 24px;
  cursor: pointer;
  text-align: center;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  transition: opacity .15s ease-out, transform .15s ease-out;
}

.btn--gold:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--sm { padding: 8px 18px; }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gunmetal);
  transition: border-color .15s ease-out;
}

.btn--outline:hover { border-color: var(--aluminum); }

/* ---------- Заголовки секций ---------- */

.section-title {
  color: var(--white);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.13;
}

.section-title--dark { color: var(--black); }

/* ---------- Шапка ---------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--hairline-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
  gap: 24px;
}

.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 108px; width: auto; }

.site-nav { display: flex; gap: 8px; }

.site-nav__link {
  color: var(--aluminum);
  font-size: 16px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  transition: color .15s ease-out, background-color .15s ease-out;
}

.site-nav__link:hover { color: var(--white); }

.site-nav__link--active {
  background: var(--surface);
  color: var(--white);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang { display: flex; gap: 10px; }

.lang__item {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gunmetal);
  cursor: pointer;
  transition: color .15s ease-out;
}

.lang__item:hover { color: var(--aluminum); }
.lang__item--active { color: var(--gold); }

/* CTA в шапке — крупнее */
.site-header__actions .btn {
  font-size: 16px;
  padding: 13px 28px;
}

/* Бургер и мобильное меню */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform .2s ease-out;
}

.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 24px;
  background: var(--black);
  border-bottom: 1px solid var(--hairline-dark);
}

.mobile-menu__link {
  color: var(--aluminum);
  font-size: 16px;
  padding: 10px 0;
}

.mobile-menu.open { display: flex; }

/* ---------- Хиро ---------- */

.hero { padding-top: 100px; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }

.hero__eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  color: var(--white);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 820px;
}

.hero__text {
  color: var(--aluminum);
  font-size: 16px;
  line-height: 1.5;
  max-width: 480px;
  margin: 28px 0 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__media { position: relative; margin-top: 96px; }

.hero__img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.hero__card {
  position: absolute;
  right: 32px;
  bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--gunmetal);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 380px;
}

.hero__card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__card-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__card-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 300;
}

.hero__card-meta {
  color: var(--aluminum);
  font-size: 12px;
}

.hero__card-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}

/* ---------- Оживление: анимации hero ---------- */

/* статичное тёплое свечение за чертёжной сценой */
.hero__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, rgba(201, 162, 39, 0.07) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* золотое свечение, следующее за курсором (управляется js/hero.js) */
.hero__cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.20) 0%, rgba(201, 162, 39, 0.06) 45%, transparent 68%);
  opacity: 0;
  transition: opacity .5s ease-out;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.hero__cursor-glow.is-on { opacity: 1; }

/* «чертёжная бумага»: миллиметровая сетка фоном на весь хиро */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(201, 162, 39, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.10) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  pointer-events: none;
  z-index: 0;
}

/* сканирующий луч плоттера (один проход при загрузке) */
.hero__scan {
  position: absolute;
  top: 0;
  left: 0;
  height: 72%;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.85) 30%, rgba(201, 162, 39, 0.85) 70%, transparent);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.6);
  opacity: 0;
  pointer-events: none;
  will-change: left, opacity;
  z-index: 0;
}

/* CAD-перекрестие за курсором (управляется js/hero.js) */
.hero__crosshair {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease-out;
  pointer-events: none;
  z-index: 0;
}

.hero__crosshair.is-on { opacity: 1; }

.hero__ch-x {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(201, 162, 39, 0.30);
}

.hero__ch-y {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(201, 162, 39, 0.30);
}

.hero__ch-label {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
}

/* сцена кухни: компактный чертёж справа, всегда помещается над фото */
.hero__blueprint {
  position: absolute;
  top: 72px;
  right: 3%;
  width: min(37vw, 500px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

/* «карандаши» — светящиеся точки на линиях чертежа */
.tracer {
  fill: #C9A227;
  stroke: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.9));
}

.bp-scene {
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.45));
}

.bp-scene .lbl { fill: #C9A227; stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  /* 1) чертёжная бумага проявляется */
  .hero::before { opacity: 0; animation: fadeIn 1.2s ease-out 0.10s forwards; }

  /* сканирующий луч проходит один раз */
  .hero__scan { animation: scanSweep 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.25s 1 both; }

  /* «карандаши» бегут по столешнице и размерной линии синхронно с прорисовкой */
  .tracer { offset-rotate: 0deg; }
  .tr1 { offset-path: path('M20 300 H540'); animation: trace 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.45s both; }
  .tr2 { offset-path: path('M30 505 H530'); animation: trace 1.15s cubic-bezier(0.4, 0, 0.2, 1) 1.75s both; }

  /* 2) кухня прочерчивается линия за линией, как в CAD */
  .bp-scene .dr {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: bpDraw 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .bp-scene .d1 { animation-delay: 0.45s; }
  .bp-scene .d2 { animation-delay: 0.75s; }
  .bp-scene .d3 { animation-delay: 1.10s; }
  .bp-scene .d4 { animation-delay: 1.40s; }
  .bp-scene .d5 { animation-delay: 1.75s; }

  /* 3) подписи размеров и «высыхание туши» */
  .bp-scene .lbl { opacity: 0; animation: fadeIn 0.7s ease-out 2.25s forwards; }
  .bp-scene { animation: inkDry 1.6s ease-out 2.3s forwards; }

  /* контент: кинематографичный каскад */
  .hero__eyebrow {
    opacity: 0;
    letter-spacing: 0.42em;
    animation: trackIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  }

  .hero__title { opacity: 0; animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }

  /* заголовок, разбитый на слова (js/hero.js): каждое слово из размытия */
  .hero__title.is-split { opacity: 1; animation: none; }
  .hero__title.is-split .w {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(38px);
    animation: wordIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(0.35s + var(--wi) * 0.10s) forwards;
  }

  /* золотая линейка прочерчивается под заголовком */
  .hero__title::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    margin-top: 26px;
    background: var(--gold);
    animation: ruleDraw 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
  }

  .hero__text { opacity: 0; animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards; }
  .hero__actions { opacity: 0; animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards; }
  /* фото открывается «шторкой» слева направо с золотой кромкой */
  .hero__media {
    opacity: 0;
    animation: mediaReveal 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
  }
  .hero__media::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: -7px; /* кромка идёт по внутренней стороне «шторки», иначе её срежет clip-path */
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.9), transparent);
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.7);
    opacity: 0;
    animation: mediaSweep 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1.5s 1;
  }

  /* шапка плавно проявляется */
  .site-header { opacity: 0; animation: fadeIn 0.7s ease-out forwards; }

  /* медленный кинематографичный зум фото */
  .hero__img { animation: kenburns 24s ease-in-out 2s infinite alternate; }

  /* один блик по главной кнопке после входа — дальше только по hover */
  .hero .btn--gold::after { animation: btnShine 0.9s ease-out 2.1s 1; }
}

@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes trackIn { to { opacity: 1; letter-spacing: 0.18em; } }
@keyframes ruleDraw { to { width: 140px; } }
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes inkDry {
  0% { filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.45)); }
  35% { filter: drop-shadow(0 0 16px rgba(201, 162, 39, 0.9)); }
  100% { filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.45)); }
}
@keyframes scanSweep {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes trace {
  0% { offset-distance: 0%; opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes mediaReveal {
  0% { opacity: 0; clip-path: inset(0 100% 0 0 round 16px); }
  25% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 16px); }
}
@keyframes mediaSweep {
  0% { left: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* блик по золотым кнопкам */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn--gold:hover::after { animation: btnShine 0.7s ease-out; }
}

@keyframes btnShine { from { left: -80%; } to { left: 140%; } }

/* ---------- Категории ---------- */

.categories { padding-top: var(--section-gap); }

.categories .section-title { margin-bottom: 40px; }

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--carbon);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: border-color .2s ease-out, transform .2s ease-out;
}

.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.category-card__num { color: var(--gold); font-size: 12px; }

.category-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.category-card__name {
  color: var(--white);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.category-card__arrow { color: var(--gunmetal); font-size: 20px; }

/* ---------- Портфолио ---------- */

.portfolio {
  background: var(--white);
  padding: var(--section-gap) 0;
}

.portfolio__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 40px;
}

.link-more {
  color: var(--black);
  font-size: 14px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.project__title {
  color: var(--black);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.project__meta {
  color: var(--gunmetal);
  font-size: 12px;
  margin-top: -12px; /* заголовок и мета в макете разделены 4px */
}

/* ---------- Процесс ---------- */

.process {
  background: var(--black);
  padding: var(--section-gap) 0;
}

.process .section-title { margin-bottom: 56px; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--gunmetal);
  padding-top: 24px;
}

.step__num { color: var(--gold); font-size: 14px; }

.step__title {
  color: var(--white);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.step__text {
  color: var(--aluminum);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Видео-секция (производство) ---------- */

.video-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: 120px 0;
}

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

.video-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.video-band__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.video-band__line {
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.04em;
  max-width: 980px;
}

.video-band__line--gold { color: var(--gold); }

.video-band__sub {
  margin-top: 24px;
  color: var(--aluminum);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- Калькулятор стоимости ---------- */

.calc {
  background: var(--black);
  padding: var(--section-gap) 0;
}

.calc__lead {
  color: var(--aluminum);
  font-size: 16px;
  line-height: 1.5;
  max-width: 520px;
  margin: 16px 0 48px;
}

/* вкладки продуктов */
.calc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.calc__tab {
  background: transparent;
  border: 1px solid var(--carbon);
  border-radius: 999px;
  color: var(--aluminum);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color .18s ease-out, color .18s ease-out, background-color .18s ease-out;
}

.calc__tab:hover { border-color: var(--gunmetal); color: var(--white); }

.calc__tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* раскладка: форма + панель */
.calc__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc__form {
  display: flex;
  flex-direction: column;
}

/* раскрывающиеся секции (аккордеон) */
.calc__section { border-top: 1px solid var(--hairline-dark); }
.calc__section:last-child { border-bottom: 1px solid var(--hairline-dark); }

.calc__section-head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font);
  text-align: left;
}

.calc__section-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

.calc__section-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-right: 4px;
  border-right: 1.5px solid var(--aluminum);
  border-bottom: 1.5px solid var(--aluminum);
  transform: rotate(45deg);
  transition: transform .25s ease-out, border-color .15s ease-out;
}

.calc__section-head:hover .calc__section-chevron { border-color: var(--gold); }
.calc__section.is-open .calc__section-chevron { transform: rotate(-135deg); }

.calc__section-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease-out;
}

.calc__section.is-open .calc__section-body { grid-template-rows: 1fr; }

.calc__section-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc__section.is-open .calc__section-inner { padding-bottom: 28px; }

.calc__field {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc__label {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.calc__size-val {
  color: var(--gold);
  font-size: 16px;
}

.calc__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-opt {
  background: var(--surface);
  border: 1px solid var(--carbon);
  border-radius: var(--radius-btn);
  color: var(--aluminum);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color .18s ease-out, color .18s ease-out,
              background-color .18s ease-out, transform .18s ease-out;
}

.calc-opt:hover {
  border-color: var(--gunmetal);
  color: var(--white);
  transform: translateY(-1px);
}

.calc-opt.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.10);
}

/* визуальные карточки (планировка кухни) */
.calc__options--visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.calc-opt--visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px;
  text-align: center;
}

.calc-opt__icon { display: block; color: inherit; }
.calc-opt__icon svg { width: 46px; height: 32px; display: block; }
.calc-opt__lbl { font-size: 13px; line-height: 1.2; }

/* размеры по сторонам (план кухни) */
.calc__dims {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 24px;
  align-items: start;
}

.calc__dims-diagram {
  background: var(--black);
  border: 1px solid var(--carbon);
  border-radius: var(--radius-card);
  padding: 16px;
}

.calc__dims-diagram svg { width: 100%; height: auto; display: block; }

.calc__dims-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* слайдер размера */
.calc__slider {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold) var(--fill), var(--carbon) var(--fill));
  outline: none;
  cursor: pointer;
}

.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: pointer;
  transition: transform .15s ease-out;
}

.calc__slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.calc__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--gold);
  cursor: pointer;
}

.calc__slider-scale {
  display: flex;
  justify-content: space-between;
  color: var(--gunmetal);
  font-size: 12px;
}

/* панель результата (rail) */
.calc__rail { position: sticky; top: 24px; }

.calc__rail-inner {
  background: var(--surface);
  border: 1px solid var(--carbon);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc__result-label {
  color: var(--aluminum);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.calc__price-num {
  color: var(--gold);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.calc__price--brief .calc__price-num { font-size: clamp(20px, 2.6vw, 26px); }

.calc__price-cur {
  color: var(--gold);
  font-size: 20px;
  font-weight: 300;
}

.calc__breakdown {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--carbon);
  border-bottom: 1px solid var(--carbon);
}

.calc__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.calc__breakdown li span:first-child { color: var(--aluminum); }
.calc__breakdown li span:last-child {
  color: var(--white);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.calc__trust span {
  color: var(--gunmetal);
  font-size: 12px;
  position: relative;
  padding-left: 16px;
}

.calc__trust span::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.calc__cta { width: 100%; padding: 14px 16px; }

.calc__note {
  color: var(--gunmetal);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Форма заявки ---------- */

.contact {
  background: var(--black);
  padding: var(--section-gap) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__title {
  color: var(--white);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.13;
}

.contact__text {
  color: var(--aluminum);
  font-size: 16px;
  line-height: 1.5;
  max-width: 420px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--aluminum);
  font-size: 14px;
  font-style: normal;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-form__field {
  background: var(--surface);
  border: 1px solid var(--gunmetal);
  border-radius: var(--radius-btn);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
  transition: border-color .15s ease-out;
}

.lead-form__field::placeholder { color: var(--aluminum); }

.lead-form__field:focus { border-color: var(--gold); }

.lead-form__field--select {
  appearance: none;
  color: var(--aluminum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23afafaf'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.lead-form__field--select.has-value { color: var(--white); }

textarea.lead-form__field { resize: none; }

.lead-form__submit { padding: 14px 16px; }

.lead-form__submit:disabled {
  opacity: 1;
  transform: none;
  cursor: default;
}

.lead-form__note {
  color: var(--gunmetal);
  font-size: 12px;
}

.lead-form__field--error { border-color: #b4443a; }

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--black);
  border-top: 1px solid var(--hairline-dark);
}

.site-footer__inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__logo { height: 108px; width: auto; opacity: 0.85; }

.site-footer__nav {
  display: flex;
  gap: 24px;
  color: var(--aluminum);
  font-size: 14px;
}

.site-footer__nav a:hover { color: var(--white); }

.site-footer__copy {
  color: var(--gunmetal);
  font-size: 12px;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header__actions { display: none; }
  .burger { display: flex; }

  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { gap: 48px; }

  .hero__blueprint,
  .hero__glow,
  .hero__cursor-glow,
  .hero__scan,
  .hero__crosshair { display: none; }
}

@media (max-width: 860px) {
  :root { --section-gap: 80px; }

  .container { padding-inline: 20px; }

  .site-header__inner { height: 108px; }
  .site-header__logo img { height: 80px; }
  .site-footer__logo { height: 80px; }

  .hero { padding-top: 64px; }
  .hero__img { height: 420px; }
  .hero__media { margin-top: 48px; }
  .hero__card {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .portfolio__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .video-band { min-height: 380px; padding: 80px 0; }

  .project__img { height: 300px; }

  .calc__layout { grid-template-columns: 1fr; gap: 32px; }
  .calc__rail { position: static; }
}

@media (max-width: 560px) {
  .categories__grid,
  .process__grid { grid-template-columns: 1fr; }

  .hero__img { height: 300px; }
  .hero__actions .btn { flex: 1 1 auto; }

  .site-header__logo img { height: 64px; }
  .site-footer__logo { height: 64px; }

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