/* =====================================================================
   RAMA v2 — темний «хромовий» лендинг
   ===================================================================== */

/* ================== ТЕМИ ================== */
:root,
[data-theme="dark"] {
  --bg: #0A0A0B;
  --bg-2: #131315;
  --bg-3: #1B1B1E;
  --card: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #EEEBE5;
  --muted: #8E8B86;
  --accent: #D8C29E;
  --chrome: linear-gradient(110deg, #77777b 0%, #f4f4f5 22%, #8b8b90 42%, #e9e9eb 62%, #6d6d72 82%, #d6d6d9 100%);
  --chrome-text: linear-gradient(100deg, #9a9aa0 0%, #ffffff 30%, #a7a7ad 55%, #f2f2f4 80%, #8a8a90 100%);
  --stage: radial-gradient(ellipse 70% 60% at 50% 32%, #2A2A2F 0%, #141416 60%, #0C0C0D 100%);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #EFECE6;
  --bg-2: #E6E2DA;
  --bg-3: #DCD7CD;
  --card: rgba(0, 0, 0, .03);
  --line: rgba(0, 0, 0, .1);
  --line-2: rgba(0, 0, 0, .2);
  --text: #121213;
  --muted: #6D6A64;
  --accent: #8F6E3E;
  --chrome: linear-gradient(110deg, #3c3c40 0%, #9c9ca2 22%, #2f2f33 42%, #8a8a90 62%, #26262a 82%, #6f6f75 100%);
  --chrome-text: linear-gradient(100deg, #2a2a2e 0%, #77777e 30%, #1d1d21 55%, #6c6c73 80%, #222226 100%);
  --stage: radial-gradient(ellipse 70% 60% at 50% 30%, #FFFFFF 0%, #EAE6DF 60%, #DDD8CF 100%);
  --shadow: 0 40px 80px -40px rgba(60, 50, 30, .35);
  color-scheme: light;
}

:root {
  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
  --pad: clamp(16px, 4vw, 48px);
}

/* ================== БАЗА ================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; transition: background-color .4s, color .4s;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(96px, 13vw, 190px) 0; position: relative; }

h2 {
  font: 500 clamp(34px, 5.6vw, 88px)/1.02 var(--display);
  letter-spacing: -.035em;
}
h2 em, .cta__title em {
  font: italic 500 1.14em/0.9 var(--serif); letter-spacing: -.01em;
  background: var(--chrome-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 em .w > i, .cta__title em .w > i {
  background: var(--chrome-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
h3 { font: 500 clamp(18px, 1.6vw, 22px)/1.25 var(--display); letter-spacing: -.02em; }

.tag {
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.head { margin-bottom: clamp(48px, 6vw, 88px); max-width: 980px; }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; }
.head__aside { max-width: 340px; color: var(--muted); }
@media (max-width: 800px) { .head--row { flex-direction: column; align-items: flex-start; } }

/* ================== РОЗБИТТЯ ТЕКСТУ ================== */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease) calc(var(--d, 0) * 45ms); }
.is-in .w > i, .w.is-in > i { transform: none; }

/* ================== КНОПКИ ================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .4s var(--ease), background-position .8s var(--ease), box-shadow .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--chrome {
  background: var(--chrome); background-size: 220% 100%; background-position: 0 0; color: #0b0b0c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 30px -10px rgba(255,255,255,.25);
}
[data-theme="light"] .btn--chrome { color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px -12px rgba(0,0,0,.4); }
.btn--chrome:hover { background-position: 100% 0; }
.btn--line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); padding: 14px 22px; font-size: 14px; }
.btn--line:hover { background: var(--text); color: var(--bg); }
.btn--sm { padding: 14px 22px; font-size: 14px; }
.btn--block { width: 100%; }

.pill {
  padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--text); color: var(--bg); transition: transform .4s var(--ease), opacity .3s;
}
.pill:hover { opacity: .85; }

/* ================== ЗЕРНО, ПРОГРЕС, КУРСОР ================== */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
[data-theme="light"] .grain { opacity: .09; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none;
  background: var(--chrome); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .progress { animation: prog linear both; animation-timeline: scroll(root); }
  @keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ================== НАВІГАЦІЯ ================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad); transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: .2em; }
.logo svg { width: 18px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav__links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--card); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden;
}
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; position: absolute; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .theme__sun { transform: translateY(140%) rotate(90deg); opacity: 0; }
[data-theme="light"] .theme__moon { transform: translateY(-140%) rotate(-90deg); opacity: 0; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .pill { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    padding: 80px var(--pad); border-radius: 0; border: 0; background: var(--bg);
    clip-path: circle(0 at calc(100% - 40px) 37px); transition: clip-path .8s var(--ease-io);
  }
  .nav__links.is-open { clip-path: circle(150% at calc(100% - 40px) 37px); }
  .nav__links a { font: 500 clamp(32px, 9vw, 48px)/1.2 var(--display); color: var(--text); padding: 8px 0; letter-spacing: -.03em; }
  .nav__links a:hover { background: none; }
}

/* ================== HERO ================== */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__aurora {
  position: absolute; inset: -20%; pointer-events: none; opacity: .55; filter: blur(80px);
  background:
    radial-gradient(30% 35% at 70% 45%, rgba(216, 194, 158, .22), transparent 70%),
    radial-gradient(28% 30% at 85% 70%, rgba(150, 170, 220, .18), transparent 70%),
    radial-gradient(25% 25% at 30% 20%, rgba(220, 160, 190, .10), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
[data-theme="light"] .hero__aurora { opacity: .9; }
@keyframes aurora { to { transform: translate(-4%, 3%) rotate(8deg) scale(1.08); } }

/* дзеркало: форму арки задає скрипт за розміром .hero__slot */
.hero__mirror {
  position: absolute; inset: 0; z-index: 1;
  clip-path: inset(50% 50% 50% 50%);
  background: var(--chrome); background-size: 200% 100%;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.is-ready .hero__mirror { opacity: 1; }
.hero__mirror canvas { width: 100%; height: 100%; }
.hero__mirror::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 45%, transparent 55%);
}
.hero__inside {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 20px;
  opacity: 0; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.45); padding: 0 var(--pad);
  background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(5,5,6,.78), rgba(5,5,6,.35) 60%, transparent 85%);
}
.hero__inside-kicker { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.hero__inside-text { font: 500 clamp(30px, 5vw, 76px)/1.05 var(--display); letter-spacing: -.035em; }
.hero__inside-text em { font: italic 500 1.12em var(--serif); }

/* сітка: текст ліворуч, арка праворуч */
.hero__grid {
  position: relative; z-index: 2; height: 100%; max-width: 1440px; margin: 0 auto;
  padding: 96px var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 72px); align-items: center;
}
.hero__copy { max-width: 760px; }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: #6FD07E; box-shadow: 0 0 10px #6FD07E; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero__title {
  margin: 0; color: var(--text);
  font: 600 clamp(36px, 4.5vw, 82px)/1 var(--display); letter-spacing: -.05em;
}
.hero__line { display: block; }
.hero__title em {
  display: inline-block; margin-top: .06em;
  font: italic 500 1.14em/1 var(--serif); letter-spacing: -.02em;
}
.hero__title em .w > i {
  background: var(--chrome-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
  animation: chromeMove 8s linear infinite;
}
.hero__lead { margin-top: 28px; max-width: 470px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 38px; }
.hero__link { font-size: 15px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.hero__link:hover { border-color: var(--text); }
.hero__facts {
  list-style: none; margin: 52px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line);
  display: flex; gap: clamp(20px, 3vw, 52px); max-width: 620px;
}
.hero__facts b { display: block; white-space: nowrap; margin-bottom: 8px; font: 600 clamp(20px, 1.8vw, 28px)/1 var(--display); letter-spacing: -.04em; }
.hero__facts li > span { display: block; max-width: 150px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* поява першого екрана після прелоадера */
.hero__copy > :not(.hero__title) { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .hero__copy > :not(.hero__title) { opacity: 1; transform: none; }
.hero__copy > .hero__kicker { transition-delay: .05s; }
.hero__copy > .hero__lead { transition-delay: .45s; }
.hero__copy > .hero__actions { transition-delay: .6s; }
.hero__copy > .hero__facts { transition-delay: .75s; }

/* місце арки + рамка + підписи */
.hero__slot { position: relative; justify-self: center; width: min(100%, 27vw, 410px); height: min(72vh, 680px); pointer-events: none; }
.hero__frame {
  position: absolute; inset: -14px; border: 1px solid var(--line-2);
  border-radius: 999px 999px 30px 30px / 999px 999px 30px 30px;
  opacity: 0; transform: scale(1.04); transition: opacity 1.4s var(--ease) .4s, transform 1.4s var(--ease) .4s;
}
.is-ready .hero__frame { opacity: 1; transform: none; }
.hero__note {
  position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text);
  background: color-mix(in srgb, var(--bg) 62%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  opacity: 0; transition: opacity 1s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.is-ready .hero__note { opacity: 1; }
.is-ready .hero__note--1 { transition-delay: .9s; }
.is-ready .hero__note--2 { transition-delay: 1.1s; }
.hero__note i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero__note--1 { top: 16%; left: -22%; }
.hero__note--2 { bottom: 14%; right: -18%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.on-touch { display: none; }
@media (hover: none) { .on-mouse { display: none; } .on-touch { display: inline; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 22px; padding: 84px var(--pad) 28px; }
  .hero__kicker { margin-bottom: 18px; font-size: 11px; }
  .hero__title { font-size: 8.8vw; }
  .hero__lead { margin-top: 14px; font-size: 14px; }
  .hero__actions { margin-top: 20px; gap: 18px; }
  .hero__facts { display: none; }
  .hero__slot { width: 50vw; height: 100%; min-height: 200px; max-height: 46vh; align-self: stretch; }
  .hero__frame { inset: -10px; }
  .hero__note { font-size: 11px; padding: 8px 12px; }
  .hero__note--1 { left: -38%; top: 12%; }
  .hero__note--2 { right: -36%; bottom: 10%; }
}

/* ================== БЕНТО ================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 4; padding: 28px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform .6s var(--ease), border-color .4s;
}
.tile p { color: var(--muted); font-size: 15px; max-width: 420px; }
.tile--size { grid-column: span 7; grid-row: span 2; }
.tile--decor { grid-column: span 5; }
.tile--days { grid-column: span 5; }
/* світло за курсором + підсвічена рамка */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--text) 9%, transparent), transparent 60%);
}
.tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--text) 55%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile__viz { flex: 1; position: relative; min-height: 120px; display: grid; place-items: center; margin-bottom: 12px; }

