:root {
  --bg: #dbe3eb;
  --mist: #ced8e2;
  --mist-2: #c0cedb;
  --surface: #f3f6fa;
  --info-bg: #e6eef5;
  --border: #b5c4d2;
  --border-strong: #8da0b2;
  --ink: #0b1115;
  --ink-sec: #1e293b;
  --muted: #334155;
  --emerald: #0d9488;
  --emerald-dark: #0f766e;
  --emerald-bright: #10b981;
  --emerald-soft: rgba(13, 148, 136, 0.10);
  --emerald-border: rgba(13, 148, 136, 0.30);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --blue-soft: rgba(37, 99, 235, 0.10);
  --blue-dark: #1d4ed8;
  --rose: #be123c;
  --rose-soft: rgba(190, 18, 60, 0.09);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 12px rgba(15, 20, 23, 0.04);
  --shadow: 0 20px 50px rgba(15, 20, 23, 0.07);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only,
.sr-copy-ta {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: -9999px;
  top: 0;
  opacity: 0;
}

:focus-visible {
  outline: 2.5px solid var(--emerald-dark);
  outline-offset: 2px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(236, 241, 246, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-coin-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  perspective: 440px;
  transform-style: preserve-3d;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  transform-origin: center center;
  will-change: transform, filter;
  animation: coinSpinF 4.4s linear infinite;
}

.brand-link:hover .brand-logo {
  animation-duration: 2.2s;
}

@keyframes coinSpinF {
  0% {
    transform: rotateY(0deg) translateZ(0);
    filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.16));
  }
  24% {
    transform: rotateY(88deg) scaleX(0.92);
    filter: drop-shadow(0 4px 10px rgba(4, 120, 87, 0.42)) brightness(1.18);
  }
  50% {
    transform: rotateY(180deg) translateZ(0);
    filter: drop-shadow(0 3px 8px rgba(4, 120, 87, 0.24));
  }
  74% {
    transform: rotateY(268deg) scaleX(0.92);
    filter: drop-shadow(0 4px 10px rgba(4, 120, 87, 0.42)) brightness(1.18);
  }
  100% {
    transform: rotateY(360deg) translateZ(0);
    filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.16));
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text strong span { color: var(--emerald); }

.brand-text small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-sec);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.desktop-nav a:hover {
  background: var(--emerald-soft);
  color: var(--ink);
}

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

.lang-switch {
  display: inline-flex;
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.lang-btn:hover:not(.active) {
  background: #e2e8e5;
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  color: #ffffff;
}

/* ==================== CRISP BUTTONS WITH HIGH-CONTRAST HOVER ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  -webkit-font-smoothing: subpixel-antialiased;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.24);
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

.btn-emerald:hover,
.btn-emerald:focus-visible {
  background: #0b7a6f;
  border-color: #0b7a6f;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #effcf9;
  border-color: var(--emerald-dark);
  color: #091316;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.14);
}

.btn-sm {
  font-size: 13px;
  padding: 9px 16px;
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger-btn:hover {
  border-color: var(--emerald);
  background: #f0fdfa;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 20px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 20, 23, 0.08);
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}

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

.mobile-nav a:not(.mobile-tg-btn) {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
}

.mobile-nav a:not(.mobile-tg-btn):hover,
.mobile-nav a:not(.mobile-tg-btn):active {
  background: #effcf9;
  border-color: var(--emerald-border);
  color: var(--emerald-dark);
}

.mobile-tg-btn {
  margin-top: 6px;
  width: 100%;
  min-height: 46px;
}

/* ==================== HERO (NATIVE-DENSITY STUDIO BANNER) ==================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 60px 0 68px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

.hero-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88%, 1680px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.94;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #dbe3eb 0%,
    rgba(219, 227, 235, 0.97) 26%,
    rgba(219, 227, 235, 0.85) 45%,
    rgba(219, 227, 235, 0.16) 65%,
    rgba(219, 227, 235, 0) 80%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--emerald-border);
  color: var(--emerald-dark);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 16px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero h1 .accent { color: var(--emerald); }

.hero-lead {
  font-size: 15.5px;
  color: #243038;
  max-width: 550px;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-btn-glass {
  background: rgba(255, 255, 255, 0.96);
}

.hero-mobile-banner-bg {
  display: none;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fact-box {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(15, 20, 23, 0.05);
}

.fact-box strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: var(--ink);
}

.fact-box span {
  font-size: 12px;
  color: var(--ink-sec);
}

/* ==================== COMMON SECTIONS ==================== */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.section-mist { background: var(--mist); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-dark);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--ink);
}

