/* ==========================================================================
   VERS — Корпусні меблі на замовлення (Харків)
   Дизайн-система та стилі (exact Interstyle aesthetic)
   ========================================================================== */

:root {
  --color-bg: #0d0f12;
  --color-bg-deep: #07090b;
  --color-bg-elevated: #15181e;
  --color-bg-tile: #1d2128;
  --color-line: #222730;
  --color-line-mid: #333a46;
  --color-line-strong: #475060;
  --color-fg: #f4f5f7;
  --color-fg-soft: #c8cbd2;
  --color-fg-cool: #cbd0da;
  --color-fg-muted: #88909e;
  --color-fg-subtle: #737c8c;
  --color-fg-disabled: #4e5564;
  --color-accent: #cfa878;
  --color-accent-light: #e5c397;
  --color-accent-deep: #ad8654;
  --color-overlay: rgba(7, 9, 11, 0.74);
  --nav-h: 68px;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif-stack: 'IBM Plex Serif', Georgia, serif;
  --font-sans-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono-stack: 'IBM Plex Mono', monospace;
}

@media (min-width: 768px) {
  :root {
    --nav-h: 83px;
  }
}

@media (min-width: 1280px) {
  :root {
    --nav-h: 91px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans-stack);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--color-bg);
  color: var(--color-fg);
  overflow-x: hidden;
}

