/* ============================================================
   SAQ Digital Solutions — Стиль / Built sharp.
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:   #0C0E15;
  --bg2:  #131620;
  --bg3:  #1A1E2C;
  --bg4:  #222739;
  --bg5:  #2E3449;

  /* Nav / Mobile Menu */
  --nav-bg: rgba(12, 14, 21, 0.82);
  --nav-border: rgba(46, 52, 73, 0.7);
  --mobile-bg: rgba(12, 14, 21, 0.97);

  /* Gold (Сак) */
  --gold:  #C4862A;
  --gold2: #E0A840;
  --cream: #D4C090;

  /* Blue / Violet */
  --blue:   #4B7AC4;
  --blue2:  #6B94D8;
  --violet: #8B5FC4;

  /* Typography */
  --text:  #EDE0C4;
  --text2: #A08860;
  --text3: #5A4A30;

  /* System */
  --danger:  #C84040;
  --success: #48B482;

  /* Gradients (always 135deg) */
  --grad-gold:    linear-gradient(135deg, #C4862A, #E0A840);
  --grad-night:   linear-gradient(135deg, #1A2A5E, #4B7AC4);
  --grad-warrior: linear-gradient(135deg, #8B1A1A, #C4862A);
  --grad-horizon: linear-gradient(135deg, #4B7AC4, #8B5FC4);

  --maxw: 1280px;
  --pad-section: 120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --bg-rgb: 12, 14, 21;
}

body.light-theme {
  --bg:   #F4EDD8;
  --bg2:  #EBE1C4;
  --bg3:  #E0D3B0;
  --bg4:  #CFBE98;
  --bg5:  #B8A878;
  --gold:  #8A5810;
  --gold2: #AA7020;
  --cream: #B8A878;
  --blue:  #2E5298;
  --blue2: #4B7AC4;
  --text:  #1A140A;
  --text2: #7A5C28;
  --text3: #A08050;
  --bg-rgb: 244, 237, 216;

  /* Nav / Mobile Menu */
  --nav-bg: rgba(244, 237, 216, 0.82);
  --nav-border: rgba(184, 168, 120, 0.4);
  --mobile-bg: rgba(244, 237, 216, 0.97);

  /* Gradients for light theme */
  --grad-gold:    linear-gradient(135deg, #8A5810, #AA7020);
  --grad-night:   linear-gradient(135deg, #2E5298, #4B7AC4);
  --grad-warrior: linear-gradient(135deg, #8B1A1A, #8A5810);
  --grad-horizon: linear-gradient(135deg, #2E5298, #8B5FC4);
}

/* Theme Toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--bg5);
  color: var(--text2);
  background: transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 16px;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(196,134,42,0.06);
  transform: translateY(-2px);
}
body.light-theme .theme-toggle:hover {
  background: rgba(138,88,16,0.06);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
  position: absolute;
}
.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}
body.light-theme .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
body.light-theme .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (max-width: 980px) {
  .theme-toggle {
    margin-right: 12px;
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Firefox Scrollbar Customization */
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 134, 42, 0.3) transparent;
}

/* Custom Scrollbar for Chrome, Safari, Edge, Opera */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(196, 134, 42, 0.3);
  border-radius: 99px;
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold2);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

body.loading { overflow: hidden; height: 100vh; }

::selection { background: rgba(196,134,42,0.3); color: var(--text); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Grain overlay across the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography scale ---------- */
.h-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }

/* Prevent text selection on navigation, cards, and headings */
header.nav,
.mobile-menu,
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-h1,
.pname,
.tier,
.h-card,
.step-card {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.section-title {
  font-size: clamp(1.8rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.section-sub {
  color: var(--text2);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 52ch;
  margin-top: 1.2rem;
}
.mono { font-family: var(--mono); }
.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { position: relative; padding: var(--pad-section) 0; }

/* Eyebrow + heading block */
.head-block { margin-bottom: 64px; }
.head-block .h-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.head-block .h-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}

/* Custom cursor removed — using the native pointer. */
.cursor-dot, .cursor-ring { display: none !important; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 10001;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
}
#loader .mark { width: 86px; height: 86px; }
#loader .mark path, #loader .mark line { stroke: var(--gold); stroke-width: 2; fill: none; }
#loader .lbl {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--text2); opacity: 0;
}

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 26px 0;
}
header.nav.solid {
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark {
  height: 54px;
  width: auto;
  margin-right: 12px;
  align-self: center;
  transition: transform 0.4s var(--ease);
  object-fit: contain;
}
.brand .logo-mark path,
.brand .logo-mark line {
  stroke: var(--gold);
  transition: stroke 0.4s var(--ease);
}
.brand .logo-light { display: none; }
body.light-theme .brand .logo-dark { display: none; }
body.light-theme .brand .logo-light { display: block; }
.brand:hover .logo-mark {
  transform: translateX(4px);
}
.brand { white-space: nowrap; }
.brand .saq { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--gold); }
.brand .ds { color: var(--text2); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.02em; white-space: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.92rem; color: var(--text2); letter-spacing: 0.01em; position: relative;
  transition: color 0.25s var(--ease); padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn-outline {
  border: 1px solid var(--gold); color: var(--gold);
  padding: 11px 22px; border-radius: 10px; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.01em; position: relative; overflow: hidden; white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.btn-outline span { position: relative; z-index: 1; }
.btn-outline::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-gold);
  transform: translateY(101%); transition: transform 0.4s var(--ease);
}
.btn-outline:hover { color: var(--bg); }
.btn-outline:hover::before { transform: translateY(0); }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 850;
  background: var(--mobile-bg); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 1.8rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.mobile-menu a:nth-child(n) { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 120px;
}
#hero .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/hero-archer.png") center right / cover no-repeat;
  opacity: 0.42;
}
body.light-theme #hero .hero-bg {
  background-image: url("../assets/saq_digital_hero_light_01.png");
  opacity: 0.28;
}
#hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(var(--bg-rgb), 0.65) 45%, rgba(var(--bg-rgb), 0.2) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 35%);
}
#particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#hero .hero-inner { position: relative; z-index: 3; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(196,134,42,0.13); border: 1px solid rgba(196,134,42,0.32);
  color: var(--gold); border-radius: 999px; padding: 7px 16px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196,134,42,0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(196,134,42,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(196,134,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,134,42,0); }
}

