/* ==================================================
   TTK · AI Подписки — landing page styles
   Aesthetic: Industrial Russian Telecom × Frontier AI
   ================================================== */

:root {
  /* Palette */
  --bg: #F2EEE5;            /* warm cream paper */
  --bg-2: #EAE3D2;          /* slightly darker cream */
  --ink: #0E0E10;           /* near-black */
  --ink-2: #1A1A1F;
  --muted: #6B6B70;
  --line: #15141A;
  --line-soft: rgba(14, 14, 16, 0.12);
  --red: #E5271A;           /* TTK corporate red — Pantone 1795 C */
  --red-dark: #B81E13;
  --red-tint: rgba(227, 6, 19, 0.08);
  --yellow: #FFD600;        /* industrial caution */
  --ink-blue: #0A1929;      /* deep telecom blue */
  --paper: #FBF7EE;
  --good: #1A7A3E;

  /* Type */
  --f-body: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Unbounded", "PT Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --pad-x: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --rad: 0;                /* sharp edges — industrial */
  --rad-sm: 4px;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ==================================================
   BACKGROUND DECOR
   ================================================== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14,14,16,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,14,16,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}
main, .nav, .footer, .top-marquee { position: relative; z-index: 2; }

/* ==================================================
   TOP MARQUEE
   ================================================== */
.top-marquee {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex; gap: 32px; align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track .dot { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==================================================
   NAV
   ================================================== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(242, 238, 229, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.3s ease;
}
.nav.is-stuck { box-shadow: 0 1px 0 var(--line-soft), 0 8px 30px rgba(14,14,16,0.04); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--red); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: 0.02em; }
.brand-sub { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--f-body); font-weight: 700; font-size: 14px;
  border: 2px solid var(--ink); border-radius: var(--rad-sm);
  background: var(--ink); color: var(--bg);
  cursor: pointer; user-select: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ==================================================
   HERO
   ================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  padding: 64px var(--pad-x) 80px;
  max-width: var(--max); margin: 0 auto;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; gap: 56px; padding: 40px var(--pad-x) 56px; } }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--ink); color: var(--bg);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; border-radius: 999px;
}
.eyebrow-pill::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
.eyebrow-meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-title .line { display: block; }
.hero-title .line-1 { padding-left: 0; }
.hero-title .line-2 { padding-left: clamp(20px, 5vw, 80px); }
.hero-title .line-3 { padding-left: clamp(40px, 10vw, 160px); }
.hero-title .line-4 {
  padding-left: clamp(20px, 5vw, 80px);
  color: var(--red);
  position: relative;
  display: inline-block;
}
.hero-title .line-4::after {
  content: ''; position: absolute; right: -24px; top: 8px;
  width: 14px; height: 14px; background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--red-tint);
  animation: pulse 2s ease-in-out infinite;
}
.hero-title em { font-style: normal; color: var(--ink); background: var(--yellow); padding: 0 0.1em 0.05em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.hero-sub {
  max-width: 560px;
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-soft);
}
.hero-stats li {
  padding: 18px 16px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line-soft);
}
.hero-stats li:last-child { border-right: 0; padding-right: 0; }
.hero-stats b {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em; line-height: 1;
  color: var(--ink);
}
.hero-stats li:nth-child(1) b { color: var(--red); }
.hero-stats span { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 600px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero-stats li { border-bottom: 1px solid var(--line-soft); padding-bottom: 18px; } .hero-stats li:nth-child(2) { border-right: 0; } }

/* ==================================================
   PORTAL (hero right)
   ================================================== */
.hero-right { position: relative; min-height: 520px; display: grid; place-items: center; }
.portal { width: 100%; max-width: 520px; position: relative; }
.portal-frame {
  position: relative;
  background: var(--ink-blue);
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 1px solid var(--ink);
  transform: rotate(-3deg);
  box-shadow: 16px 16px 0 var(--ink), 16px 16px 0 1px var(--red);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: portalFloat 6s ease-in-out infinite;
}
.portal:hover .portal-frame { transform: rotate(0deg) translate(-4px, -4px); box-shadow: 22px 22px 0 var(--ink), 22px 22px 0 1px var(--red); }
@keyframes portalFloat { 0%,100% { transform: rotate(-3deg) translate(0,0); } 50% { transform: rotate(-3deg) translate(0, -6px); } }