.section-sub {
  max-width: 540px;
  font-size: 14.5px;
  color: var(--ink-sec);
}

/* ==================== SERVICES + ARCHITECTURE ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-num {
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--ink);
}

.deal-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.service-card h3 {
  font-size: 16.5px;
  line-height: 1.28;
  min-height: 2.56em;
  display: flex;
  align-items: flex-start;
  font-weight: 800;
  color: var(--ink);
}
.service-card p { font-size: 13.5px; color: var(--ink-sec); flex: 1; }

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-sec);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.service-list li::before { content: "✓ "; color: var(--emerald); font-weight: 900; }

.arch-strip-box {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.arch-strip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.arch-strip-head h3 { font-size: 17px; font-weight: 900; color: var(--ink); }
.arch-strip-head span { font-size: 13px; color: var(--ink-sec); }

.arch-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-card .curtain {
  margin-top: auto;
}

.arch-card b {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.arch-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 5px;
}

.arch-card p { font-size: 12.5px; color: var(--ink-sec); }

.subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 14px;
}

.subhead-row h3 { font-size: 18px; font-weight: 900; color: var(--ink); }
.subhead-row span { font-size: 13px; color: var(--ink-sec); }

.logos-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.logos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.logos-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.logo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.logo-stage {
  position: relative;
  aspect-ratio: 1;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-stage img.static-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.logo-stage-full {
  background: #0d1218;
}

.logo-stage-3d-card {
  aspect-ratio: 4 / 3;
}

.logo-stage-dark {
  background: #0c1117;
}

.logo-stage-black {
  background: #000000;
}

.logo-stage-light {
  background: #eff2f5;
}

.logo-stage-white {
  background: #ffffff;
}

.logo-stage-studio-white {
  background: #f2f2f2;
}

.logo-stage-match-refoto-dark {
  background: radial-gradient(circle at 50% 50%, #0f1418 0%, #03070a 100%);
}

.logo-stage-match-refoto-light {
  background: linear-gradient(180deg, #ebebeb 0%, #f1f1f1 55%, #f7f7f7 100%);
}

.logo-stage-match-oreshek-dark {
  background: linear-gradient(180deg, #000403 0%, #192322 100%);
}

.logo-stage img.static-full {
  padding: 0;
  object-fit: cover;
}

.logo-stage img.static-contain {
  padding: 8px;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.logo-stage img.static-contain.static-no-pad {
  padding: 0;
}

.logo-stage-3d {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  flex: 0 0 auto;
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #f4f8fb 0%, #dbeee9 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.logo-stage-3d > canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

#canvas-3d-formik {
  background: radial-gradient(circle at 50% 42%, #132830 0%, #070d11 100%);
}

#canvas-3d-orbitex {
  background: radial-gradient(circle at 50% 42%, #142848 0%, #070f1d 100%);
}

#canvas-3d-qalqon {
  background: radial-gradient(circle at 50% 42%, #0e2c26 0%, #060d14 100%);
}

#canvas-3d-silkflow {
  background: radial-gradient(circle at 50% 42%, #15254a 0%, #080d1a 100%);
}

/* Studio 2D Animation Stage (Layered SVG + CSS Motion Choreography) */
.anim2d-stage {
  padding: 20px;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f1f5f4 100%);
}

.anim2d-stage.theme-dark {
  background: radial-gradient(circle at 50% 45%, #1d2428 0%, #0f1417 100%);
}

.anim2d-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.anim2d-img-wrap {
  position: relative;
  z-index: 2;
  width: 64%;
  height: 64%;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}

.anim2d-img-wrap.wide-svg {
  width: 88%;
  height: 68%;
  margin-bottom: 18px;
}

.anim2d-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.anim2d-sheen {
  position: absolute;
  inset: -20%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0) 64%
  );
  transform: translateX(-120%);
}