.hero-h1 {
  font-size: clamp(2.2rem, 9.4vw, 8rem);
  line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 26px;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .l1 { font-weight: 900; color: var(--text); }
.hero-h1 .l2 { font-weight: 300; font-style: italic; color: var(--text2); }
.hero-h1 .l3 { font-weight: 900; }
.hero-h1 .char { display: inline-block; will-change: transform; }
/* gradient must live on each split char — clip-to-text breaks once text is moved into child spans */
.hero-h1 .gold-text .char {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  max-width: 56ch; color: var(--text2); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55; margin-bottom: 34px;
}
.hero-rule { height: 1px; background: var(--cream); opacity: 0.35; width: 0; margin-bottom: 30px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-gold {
  background: var(--grad-gold); color: var(--bg); font-weight: 600;
  padding: 15px 30px; border-radius: 12px; font-size: 1rem; letter-spacing: 0.01em;
  position: relative; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(196,134,42,0.35); }
.btn-gold .arrow { display: inline-block; margin-left: 8px; transition: transform 0.3s var(--ease); }
.btn-gold:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  border: 1px solid var(--bg5); color: var(--text); padding: 15px 28px;
  border-radius: 12px; font-size: 1rem; font-weight: 500;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(196,134,42,0.06);
  transform: translateY(-2px);
}

.scroll-ind {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text3);
}
.scroll-ind .arrow-down {
  width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent);
  position: relative; overflow: hidden;
}
.scroll-ind .arrow-down::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 12px;
  background: var(--gold); animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{transform:translateY(-14px);opacity:0;} 30%{opacity:1;} 100%{transform:translateY(36px);opacity:0;} }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
#philosophy { text-align: center; background: var(--bg); }
#philosophy::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(196,134,42,0.06), transparent 70%);
}
#philosophy .wrap { position: relative; z-index: 1; }
.quote {
  font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.25;
  letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto 18px; color: var(--text);
}
.quote .hl { font-weight: 700; }
.quote-cite { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 90px; background: var(--bg5); border: 1px solid var(--bg5); border-radius: 16px; overflow: hidden; }
.value {
  background: var(--bg2);
  padding: 44px 34px;
  text-align: left;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid transparent;
}
.value:hover {
  background: var(--bg3);
  transform: translateY(-5px);
  border-color: rgba(196,134,42,0.25);
  box-shadow: 0 12px 30px rgba(196,134,42,0.08);
}
.value .ico { width: 34px; height: 34px; margin-bottom: 22px; }
.value .ico path, .value .ico circle, .value .ico line { stroke: var(--gold); stroke-width: 1.5; fill: none; }
.value h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.value p { color: var(--text2); font-size: 0.98rem; line-height: 1.55; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 90px; }
.stat { text-align: center; }
.stat .num { font-family: var(--mono); font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 600; color: var(--gold); line-height: 1; letter-spacing: -0.03em; }
.stat .num .suf { color: var(--cream); }
.stat .lbl { color: var(--text2); font-size: 0.92rem; margin-top: 12px; letter-spacing: 0.02em; }