section[id], [id="contact"], [id="reviews"], [id="portfolio"] {
  scroll-margin-top: var(--nav-h);
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

img, svg, canvas, video {
  display: block;
  max-width: 100%;
}

/* Typography helpers */
.font-serif { font-family: var(--font-serif-stack); }
.font-sans { font-family: var(--font-sans-stack); }
.font-mono { font-family: var(--font-mono-stack); }

/* Keyframe Animations from Original */
@keyframes is-rule-sweep {
  0% { transform: translateX(-110%); }
  60%, 100% { transform: translateX(110%); }
}

@keyframes is-arrow-fly {
  0% { opacity: 1; transform: translate(0, 0); }
  57% { opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 1, 1); transform: translate(0, 0); }
  77% { opacity: 0; transform: translate(115%, -115%); }
  77.001% { opacity: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); transform: translate(-90%, 90%); }
  100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes is-arrow-wood {
  0%, 68% { opacity: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); transform: translate(-90%, 90%); }
  84% { opacity: 1; transform: translate(-40%, 40%); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes stageContentIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes barIn {
  0% { opacity: 0; transform: scaleX(0.92); }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes is-wood-pan {
  0% { transform: scale(1.08) translate(0%, 0%); }
  50% { transform: scale(1.16) translate(-2.5%, -2%); }
  100% { transform: scale(1.08) translate(0%, 0%); }
}

@keyframes is-glow-drift {
  0% { opacity: 0.8; transform: translate(0%, 0%) scale(1); }
  50% { opacity: 1; transform: translate(4%, -3%) scale(1.14); }
  100% { opacity: 0.8; transform: translate(0%, 0%) scale(1); }
}

@keyframes modalBackdropIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes modalPanelIn {
  0% { opacity: 0; transform: scale(0.98) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.anim-arrow-fly {
  will-change: transform, opacity;
  animation: 3.2s linear infinite is-arrow-fly;
}

.anim-arrow-wood {
  will-change: transform, opacity;
  animation: 3.2s linear infinite is-arrow-wood;
}

.anim-wood-pan {
  will-change: transform;
  animation: 34s ease-in-out infinite is-wood-pan;
}

.anim-glow-drift {
  will-change: transform, opacity;
  animation: 22s ease-in-out infinite is-glow-drift;
}

/* Intro Sequence States */
html[data-intro="playing"] [data-reveal] {
  opacity: 0;
  pointer-events: none;
}
html[data-intro="playing"] [data-reveal="nav"] {
  transform: translateY(-100%);
}
html[data-intro="playing"] [data-reveal="hero-scroll"],
html[data-intro="playing"] [data-reveal="hero-badge"],
html[data-intro="playing"] [data-reveal="hero-cta"] {
  transform: translateY(20px);
}
html[data-intro="playing"] [data-reveal-line] {
  transform: translateY(110%);
}

html[data-intro="reveal"] [data-reveal] {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.7s var(--ease-out-quint), transform 0.9s var(--ease-out-quint);
  transform: translateY(0);
}
html[data-intro="reveal"] [data-reveal-line] {
  transition: transform 1.1s var(--ease-out-quint);
  transform: translateY(0);
}
html[data-intro="reveal"] [data-reveal="hero-overlay"] {
  transition: opacity 1.2s var(--ease-out-quint);
}
html[data-intro="reveal"] [data-reveal="nav"] { transition-delay: 50ms; }
html[data-intro="reveal"] [data-reveal="hero-headline"] { transition: opacity 0.6s var(--ease-out-quint) 0.3s; }
html[data-intro="reveal"] [data-reveal="hero-headline"] > span:nth-child(1) [data-reveal-line] { transition-delay: 0.38s; }
html[data-intro="reveal"] [data-reveal="hero-headline"] > span:nth-child(2) [data-reveal-line] { transition-delay: 0.5s; }
html[data-intro="reveal"] [data-reveal="hero-scroll"],
html[data-intro="reveal"] [data-reveal="hero-badge"] { transition-delay: 0.78s; }
html[data-intro="reveal"] [data-reveal="hero-cta"] {
  transition: opacity 0.8s var(--ease-out-quint) 0.55s, transform 0.8s var(--ease-out-quint) 0.55s;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(215, 177, 136, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(215, 177, 136, 0.75);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(33, 33, 36, 0.5);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

@media (min-width: 1280px) {
  .header-inner {
    padding: 24px 48px;
  }
}

/* Brand Logo (VERS stylized in exact Interstyle gold-serif + mono sub) */
.brand-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(215, 177, 136, 0.55);
  position: relative;
}

.brand-logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(215, 177, 136, 0.2);
}

.brand-logo-text {
  font-family: var(--font-serif-stack);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.14em;
  color: var(--color-fg);
  line-height: 1;
}

.brand-logo-sub {
  font-family: var(--font-mono-stack);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: none;
  border-left: 1px solid var(--color-line-mid);
  padding-left: 10px;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .brand-logo-sub {
    display: block;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 24px;
}

@media (min-width: 1280px) {
  .desktop-nav {
    display: flex;
  }
}

@media (min-width: 1600px) {
  .desktop-nav {
    gap: 28px;
    margin: 0 40px;
  }
}

.nav-link {
  font-weight: 300;
  font-size: 13px;
  color: var(--color-fg);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

@media (min-width: 1280px) {
  .header-actions {
    gap: 20px;
  }
}

.header-ig-btn {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono-stack);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--color-fg-soft);
  padding: 10px 14px;
  border: 1px solid var(--color-line-mid);
  transition: all 0.25s ease;
}

.header-ig-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .header-ig-btn {
    display: inline-flex;
  }
}

.header-phone-btn {
  display: none;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(215, 177, 136, 0.4);
  padding: 12px 18px;
  color: var(--color-accent);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-phone-btn:hover {
  background-color: rgba(215, 177, 136, 0.1);
  border-color: var(--color-accent);
}

@media (min-width: 768px) {
  .header-phone-btn {
    display: flex;
  }
}

.mobile-call-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(207, 168, 120, 0.45);
  background: rgba(207, 168, 120, 0.08);
  padding: 8px 12px;
  color: var(--color-accent-light);
}

@media (min-width: 768px) {
  .mobile-call-chip {
    display: none;
  }
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px 0;
  color: var(--color-accent);
}

@media (min-width: 1280px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(11, 11, 13, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  opacity: 0;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 40px 24px 28px;
  overflow-y: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-nav-link {
  font-family: var(--font-serif-stack);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-fg);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   COMMON SECTION EYEBROW & CTA BUTTONS
   ========================================================================== */
.eyebrow-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  width: 280px;
  flex-shrink: 0;
}

.eyebrow-num {
  font-family: var(--font-mono-stack);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--color-fg-muted);
}

.eyebrow-rule {
  display: block;
  position: relative;
  overflow: hidden;
  width: 32px;
  height: 1px;
  background: rgba(215, 177, 136, 0.22);
}

.eyebrow-rule-sweep {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, transparent 0%, rgba(215, 177, 136, 0.95) 45%, rgba(239, 195, 156, 1) 55%, rgba(215, 177, 136, 0.95) 65%, transparent 100%);
  animation: is-rule-sweep 5000ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.eyebrow-label {
  font-family: var(--font-mono-stack);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Double-framed Gold CTA Button */
.cta-double {
  display: inline-block;
  border: 1px solid rgba(215, 177, 136, 0.6);
  transition: border-color 0.3s ease-out;
}

.cta-double-pad {
  display: block;
  padding: 6px;
  transition: padding 0.3s ease-out;
}

.cta-double-inner {
  background: var(--color-accent);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  transition: padding 0.3s ease-out, background-color 0.3s ease-out;
}

.cta-double:hover {
  border-color: var(--color-accent);
}

.cta-double:hover .cta-double-pad {
  padding: 0;
}

.cta-double:hover .cta-double-inner {
  padding: 18px 30px;
  background: var(--color-accent-light);
}

.cta-double-text {
  font-family: var(--font-mono-stack);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==========================================================================
   HERO SECTION WITH BLUEPRINT SPOTLIGHT
   ========================================================================== */
.hero-section {
  position: relative;
  height: calc(var(--vvh, 100svh) - var(--nav-h));
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.hero-reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  --blueprint-line: #efc39c;
  --mx: 50%;
  --my: 50%;
  --mr: 232px;
  --ms: 65px;
}

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

.hero-img-desktop {
  display: none;
}

@media (min-width: 880px) {
  .hero-img-mobile {
    display: none;
  }
  .hero-img-desktop {
    display: block;
  }
}

.hero-blueprint-mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
  -webkit-mask-image: radial-gradient(circle var(--mr, 232px) at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,1) 0px, rgba(0,0,0,1) var(--ms, 65px), rgba(0,0,0,0) var(--mr, 232px));
  mask-image: radial-gradient(circle var(--mr, 232px) at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,1) 0px, rgba(0,0,0,1) var(--ms, 65px), rgba(0,0,0,0) var(--mr, 232px));
  will-change: mask-image;
}

.hero-overlay-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-headline {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 74px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans-stack);
  font-weight: 200;
  font-size: clamp(28px, 8.2vw, 40px);
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-fg);
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 880px) {
  .hero-headline {
    left: 48px;
    right: auto;
    bottom: 64px;
    font-size: 62px;
  }
}