.anim2d-label {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
}

.theme-dark .anim2d-label { color: #e2e8f0; }

/* Variant 0: Re:foto Viewfinder Frame & Sheen */
.anim2d-v0 .anim2d-img-wrap { animation: a2RefotoPop 3.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.anim2d-v0 .anim2d-sheen { animation: a2Sheen 3.8s ease-in-out infinite; }
.anim2d-v0 .a2-corner { stroke-dasharray: 1; stroke-dashoffset: 1; animation: a2Draw 3.8s ease-in-out infinite; }
.anim2d-v0 .anim2d-label { animation: a2TextReveal 3.8s ease-out infinite; }

@keyframes a2RefotoPop {
  0% { transform: scale(0.84); opacity: 0.25; }
  30%, 86% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.96); opacity: 0.7; }
}
@keyframes a2Sheen {
  0%, 26% { transform: translateX(-115%); opacity: 0; }
  35% { opacity: 1; }
  62% { transform: translateX(115%); opacity: 1; }
  66%, 100% { transform: translateX(115%); opacity: 0; }
}
@keyframes a2Draw {
  0% { stroke-dashoffset: 1; opacity: 0.4; }
  38%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 1; opacity: 0.4; }
}
@keyframes a2TextReveal {
  0%, 28% { letter-spacing: 0.44em; opacity: 0; transform: translateY(4px); }
  52%, 86% { letter-spacing: 0.24em; opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

/* Variant 1: Orbitex Dual-Axis Gyroscope & Orbital Halo */
.anim2d-v1 .a2-gyro-outer { transform-origin: 100px 96px; animation: a2GyroTilt 5.5s ease-in-out infinite; }
.anim2d-v1 .a2-ring-dash { transform-origin: 100px 96px; animation: a2SpinSlow 14s linear infinite; }
.anim2d-v1 .anim2d-img-wrap { animation: a2SigScale 3.8s ease-out infinite; }
.anim2d-v1 .anim2d-sheen { animation: a2Sheen 3.8s ease-in-out infinite; }
.anim2d-v1 .anim2d-label { animation: a2TextReveal 3.8s ease-out infinite; }

@keyframes a2GyroTilt {
  0%, 100% { transform: rotate(-22deg) scale(1); opacity: 0.92; }
  50% { transform: rotate(18deg) scale(1.04); opacity: 1; }
}

@keyframes a2RingDraw {
  0% { stroke-dashoffset: 540; }
  38%, 85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -540; }
}
@keyframes a2SpinSlow { to { transform: rotate(360deg); } }
@keyframes a2SigScale {
  0% { transform: scale(0.78); opacity: 0.2; }
  32%, 85% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Variant 2: Sladkiy Oreshek Orbit Loop + Emerald Ring */
.anim2d-v2 .a2-orbit { transform-origin: 100px 100px; animation: a2SpinSlow 8s linear infinite; }
.anim2d-v2 .a2-ring-main { stroke-dasharray: 480; stroke-dashoffset: 480; animation: a2RingDraw 3.8s cubic-bezier(0.35, 0, 0.15, 1) infinite; }
.anim2d-v2 .anim2d-img-wrap { animation: a2OreshekFloat 3.2s ease-in-out infinite; }
.anim2d-v2 .anim2d-sheen { animation: a2Sheen 3.8s ease-in-out infinite; }
.anim2d-v2 .anim2d-label { opacity: 0.92; animation: none; }

/* Variant 3: Formik.uz Emerald Optical Laser Scan */
.anim2d-v3 .a2-scan-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 3px;
  z-index: 4;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2dd4bf, #ffffff, #2dd4bf, transparent);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.9);
  animation: a2ScanY 3.2s ease-in-out infinite;
}
.anim2d-v3 .anim2d-img-wrap { animation: a2FormikPulse 3.2s ease-in-out infinite; }
.anim2d-v3 .anim2d-label { animation: a2TextReveal 3.2s ease-out infinite; }

@keyframes a2ScanY {
  0% { top: 14%; opacity: 0; }
  15% { opacity: 1; }
  55% { top: 84%; opacity: 1; }
  70%, 100% { top: 84%; opacity: 0; }
}
@keyframes a2FormikPulse {
  0% { filter: brightness(0.85); transform: scale(0.94); }
  45% { filter: brightness(1.08); transform: scale(1.03); }
  75%, 100% { filter: brightness(1); transform: scale(1); }
}

@keyframes a2OreshekFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.035); }
}