/* ============================================================
   SERVICES (complexity tiers)
   ============================================================ */
#services { background: var(--bg2); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  background: var(--bg); border: 1px solid var(--bg5); border-radius: 16px;
  padding: 40px 34px 36px 44px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.tier:hover { transform: translateY(-8px); border-color: rgba(196,134,42,0.5); box-shadow: 0 0 40px rgba(196,134,42,0.16); }
.tier.featured { border-color: rgba(196,134,42,0.45); }
.tier .cbar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.tier .cbar i { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; }
.tier.simple .cbar i { background: var(--grad-gold); }
.tier.medium .cbar i { background: linear-gradient(0deg, var(--gold), var(--blue)); }
.tier.enterprise .cbar i { background: linear-gradient(0deg, var(--blue), var(--violet)); }

.tier-badge {
  align-self: flex-start; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 8px; margin-bottom: 28px;
}
.badge-gold { background: rgba(196,134,42,0.15); color: var(--gold); border: 1px solid rgba(196,134,42,0.3); }
.badge-blue { background: rgba(75,122,196,0.15); color: var(--blue2); border: 1px solid rgba(75,122,196,0.3); }
.featured-flag {
  position: absolute; top: 22px; right: -1px; background: var(--grad-gold); color: var(--bg);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding: 5px 14px 5px 12px; border-radius: 8px 0 0 8px;
}
.tier h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.tier .tier-kind { color: var(--text2); font-size: 0.9rem; margin-bottom: 24px; }
.tier .price { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.tier .price .from { font-size: 0.85rem; color: var(--text3); font-weight: 400; display: block; margin-bottom: 2px; letter-spacing: 0.04em; }
.tier .timeline { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-size: 0.88rem; margin: 16px 0 26px; font-family: var(--mono); }
.tier .timeline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 32px; flex: 1; }
.tier ul li { display: flex; gap: 11px; color: var(--text2); font-size: 0.95rem; align-items: baseline; }
.tier ul li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--gold); transform: translateY(-4px); }
.tier .tier-cta {
  border: 1px solid var(--bg5); border-radius: 10px; padding: 13px; text-align: center;
  font-weight: 500; font-size: 0.95rem; transition: all 0.3s var(--ease);
}
.tier .tier-cta:hover { border-color: var(--gold); color: var(--gold); }
.tier.featured .tier-cta { background: var(--grad-gold); color: var(--bg); border-color: transparent; }
.tier.featured .tier-cta:hover { color: var(--bg); box-shadow: 0 8px 24px rgba(196,134,42,0.3); }

/* ============================================================
   PORTFOLIO (card grid — page scrolls normally)
   ============================================================ */