.portal-inner {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(135deg, #0a1a2a 0%, #1a2b4a 50%, #0a1a2a 100%);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px;
  font-family: var(--f-mono);
  color: #cfe7ff;
}
.portal-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(207,231,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(207,231,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}
.portal-glow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(227,6,19,0.4) 0%, transparent 60%);
  filter: blur(40px);
  animation: glow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow {
  0%,100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.portal-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
  box-shadow: 0 0 12px var(--red);
  animation: scan 3.5s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.portal-stars span {
  position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
.portal-stars span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.portal-stars span:nth-child(2) { top: 22%; left: 78%; animation-delay: 0.4s; }
.portal-stars span:nth-child(3) { top: 38%; left: 30%; animation-delay: 0.8s; }
.portal-stars span:nth-child(4) { top: 50%; left: 88%; animation-delay: 1.2s; }
.portal-stars span:nth-child(5) { top: 66%; left: 12%; animation-delay: 1.6s; }
.portal-stars span:nth-child(6) { top: 78%; left: 70%; animation-delay: 2.0s; }
.portal-stars span:nth-child(7) { top: 88%; left: 40%; animation-delay: 2.4s; }
.portal-stars span:nth-child(8) { top: 18%; left: 50%; animation-delay: 2.8s; }
@keyframes twinkle { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.portal-text { position: relative; z-index: 2; }
.pt-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(207,231,255,0.15);
}
.pt-row span:first-child { color: #88aacc; }
.pt-row span:nth-child(2) { color: var(--red); }
.pt-row span:last-child { text-align: right; color: #cfe7ff; }
.pt-row .ok { color: #4ade80; }
.pt-row:last-child { border-bottom: 0; }

.portal-barcode {
  position: relative; z-index: 2;
  height: 28px;
  background:
    repeating-linear-gradient(to right,
      #cfe7ff 0 2px, transparent 2px 4px,
      transparent 4px 7px, #cfe7ff 7px 8px,
      transparent 8px 12px, #cfe7ff 12px 13px,
      transparent 13px 17px, #cfe7ff 17px 20px,
      transparent 20px 22px, #cfe7ff 22px 23px,
      transparent 23px 28px, #cfe7ff 28px 30px,
      transparent 30px 33px, #cfe7ff 33px 34px,
      transparent 34px 38px, #cfe7ff 38px 39px,
      transparent 39px 43px, #cfe7ff 43px 46px
    );
  opacity: 0.4;
}

.portal-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--red); }
.portal-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.portal-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.portal-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.portal-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.portal-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--muted);
  transform: rotate(-3deg);
}
.portal-id { color: var(--red); font-weight: 700; }

/* ==================================================
   LOGO STRIP
   ================================================== */
.logo-strip {
  background: var(--ink); color: var(--bg);
  border-bottom: 1px solid var(--ink);
  padding: 22px var(--pad-x);
}
.logo-strip-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; justify-content: space-between;
  font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo-strip-inner span:nth-child(odd) { color: var(--bg); }
.logo-strip-inner span:nth-child(even) { color: var(--red); }

/* ==================================================
   SECTION GENERAL
   ================================================== */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 96px var(--pad-x);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 700px) { .section { padding: 64px var(--pad-x); } }

.section-head { margin-bottom: 56px; max-width: 920px; }
.section-num {
  display: inline-block;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--red); font-weight: 700;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--red);
  border-radius: 999px;
}
.section-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 0.98; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section-title em {
  font-style: normal;
  background: var(--yellow);
  padding: 0 0.12em 0.05em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ==================================================
   PROBLEM
   ================================================== */
.problem-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 64px;
}
@media (max-width: 980px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 4px; background: var(--red);
  transition: width 0.4s ease;
}
.problem-card:hover { background: var(--ink); color: var(--bg); }
.problem-card:hover::before { width: 100%; }
.problem-card:hover .pc-bar { background: rgba(255,255,255,0.1); }
.problem-card:hover .pc-tag { color: var(--red); border-color: var(--red); }