/* Variant 4: Qalqon Emerald Antifraud Radar & Guard Polygon */
.anim2d-v4 .a2-radar-pulse { transform-origin: 100px 96px; animation: a2RadarPulse 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
.anim2d-v4 .a2-hex-guard { transform-origin: 100px 96px; animation: a2SpinSlow 16s linear infinite reverse; }
.anim2d-v4 .anim2d-img-wrap { animation: a2SigScale 3.4s ease-out infinite; }
.anim2d-v4 .anim2d-sheen { animation: a2Sheen 3.4s ease-in-out infinite; }
.anim2d-v4 .anim2d-label { animation: a2TextReveal 3.4s ease-out infinite; }

@keyframes a2RadarPulse {
  0% { transform: scale(0.76); opacity: 0.95; stroke-width: 3; }
  75%, 100% { transform: scale(1.16); opacity: 0; stroke-width: 1; }
}

/* Variant 5: SilkFlow Mobius Dual-Stream Supply Lines */
.anim2d-v5 .a2-flow-blue { animation: a2DashFlow 2.6s linear infinite; }
.anim2d-v5 .a2-flow-coral { animation: a2DashFlow 2.6s linear infinite reverse; }
.anim2d-v5 .anim2d-img-wrap { animation: a2OreshekFloat 3.6s ease-in-out infinite; }
.anim2d-v5 .anim2d-sheen { animation: a2Sheen 3.6s ease-in-out infinite; }
.anim2d-v5 .anim2d-label { animation: a2TextReveal 3.6s ease-out infinite; }

@keyframes a2DashFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -56; }
}

.logo-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.logo-kind {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--emerald-dark);
}

.logo-card-body h4 {
  font-size: 14.5px;
  line-height: 1.3;
  min-height: 2.6em;
  font-weight: 800;
  color: var(--ink);
}
.logo-card-body p { font-size: 12.5px; color: var(--ink-sec); flex: 1; }

.logo-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 1 1 auto;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, box-shadow 0.14s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.logo-card-actions .replay-btn {
  margin-top: 0;
}

.replay-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.sound-show-btn {
  border-color: var(--emerald);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--emerald-dark);
}

.sound-show-btn:hover,
.sound-show-btn.is-playing {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #047857;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.card-live-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 1 1 auto;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--emerald-border);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.card-live-link:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
  transform: translateY(-1px);
}

.card-live-link-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.card-live-link-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* ==================== PORTFOLIO (4 REAL PROJECTS) ==================== */
.portfolio-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.brand-kits-head {
  margin-top: 8px;
}

.brand-kits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.brand-kit-shot {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #cbd5e1;
}

.brand-kit-shot.kit-bg-wide-row {
  aspect-ratio: 16 / 9;
}

.brand-kit-shot.kit-bg-cream {
  background: #f9faf5;
}

