:root {
  --bg: #ffffff;
  --mist: #f5f7f6;
  --mist-2: #edf2f0;
  --surface: #ffffff;
  --border: #dfe6e3;
  --border-strong: #c4d0cb;
  --ink: #0f1417;
  --ink-sec: #425059;
  --muted: #617078;
  --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;
  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(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.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-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
}

.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: #ffffff;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;
}

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

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.97) 26%,
    rgba(255, 255, 255, 0.84) 44%,
    rgba(255, 255, 255, 0.16) 64%,
    rgba(255, 255, 255, 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);
}

.crm-sub-gap { margin-top: 8px; }

.crm-empty-msg {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
}

/* ==================== 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; 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;
}

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

/* ==================== PROFESSIONAL 3-PANEL OMS / CRM PROTOTYPE ==================== */
.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.tab-btn:hover:not(.active) {
  border-color: var(--emerald-dark);
  background: #f0fdfa;
  color: #091316;
}

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

.crm-board-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.crm-flow-hint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.crm-step-card {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}

.crm-step-card.is-active {
  background: #f0fdfa;
  border-color: var(--emerald);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.crm-step-num {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--emerald-dark);
}

.crm-step-card.is-active .crm-step-num {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.crm-step-card strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.crm-step-card span:not(.crm-step-num) {
  font-size: 11.5px;
  color: var(--ink-sec);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.crm-kpis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.kpi-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-sec);
}

.kpi-chip b { color: var(--ink); font-weight: 900; }

.kpi-chip.kpi-wait {
  background: var(--amber-soft);
  border-color: rgba(217, 119, 6, 0.28);
  color: #92400e;
}

.kpi-chip.kpi-wait b { color: #78350f; }

.kpi-chip.kpi-work {
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--blue-dark);
}

.kpi-chip.kpi-work b { color: #1e3a8a; }

.kpi-chip.kpi-done {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-dark);
}

.kpi-chip.kpi-done b { color: #064e3b; }

.crm-reset-btn {
  margin-left: auto;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  -webkit-font-smoothing: subpixel-antialiased;
}

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

.crm-live-banner {
  background: #f0fdfa;
  border: 1px solid var(--emerald-border);
  border-left: 4px solid var(--emerald);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0b4f4a;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crm-live-banner:empty {
  display: none;
}

.crm-panel-hint {
  font-size: 12px;
  color: var(--ink-sec);
  line-height: 1.4;
  margin-top: -4px;
  overflow-wrap: anywhere;
}

.crm-cart-summary {
  background: #ffffff;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-dark);
  text-align: center;
}

.crm-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 2px 0;
}

.crm-prog-seg {
  height: 5px;
  border-radius: 999px;
  background: var(--mist-2);
}

.crm-prog-seg.done { background: var(--emerald); }
.crm-prog-seg.active { background: var(--amber); }

.crm-log-card.is-fresh {
  border-left-width: 4px;
  border-color: var(--emerald-border);
  background: #f8fffd;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.10);
}

.tg-bubble {
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.tg-bubble.tg-staff {
  background: var(--mist);
  border: 1px solid var(--border);
  color: var(--ink);
}

.tg-bubble.tg-client {
  background: #effcf9;
  border: 1px solid var(--emerald-border);
  color: #093d39;
}

.crm-3col {
  display: grid;
  grid-template-columns: 0.96fr 1.12fr 0.92fr;
  gap: 14px;
  align-items: stretch;
}

.crm-panel {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.crm-panel-head strong {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
}

.crm-badge-num {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.crm-field-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-sec);
  margin-bottom: 5px;
}

.crm-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

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

.crm-channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-ch-btn {
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.crm-ch-btn:hover:not(.active) {
  background: #f0fdfa;
  border-color: var(--emerald);
}

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

.crm-menu-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.crm-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.crm-menu-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.crm-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.crm-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--mist);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}

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

.crm-step-val {
  min-width: 16px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink);
}

.crm-submit-btn {
  width: 100%;
  margin-top: auto;
}

/* Middle Queue */
.crm-queue-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.crm-order-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(15, 20, 23, 0.03);
}

.crm-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-order-id {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.crm-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.crm-status-pill.st-0 { background: var(--amber-soft); color: #92400e; }
.crm-status-pill.st-1 { background: var(--blue-soft); color: var(--blue-dark); }
.crm-status-pill.st-2 { background: var(--emerald-soft); color: var(--emerald-dark); }

.crm-order-items {
  font-size: 12.5px;
  color: var(--ink-sec);
  overflow-wrap: anywhere;
}

.crm-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-meta-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.crm-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--emerald-dark);
  background: #ffffff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  -webkit-font-smoothing: subpixel-antialiased;
}