.pc-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--red); font-weight: 700; }
.problem-card h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.01em; line-height: 1.1; }
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.problem-card:hover p { color: rgba(242, 238, 229, 0.7); }

.pc-bar { width: 100%; height: 6px; background: var(--line-soft); margin-top: auto; position: relative; overflow: hidden; }
.pc-fill { position: absolute; inset: 0; width: var(--w, 50%); background: var(--red); }
.pc-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); border: 1px solid var(--line-soft); padding: 4px 8px; align-self: flex-start; margin-top: 8px; }

.bridge {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px; align-items: start;
  padding: 32px 0;
}
.bridge-line {
  width: 4px; height: 100%; min-height: 80px;
  background: var(--red);
  position: relative;
}
.bridge-line::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; background: var(--red); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--red);
}
.bridge-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--red); font-weight: 700; }
.bridge-text h3 { font-family: var(--f-display); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 12px; }
.bridge-text p { font-size: 16px; color: var(--ink-2); max-width: 720px; }
@media (max-width: 700px) { .bridge { grid-template-columns: 1fr; gap: 16px; } }

/* ==================================================
   SERVICES
   ================================================== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s ease;
}
.service-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.service-card .sc-top { display: flex; flex-direction: column; gap: 4px; }
.sc-vendor { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); font-weight: 700; }
.sc-tag { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.service-card h3 { font-family: var(--f-display); font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.service-card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.sc-plans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sc-plans li {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 8px; border: 1px solid var(--ink); background: var(--bg);
}
.sc-link { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--red); margin-top: auto; align-self: flex-start; }

/* Per-service accent stripe */
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.s-claude::before { background: #D97757; }
.s-gpt::before { background: #10A37F; }
.s-gemini::before { background: #4285F4; }
.s-cursor::before { background: #000; }
.s-copilot::before { background: #1A1A1A; }
.s-perp::before { background: #22B8CD; }
.s-mid::before { background: #8B5CF6; }
.s-more::before { background: var(--red); }

/* ==================================================
   PRICING
   ================================================== */
.pricing-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch;
}
@media (max-width: 980px) { .pricing-wrap { grid-template-columns: 1fr; } }

.pricing-formula {
  background: var(--ink); color: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative; overflow: hidden;
}
.pricing-formula::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.pf-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--red); font-weight: 700; position: relative; }
.pf-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1; letter-spacing: -0.03em;
  position: relative;
}
.pf-a, .pf-b, .pf-c { background: var(--bg); color: var(--ink); padding: 0.06em 0.18em 0.1em; }
.pf-a { color: var(--ink); }
.pf-b { background: var(--red); color: #fff; }
.pf-c { background: var(--yellow); color: var(--ink); }
.pf-op { color: var(--bg); }
.pf-note { font-size: 14px; color: rgba(242,238,229,0.7); line-height: 1.6; position: relative; }
.pf-bullets { display: flex; flex-direction: column; gap: 8px; position: relative; }
.pf-bullets li {
  font-size: 13px; color: var(--bg);
  padding-left: 20px; position: relative;
}
.pf-bullets li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}

.pricing-examples {
  display: flex; flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.pe-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s ease;
}
.pe-row:last-child { border-bottom: 0; }
.pe-row:hover { background: var(--bg-2); }
.pe-row--hot { background: var(--ink); color: var(--bg); }
.pe-row--hot .pe-math { color: var(--bg); }
.pe-row--hot .pe-math em { color: var(--red); }
.pe-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.pe-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--red)); display: inline-block; }
.pe-math { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; }
.pe-math em { font-style: normal; color: var(--red); font-weight: 900; }
.pe-total { font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; text-align: right; color: var(--ink); }
.pe-row--hot .pe-total { color: var(--yellow); }
@media (max-width: 700px) {
  .pe-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pe-total { grid-column: 1 / -1; text-align: left; padding-top: 4px; }
}