#portfolio { padding-bottom: var(--pad-section); }
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.h-card {
  background: var(--bg2); border: 1px solid var(--bg5); border-radius: 22px; overflow: hidden;
  position: relative; backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.h-card:hover { transform: translateY(-6px); border-color: rgba(196,134,42,0.45); box-shadow: 0 0 40px rgba(196,134,42,0.14); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
}
.h-card .shot {
  height: 360px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.h-card .shot .ph-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: transform 0.8s var(--ease);
}
.h-card:hover .shot .ph-grid {
  transform: scale(1.06);
}
.h-card .shot .kind {
  position: relative; z-index: 2; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(237,224,196,0.6);
  border: 1px solid rgba(237,224,196,0.25); padding: 6px 14px; border-radius: 8px;
}
.h-card .shot .ph-grid {
  background-image:
    linear-gradient(rgba(46,52,73,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,52,73,0.5) 1px, transparent 1px);
  background-size: 34px 34px;
}
.h-card .shot .ph-grid[data-grad="night"]   { background-color: #16213f; box-shadow: inset 0 0 200px rgba(75,122,196,0.4); }
.h-card .shot .ph-grid[data-grad="gold"]     { background-color: #2a1d10; box-shadow: inset 0 0 200px rgba(196,134,42,0.4); }
.h-card .shot .ph-grid[data-grad="horizon"]  { background-color: #20203f; box-shadow: inset 0 0 200px rgba(139,95,196,0.4); }
.h-card .shot .ph-grid[data-grad="image"] {
  background-image: url("../assets/build-network.jpg");
  background-size: cover; background-position: center;
}
.h-card .shot .ovl {
  position: absolute; inset: 0; z-index: 3; background: rgba(var(--bg-rgb), 0.72);
  transition: background 0.4s var(--ease);
}
.h-card:hover .shot .ovl { background: rgba(var(--bg-rgb), 0.28); }

/* --- Rules for cards with real images --- */
.h-card.has-image .shot .ph-grid {
  opacity: 1;
}
.h-card.has-image .shot .ovl {
  background: rgba(var(--bg-rgb), 0.15);
}
.h-card.has-image:hover .shot .ovl {
  background: rgba(var(--bg-rgb), 0);
}
.h-card.has-image .shot .kind {
  background: rgba(12, 14, 21, 0.55);
  backdrop-filter: blur(4px);
  color: var(--text);
}
.h-card .meta { padding: 26px 28px; position: relative; }
.h-card .meta .pname { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; transform: translateY(8px); opacity: 0.85; transition: all 0.4s var(--ease); }
.h-card:hover .meta .pname { transform: translateY(0); opacity: 1; color: var(--gold); }
.h-card .meta .pdesc { color: var(--text2); font-size: 0.92rem; margin-top: 6px; }
.h-card .meta .tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.h-card .meta .tags span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--text3); border: 1px solid var(--bg5); padding: 4px 10px; border-radius: 6px; }
.h-hint { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text3); display: inline-flex; align-items: center; gap: 12px; }

/* ============================================================
   PROCESS
   ============================================================ */
#process { background: var(--bg2); }
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline .spine { position: absolute; left: 50%; top: 0; width: 1px; transform: translateX(-50%); background: var(--bg5); height: 100%; }
.timeline .spine i { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--gold), var(--gold2)); }
.step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.step .step-card {
  background: var(--bg);
  border: 1px solid var(--bg5);
  border-radius: 16px;
  padding: 30px 32px;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.step .step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196,134,42,0.3);
  box-shadow: 0 10px 35px rgba(196,134,42,0.08);
}
.step .step-num { font-family: var(--mono); font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; color: var(--gold); line-height: 0.9; letter-spacing: -0.04em; opacity: 0.9; }
.step h3 { font-size: 1.35rem; font-weight: 700; margin: 6px 0 10px; letter-spacing: -0.02em; }
.step p { color: var(--text2); font-size: 0.96rem; line-height: 1.55; }
.step:nth-child(odd) .step-card { grid-column: 1; }
.step:nth-child(odd) .spacer { grid-column: 2; }
.step:nth-child(even) .step-card { grid-column: 2; }
.step:nth-child(even) .spacer { grid-column: 1; }
.step .node { position: absolute; left: 50%; top: 34px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--gold); transform: translateX(-50%); z-index: 2; box-shadow: 0 0 0 5px var(--bg2); }

/* ============================================================
   PRICING
   ============================================================ */
#pricing { background: var(--bg); }
.price-note { font-family: var(--mono); font-size: 0.82rem; color: var(--text2); margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; }
.price-note::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.ptable { margin-top: 56px; border: 1px solid var(--bg5); border-radius: 18px; overflow: hidden; }
.ptable .prow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.ptable .prow + .prow { border-top: 1px solid var(--bg5); }
.ptable .pcell { padding: 22px 24px; }
.ptable .phead { background: var(--bg2); }
.ptable .phead .pcell { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text2); }
.ptable .phead .pcell.featured-col { color: var(--gold); position: relative; }
.ptable .pcell.featured-col { background: rgba(196,134,42,0.05); }
.ptable .prow .pcell:first-child { color: var(--text); font-weight: 500; }
.ptable .pcell { color: var(--text2); font-size: 0.96rem; border-left: 1px solid var(--bg5); }
.ptable .pcell:first-child { border-left: none; }
.ptable .check { color: var(--success); }
.ptable .dash { color: var(--text3); }
.ptable .pfoot .pcell { font-family: var(--mono); }
.ptable .pfoot .price-big { color: var(--text); font-size: 1.1rem; font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg2); overflow: hidden; }
#contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background: radial-gradient(ellipse 70% 90% at 85% 50%, rgba(139,26,26,0.18), transparent 60%),
              radial-gradient(ellipse 60% 70% at 15% 100%, rgba(196,134,42,0.12), transparent 65%);
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact-h {
  font-size: clamp(2rem, 9vw, 7.5rem); font-weight: 900; line-height: 0.96; letter-spacing: -0.05em;
}
.contact-h .l { display: block; }
.contact-h .l3 { color: var(--gold); }
.contact-lead { color: var(--text2); font-size: 1.1rem; margin-top: 28px; max-width: 38ch; }
.contact-direct { margin-top: 30px; font-family: var(--mono); font-size: 0.9rem; color: var(--text2); }
.contact-direct a { color: var(--blue2); border-bottom: 1px solid rgba(107,148,216,0.4); padding-bottom: 1px; }
.contact-direct a:hover { color: var(--gold); border-color: var(--gold); }