.brand-kit-shot.kit-bg-dark,
.brand-kit-shot.kit-bg-oreshek {
  background: linear-gradient(180deg, #000403 0%, #1b2622 100%);
}

.brand-kit-shot.kit-bg-formik {
  background: #0b0f15;
}

.brand-kit-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kit-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.kit-live-btn {
  min-height: 44px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.project-shot-wrap {
  aspect-ratio: 16 / 10;
  background: var(--mist);
  border-bottom: 1px solid var(--border);
  padding: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-shot-wrap.dark-showcase {
  padding: 10px;
  background: #040d21;
}

.project-shot-wrap img.web-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.project-shot-wrap.dark-showcase img.banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  display: block;
}

.project-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.project-head-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.project-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.project-body > h3,
.project-body > .project-head-row {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.project-body h3 { font-size: 18px; font-weight: 900; color: var(--ink); }
.project-body p { font-size: 13.5px; color: var(--ink-sec); flex: 1; }

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  margin-top: auto;
}

.project-meta span {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-sec);
}

/* Concise Copywriting Example */
.copy-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.copy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-card.after { border-color: var(--emerald-border); background: #fcfffe; }

.copy-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.copy-card.before .copy-badge { background: var(--rose-soft); color: var(--rose); }
.copy-card.after .copy-badge { background: var(--emerald-soft); color: var(--emerald-dark); }
.copy-card h4 { font-size: 16px; font-weight: 900; color: var(--ink); }
.copy-card p { font-size: 13.5px; color: var(--ink-sec); }

/* ==================== CONTACTS ==================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.brief-box,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

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

.brief-pick-lbl {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

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

.contact-box-title {
  margin: 16px 0 10px;
  font-size: 16px;
}

.btn-full { width: 100%; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  background: var(--mist);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.chip-btn:hover:not(.active) {
  background: #effcf9;
  border-color: var(--emerald);
  color: var(--ink);
}

.chip-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.brief-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.text-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
}

.text-input:focus { border-color: var(--emerald); }

.brief-preview {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-sec);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-box {
  background: var(--mist);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-card-head img { width: 48px; height: 48px; object-fit: contain; border-radius: 0; flex-shrink: 0; }
.contact-card-head strong { display: block; font-size: 16px; color: var(--ink); }
.contact-card-head span { font-size: 13px; font-weight: 800; color: var(--emerald-dark); overflow-wrap: anywhere; }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-sec);
}

.contact-list li::before { content: "▸ "; color: var(--emerald); font-weight: 900; }

/* ==================== FOOTER & ERROR PAGE ==================== */
.site-footer {
  padding: 24px 0 32px;
  color: var(--ink-sec);
  font-size: 13px;
  background: var(--mist);
  border-top: 1px solid var(--border);
}

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

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--emerald-dark); }

.error-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 48px 0;
  background: var(--mist);
}

.error-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.error-card h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--ink);
}

.error-card p {
  font-size: 14.5px;
  color: var(--ink-sec);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .brand-logo {
    animation: none;
    transform: none;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .logo-stage-3d canvas { touch-action: pan-y !important; }
  .hero { min-height: 520px; padding: 44px 0 52px; }
  .hero-bg-img { width: 100%; object-position: 72% center; }
  .hero-bg-overlay {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.92) 56%,
      rgba(255, 255, 255, 0.52) 86%,
      rgba(255, 255, 255, 0.18) 100%
    );
  }
  .contacts-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-4col,
  .logos-grid-3,
  .logos-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-kits-grid { grid-template-columns: 1fr; }
}