/* ==================================================
   HOW IT WORKS
   ================================================== */
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  counter-reset: step;
}
@media (max-width: 980px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } }
.how-step {
  background: var(--bg);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}
.how-step:hover { background: var(--ink); color: var(--bg); }
.how-step:hover .hs-time { color: var(--red); }
.hs-num {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--red);
  display: flex; align-items: center; gap: 10px;
}
.hs-num::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.3; }
.how-step h3 { font-family: var(--f-display); font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.how-step p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.how-step:hover p { color: rgba(242,238,229,0.7); }
.hs-time {
  margin-top: auto; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--muted);
  padding-top: 12px; border-top: 1px dashed currentColor;
}
.how-step--last { background: var(--red); color: #fff; }
.how-step--last h3, .how-step--last .hs-num, .how-step--last .hs-time { color: #fff; }
.how-step--last p { color: rgba(255,255,255,0.85); }
.how-step--last .hs-num::after { background: rgba(255,255,255,0.4); }

/* ==================================================
   ADVANTAGES
   ================================================== */
.adv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (max-width: 760px) { .adv-grid { grid-template-columns: 1fr; } }
.adv-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.adv-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.adv-num { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--red); font-weight: 700; }
.adv-card h3 { font-family: var(--f-display); font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; }
.adv-card ul { display: flex; flex-direction: column; gap: 10px; }
.adv-card li {
  position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-2); line-height: 1.5;
}
.adv-card li::before {
  content: '▸'; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700;
}

/* alternating accent */
.adv-1 { background: linear-gradient(135deg, var(--paper) 0%, var(--paper) 60%, var(--red-tint) 100%); }
.adv-3 { background: var(--ink); color: var(--bg); }
.adv-3 h3, .adv-3 .adv-num { color: var(--bg); }
.adv-3 li { color: rgba(242,238,229,0.85); }
.adv-3 li::before { color: var(--red); }

/* ==================================================
   AUDIENCE
   ================================================== */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (max-width: 900px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card {
  background: var(--bg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s, color 0.3s;
}
.aud-card:hover { background: var(--ink); color: var(--bg); }
.aud-card:hover p { color: rgba(242,238,229,0.75); }
.aud-card span {
  font-family: var(--f-display); font-weight: 900; font-size: 32px;
  line-height: 1; letter-spacing: -0.02em; color: var(--red);
  display: block;
}
.aud-card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ==================================================
   FAQ
   ================================================== */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--ink);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--ink); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 8px;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2; letter-spacing: -0.01em;
  position: relative;
  display: flex; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: attr(data-num, ''); /* fallback */
}
.faq-item summary::after {
  content: '+';
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-weight: 700; font-size: 28px;
  color: var(--red); width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 2px solid var(--red);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), background 0.3s, color 0.3s;
}
.faq-item[open] summary::after { content: '−'; background: var(--red); color: #fff; transform: translateY(-50%) rotate(180deg); }
.faq-item p {
  padding: 0 8px 28px;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
  max-width: 820px;
}

/* ==================================================
   BRAND IDENTITY
   ================================================== */
.brand-block { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
@media (max-width: 1100px) { .brand-block { grid-template-columns: 1fr; } }

.brand-block-hero { display: grid; }
.brand-stage {
  position: relative;
  background: var(--ink);
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--ink);
}
.brand-stage-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.brand-stage-corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--red); }
.brand-stage-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.brand-stage-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.brand-stage-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.brand-stage-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.brand-stage-logo { position: relative; z-index: 2; width: min(85%, 720px); height: auto; color: var(--bg); }
.brand-stage-tag {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.4);
}