form.lead-form { display: flex; flex-direction: column; gap: 26px; }
.field { position: relative; }
.field label { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text2); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg3); border: none; border-bottom: 1px solid var(--bg5);
  color: var(--text); font-family: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 8px 8px 0 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold); box-shadow: 0 6px 22px -12px rgba(196,134,42,0.6);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--danger); }
.field .err { color: var(--danger); font-size: 0.78rem; margin-top: 6px; font-family: var(--mono); display: none; }
.field.invalid .err { display: block; }
.btn-submit {
  background: var(--grad-warrior); color: #EDE0C4; font-weight: 600; font-size: 1.05rem;
  padding: 17px; border-radius: 12px; letter-spacing: 0.01em; position: relative; overflow: hidden;
  background-size: 200% 100%; background-position: 0% 0%;
  transition: background-position 0.5s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-submit:hover { background-position: 100% 0%; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139,26,26,0.35); }
.btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }

/* Honeypot — спрятано от людей, ловит ботов. Не display:none (некоторые боты пропускают скрытые поля). */
.hp-field {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.form-error {
  color: var(--danger); font-family: var(--mono); font-size: 0.82rem; line-height: 1.5;
  margin-top: -6px; min-height: 0;
}
.form-error:empty { display: none; }

.form-success {
  display: none; text-align: center; padding: 40px; border: 1px solid rgba(72,180,130,0.3);
  border-radius: 16px; background: rgba(72,180,130,0.07);
}
.form-success.show { display: block; }
.form-success .ok-ico { width: 46px; height: 46px; margin: 0 auto 18px; }
.form-success .ok-ico circle, .form-success .ok-ico path { stroke: var(--success); stroke-width: 2; fill: none; }
.form-success h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { color: var(--text2); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-foot { background: var(--bg); padding: 0; }
footer .foot-rule { height: 1px; width: 100%; background: var(--grad-gold); opacity: 0.55; }
footer .foot-inner { padding: 70px 0 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
footer .foot-brand .brand { margin-bottom: 18px; }
footer .foot-tag { font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
footer .foot-col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text3); margin-bottom: 18px; }
footer .foot-col a { display: block; color: var(--text2); font-size: 0.95rem; margin-bottom: 12px; transition: color 0.25s var(--ease); }
footer .foot-col a:hover { color: var(--gold); }
footer .foot-legal { padding: 24px 0 40px; border-top: 1px solid var(--bg5); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .foot-legal .legal-txt { color: var(--text2); font-size: 0.84rem; font-family: var(--mono); letter-spacing: 0.02em; }
footer .foot-legal .lang { font-family: var(--mono); font-size: 0.8rem; color: var(--text3); }

/* ============================================================
   REVEAL HELPERS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --pad-section: 86px; }
  .nav-links, .nav .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .values { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .step { grid-template-columns: 1fr; gap: 0; }
  .timeline .spine { left: 18px; }
  .step .step-card { grid-column: 1 !important; margin-left: 46px; }
  .step .spacer { display: none; }
  .step .node { left: 18px; }
  footer .foot-inner { grid-template-columns: 1fr 1fr; }
  .ptable { overflow-x: auto; }
  .ptable .prow { min-width: 640px; }
}
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .stats { grid-template-columns: 1fr; }
  footer .foot-inner { grid-template-columns: 1fr; }
  .h-card { width: 100%; }
  .h-card .shot { height: 220px; }
  #hero { padding-top: 100px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
/* Theme transition animation */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, fill 0.5s ease, stroke 0.5s ease, box-shadow 0.5s ease !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-controls {
  display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px;
}
.pagination-btn {
  background: var(--bg2); border: 1px solid var(--bg5); color: var(--text2);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: var(--mono);
  font-size: 0.85rem; transition: all 0.3s var(--ease);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--gold); color: var(--gold); background: rgba(196,134,42,0.06);
}
.pagination-btn.active {
  background: var(--gold); color: var(--bg); border-color: var(--gold);
}
.pagination-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}