.hero-badge-top {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

@media (min-width: 880px) {
  .hero-badge-top {
    left: 48px;
    right: auto;
    top: 40px;
  }
}

.hero-mobile-bar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(13, 15, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(207, 168, 120, 0.35);
}

@media (min-width: 880px) {
  .hero-mobile-bar {
    display: none;
  }
}

.hero-scroll-hint {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-mono-stack);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--color-fg-soft);
  white-space: nowrap;
}

@media (min-width: 880px) {
  .hero-scroll-hint {
    right: 64px;
    bottom: 80px;
  }
}

.blueprint-ripple {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, transparent 0%, transparent 95%, rgba(239, 195, 156, 0.85) 100%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: width, height, opacity;
}

/* ==========================================================================
   LAYOUT HELPERS & RESPONSIVE BREAKPOINTS (880px = design:)
   ========================================================================== */
.section-pad {
  padding: 64px 24px;
}

@media (min-width: 880px) {
  .section-pad {
    padding: 100px 64px;
  }
}

.container-max {
  width: 100%;
  max-width: 1312px;
  margin-inline: auto;
}

/* Scroll reveal utility */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-quint), transform 0.8s var(--ease-out-quint);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PORTFOLIO & ADD-PROJECT MODAL / FILTER TABS
   ========================================================================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  font-family: var(--font-mono-stack);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--color-line-mid);
  color: var(--color-fg-muted);
  transition: all 0.25s ease;
}

.filter-tab:hover {
  border-color: rgba(215, 177, 136, 0.5);
  color: var(--color-fg);
}

.filter-tab.active {
  border-color: var(--color-accent);
  background: rgba(215, 177, 136, 0.12);
  color: var(--color-accent-light);
}

/* Desktop Portfolio Row */
.portfolio-desktop-list {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid #212124;
}

.portfolio-mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px 28px;
}

@media (min-width: 640px) {
  .portfolio-mobile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .portfolio-mobile-grid {
    display: none;
  }
  .portfolio-desktop-list {
    display: flex;
  }
}