.brand-system { display: grid; grid-template-rows: auto auto 1fr; gap: 16px; }
@media (max-width: 1100px) { .brand-system { grid-template-columns: 1fr; grid-template-rows: auto; } }
.bs-col {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.bs-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--red); font-weight: 700; }
.bs-color, .bs-typeface { display: flex; align-items: center; gap: 14px; }
.bs-swatch { width: 40px; height: 40px; background: var(--c, var(--red)); border: 1px solid var(--ink); flex-shrink: 0; }
.bs-color b, .bs-typeface b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 16px; line-height: 1.1; letter-spacing: -0.01em; }
.bs-color span, .bs-typeface span { display: block; font-size: 12px; color: var(--muted); }
.bs-type-sample { font-size: 32px !important; min-width: 80px; line-height: 1 !important; }

.bs-col--rules { background: var(--ink); color: var(--bg); }
.bs-rules { display: flex; flex-direction: column; gap: 12px; }
.bs-rules li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13px; line-height: 1.5; color: rgba(242,238,229,0.85); align-items: start; }
.bs-rules li b { font-family: var(--f-mono); color: var(--red); font-weight: 700; font-size: 13px; }

/* Text mark "ТТК.ИБ" — same font as h2 headings */
.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.brand-text-mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 6px 12px 7px;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: inline-block;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-text-mark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.brand-text-mark--lg {
  font-size: 32px;
  padding: 8px 16px 10px;
  box-shadow: 4px 4px 0 var(--red);
}

/* Footer override: inherit from .footer makes text cream — force black */
.footer .brand-text-mark { color: var(--ink); }
.footer-brand-text { display: flex; flex-direction: column; gap: 4px; }
.footer-brand-text strong { display: block; font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; color: var(--bg); }
.footer-brand-text span { display: block; font-size: 13px; color: rgba(242,238,229,0.6); margin-top: 4px; max-width: 280px; }

/* Pricing footnote */
.pricing-footnote {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--red);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 100%;
}
.pricing-footnote b { color: var(--ink); font-weight: 700; }
.pricing-footnote sup { color: var(--red); font-weight: 700; font-size: 11px; margin-right: 4px; }

sup { color: var(--red); font-weight: 700; font-size: 0.65em; vertical-align: super; line-height: 0; }

/* ==================================================
   CONTACT
   ================================================== */
.section-contact { padding-bottom: 120px; }

.contact-card {
  background: var(--ink-blue);
  color: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 900px) {
  .contact-card { padding: 32px 24px; box-shadow: 8px 8px 0 var(--red); }
}

.contact-lead {
  font-size: 16px;
  color: rgba(242, 238, 229, 0.7);
  max-width: 560px;
  margin: 0;
}

.contact-bullets { display: flex; flex-direction: column; gap: 10px; }
.contact-bullets li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  color: rgba(242, 238, 229, 0.85);
}
.contact-bullets li::before {
  content: '→';
  position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}

.contact-cta { align-self: stretch; margin-top: 8px; }

.contact-card .form-note {
  color: rgba(242, 238, 229, 0.55);
  margin: -4px 0 0;
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
  background: var(--ink); color: var(--bg);
  padding: 64px var(--pad-x) 32px;
  position: relative;
  z-index: 2;
}
.footer-top {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; align-items: start;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .brand-mark { color: var(--red); }
.footer-brand strong { display: block; font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.footer-brand span { display: block; font-size: 13px; color: rgba(242,238,229,0.6); margin-top: 4px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.footer-cols h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--red); font-weight: 700; margin-bottom: 12px; text-transform: uppercase; }
.footer-cols a { display: block; font-size: 14px; color: rgba(242,238,229,0.8); padding: 4px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--bg); }
.footer-meta { display: block; font-size: 12px; color: rgba(242,238,229,0.5); padding: 4px 0; }
.footer-bottom {
  max-width: var(--max); margin: 48px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(242,238,229,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(242,238,229,0.5);
}

/* ==================================================
   REDUCED MOTION
   ================================================== */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}