@media (pointer: coarse) {
  .logo-stage-3d canvas { touch-action: pan-y !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand-link { min-width: 0; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { font-size: 9.5px; }
  .header-actions { gap: 6px; }
  .lang-btn {
    min-height: 40px;
    min-width: 42px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .header-actions .btn { display: none; }

  .hero { min-height: auto; padding: 12px 0 24px; background: var(--bg); }
  .hero-bg { display: none; }
  .hero-head-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    padding: 16px 16px 186px;
    background: var(--mist);
  }
  .hero-mobile-banner-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  .hero-mobile-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }
  .hero-mobile-banner-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(219, 227, 235, 0.96) 0%,
      rgba(219, 227, 235, 0.84) 40%,
      rgba(219, 227, 235, 0.05) 66%
    );
  }
  .hero-head-copy {
    position: relative;
    z-index: 2;
  }
  .hero-eyebrow {
    font-size: 11px;
    line-height: 1.3;
    padding: 5px 10px;
    margin-bottom: 10px;
    background: rgba(243, 246, 250, 0.94);
    max-width: 100%;
    white-space: normal;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .hero-dot { margin-top: 4px; }
  .hero h1 { font-size: clamp(22px, 6.2vw, 27px); line-height: 1.16; margin-bottom: 0; overflow-wrap: anywhere; }
  .hero-lead { font-size: 14.5px; margin-bottom: 18px; }
  .hero-cta { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .hero-cta .btn { width: 100%; min-height: 46px; }
  .fact-box { padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; }

  .section { padding: 44px 0; scroll-margin-top: 66px; }
  .section-head { margin-bottom: 20px; gap: 12px; }
  .section-head > div,
  .section-sub { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .services-grid { gap: 12px; margin-bottom: 24px; }
  .service-card,
  .arch-card,
  .logo-card,
  .project-card,
  .copy-card { min-width: 0; overflow-wrap: anywhere; }
  .service-card { padding: 14px; gap: 8px; }
  .arch-strip-box { padding: 14px; }
  .text-input { font-size: 16px; min-height: 44px; padding: 10px 12px; }

  .logo-stage,
  .logo-stage.logo-stage-3d-card,
  .logo-stage-3d {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
  }
  .anim2d-stage { padding: 8px 8px 24px; }
  .anim2d-img-wrap { width: 58%; height: 58%; margin-bottom: 14px; }
  .anim2d-img-wrap.wide-svg { width: 86%; height: 64%; margin-bottom: 14px; }
  .anim2d-label {
    font-size: 8px;
    line-height: 1.1;
    bottom: 5px;
    padding: 2px 6px;
    white-space: nowrap;
    max-width: calc(100% - 10px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-card-body { padding: 10px 10px 12px; gap: 6px; }
  .logo-kind {
    font-size: 9px;
    padding: 2px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .logo-card-body h4 {
    font-size: 12.5px;
    line-height: 1.26;
    min-height: 3.78em;
  }
  .logo-card-body p { font-size: 11px; line-height: 1.38; }
  .replay-btn,
  .card-live-link {
    width: 100%;
    min-height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    line-height: 1.22;
    padding: 7px 8px;
    white-space: normal;
    text-align: center;
  }
  .logo-card-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
    padding-top: 6px;
    gap: 6px;
  }

  .project-shot-wrap { padding: 10px; }
  .project-shot-wrap.brand-kit-shot { padding: 0; aspect-ratio: 4 / 3; }
  .project-shot-wrap.brand-kit-shot.kit-bg-wide { aspect-ratio: 16 / 9; }
  .project-body { padding: 16px; }
  .project-meta span { max-width: 100%; overflow-wrap: anywhere; }
  .copy-card { padding: 16px; }

  .brief-box, .contact-box { padding: 18px; }
  .chip-btn {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .brief-actions { flex-direction: column; }
  .brief-actions .btn { width: 100%; min-height: 46px; }
  .btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .error-card { padding: 20px; }
  .error-actions { flex-direction: column; }
  .error-actions .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { gap: 8px 14px; }
  .footer-links a {
    min-height: 44px;
    padding: 8px 4px;
    display: inline-flex;
    align-items: center;
  }

  .logos-grid-3,
  .logos-grid-4,
  .logos-grid-2x2,
  .arch-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-facts,
  .services-grid,
  .portfolio-grid-2x2,
  .brand-kits-grid,
  .copy-box,
  .brief-inputs { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .container { padding: 0 14px; }
  .brand-text strong { font-size: 14.5px; }
  .hero h1 { font-size: 24px; }
  .contact-card-head { flex-wrap: wrap; min-width: 0; }
}

/* ==================== DARKENED BACKDROPS, CURTAINS & MOBILE ARCHITECTURE ==================== */
.arch-strip-box {
  background: #c5d1dc;
  border-color: var(--border-strong);
  scroll-margin-top: 76px;
}

.service-card,
.arch-card,
.logo-card,
.project-card,
.copy-card,
.brief-box,
.contact-box,
.review-card,
.review-form-card,
.legal-hero-card,
.legal-doc-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.copy-card.after {
  background: #eef6f4;
  border-color: var(--emerald-border);
}

.hero-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-card-body {
  background: #eef3f8;
  border-top: 1px solid var(--border);
}

.contact-box,
.brief-box,
.review-form-card {
  background: var(--surface);
}

.reviews-summary {
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 14px;
  color: var(--ink-sec);
}

.section-sub {
  color: var(--ink-sec);
}

.site-map-arch {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-map-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 4px;
}

.site-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-map-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.site-map-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Accessible Collapsible Curtains */
.curtain {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--info-bg);
  overflow: hidden;
  margin-top: 4px;
}

.curtain-hero {
  margin: 0 0 14px;
  max-width: 600px;
}

.curtain-review {
  margin-top: 14px;
}

.curtain-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: #e1eaf2;
  user-select: none;
  transition: background 0.15s;
}

.curtain-summary::-webkit-details-marker {
  display: none;
}

.curtain-summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--emerald-dark);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.curtain[open] > .curtain-summary {
  background: #d7e2ec;
  border-bottom: 1px solid var(--border);
}

.curtain[open] > .curtain-summary::after {
  transform: rotate(180deg);
}

.curtain-body {
  padding: 10px 12px;
  background: var(--info-bg);
  color: var(--ink-sec);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curtain-body .hero-lead {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-sec);
}

.curtain-body > p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.46;
  color: var(--ink-sec);
}

.curtain-review .review-form-card {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
}

.logo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logo-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.logo-card-actions {
  margin-top: auto;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .section {
    padding: 32px 0;
  }
  .section-head {
    margin-bottom: 14px;
    gap: 8px;
  }
  .section-sub {
    font-size: 13px;
    line-height: 1.42;
  }
  .arch-strip-box {
    padding: 12px;
    border-radius: 16px;
  }
  .arch-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .arch-card {
    padding: 11px 10px;
    gap: 6px;
  }
  .arch-card b {
    font-size: 9.5px;
  }
  .arch-card strong {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .site-map-arch {
    padding: 9px;
    gap: 6px;
    margin-top: 10px;
  }
  .site-map-lbl {
    width: 100%;
    font-size: 11.5px;
  }
  .site-map-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .site-map-pill {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 42px;
    white-space: nowrap;
  }
  .hero-cta {
    margin-bottom: 12px;
  }
  .hero-facts {
    gap: 8px;
  }
  .hero-fact {
    padding: 10px 12px;
  }
  .curtain-summary {
    padding: 8px 10px;
    font-size: 11.5px;
    min-height: 42px;
  }
  .curtain-body {
    padding: 9px 10px;
  }
  .anim2d-svg-overlay {
    inset: 2px 4px 20px;
    width: calc(100% - 8px);
    height: calc(100% - 22px);
  }
  .anim2d-img-wrap {
    width: 55%;
    height: 55%;
  }
}

/* ==================== CONSENT CHECKBOX, COOKIE BAR & LEGAL PAGE ==================== */
.brief-consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--mist);
  transition: border-color 0.15s, background 0.15s;
}

.brief-consent-wrap.is-invalid {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.brief-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-sec);
}