.portfolio-row {
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid #212124;
  padding: 24px 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.portfolio-row:hover .portfolio-row-title {
  color: var(--color-accent-light);
}

.portfolio-row:hover .portfolio-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

.portfolio-row:hover .portfolio-thumb-img {
  transform: scale(1.05);
}

.portfolio-row:hover .portfolio-thumb-border {
  border-color: rgba(215, 177, 136, 0.5);
}

/* ==========================================================================
   REVIEWS (ВІДГУКИ КЛІЄНТІВ) SECTION
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  position: relative;
  background: rgba(20, 20, 21, 0.7);
  border: 1px solid var(--color-line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  background: rgba(26, 26, 29, 0.85);
  border-color: rgba(215, 177, 136, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(215, 177, 136, 0.25);
}

.review-card:hover .review-source-badge {
  background: rgba(215, 177, 136, 0.15);
  border-color: var(--color-accent);
  color: #fff;
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--color-accent);
  font-size: 14px;
}

.review-quote {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-fg-soft);
}

.review-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: var(--color-accent);
  font-family: var(--font-mono-stack);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px dashed rgba(207, 168, 120, 0.5);
  transition: all 0.2s ease;
}

.review-card:hover .review-continue-link {
  color: var(--color-accent-light);
  border-bottom-color: var(--color-accent);
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

/* ==========================================================================
   MODALS (Project Lightbox + Add Portfolio/Review Constructor)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 1, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: modalBackdropIn 0.25s ease-out;
}

@media (min-width: 640px) {
  .modal-backdrop {
    padding: 20px;
  }
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  background: #0f0f11;
  border: 1px solid var(--color-line-mid);
  overflow-y: auto;
  animation: modalPanelIn 0.3s var(--ease-out-quint);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .lightbox-grid {
    grid-template-columns: 1.25fr 1fr !important;
  }
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: #141415;
  border: 1px solid var(--color-line-mid);
  color: var(--color-fg);
  font-size: 16px;
  transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
  .form-input {
    font-size: 14px;
  }
}

.form-input:focus {
  border-color: var(--color-accent);
  outline: none;
}


/* ---- Шапка: Instagram у вигляді іконки на вузьких екранах, повний текст на широких ---- */
@media (min-width: 768px) and (max-width: 1599px) {
  .header-ig-btn span { display: none; }
  .header-ig-btn { padding: 11px 12px; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  .brand-logo-sub { display: none; }
}
.header-ig-btn, .header-phone-btn { white-space: nowrap; }

/* ==========================================================================
   Велика кнопка «Прорахувати проєкт»
   ========================================================================== */
.cta-big {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 64px 20px 28px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 55%, var(--color-accent-deep) 100%);
  color: #14110c;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(207, 168, 120, 0.28), 0 0 0 5px rgba(207, 168, 120, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: cta-pulse 2.8s ease-in-out infinite;
}
.cta-big:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(207, 168, 120, 0.42), 0 0 0 7px rgba(207, 168, 120, 0.18);
}
.cta-big-label {
  font-family: var(--font-sans-stack, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.1;
}
.cta-big-sub {
  font-family: var(--font-mono-stack);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.72;
}
.cta-big-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #14110c;
  color: var(--color-accent-light);
  font-size: 16px;
}
.cta-big--compact {
  flex-direction: row;
  align-items: center;
  padding: 13px 54px 13px 18px;
  animation: none;
  box-shadow: 0 6px 18px rgba(207, 168, 120, 0.25);
}
.cta-big--compact .cta-big-label { font-size: 13px; white-space: nowrap; }
.cta-big--compact .cta-big-arrow { width: 26px; height: 26px; right: 14px; font-size: 13px; }
.cta-big--xl { padding: 26px 76px 26px 34px; }
.cta-big--xl .cta-big-label { font-size: 21px; }
.cta-big--xl .cta-big-arrow { width: 38px; height: 38px; right: 26px; font-size: 18px; }

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(207,168,120,0.28), 0 0 0 5px rgba(207,168,120,0.12); }
  50%      { box-shadow: 0 10px 34px rgba(207,168,120,0.45), 0 0 0 11px rgba(207,168,120,0.06); }
}
@media (prefers-reduced-motion: reduce) { .cta-big { animation: none; } }

.hero-cta-wrap {
  position: absolute;
  right: 24px;
  left: auto;
  bottom: 80px;
  z-index: 4;
}
@media (min-width: 880px) {
  .hero-cta-wrap {
    display: block;
    right: 40px;
    left: auto;
    bottom: 64px;
  }
}
@media (min-width: 1200px) {
  .hero-cta-wrap {
    right: 48px;
    bottom: 64px;
  }
}
@media (max-width: 879px) {
  .hero-cta-wrap { display: none; } /* на мобільних є кнопка в нижній панелі hero + плаваюча */
}

/* ---- Банер розрахунку ---- */
.estimate-banner {
  position: relative;
  background:
    radial-gradient(60% 120% at 85% 50%, rgba(207,168,120,0.18), transparent 70%),
    linear-gradient(180deg, #0b0d10 0%, #11141a 100%);
  border-top: 1px solid rgba(207,168,120,0.3);
  border-bottom: 1px solid rgba(207,168,120,0.3);
  padding: 64px 0;
}
.estimate-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .estimate-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
}
.estimate-banner-text { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.estimate-banner-kicker { font-size: 11px; letter-spacing: 1.6px; color: var(--color-accent); }
.estimate-banner-title { font-weight: 300; font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -1px; color: var(--color-fg); }
.estimate-banner-title span { color: var(--color-accent); }
.estimate-banner-desc { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--color-fg-soft); }

