/* ============================================
   КИБЕРТЕКТОР — фирменный сайт
   Палитра:
   --cyber:   #00A7E0  (щит, акценты, ТЕКТОР)
   --graphite:#3E3E3E  (текст, КИБЕР)
   --shadow:  #01A6DD  (тень щита)
   --navy:    #0B1220  (фон hero)
   --dark:    #1A1F2A  (фон inverse)
   --grey:    #EAEFF5  (light text)
   --tint:    #BBF6FF  (подложки)
   ============================================ */

:root {
  --cyber:    #00A7E0;
  --cyber-2:  #01A6DD;
  --cyber-ink:#007BAB; /* тёмный брендовый: ≈4.6:1 на белом, для ТЕКСТА на светлом фоне */
  --graphite: #3E3E3E;
  --navy:     #0B1220;
  --dark:     #1A1F2A;
  --light:    #EAEFF5;
  --tint:     #BBF6FF;
  --white:    #ffffff;
  --text:     #1a1a1a;
  --muted:    #6b7280;
  --line:     #e5e7eb;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', ui-monospace, monospace;

  --radius-s: 8px;
  --radius:   16px;
  --radius-l: 24px;

  --shadow-sm: 0 2px 8px rgba(11,18,32,.06);
  --shadow:    0 8px 32px rgba(11,18,32,.08);
  --shadow-lg: 0 20px 60px rgba(11,18,32,.12);

  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2px solid var(--cyber-ink); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyber-ink);
  padding: 6px 12px;
  border: 1px solid rgba(0,167,224,.25);
  border-radius: 999px;
  background: rgba(0,167,224,.06);
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255,255,255,.7);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
}
.nav-logo .shield { width: 28px; height: 32px; }
.nav-logo b { color: var(--graphite); font-weight: 800; }
.nav-logo span { color: var(--cyber); font-weight: 800; }
.nav-links {
  display: flex; gap: 32px; align-items: center;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--graphite);
  position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cyber-ink); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--cyber);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .25s var(--ease);
}
.nav-cta:hover { background: var(--cyber); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,167,224,.35); }

.burger { display: none; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyber-ink);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0,167,224,.35);
}
.btn-primary:hover {
  background: #00688F;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,167,224,.45);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-dark {
  background: var(--graphite);
  color: var(--white);
}
.btn-dark:hover { background: #1f1f1f; transform: translateY(-2px); }

.btn .arrow {
  display: inline-block; width: 18px; height: 18px;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(0,167,224,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0,167,224,.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0d1729 100%);
  color: var(--white);
  overflow: hidden;
  display: flex; align-items: center;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(0,167,224,.1);
  border: 1px solid rgba(0,167,224,.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyber);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyber);
  box-shadow: 0 0 0 0 rgba(0,167,224,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,167,224,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(0,167,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,167,224,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 24px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyber) 0%, #5fd0f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise .8s var(--ease) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: .1s; }
.hero h1 .word:nth-child(2) { animation-delay: .2s; }
.hero h1 .word:nth-child(3) { animation-delay: .3s; }
.hero h1 .word:nth-child(4) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(234,239,245,.7);
  max-width: 520px;
  margin: 0 0 36px;
  opacity: 0;
  animation: rise .8s var(--ease) .5s forwards;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0;
  animation: rise .8s var(--ease) .7s forwards;
}

.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 540px;
  opacity: 0;
  animation: rise .8s var(--ease) .9s forwards;
}
.hero-meta .stat .num {
  font-size: 1.8rem; font-weight: 800; color: var(--white);
  font-family: var(--font-mono);
}
.hero-meta .stat .lbl {
  font-size: .85rem; color: rgba(234,239,245,.5);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Hero shield visual */
.hero-shield {
  position: relative;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) .4s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-shield svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 20px 60px rgba(0,167,224,.4));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

/* Node halos: pulsing ring around each node (in absolute 1572x1748 coords) */
.hero-shield .hero-halo {
  transform-origin: center;
  animation: nodePulse 2.6s ease-out infinite;
  opacity: 0;
}
.hero-shield .halo-1 { transform-origin: 1180px 540px; animation-delay: 0s; }
.hero-shield .halo-2 { transform-origin: 760px 990px;  animation-delay: 1.3s; }