.brief-consent-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--emerald);
  cursor: pointer;
}

.brief-consent-label a {
  color: var(--emerald-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brief-consent-label a:hover {
  color: var(--ink);
}

.brief-consent-err {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rose);
}

.brief-consent-err[hidden] {
  display: none !important;
}

.site-footer {
  padding-bottom: 84px;
}

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 980px;
  z-index: 70;
  background: rgba(15, 20, 23, 0.96);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 20, 23, 0.28);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice-copy {
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
  min-width: 0;
}

.cookie-notice-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 6px;
}

.cookie-notice-links a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice-links a:hover {
  color: #ffffff;
}

.cookie-accept-btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-notice {
    width: calc(100% - 16px);
    bottom: 8px;
    padding: 8px 11px;
    border-radius: 12px;
    gap: 8px;
  }
  .cookie-notice-copy { font-size: 11px; line-height: 1.3; }
  .cookie-notice-links { gap: 4px 8px; margin-left: 0; margin-top: 2px; }
  .cookie-accept-btn { padding: 7px 11px; font-size: 12px; min-height: 44px; }
}

.legal-page {
  padding: 36px 0 64px;
  background: var(--mist);
}

.legal-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.legal-hero-card h1 {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-lead {
  margin-top: 12px;
  color: var(--ink-sec);
  font-size: 15px;
  max-width: 860px;
}

.legal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.legal-meta-item {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.legal-meta-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-meta-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-sec);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.legal-pill:hover,
.legal-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.legal-docs-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legal-doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 86px;
}