/* ---- Плаваюча кнопка ---- */
.floating-estimate {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  color: #14110c;
  font-family: var(--font-sans-stack, 'Inter', sans-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 0 4px rgba(207,168,120,0.18);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.floating-estimate.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ==========================================================================
   Галерея «Усі роботи» (фото з папки mix)
   ========================================================================== */
.mix-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 700px)  { .mix-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .mix-gallery { grid-template-columns: repeat(4, 1fr); } }
.mix-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-tile);
  border: 1px solid var(--color-line);
  cursor: pointer;
  padding: 0;
}
.mix-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mix-item:hover img { transform: scale(1.06); }
.mix-item::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(215,177,136,0); transition: border-color 0.3s ease; pointer-events: none; }
.mix-item:hover::after { border-color: rgba(215,177,136,0.55); }
.mix-empty { padding: 48px 0; color: var(--color-fg-muted); font-size: 14px; }

.photo-viewer {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,6,8,0.94);
}
.photo-viewer.is-open { display: flex; }
.photo-viewer img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.photo-viewer button {
  position: absolute; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--color-line-strong); color: var(--color-fg); font-size: 20px; background: rgba(13,15,18,0.7);
}
.photo-viewer .pv-close { top: 18px; right: 18px; }
.photo-viewer .pv-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.photo-viewer .pv-next { right: 14px; top: 50%; transform: translateY(-50%); }
.photo-viewer .pv-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono-stack); font-size: 12px; color: var(--color-fg-soft); }

@media (min-width: 1024px) {
  .hero-headline { bottom: 64px; }
  .hero-glass-card .hero-scroll-note { display: none; }
}

/* Мобільна нижня панель hero: лише велика кнопка розрахунку */
.hero-mobile-bar > span { display: none; }
.hero-mobile-bar .cta-big { width: 100%; justify-content: flex-start; }
@media (max-width: 879px) {
  .hero-headline { bottom: 100px; }
}

/* ---- Пагінація галереї «Усі роботи» ---- */
.mix-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.mix-page-btn {
  min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--color-line-strong); color: var(--color-fg);
  font-family: var(--font-mono-stack); font-size: 13px;
  transition: all 0.2s ease;
}
.mix-page-btn:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
.mix-page-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #14110c; font-weight: 600; }
.mix-page-btn:disabled { opacity: 0.35; cursor: default; }
.mix-page-dots { color: var(--color-fg-muted); padding: 0 4px; }

.estimate-banner { padding-left: 24px; padding-right: 24px; }
@media (min-width: 1280px) { .estimate-banner { padding-left: 48px; padding-right: 48px; } }


/* ==========================================================================
   Читабельність заголовка на фоні (м'який градієнт зліва направо та по низу)
   ========================================================================== */
.hero-overlay-grad {
  background:
    /* М'яке затемнення зліва під текстом — залишає кухню світлою, об'ємною та яскравою */
    linear-gradient(to right, rgba(8,9,11,0.68) 0%, rgba(8,9,11,0.44) 28%, rgba(8,9,11,0.15) 54%, rgba(8,9,11,0) 74%),
    /* Делікатна розтяжка по нижній секції для чіткості тексту і кнопки */
    linear-gradient(to top, rgba(8,9,11,0.65) 0%, rgba(8,9,11,0.28) 20%, rgba(8,9,11,0) 42%),
    /* Тонке делікатне затемнення зверху під меню */
    linear-gradient(to bottom, rgba(8,9,11,0.45) 0%, rgba(8,9,11,0) 16%);
}
@media (max-width: 879px) {
  .hero-overlay-grad {
    background:
      linear-gradient(to top, rgba(8,9,11,0.80) 0%, rgba(8,9,11,0.50) 30%, rgba(8,9,11,0.12) 60%, rgba(8,9,11,0) 78%),
      linear-gradient(to bottom, rgba(8,9,11,0.45) 0%, rgba(8,9,11,0) 18%);
  }
}
.hero-headline {
  text-shadow: 0 2px 20px rgba(0,0,0,0.92), 0 1px 3px rgba(0,0,0,0.95);
  font-weight: 300;
}
.hero-headline span[style*="font-family"] {
  text-shadow: 0 2px 16px rgba(0,0,0,0.95), 0 1px 2px rgba(0,0,0,0.9);
  color: #f2f4f8 !important;
}
.hero-badge-top p {
  text-shadow: 0 1px 10px rgba(0,0,0,0.95);
}