.crm-status-btn:hover {
  background: var(--emerald-dark);
  color: #ffffff;
}

/* Right Notification Feed */
.crm-notify-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-log-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--emerald-dark);
}

/* ==================== LOGOS: STUDIO 2D + INTERACTIVE 3D + HD STATIC ==================== */
.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-light {
  background: #eff2f5;
}

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

.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-3d {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 44%, #ffffff 0%, #eff8f6 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

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

#canvas-3d-mastergo {
  background: radial-gradient(circle at 50% 42%, #1e2331 0%, #0b0d12 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: 72%;
  height: 72%;
  display: grid;
  place-items: center;
}

.anim2d-img-wrap.wide-svg {
  width: 88%;
  height: 78%;
}

.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: 12px;
  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: Re:foto Signature Optical Iris & Trim Ring */
.anim2d-v1 .a2-ring-main { stroke-dasharray: 540; stroke-dashoffset: 540; animation: a2RingDraw 3.8s cubic-bezier(0.35, 0, 0.15, 1) 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 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); }
}

.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; 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: center;
  gap: 8px;
  margin-top: 6px;
}

.replay-btn {
  align-self: flex-start;
  margin-top: 4px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 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;
}

.card-live-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--emerald-border);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
  font-size: 12px;
  font-weight: 800;
  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 {
  padding: 0;
  background: #0d1218;
}

.brand-kit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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 { 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;
}

.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(--muted);
  font-size: 13px;
  background: #ffffff;
}

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

/* ==================== 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,
  .crm-3col { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-4col,
  .logos-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos-grid-3,
  .brand-kits-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .crm-flow-hint {
    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: 36px;
    min-width: 40px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .header-actions .btn { display: none; }

  .hero { min-height: auto; padding: 14px 0 32px; background: #ffffff; }
  .hero-bg { display: none; }
  .hero-head-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--emerald-border);
    box-shadow: 0 12px 30px rgba(15, 20, 23, 0.08);
    margin-bottom: 16px;
    padding: 16px 16px 205px;
    background: #eef7f4;
  }
  .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(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.80) 38%,
      rgba(255, 255, 255, 0.0) 62%
    );
  }
  .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(255, 255, 255, 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,
  .crm-order-card,
  .crm-log-card { min-width: 0; overflow-wrap: anywhere; }
  .service-card { padding: 18px; }
  .arch-strip-box { padding: 16px; }

  .tabs-row { width: 100%; }
  .tab-btn {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 10px 14px;
    text-align: center;
    white-space: normal;
  }
  .crm-board-wrap { padding: 14px; border-radius: 16px; gap: 12px; }
  .crm-flow-hint { gap: 8px; font-size: 12px; }
  .crm-reset-btn {
    margin-left: 0;
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }
  .crm-panel { padding: 13px; border-radius: 14px; min-width: 0; }
  .crm-input, .text-input { font-size: 16px; min-height: 44px; padding: 10px 12px; }
  .crm-ch-btn {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 12.5px;
    white-space: normal;
    text-align: center;
  }
  .crm-menu-row { padding: 8px 10px; gap: 10px; }
  .crm-menu-name { min-width: 0; overflow-wrap: anywhere; }
  .crm-step-btn { width: 40px; height: 40px; font-size: 17px; border-radius: 9px; }
  .crm-submit-btn { min-height: 46px; font-size: 14px; }
  .crm-order-top { min-width: 0; }
  .crm-order-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .crm-status-btn {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
    padding: 9px 14px;
    white-space: normal;
    text-align: center;
  }

  .logo-stage { aspect-ratio: 4 / 3; max-height: 280px; }
  .logo-stage.logo-stage-3d-card { aspect-ratio: 4 / 3; max-height: 260px; }
  .logo-stage-3d { aspect-ratio: 4 / 3; max-height: 290px; }
  .anim2d-img-wrap { width: 66%; height: 66%; }
  .replay-btn,
  .card-live-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
  }
  .logo-card-actions {
    width: 100%;
  }
  .logo-card-actions > * {
    flex: 1 1 auto;
  }

  .project-shot-wrap { padding: 10px; }
  .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;
  }

  .hero-facts,
  .services-grid,
  .arch-4col,
  .logos-grid-4,
  .logos-grid-2x2,
  .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; }
  .crm-panel-head { flex-wrap: wrap; }
  .contact-card-head { flex-wrap: wrap; min-width: 0; }
}

/* ==================== 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;
}

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

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

.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 {
  color: var(--ink-sec);
  font-size: 14.5px;
}

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