@keyframes nodePulse {
  0%   { transform: scale(0.6); opacity: 1; }
  60%  { transform: scale(2.0); opacity: 0.2; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero-shield .ring {
  position: absolute;
  border: 1px solid rgba(0,167,224,.15);
  border-radius: 50%;
  inset: 0;
  animation: ringPulse 4s ease-in-out infinite;
}
.hero-shield .ring.r2 { inset: -40px; animation-delay: .6s; }
.hero-shield .ring.r3 { inset: -80px; animation-delay: 1.2s; }
@keyframes ringPulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50%      { opacity: .8; transform: scale(1.02); }
}

.hero-shield .orbit {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--cyber);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--cyber);
  top: 0; left: 50%; transform: translateX(-50%);
  animation: orbit 8s linear infinite;
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(40%) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(40%) rotate(-360deg); }
}

/* ============== MARQUEE ============== */
.marquee {
  background: var(--dark);
  color: var(--light);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.marquee-track span { color: rgba(234,239,245,.6); display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: '◆'; color: var(--cyber); margin-left: 60px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============== SECTION BASE ============== */
section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow { color: var(--cyber-ink); }
.section-head h2 { color: var(--graphite); }
.section-head .lead { margin: 16px auto 0; }

.bg-soft { background: linear-gradient(180deg, var(--light) 0%, #f5f8fc 100%); }
.bg-dark {
  background: var(--dark);
  color: var(--light);
  position: relative; overflow: hidden;
}
.bg-dark h2, .bg-dark h3 { color: var(--white); }

/* ============== SERVICES ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyber) 0%, var(--cyber-2) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card[open]::before { transform: scaleX(1); }
.service-card summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 36px;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary::after {
  content: '+';
  position: absolute;
  top: 0; right: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,167,224,.08);
  color: var(--cyber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 400;
  transition: all .3s var(--ease);
}
.service-card[open] summary::after {
  background: var(--cyber);
  color: var(--white);
  transform: rotate(45deg);
}
.service-card summary:hover::after {
  background: rgba(0,167,224,.18);
}
.service-card[open] summary:hover::after {
  background: var(--cyber-2);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,167,224,.1) 0%, rgba(0,167,224,.05) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--cyber);
  transition: all .3s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--cyber);
  color: var(--white);
  transform: rotate(-6deg) scale(1.05);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { color: var(--graphite); margin-bottom: 12px; }
.service-card .svc-lead { color: var(--muted); margin: 0 0 4px; font-size: .95rem; }
.service-card .svc-body { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.service-card .svc-body h4 {
  color: var(--graphite);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
}
.service-card .svc-body h4:not(:first-child) { margin-top: 24px; }
.service-card .svc-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.service-card .svc-body li {
  position: relative;
  padding: 4px 0 4px 20px;
  color: var(--graphite);
  font-size: .92rem;
  line-height: 1.5;
}
.service-card .svc-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyber);
  font-weight: 700;
  font-size: .85rem;
}
.service-card .svc-body li b { color: var(--cyber-ink); font-weight: 600; }
.service-card .svc-prices {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0,167,224,.04) 0%, rgba(0,167,224,.01) 100%);
  border-radius: var(--radius-s);
  border: 1px solid rgba(0,167,224,.12);
}
.service-card .svc-prices > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,167,224,.15);
  font-size: .88rem;
}
.service-card .svc-prices > div:last-child { border-bottom: 0; }
.service-card .svc-prices span { color: var(--graphite); }
.service-card .svc-prices b {
  color: var(--cyber-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.service-card .svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--cyber-ink);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: gap .25s var(--ease);
}
.service-card .svc-link:hover { gap: 12px; }
.service-card .more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  color: var(--cyber-ink);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .25s var(--ease);
}
.service-card:hover .more { gap: 12px; }

/* ============== WHY (фишки) ============== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  backdrop-filter: blur(8px);
}
.why-card:hover {
  background: rgba(0,167,224,.08);
  border-color: rgba(0,167,224,.3);
  transform: translateY(-4px);
}
.why-card .num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyber);
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.why-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { color: rgba(234,239,245,.65); font-size: .92rem; margin: 0; }

/* ============== PROCESS ============== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 30px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyber) 50%, transparent 100%);
  opacity: .3;
}
.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cyber);
  color: var(--cyber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: all .3s var(--ease);
}
.step:hover .step-num {
  background: var(--cyber);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(0,167,224,.15);
}
.step h3 { color: var(--graphite); font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ============== PRICING ============== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 40px 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: all .3s var(--ease);
  position: relative;
}
.price-card.featured {
  background: linear-gradient(180deg, var(--navy) 0%, var(--dark) 100%);
  color: var(--light);
  border-color: transparent;
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.price-card.featured h3, .price-card.featured .price { color: var(--white); }
.price-card.featured .price-sub, .price-card.featured li { color: rgba(234,239,245,.7); }
.price-card .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyber);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.2rem; color: var(--graphite); }
.price-card .price {
  font-size: 2.2rem; font-weight: 800; color: var(--graphite);
  font-family: var(--font-mono);
  margin: 16px 0 4px;
}
.price-card .price-sub { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-card li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  font-size: .95rem;
  color: var(--text);
}
.price-card li::before {
  content: '✓';
  color: var(--cyber);
  font-weight: 700;
  flex-shrink: 0;
}
.price-card .btn { width: 100%; justify-content: center; }
.price-card.featured .btn-primary { background: var(--cyber); color: var(--white); }
.price-card:not(.featured) .btn-dark { background: var(--graphite); color: var(--white); }

/* ============== PRICE LIST (one-off services) ============== */
.price-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}
.price-stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.price-stat:hover {
  border-color: rgba(0,167,224,.3);
  box-shadow: 0 8px 24px rgba(0,167,224,.08);
  transform: translateY(-2px);
}
.price-stat .num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyber);
  line-height: 1;
  margin-bottom: 6px;
}
.price-stat .lbl {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.price-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.price-cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s var(--ease);
}
.price-cat:hover { border-color: rgba(0,167,224,.25); }
.price-cat[open] {
  border-color: rgba(0,167,224,.3);
  box-shadow: 0 12px 32px rgba(11,18,32,.06);
}
.price-cat summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .2s;
}
.price-cat summary::-webkit-details-marker { display: none; }
.price-cat summary:hover { background: rgba(0,167,224,.03); }
.price-cat[open] summary {
  background: linear-gradient(90deg, rgba(0,167,224,.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--line);
}
.cat-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyber-ink);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,167,224,.1);
  display: flex; align-items: center; justify-content: center;
}
.cat-name {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--graphite);
}
.cat-count {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.cat-toggle {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,167,224,.08);
  color: var(--cyber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 400;
  transition: all .3s var(--ease);
}
.price-cat[open] .cat-toggle {
  background: var(--cyber);
  color: var(--white);
  transform: rotate(45deg);
}
.price-rows {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row > span {
  color: var(--graphite);
  font-size: .96rem;
  line-height: 1.4;
  flex: 1;
}
.price-row > b {
  color: var(--cyber-ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .96rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.price-notes {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 32px 36px;
  border: 1px solid var(--line);
  max-width: 900px;
  margin: 0 auto;
}
.price-notes h4 {
  color: var(--graphite);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.price-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-notes li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.price-notes li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: var(--cyber);
  font-weight: 700;
}
.price-notes a { transition: opacity .2s; }
.price-notes a:hover { opacity: .75; }

/* ============== GEOGRAPHY (franchise) ============== */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.geo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s var(--ease);
  position: relative;
}
.geo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,167,224,.3);
}
.geo-card--open {
  background: linear-gradient(135deg, rgba(0,167,224,.04) 0%, rgba(0,167,224,.01) 100%);
  border-color: rgba(0,167,224,.35);
  border-style: dashed;
}
.geo-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.geo-status.active {
  background: rgba(34,197,94,.12);
  color: #15803d;
}
.geo-status.open {
  background: rgba(0,167,224,.12);
  color: var(--cyber-ink);
}
.geo-card h3 {
  color: var(--graphite);
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.geo-meta {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cyber-ink);
  margin-bottom: 12px;
}
.geo-desc {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
}

/* ============== TESTIMONIALS ============== */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--graphite);
  margin: 0 0 32px;
  font-weight: 500;
  position: relative;
}
.testimonial blockquote::before {
  content: '«';
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: var(--cyber);
  opacity: .25;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial cite {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyber) 0%, #5fd0f5 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial .who { text-align: left; }
.testimonial .who b { display: block; color: var(--graphite); }
.testimonial .who span { color: var(--muted); font-size: .9rem; }

.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.testimonial-dots button {
  width: 32px; height: 4px;
  background: var(--line);
  border-radius: 4px;
  transition: background .25s;
}
.testimonial-dots button.active { background: var(--cyber); width: 48px; }

/* ============== FAQ ============== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--graphite);
  transition: color .2s;
}
.faq-q:hover { color: var(--cyber-ink); }
.faq-q .plus {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,167,224,.1);
  color: var(--cyber);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 400;
  transition: all .3s var(--ease);
}
.faq-item.open .faq-q .plus {
  background: var(--cyber);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
  color: var(--muted);
}
.faq-a-inner { padding: 0 0 24px; }
.faq-item.open .faq-a { max-height: 300px; }

/* ============== CTA ============== */
.cta {
  background: linear-gradient(135deg, #006A94 0%, #0086B8 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.1) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta p { font-size: 1.1rem; opacity: 1; margin-bottom: 32px; }
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}
.cta-form-row {
  display: flex;
  gap: 12px;
  background: var(--white);
  padding: 8px;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.cta-form input[name="contact"] {
  flex: 1;
  border: 0;
  padding: 0 18px;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  outline: none;
  font-family: inherit;
}
.cta-form button {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.cta-form button:hover { background: #1f1f1f; }
.cta-form .consent { justify-content: center; }
.cta .small { font-size: .85rem; opacity: 1; }

/* ============== FOOTER ============== */
.footer {
  background: var(--navy);
  color: rgba(234,239,245,.6);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: .9rem; margin: 16px 0 24px; }
.footer-brand .socials { display: flex; gap: 12px; }
.footer-brand .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
  color: var(--light);
}
.footer-brand .socials a:hover {
  background: var(--cyber);
  color: var(--white);
  transform: translateY(-2px);
}
.footer h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer a { transition: color .2s; font-size: .92rem; }
.footer a:hover { color: var(--cyber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom a:hover { color: var(--cyber); }
.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(234,239,245,.5);
}

/* ============== ANIMATIONS on scroll ============== */
html.js .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .fade-up.in { opacity: 1; transform: translateY(0); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-shield { max-width: 360px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .price-stats { grid-template-columns: repeat(2, 1fr); }
  .price-cat summary { flex-wrap: wrap; gap: 12px; }
  .cat-count { order: 3; }
  .geo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .burger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--light);
    color: var(--graphite);
  }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.97);
    padding: 20px;
    border-top: 1px solid var(--line);
    gap: 14px;
  }
  .nav.nav-open .nav-cta { display: inline-block; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .price-stats { grid-template-columns: 1fr 1fr; }
  .price-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .price-row > b { text-align: left; }
  .price-notes { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-form-row { flex-direction: column; padding: 16px; border-radius: var(--radius); }
  .cta-form input[name="contact"] { padding: 12px 18px; }
  .cta-form button { width: 100%; }
}

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

/* ============== LEAD MODAL ============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11,18,32,.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 32px;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.modal-overlay.open .modal { transform: none; opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--muted);
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.modal-close:hover { color: var(--graphite); background: var(--light); }

.modal-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--graphite);
}
.modal-sub {
  margin: 0 0 20px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Форма внутри модалки — вертикальная: поле сверху, кнопка на всю ширину снизу.
   (На сайте это «таблетка» поле+кнопка в ряд, но в узком окне так тесно/криво.) */
.modal-form { margin: 0; max-width: none; }
.modal-form .cta-form-row {
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.modal-form .cta-form-row input[name="contact"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  font-family: inherit;
}
.modal-form .cta-form-row input[name="contact"]:focus {
  outline: none;
  border-color: var(--cyber-ink);
  box-shadow: 0 0 0 3px rgba(0,167,224,.15);
}
.modal-form .cta-form-row button[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--cyber-ink);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s var(--ease);
}
.modal-form .cta-form-row button[type="submit"]:hover { background: #00688F; }
.modal-form .consent { justify-content: flex-start; color: var(--muted); margin-top: 4px; }
.modal-form .form-error { margin-top: 8px; font-size: 14px; color: #e05555; }

@media (max-width: 640px) {
  .modal { padding: 32px 20px 24px; border-radius: var(--radius); }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { transition: none; }
}