/* розмір */
.size-viz { min-height: 340px; }
.size-viz__mirror {
  width: var(--sw, 120px); height: var(--sh, 300px); border: 8px solid var(--text); border-radius: 4px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--text) 8%, transparent), color-mix(in srgb, var(--text) 22%, transparent) 50%, color-mix(in srgb, var(--text) 6%, transparent));
  transition: width 1.2s var(--ease-io), height 1.2s var(--ease-io), border-radius 1.2s var(--ease-io);
  position: relative;
}
.size-viz__dim { position: absolute; font: 500 13px/1 var(--display); color: var(--accent); letter-spacing: .02em; transition: all 1.2s var(--ease-io); }
.size-viz__dim--w { top: calc(50% - var(--sh, 300px) / 2 - 34px); left: 50%; transform: translateX(-50%); }
.size-viz__dim--h { left: calc(50% + var(--sw, 120px) / 2 + 18px); top: 50%; transform: translateY(-50%); }
.size-viz__dim::before { content: ""; position: absolute; background: var(--accent); opacity: .5; }
.size-viz__dim--w::before { height: 1px; width: var(--sw, 120px); left: 50%; top: 22px; transform: translateX(-50%); transition: width 1.2s var(--ease-io); }
.size-viz__dim--h::before { width: 1px; height: var(--sh, 300px); left: -10px; top: 50%; transform: translateY(-50%); transition: height 1.2s var(--ease-io); }