.legal-doc-head h2 {
  margin-top: 10px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
}

.legal-summary-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
}

.legal-summary-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}

.legal-summary-list,
.legal-bullet-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-sec);
}

.legal-subblock {
  margin-top: 20px;
}

.legal-subblock h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-subblock p {
  font-size: 14.5px;
  color: var(--ink-sec);
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .legal-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    bottom: 10px;
    width: calc(100% - 20px);
    border-radius: 14px;
  }
  .cookie-notice-copy {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .cookie-notice-links {
    margin-left: 0;
    margin-top: 4px;
    gap: 8px;
  }
  .cookie-accept-btn {
    width: auto;
    padding: 8px 14px;
    font-size: 12px;
  }
  .legal-hero-card,
  .legal-doc-card {
    padding: 18px 16px;
  }
  .legal-meta-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding-bottom: 92px;
  }
}

.header-actions .legal-back-btn {
  display: inline-flex;
}

@media (max-width: 480px) {
  .legal-back-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
  .brand-text small {
    display: none;
  }
}

/* ==================== REVIEWS SECTION & ADMIN PANEL ==================== */
.reviews-summary-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-dark);
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 20px;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
}

.review-card,
.review-empty-card,
.review-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.review-empty-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--ink-sec);
  font-size: 14.5px;
}

.review-empty-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.review-empty-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.28;
  color: var(--ink);
}

.review-empty-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-sec);
}

.review-empty-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.review-empty-steps li {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--border);
  color: var(--ink);
}

.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.review-author-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-author {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.review-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.review-stars {
  color: var(--amber);
  font-size: 15px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.review-body {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-sec);
  overflow-wrap: anywhere;
}

.review-date {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

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

.review-form-card h3 {
  font-size: 18px;
  font-weight: 800;
}

.rev-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--mist);
}

.rev-stars-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-sec);
}

.rev-stars-group {
  display: inline-flex;
  gap: 4px;
}

.rev-star-btn {
  border: 0;
  background: transparent;
  color: var(--border-strong);
  font-size: 22px;
  line-height: 1;
  padding: 4px 5px;
  cursor: pointer;
  transition: color 0.12s, transform 0.12s;
}

.rev-star-btn.active {
  color: var(--amber);
}

.rev-star-btn:hover {
  transform: scale(1.1);
}

.rev-textarea {
  resize: vertical;
  min-height: 104px;
}

.rev-consent-label {
  font-size: 12.5px;
}

.rev-status,
.admin-status {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.rev-status[hidden],
.admin-status[hidden],
.admin-auth-card[hidden],
.admin-panel[hidden] {
  display: none !important;
}

.rev-status.is-err,
.admin-status.is-err {
  background: var(--rose-soft);
  color: var(--rose);
  border: 1px solid rgba(190, 18, 60, 0.28);
}

.rev-status.is-ok,
.admin-status.is-ok {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-border);
}

.admin-page {
  padding: 36px 0 72px;
  min-height: calc(100vh - 72px);
  background: var(--mist);
}

.admin-auth-card {
  max-width: 480px;
  margin: 24px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-auth-card h1 {
  margin-top: 10px;
  font-size: 24px;
}

.admin-lead,
.admin-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-sec);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-sec);
}

.admin-step-row {
  display: flex;
  justify-content: flex-start;
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-top-bar h2 {
  margin-top: 8px;
  font-size: 26px;
}

.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.admin-stat-card strong {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-review-card,
.admin-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-role-tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--mist);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.admin-stars-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--amber);
}

.admin-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-approved {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.badge-rejected {
  background: var(--rose-soft);
  color: var(--rose);
}

.admin-review-text {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-sec);
  overflow-wrap: anywhere;
}

.admin-review-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-review-date {
  font-size: 12.5px;
  color: var(--muted);
}

.admin-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-del-btn {
  border-color: rgba(190, 18, 60, 0.35);
  color: var(--rose);
}

@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-auth-card {
    padding: 20px 16px;
  }
}

[hidden] {
  display: none !important;
}
