: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;
}

.hero-btn-3d {
  background: linear-gradient(135deg, #0f172a 0%, #113a35 100%);
  border-color: rgba(16, 185, 129, 0.55);
  color: #ecfdf5;
}

.hero-btn-3d:hover,
.hero-btn-3d:focus-visible {
  background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
}

.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,
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card-34-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0b1016;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.product-card-34-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.product-card-34:hover .product-card-34-img {
  transform: scale(1.025);
}

.product-card-34-body h4 {
  min-height: 2.5em;
}

.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-card {
  background: radial-gradient(circle at 50% 42%, #17202b 0%, #0b1016 100%);
}

#canvas-3d-onlinefoto {
  background: radial-gradient(circle at 50% 42%, #12243e 0%, #070e19 100%);
}

#canvas-3d-kaldex {
  background: radial-gradient(circle at 50% 42%, #24211c 0%, #0b0e14 100%);
}

#canvas-3d-food {
  background: radial-gradient(circle at 50% 42%, #0e3826 0%, #05150e 100%);
}

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

#studio3dCanvas {
  background: radial-gradient(circle at 50% 44%, #13232f 0%, #070b11 100%);
}

/* ==================== 3-TAB LOGOS AGENCY SHOWCASE & CASE MODAL ==================== */
.logos-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.logos-tablist {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 16px;
  background: #dce5ef;
  border: 1px solid var(--border-strong);
  max-width: 100%;
}

.logo-tab-btn {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-sec);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.logo-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
}

.logo-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.logo-tab-count {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  color: var(--ink-sec);
}

.logo-tab-btn.active .logo-tab-count {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.logo-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.logo-filter-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-sec);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.logo-filter-btn.active {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}

.logo-case-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.logo-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.logo-case-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 46px 18px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0b1016;
}