/* орбіта декорів */
.orbit { --r: 74px; min-height: 210px; }
.orbit span {
  position: absolute; width: 38px; height: 38px; border-radius: 50%; background: var(--c);
  border: 2px solid var(--bg-2); box-shadow: 0 6px 20px -6px rgba(0,0,0,.5);
  transform: rotate(calc(var(--i) * 360deg / 7)) translateX(var(--r)) rotate(calc(var(--i) * -360deg / 7));
}
.orbit { animation: spin 24s linear infinite; }
.orbit b { font: 700 64px/1 var(--display); letter-spacing: -.05em; animation: spin 24s linear infinite reverse; }
.tile:hover .orbit { animation-duration: 6s; }
.tile:hover .orbit b { animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* дні */
.big-num {
  font: 700 clamp(72px, 9vw, 150px)/.9 var(--display); letter-spacing: -.07em; flex: 1; display: flex; align-items: center;
  background: var(--chrome-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chromeMove 6s linear infinite;
}

/* плівка */
.crack svg { width: 80%; max-width: 260px; fill: none; stroke: var(--text); stroke-width: 1; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.2s var(--ease); opacity: .7; }
.crack svg circle { stroke-dasharray: none; fill: var(--text); opacity: 0; transition: opacity .3s; }
.tile--film:hover .crack svg { stroke-dashoffset: 0; }
.tile--film:hover .crack svg circle { opacity: 1; }
.crack::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(120deg, color-mix(in srgb, var(--text) 4%, transparent), color-mix(in srgb, var(--text) 12%, transparent) 50%, color-mix(in srgb, var(--text) 3%, transparent)); }

/* кельвіни */
.kelvin { gap: 16px; }
.kelvin__bulb { width: 54px; height: 54px; border-radius: 50%; animation: kelvin 6s ease-in-out infinite; }
.kelvin__bar { width: 80%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #FFC879, #FFE6BF, #DDE9FF); position: relative; }
.kelvin__bar i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--bg-2); animation: kelvinDot 6s ease-in-out infinite; }
.kelvin__labels { width: 80%; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
@keyframes kelvin {
  0%, 100% { background: #FFC879; box-shadow: 0 0 40px 10px rgba(255, 200, 121, .55); }
  50% { background: #FFF1DA; box-shadow: 0 0 40px 10px rgba(255, 241, 218, .5); }
  75% { background: #DDE9FF; box-shadow: 0 0 40px 10px rgba(221, 233, 255, .5); }
}
@keyframes kelvinDot { 0%, 100% { left: 0%; } 50% { left: 50%; } 75% { left: 100%; } }

/* щит */
.shield svg { width: 64px; height: 64px; fill: none; stroke: var(--text); stroke-width: 1.2; position: relative; z-index: 1; }
.shield::before, .shield::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 1px solid var(--line-2); animation: pulse 3s var(--ease) infinite; }
.shield::after { animation-delay: 1.5s; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(2); opacity: 0; } }

@media (max-width: 1000px) {
  .tile, .tile--size, .tile--decor, .tile--days { grid-column: span 6; grid-row: auto; }
  .tile--size { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--size, .tile--decor, .tile--days { grid-column: auto; }
  .size-viz { min-height: 280px; }
}

/* ================== МОДЕЛІ ================== */
.section--tight { padding: clamp(72px, 9vw, 130px) 0; }
.models__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mcard {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  border-radius: 28px; background: var(--card); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s;
}
.mcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.mcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mcard__visual { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--stage); }
.mcard__info { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.mcard__info h3 { font: 500 clamp(24px, 2.2vw, 32px)/1 var(--display); letter-spacing: -.04em; }
.mcard__info p { color: var(--muted); font-size: 15px; }
.mcard__foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted);
}
.mcard__foot strong { margin-left: 4px; color: var(--text); font: 600 22px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.mcard__go { color: var(--text); font-weight: 500; white-space: nowrap; transition: transform .4s var(--ease); }
.mcard:hover .mcard__go { transform: translateX(4px); }

/* CSS-дзеркала */
.m { position: relative; box-shadow: 0 30px 50px -26px rgba(0,0,0,.55); transition: transform 1s var(--ease); }
.mcard:hover .m { transform: translateY(-6px) scale(1.03); }
.m__glass {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(118deg, #b9c2c8 0%, #f3f5f6 30%, #c5cdd2 46%, #eef1f2 60%, #a3adb3 100%);
  background-size: 260% 100%; background-position: 20% 0; transition: background-position 1.4s var(--ease);
}
.mcard:hover .m__glass { background-position: 85% 0; }
.m--floor { width: clamp(76px, 7.5vw, 104px); aspect-ratio: 1 / 2.9; border: 9px solid #1c1c1e; border-radius: 3px; }
.m--wall { width: clamp(110px, 11vw, 150px); aspect-ratio: 3 / 4.3; border: 11px solid #C49A6C; border-radius: 999px 999px 6px 6px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 7px); }
.m--led { width: clamp(150px, 14vw, 190px); aspect-ratio: 4 / 3.3; border: 22px solid #E9E5DD; border-radius: 6px; }
.m__bulbs { position: absolute; inset: -22px; pointer-events: none; }
.m__bulbs i { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #F3EEE4; box-shadow: 0 0 0 1px #DCCFB6; transition: background .3s, box-shadow .3s; }
.mcard:hover .m__bulbs i { background: #FFF8E8; box-shadow: 0 0 0 1px #F0D29A, 0 0 16px 5px rgba(255, 205, 120, .6); }
.m--led::after { content: ""; position: absolute; inset: -70px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 210, 130, .35), transparent); opacity: 0; transition: opacity .6s; }
.mcard:hover .m--led::after { opacity: 1; }

@media (max-width: 900px) {
  .models__grid { grid-template-columns: 1fr; gap: 12px; }
  .mcard { flex-direction: row; border-radius: 22px; }
  .mcard__visual { width: 38%; aspect-ratio: auto; min-height: 168px; flex-shrink: 0; }
  .mcard__info { padding: 18px; gap: 6px; }
  .mcard__info p { font-size: 13px; line-height: 1.45; }
  .mcard__foot { padding-top: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .mcard__foot strong { font-size: 19px; }
  .m--floor { width: 44px; border-width: 6px; }
  .m--wall { width: 70px; border-width: 7px; }
  .m--led { width: 92px; border-width: 14px; }
  .m__bulbs { inset: -14px; }
  .m__bulbs i { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
}

/* ================== ПЛАВАЮЧА КНОПКА ЗВ'ЯЗКУ ================== */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: transform .45s var(--ease), opacity .3s; }
.fab.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
.fab__btn {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: var(--bg); font: 500 15px var(--sans); box-shadow: 0 16px 40px -14px rgba(0,0,0,.55);
  transition: transform .3s var(--ease);
}
.fab__btn:hover { transform: translateY(-2px); }
.fab__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fab__menu {
  display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 22px; min-width: 190px;
  background: color-mix(in srgb, var(--bg-3) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fabIn .35s var(--ease);
}
.fab__menu[hidden] { display: none; }
.fab__menu a { padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.fab__menu a:hover { background: var(--card); }
@keyframes fabIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* дрібниці калькулятора */
.cfg__note { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.grp__hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ================== КОНФІГУРАТОР ================== */
.cfg { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cfg__stage { position: sticky; top: 92px; display: grid; gap: 14px; }
.stage {
  position: relative; border-radius: 32px; overflow: hidden; background: var(--stage); border: 1px solid var(--line);
  aspect-ratio: 400 / 440; transform-style: preserve-3d; transition: transform .6s var(--ease); box-shadow: var(--shadow);
}
.stage svg { width: 100%; height: 100%; }
.stage__dims { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: 999px; font: 500 12px/1 var(--display); letter-spacing: .04em;
  background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.cfg__price { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.cfg__price-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.cfg__share { display: flex; flex-wrap: wrap; gap: 8px; }
.cfg__share button { flex: 1 1 auto; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; transition: background .25s, color .25s; }
.cfg__share button:hover { background: var(--text); color: var(--bg); }
.cfg__toast { min-height: 20px; font-size: 13px; color: var(--accent); text-align: center; opacity: 0; transition: opacity .3s; }
.cfg__toast.is-on { opacity: 1; }

/* одометр */
.odo { display: flex; align-items: baseline; font: 600 clamp(34px, 4vw, 50px)/1 var(--display); letter-spacing: -.04em; margin-top: 6px; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__col { display: flex; flex-direction: column; transition: transform 1s var(--ease); }
.odo__col span { height: 1em; line-height: 1; }
.odo__sep { width: .28em; }
.odo__cur { font-size: .5em; margin-left: .25em; color: var(--muted); letter-spacing: 0; }

/* форма конфігуратора */
.cfg__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grp { grid-column: span 2; margin: 0; min-width: 0; padding: 20px 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.grp--half { grid-column: span 1; }
.grp[hidden] { display: none; }
.grp legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.grp legend small { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13px; margin-left: 6px; }
.grp legend + * { clear: both; }
@media (max-width: 520px) { .grp--half { grid-column: span 2; } }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg + .seg { margin-top: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; transition: background .3s, color .3s, border-color .3s;
}
.seg label:hover span { border-color: var(--line-2); }
.seg input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg--type { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg--type span { flex-direction: column; justify-content: center; padding: 16px 8px; border-radius: 18px; width: 100%; text-align: center; font-size: 13px; }
.ico { display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.ico--floor { width: 12px; height: 30px; }
.ico--wall { width: 22px; height: 26px; border-radius: 11px 11px 2px 2px; }
.ico--led { width: 26px; height: 22px; box-shadow: 0 0 0 3px transparent; outline: 1.5px dotted currentColor; outline-offset: 3px; }
.seg--glass i { width: 12px; height: 12px; border-radius: 50%; background: var(--g); }
.seg--temp span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 10px var(--k); }
.seg--sm span { padding: 9px 14px; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font-size: 12px; color: var(--muted); cursor: pointer; transition: all .25s; }
.chip:hover { color: var(--text); }
.chip.is-active { border-style: solid; border-color: var(--accent); color: var(--accent); }

.slider { display: grid; grid-template-columns: 64px 1fr 76px; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.slider + .slider { margin-top: 10px; }
.slider output input {
  width: 100%; padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 500 15px var(--display); text-align: center; -moz-appearance: textfield;
}
.slider output input::-webkit-inner-spin-button, .slider output input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--text) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--chrome); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.4); transition: transform .2s; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--chrome); border: 0; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 0; background: var(--c); background-image: var(--grain, none);
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); transition: transform .3s var(--ease), box-shadow .3s;
}
.swatches button:hover { transform: scale(1.1); }
.swatches button.is-active { box-shadow: inset 0 0 0 1px rgba(127,127,127,.35), 0 0 0 3px var(--bg), 0 0 0 4.5px var(--text); }

.tgl { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.seg + .tgl, .tgl + .tgl { margin-top: 6px; }
.seg--temp + .tgl { margin-top: 12px; }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.tgl span { width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; flex-shrink: 0; transition: background .3s; }
.tgl span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease), background .3s; }
.tgl input:checked + span { background: var(--accent); }
.tgl input:checked + span::after { transform: translateX(16px); background: #fff; }
.tgl input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 960px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg__stage { position: relative; top: 0; }
  .stage { max-height: 62vh; aspect-ratio: auto; height: 62vh; }
}

/* мобільна панель ціни */
.cfg-bar { display: none; }
@media (max-width: 960px) {
  .cfg-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg-3) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .cfg-bar.is-on { transform: none; }
  .cfg-bar strong { font: 600 20px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
  .cfg-bar span { font-size: 13px; color: var(--muted); }
}

/* ================== ДЕКОРИ (акордеон) ================== */
.accordion { display: flex; gap: 10px; height: clamp(380px, 48vw, 560px); }
.acc {
  flex: 1; position: relative; overflow: hidden; border-radius: 26px; cursor: pointer; border: 0; padding: 0; text-align: left;
  background: var(--c); background-image: var(--grain, none);
  transition: flex 1s var(--ease), box-shadow .4s;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.25);
}
.acc.is-open { flex: 4.2; }
.acc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); opacity: .9; }
.acc__v { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; z-index: 1;
  font: 500 14px/1 var(--display); letter-spacing: .04em; color: #fff; white-space: nowrap; transition: opacity .4s; }
.acc__body { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; color: #fff; opacity: 0; transform: translateY(16px); transition: opacity .5s .15s, transform .7s var(--ease) .15s; }
.acc__body h3 { font: 500 clamp(24px, 2.6vw, 38px)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 6px; }
.acc__body p { font-size: 14px; opacity: .75; margin-bottom: 16px; }
.acc__body .btn { background: #fff; color: #111; }
.acc.is-open .acc__v { opacity: 0; }
.acc.is-open .acc__body { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .accordion { flex-direction: column; height: auto; }
  .acc { flex: none; height: 64px; transition: height .8s var(--ease); }
  .acc.is-open { height: 230px; }
  .acc__v { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: 22px; }
}

/* ================== ПРОЦЕС (стос карток) ================== */
.stack { display: grid; gap: 18px; }
.card {
  position: sticky; top: calc(110px + var(--i) * 26px);
  display: grid; grid-template-columns: minmax(90px, 220px) 1fr auto; gap: clamp(20px, 4vw, 64px); align-items: center;
  min-height: clamp(220px, 26vw, 300px); padding: clamp(28px, 4vw, 56px); border-radius: 36px;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 -30px 60px -40px rgba(0,0,0,.6);
  transform-origin: 50% 0;
}
.card:nth-child(even) { background: var(--text); color: var(--bg); border-color: transparent; }
.card:nth-child(even) p { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.card__n { font: 600 clamp(64px, 9vw, 140px)/.8 var(--display); letter-spacing: -.07em; }
.card h3 { font: 500 clamp(26px, 3vw, 44px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 12px; }
.card p { color: var(--muted); max-width: 520px; }
.card__meta { align-self: start; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; opacity: .7; white-space: nowrap; }
@media (max-width: 700px) {
  .card { grid-template-columns: 1fr; gap: 14px; top: calc(80px + var(--i) * 16px); }
  .card__meta { position: absolute; top: 28px; right: 28px; }
}

/* ================== FAQ ================== */
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; position: relative; padding: 26px 56px 26px 0;
  font: 400 clamp(17px, 1.6vw, 21px)/1.35 var(--display); letter-spacing: -.02em; transition: color .3s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease);
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0); }
.faq__list details p { color: var(--muted); padding: 0 56px 26px 0; max-width: 640px; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__list details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq__list details[open]::details-content { height: auto; }
}
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; gap: 0; } }

/* ================== ЗАЯВКА ================== */
.cta { overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); filter: blur(40px); pointer-events: none; }
.cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.cta__title { font: 500 clamp(40px, 6.4vw, 104px)/1 var(--display); letter-spacing: -.045em; }
.cta__lead { color: var(--muted); max-width: 440px; margin-top: 28px; }
.cta__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.cta__links a { padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; transition: background .3s, color .3s; }
.cta__links a:hover { background: var(--text); color: var(--bg); }

.glass-form {
  display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: 32px;
  background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: var(--shadow);
}
.glass-form__calc { font-size: 13px; color: var(--muted); padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-2); }
.glass-form__calc[hidden] { display: none; }
.glass-form__calc b { display: block; color: var(--text); font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.fld { position: relative; display: block; }
.fld input, .fld textarea {
  width: 100%; padding: 22px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  color: var(--text); font: 400 17px var(--sans); resize: vertical; outline: none; transition: border-color .3s;
}
.fld input:focus, .fld textarea:focus { border-color: var(--text); }
.fld span { position: absolute; left: 0; top: 22px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), font-size .4s var(--ease), color .3s; transform-origin: 0 0; }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.78); color: var(--text); }
.fld__err { display: none; font-style: normal; font-size: 13px; color: #E0745F; margin-top: 6px; }
.fld.is-invalid input { border-color: #E0745F; }
.fld.is-invalid .fld__err { display: block; }
.glass-form__ok { padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, #7FBF7A 18%, transparent); font-size: 15px; }
.glass-form__ok[hidden] { display: none; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }

/* ================== ПІДВАЛ ================== */
.footer { padding: 80px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; color: var(--muted); font-size: 14px; }
.footer__top nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__top a:hover { color: var(--text); }
.footer__word {
  font: 700 26vw/.78 var(--display); letter-spacing: -.07em; text-align: center; margin: 40px 0 10px;
  background: var(--chrome-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chromeMove 10s linear infinite; user-select: none;
}
.footer__copy { color: var(--muted); font-size: 13px; }

/* ================== ПЕРЕХІД ТЕМИ ================== */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeReveal .9s var(--ease-io); }
@keyframes themeReveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to { clip-path: circle(var(--vt-r, 150%) at var(--vt-x, 50%) var(--vt-y, 0)); }
}

/* ================== ПОЯВА ПРИ ПРОКРУТЦІ ================== */
.fade { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w > i, .fade { transform: none !important; opacity: 1 !important; }
}

/* =====================================================================
   БЛОКИ, КЕРОВАНІ З АДМІНКИ
   ===================================================================== */

/* фото замість рідкого хрому на першому екрані */
.hero__mirror--photo { background: var(--bg-3); }
.hero__mirror--photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__mirror--photo::after { background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12) 45%, transparent 55%); }

/* фото в картках моделей */
.mcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mcard:hover .mcard__photo { transform: scale(1.05); }

/* ---- наші роботи ---- */
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work { position: relative; margin: 0; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 5; background: var(--bg-3); }
.work:nth-child(5n + 1) { grid-row: span 2; aspect-ratio: auto; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 18px; color: #fff; font-size: 14px;
  background: rgba(15, 15, 17, .45); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.14);
}
.work__btn { border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; color: #111; font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.work__btn:hover { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .works__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .works__grid::-webkit-scrollbar { display: none; }
  .work, .work:nth-child(5n + 1) { flex: 0 0 78vw; aspect-ratio: 4 / 5; grid-row: auto; scroll-snap-align: center; }
}

/* ---- відгуки ---- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.review__stars { color: var(--accent); letter-spacing: .12em; font-size: 15px; }
.review__text { font-size: 16px; line-height: 1.6; }
.review__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.review__who { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.review__who span { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .reviews__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 82vw; scroll-snap-align: center; }
}