.logo-case-stage.mode-dark {
  background: radial-gradient(circle at 50% 48%, #17212e 0%, #0b1016 100%);
}

.logo-case-stage.mode-light {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.logo-case-stage.mode-grid.grid-dark {
  background-color: #0b121c;
  background-image:
    linear-gradient(to right, rgba(52, 211, 153, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.logo-case-stage.mode-grid.grid-light {
  background-color: #f4f7fa;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.065) 1px, transparent 1px);
  background-size: 20px 20px;
}

.logo-case-stage.mode-3d {
  padding: 0;
  background: #0b1016;
}

.blueprint-grid-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.grid-dark .bp-axis { stroke: rgba(52, 211, 153, 0.34); stroke-width: 1; stroke-dasharray: 4 4; }
.grid-dark .bp-diag { stroke: rgba(56, 189, 248, 0.24); stroke-width: 0.9; stroke-dasharray: 3 4; }
.grid-dark .bp-frame { stroke: rgba(148, 163, 184, 0.32); stroke-width: 1; }
.grid-dark .bp-tick { stroke: #34d399; stroke-width: 1.5; }

.grid-light .bp-axis { stroke: rgba(13, 148, 136, 0.36); stroke-width: 1; stroke-dasharray: 4 4; }
.grid-light .bp-diag { stroke: rgba(15, 23, 42, 0.16); stroke-width: 0.9; stroke-dasharray: 3 4; }
.grid-light .bp-frame { stroke: rgba(15, 23, 42, 0.22); stroke-width: 1; }
.grid-light .bp-tick { stroke: #0d9488; stroke-width: 1.5; }

.logo-case-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.logo-case-img.is-wide {
  width: 90%;
  height: 68%;
}

.logo-case-img.is-3d {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-case-img.is-3d.is-wide {
  object-fit: contain;
  padding: 10px;
  background: #0b1016;
}

.logo-case-modes {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(11, 16, 22, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.logo-mode-btn {
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 9px;
  min-height: 26px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease;
}

.logo-mode-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.logo-mode-btn.active {
  background: #10b981;
  color: #052e27;
}

.logo-case-foot {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
}

.logo-case-title-wrap {
  min-width: 0;
}

.logo-case-title-wrap h4 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-case-title-wrap p {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-case-open-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--mist);
  color: var(--emerald-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.logo-case-open-btn:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: #ffffff;
}

.logo-compare-section {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-compare-head {
  margin-bottom: 16px;
}

.logo-compare-head h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.logo-compare-head p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-sec);
}

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

.logo-compare-col {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--mist);
}

.logo-compare-col.is-pro {
  background: linear-gradient(180deg, #effcf9 0%, #e4f7f3 100%);
  border-color: rgba(13, 148, 136, 0.45);
}

.logo-compare-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink-sec);
  margin-bottom: 8px;
}

.logo-compare-col.is-pro .logo-compare-badge {
  background: var(--emerald-dark);
  color: #ffffff;
}

.logo-compare-col h4 {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}

.logo-compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-sec);
}

.logo-compare-col li::before {
  content: '• ';
  font-weight: 900;
  color: var(--muted);
}

.logo-compare-col.is-pro li::before {
  content: '✓ ';
  color: var(--emerald-dark);
}

.subhead-compact {
  margin-bottom: 16px;
}

.logo-card-concise {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-sec);
  flex: 1;
}

.logo-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==================== CASE SHOWCASE MODAL ==================== */
body.modal-open {
  overflow: hidden;
}

.logo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(11, 16, 22, 0.72);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.logo-modal-card {
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.36);
  padding: 22px;
}

.logo-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.logo-modal-head h3 {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.logo-modal-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--mist);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.logo-modal-close:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

.logo-modal-body {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-modal-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.logo-modal-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-modal-cap {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.logo-modal-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-modal-stage.mode-grid.grid-dark {
  background-color: #0b121c;
  background-image:
    linear-gradient(to right, rgba(52, 211, 153, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.logo-modal-stage.mode-grid.grid-light {
  background-color: #f4f7fa;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

.logo-proof-split {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  aspect-ratio: 1 / 1;
}

.logo-proof-box {
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
}

.logo-proof-box.is-dark { background: #0b1016; }
.logo-proof-box.is-light { background: #f4f6f8; }

.logo-proof-box .logo-case-img {
  width: 68%;
  height: 76%;
}

.logo-proof-box .logo-case-img.is-wide {
  width: 82%;
  height: 72%;
}

.logo-modal-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-sec);
}

.logo-modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.logo-spec-cell {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--mist);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-spec-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.logo-spec-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.swatch-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}

.swatch-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.tag-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-sec);
}

.logo-modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

/* Master 12-Brand Interactive 3D Studio */
.studio3d-shell {
  margin-bottom: 24px;
}

.studio3d-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.studio3d-pill {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12.5px;
}

.studio3d-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.studio3d-viewport {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vw, 440px);
  background: radial-gradient(circle at 50% 44%, #13232f 0%, #070b11 100%);
  border-bottom: 1px solid var(--border);
}

.studio3d-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  background: rgba(9, 14, 22, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.studio3d-canvas-host {
  position: relative;
  width: 100%;
  height: 100%;
}

.studio3d-canvas-host canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.studio3d-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
}

.studio3d-modes,
.studio3d-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Studio Multi-Layer 2D Vector Motion (All 12 Brands) */
.anim2d-slot {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
}

.m2-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: block;
  overflow: hidden;
}

.m2-theme-oreshek { background: radial-gradient(circle at 50% 48%, #0e4b35 0%, #051c14 100%); }
.m2-theme-slate { background: radial-gradient(circle at 50% 46%, #19212c 0%, #080c12 100%); }
.m2-theme-emerald { background: radial-gradient(circle at 50% 46%, #0f2c27 0%, #061113 100%); }
.m2-theme-navy { background: radial-gradient(circle at 50% 46%, #112645 0%, #060d1c 100%); }
.m2-theme-golddark { background: radial-gradient(circle at 50% 46%, #13284a 0%, #071124 100%); }
.m2-theme-indigo { background: radial-gradient(circle at 50% 46%, #17274d 0%, #070c1a 100%); }
.m2-theme-coffee { background: radial-gradient(circle at 50% 46%, #153c2e 0%, #071913 100%); }

.m2-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.m2-origin-center {
  transform-box: fill-box;
  transform-origin: center center;
}

.m2-origin-00 {
  transform-origin: 0 0;
}

.m2-spin { animation: m2Spin 8s linear infinite; }
.m2-spin-slow { animation: m2Spin 18s linear infinite; }
.m2-spin-rev { animation: m2SpinRev 14s linear infinite; }

.m2-draw {
  stroke-dasharray: 1.05;
  stroke-dashoffset: 0;
  animation: m2Draw 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.m2-pulse {
  transform-box: fill-box;
  transform-origin: center center;
  animation: m2Pulse 3.6s ease-out infinite;
}

.m2-oreshek-coin { animation: m2Coin 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

.m2-pop,
.m2-lens-ring {
  transform-box: fill-box;
  transform-origin: center center;
  animation: m2Pop 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.m2-reticle { animation: m2Reticle 5.0s ease-in-out infinite; }
.m2-top-snap { animation: m2TopSnap 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2-bot-snap { animation: m2BotSnap 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2-blade { animation: m2Blade 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

.m2-flash {
  transform-box: fill-box;
  transform-origin: center center;
  animation: m2Flash 5.0s ease-out infinite;
}

.m2-glyph { animation: m2Glyph 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2-slide-l { animation: m2SlideL 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2-slide-r { animation: m2SlideR 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2-diag-tl { animation: m2DiagTL 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.m2-diag-br { animation: m2DiagBR 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

.m2-facet {
  transform-box: fill-box;
  transform-origin: center center;
  animation: m2Facet 5.0s ease-out infinite;
}

.m2-zap {
  stroke-dasharray: 1.05;
  animation: m2Zap 5.0s ease-in-out infinite;
}

.m2-gyro-needle { animation: m2Gyro 6.0s ease-in-out infinite; }

.m2-stamp {
  transform-box: fill-box;
  transform-origin: center center;
  animation: m2Stamp 5.0s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.m2-beam {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: m2Beam 5.0s ease-in-out infinite;
}

.m2-aroma { animation: m2Aroma 3.6s ease-in-out infinite; }

.m2-sheen {
  transform-box: fill-box;
  pointer-events: none;
  animation: m2Sheen 5.0s ease-in-out infinite;
}

.m2-spark {
  transform-box: fill-box;
  transform-origin: center center;
  animation: m2Spark 3.4s ease-in-out infinite;
}
.m2-sp1 { animation-delay: 0.1s; }
.m2-sp2 { animation-delay: 0.9s; }
.m2-sp3 { animation-delay: 1.7s; }
.m2-sp4 { animation-delay: 2.5s; }

.m2-st0 { animation-delay: 0.04s; }
.m2-st1 { animation-delay: 0.09s; }
.m2-st2 { animation-delay: 0.14s; }
.m2-st3 { animation-delay: 0.19s; }
.m2-st4 { animation-delay: 0.24s; }
.m2-st5 { animation-delay: 0.29s; }
.m2-st6 { animation-delay: 0.34s; }
.m2-st7 { animation-delay: 0.39s; }
.m2-st8 { animation-delay: 0.44s; }
.m2-st9 { animation-delay: 0.49s; }

@keyframes m2Spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes m2SpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes m2Draw {
  0% { stroke-dashoffset: 1.05; opacity: 0.45; }
  22%, 94% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 1.05; opacity: 0.45; }
}
@keyframes m2Pulse {
  0% { transform: scale(0.9); opacity: 0.72; }
  60% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1.1); opacity: 0; }
}
@keyframes m2Coin {
  0% { transform: scale(0.94); opacity: 0.92; }
  22%, 92% { transform: scale(1); opacity: 1; }
  54% { transform: scale(1.03); }
  100% { transform: scale(0.94); opacity: 0.92; }
}
@keyframes m2Pop {
  0% { transform: scale(0.88); opacity: 0.45; }
  22%, 94% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}
@keyframes m2Reticle {
  0% { opacity: 0.35; }
  20%, 94% { opacity: 1; }
  100% { opacity: 0.35; }
}
@keyframes m2TopSnap {
  0% { transform: translateY(-12px); opacity: 0.42; }
  22%, 94% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0.45; }
}
@keyframes m2BotSnap {
  0% { transform: translateY(12px); opacity: 0.42; }
  22%, 94% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0.45; }
}
@keyframes m2Blade {
  0%, 10% { transform: rotate(-28deg); opacity: 0.78; }
  30%, 84% { transform: rotate(0deg); opacity: 1; }
  92% { transform: rotate(14deg); opacity: 0.9; }
  100% { transform: rotate(-28deg); opacity: 0.78; }
}
@keyframes m2Flash {
  0%, 26% { transform: scale(0.76); opacity: 0; }
  34% { transform: scale(1.06); opacity: 0.92; }
  52%, 100% { transform: scale(1.26); opacity: 0; }
}
@keyframes m2Glyph {
  0%, 10% { transform: translateY(6px); opacity: 0.42; }
  26%, 94% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(5px); opacity: 0.45; }
}
@keyframes m2SlideL {
  0%, 6% { transform: translateX(-14px); opacity: 0.45; }
  26%, 94% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-10px); opacity: 0.45; }
}
@keyframes m2SlideR {
  0%, 6% { transform: translateX(14px); opacity: 0.45; }
  26%, 94% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(10px); opacity: 0.45; }
}
@keyframes m2DiagTL {
  0%, 6% { transform: translate(-12px, -12px); opacity: 0.45; }
  26%, 94% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(-10px, -10px); opacity: 0.45; }
}
@keyframes m2DiagBR {
  0%, 6% { transform: translate(12px, 12px); opacity: 0.45; }
  26%, 94% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(10px, 10px); opacity: 0.45; }
}
@keyframes m2Facet {
  0% { transform: scale(0.78); opacity: 0.45; }
  24%, 94% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.84); opacity: 0.5; }
}
@keyframes m2Zap {
  0%, 24% { stroke-dashoffset: 1.05; opacity: 0; }
  36%, 48% { stroke-dashoffset: 0; opacity: 1; }
  62%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes m2Gyro {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(18deg); }
}
@keyframes m2Stamp {
  0% { transform: scale(1.08); opacity: 0.5; }
  24%, 94% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.06); opacity: 0.5; }
}
@keyframes m2Beam {
  0%, 12% { transform: scaleY(0.15); opacity: 0.25; }
  32%, 86% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.35); opacity: 0.35; }
}
@keyframes m2Aroma {
  0%, 100% { transform: translateY(2px); opacity: 0.35; }
  50% { transform: translateY(-4px); opacity: 0.95; }
}
@keyframes m2Sheen {
  0%, 38% { transform: translateX(0); opacity: 0; }
  45% { opacity: 1; }
  68% { transform: translateX(460%); opacity: 1; }
  72%, 100% { transform: translateX(460%); opacity: 0; }
}
@keyframes m2Spark {
  0%, 100% { transform: scale(0.35) rotate(0deg); opacity: 0; }
  45% { transform: scale(1.1) rotate(22deg); opacity: 1; }
  80% { transform: scale(0.45) rotate(45deg); opacity: 0.2; }
}

.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;
}

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

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

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

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

.project-shot-wrap.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;
  }
  .m2-stage * {
    animation: none !important;
  }
  .m2-stage .m2-draw,
  .m2-stage .m2-pop,
  .m2-stage .m2-lens-ring,
  .m2-stage .m2-reticle,
  .m2-stage .m2-top-snap,
  .m2-stage .m2-bot-snap,
  .m2-stage .m2-glyph,
  .m2-stage .m2-slide-l,
  .m2-stage .m2-slide-r,
  .m2-stage .m2-diag-tl,
  .m2-stage .m2-diag-br,
  .m2-stage .m2-facet,
  .m2-stage .m2-stamp,
  .m2-stage .m2-beam,
  .m2-stage .m2-oreshek-coin {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    transform: none !important;
  }
  .brand-logo {
    animation: none;
    transform: none;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1023px) {
  .desktop-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .logo-stage-3d canvas,
  .studio3d-canvas-host 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,
  .cards-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-kits-grid { grid-template-columns: 1fr; }
}

@media (pointer: coarse) {
  .logo-stage-3d canvas,
  .studio3d-canvas-host 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: 44px;
    min-width: 44px;
    padding: 8px 12px;
    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;
  }
  .m2-stage { padding: 12px; }
  .studio3d-viewport { height: 260px; }
  .studio3d-picker { gap: 6px; }
  .studio3d-pill { padding: 5px 10px; font-size: 11.5px; min-height: 32px; }
  .studio3d-toolbar { padding: 12px; }
  .logo-card-body { padding: 14px 14px 16px; gap: 8px; }
  .logo-kind {
    font-size: 10px;
    padding: 3px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .logo-card-body h4 {
    font-size: 15px;
    line-height: 1.28;
    min-height: auto;
  }
  .logo-card-body p { font-size: 13px; line-height: 1.45; }
  .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-tablist {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
  }
  .logo-tab-btn {
    padding: 8px 8px;
    font-size: 11.5px;
    gap: 5px;
    min-height: 44px;
  }
  .logo-tab-count {
    font-size: 10px;
    padding: 2px 6px;
  }
  .logo-filters-row {
    gap: 6px;
    margin-bottom: 14px;
  }
  .logo-filter-btn {
    padding: 7px 11px;
    font-size: 12px;
    min-height: 44px;
  }

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

  .product-card-34-body {
    padding: 10px 10px 12px;
    gap: 6px;
  }
  .product-card-34-body h4 {
    font-size: 13px;
    min-height: auto;
  }
  .product-card-34-body p {
    font-size: 11.5px;
  }

  .logos-grid-3.anim2d-grid,
  .logos-grid-3.anim3d-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 400px;
    margin: 0 auto;
  }

  .logo-case-stage {
    padding: 40px 10px 10px;
  }
  .logo-case-stage.mode-3d {
    padding: 0;
  }
  .logo-case-modes {
    top: 6px;
    right: 6px;
    left: auto;
    padding: 2px;
    gap: 2px;
  }
  .logo-mode-btn {
    padding: 5px 7px;
    font-size: 9.5px;
    min-height: 24px;
    text-align: center;
  }
  .logo-case-foot {
    flex: 1;
    padding: 10px 10px 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
  }
  .logo-case-title-wrap h4 {
    font-size: 13.5px;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .logo-case-title-wrap p {
    font-size: 11.5px;
    line-height: 1.32;
    margin-top: 3px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .logo-case-open-btn {
    width: 100%;
    min-height: 44px;
    padding: 7px 10px;
    font-size: 12px;
    text-align: center;
  }
  .logo-compare-section {
    padding: 16px;
    margin-top: 18px;
  }
  .logo-compare-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .logo-modal-backdrop {
    padding: 10px;
  }
  .logo-modal-card {
    padding: 16px;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }
  .logo-modal-visuals,
  .logo-modal-specs {
    grid-template-columns: 1fr;
  }

  .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: 44px;
    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: 44px;
  }
  .curtain-body {
    padding: 9px 10px;
  }
  .m2-stage { padding: 8px; }
  .studio3d-viewport { height: 240px; }
}

/* ==================== 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;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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-site-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-site-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-site-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-sec);
}

.admin-site-chip.is-ru {
  border-color: rgba(13, 148, 136, 0.35);
}

.admin-site-chip.is-uz {
  border-color: rgba(245, 158, 11, 0.45);
}

.admin-site-tag {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.admin-site-tag.is-ru {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  border-color: rgba(13, 148, 136, 0.3);
}

.admin-site-tag.is-uz {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.35);
}

.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;
}
