/* ============================================================
   Лилия Фаткулина — стили сайта-визитки
   Палитра: Mint terminal (бирюза + жёлтый акцент)
   Source of truth: ../colors_and_type.css + ui_kits/visitka/*.jsx
   ============================================================ */

/* --- Webfonts ----------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* --- Design tokens ------------------------------------------ */
:root {
  --bg-0: #08100e;
  --bg-1: #0c1614;
  --bg-2: #131e1c;
  --bg-3: #1a2624;
  --bg-inset: #060d0c;
  --border: #1f3330;
  --border-strong: #2e4944;

  --fg-1: #f4f8f7;
  --fg-2: #9faaa6;
  --fg-3: #6b7672;
  --fg-on-accent: #08100e;

  --accent: #5eead4;
  --accent-hover: #7af3df;
  --accent-2: #facc15;
  --accent-soft: rgba(94, 234, 212, 0.30);
  --accent-glow: rgba(94, 234, 212, 0.45);
  --accent-tint: rgba(94, 234, 212, 0.10);
  --accent-2-soft: rgba(250, 204, 21, 0.32);
  --gradient-hero: radial-gradient(circle at 88% 12%, rgba(94, 234, 212, 0.28) 0%, rgba(250, 204, 21, 0.10) 28%, transparent 55%);
  --gradient-stop-1: #5eead4;
  --gradient-stop-2: #facc15;
  --teal: #5eead4;
  --teal-soft: rgba(94, 234, 212, 0.20);

  --success: #10d9b4;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.025) inset, 0 8px 24px rgba(0, 0, 0, 0.40);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,0.04) inset, 0 0 0 1px var(--accent-soft), 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 60px -20px var(--accent-glow);
  --shadow-button: 0 8px 28px -6px var(--accent-glow);
  --shadow-button-strong: 0 12px 36px -6px var(--accent-glow), 0 0 0 1px var(--accent-hover);
  --focus-ring: 0 0 0 3px var(--accent-soft);
  --text-glow: 0 0 26px var(--accent-glow), 0 0 70px rgba(244, 114, 182, 0.12);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --container: 1200px;
  --container-narrow: 720px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --t-h1-size: 76px;  --t-h1-lh: 1.0;  --t-h1-tracking: -0.04em; --t-h1-weight: 800;
  --t-h2-size: 52px;  --t-h2-lh: 1.08; --t-h2-tracking: -0.03em; --t-h2-weight: 700;
  --t-h3-size: 30px;  --t-h3-lh: 1.15; --t-h3-tracking: -0.02em; --t-h3-weight: 700;
  --t-h4-size: 22px;  --t-h4-lh: 1.25; --t-h4-tracking: -0.005em;--t-h4-weight: 600;
  --t-body-size: 18px; --t-body-lh: 1.6;  --t-body-weight: 400;
  --t-small-size: 16px; --t-small-lh: 1.55;
  --t-caption-size: 14px; --t-caption-lh: 1.5; --t-caption-tracking: 0.01em;
  --t-eyebrow-size: 12px; --t-eyebrow-tracking: 0.14em;
  --t-stat-size: 72px;   --t-stat-lh: 0.95; --t-stat-weight: 500;
}

@media (max-width: 1199px) {
  :root {
    --t-h1-size: 60px;
    --t-h2-size: 42px;
    --t-h3-size: 28px;
    --t-stat-size: 56px;
  }
}

@media (max-width: 767px) {
  :root {
    --t-h1-size: 44px;
    --t-h2-size: 32px;
    --t-h3-size: 24px;
    --t-body-size: 17px;
    --t-stat-size: 42px;
  }
}

/* --- Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--bg-0); color: var(--fg-1); margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { display: block; }

h1, h2, h3, h4 {
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
h1 { font-family: var(--font-display); font-size: var(--t-h1-size); line-height: var(--t-h1-lh); letter-spacing: var(--t-h1-tracking); font-weight: var(--t-h1-weight); }
h2 { font-family: var(--font-display); font-size: var(--t-h2-size); line-height: var(--t-h2-lh); letter-spacing: var(--t-h2-tracking); font-weight: var(--t-h2-weight); }
h3 { font-family: var(--font-display); font-size: var(--t-h3-size); line-height: var(--t-h3-lh); letter-spacing: var(--t-h3-tracking); font-weight: var(--t-h3-weight); }
h4 { font-family: var(--font-display); font-size: var(--t-h4-size); line-height: var(--t-h4-lh); letter-spacing: var(--t-h4-tracking); font-weight: var(--t-h4-weight); }

p { margin: 0; color: var(--fg-1); text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color var(--t-base) var(--ease); }
a:hover { color: var(--accent-hover); }

button { font-family: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--fg-on-accent); }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* --- Utilities ---------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow-size);
  letter-spacing: var(--t-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.caption {
  font-size: var(--t-caption-size);
  line-height: var(--t-caption-lh);
  letter-spacing: var(--t-caption-tracking);
  color: var(--fg-3);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: var(--t-stat-size);
  line-height: var(--t-stat-lh);
  font-weight: var(--t-stat-weight);
  color: var(--fg-1);
  text-shadow: var(--text-glow);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(110deg, var(--gradient-stop-1) 20%, var(--gradient-stop-2) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.muted { color: var(--fg-2); }
.quiet { color: var(--fg-3); }

/* --- Reveal animation --------------------------------------- */
[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html[data-js="ready"] [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

/* --- Section --------------------------------------------------- */
.section {
  background: var(--bg-0);
  padding: 72px 0;
}
.section--alt { background: var(--bg-1); }
.section__heading { margin-bottom: 40px; max-width: 760px; }
.section__heading h2 { margin-bottom: 0; }
.section__heading p {
  color: var(--fg-2);
  font-size: 19px;
  line-height: 1.6;
  margin-top: 18px;
}

/* --- Header --------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease);
}
.header.is-scrolled {
  background: rgba(8, 16, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__brand {
  font-family: var(--font-display);
  color: var(--fg-1);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.header__brand:hover { color: var(--fg-1); }
.header__brand:hover .header__brand-dot {
  box-shadow: 0 0 16px var(--accent-glow), 0 0 0 4px var(--accent-tint);
}
.header__brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
  transition: box-shadow var(--t-base) var(--ease);
}
.header__brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.header__brand-name {
  font-size: 18px;
  font-weight: 700;
}
.header__brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
@media (max-width: 640px) {
  .header__brand-tagline { display: none; }
  .header__inner { padding: 12px 16px; gap: 10px; }
  .header__brand-name { font-size: 16px; }
  .header__cta { gap: 6px; }
  .header__cta .btn--sm { padding: 8px 14px; font-size: 13px; }
  .header__cta .btn--secondary { display: none; }
}
.header__nav { display: flex; gap: 28px; }
.header__nav a {
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
}
.header__nav a:hover { color: var(--fg-1); }
.header__cta { display: flex; gap: 10px; align-items: center; }

/* --- Button --------------------------------------------------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-base) var(--ease);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  color: var(--fg-1);
}
.btn--primary {
  background: var(--accent);
  color: var(--fg-on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--fg-on-accent);
  box-shadow: var(--shadow-button);
  transform: translateY(-1px);
}
.btn--secondary {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border);
}
.btn--secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* --- Promo marquee --------------------------------------------------- */
.promo-marquee {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
  padding: 14px 0;
  --marquee-duration: 38s;
}
.promo-marquee::before,
.promo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
}
.promo-marquee::before { left: 0;  background: linear-gradient(to right, var(--bg-1), rgba(8,16,14,0)); }
.promo-marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg-2), rgba(8,16,14,0)); }
.promo-marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll var(--marquee-duration) linear infinite;
}
.promo-marquee:hover .promo-marquee__track { animation-play-state: paused; }
.promo-marquee__row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}
.promo-marquee__item {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.promo-marquee__item--strong {
  color: var(--accent);
  font-weight: 600;
}
.promo-marquee__sep {
  color: var(--accent-soft);
  font-size: 14px;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Pill --------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--bg-2);
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.pill--accent {
  color: var(--accent);
  border-color: var(--accent-soft);
  background-image: linear-gradient(
    120deg,
    rgba(110, 231, 183, 0.35) 0%,
    rgba(110, 231, 183, 0.08) 20%,
    rgba(212, 240, 109, 0.55) 50%,
    rgba(110, 231, 183, 0.08) 80%,
    rgba(110, 231, 183, 0.35) 100%
  );
  background-color: var(--accent-tint);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 0% 0%;
  animation: pillShimmer 5s linear infinite;
}
@keyframes pillShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
.pill--success {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: rgba(20,184,166,0.3);
}
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  margin-right: 8px;
  display: inline-block;
}

/* --- Status dot --------------------------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  font-size: 14px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
  flex-shrink: 0;
}

/* --- Icon --------------------------------------------------- */
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-tile {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.icon-tile--sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* --- Hero --------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  filter: blur(40px);
  pointer-events: none;
  transform-origin: 85% 15%;
  animation: heroBreath 12s ease-in-out infinite;
}
@keyframes heroBreath {
  0%, 100% { transform: scale(1)   translate(0, 0);   opacity: 1;   }
  50%      { transform: scale(1.1) translate(2%, -1%); opacity: 0.85; }
}
.hero__glow--secondary {
  position: absolute;
  left: -10%;
  bottom: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero__content { max-width: 920px; }
.hero__title {
  margin-top: 28px;
  margin-bottom: 28px;
  font-size: clamp(44px, 7.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 700px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* --- About --------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 56px;
  align-items: start;
}
.about__portrait {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, var(--bg-2), var(--bg-0)),
    radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.18), transparent 60%);
  background-blend-mode: screen;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about__portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about__portrait-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.about__portrait-monogram {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  opacity: 0.9;
}
.about__prose {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__prose p { line-height: 1.65; color: var(--fg-2); }
.about__prose p:first-child { font-size: 20px; color: var(--fg-1); }
.about__prose strong { color: var(--fg-1); font-weight: 600; }
.about__prose em { font-style: normal; color: var(--fg-1); }
.about__receipts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.about__receipt {
  padding: 16px 18px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about__receipt-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  text-shadow: 0 0 24px rgba(94, 234, 212, 0.25);
}
.about__receipt-cap {
  color: var(--fg-3);
  font-size: 12px;
  line-height: 1.45;
}
.about__quote {
  color: var(--fg-1);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.about__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* --- Services --------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-card-hover);
}
.service-card h3 { font-size: 24px; line-height: 1.2; }
.service-card__body {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.6;
}
.service-card__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.service-card__fits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__fit {
  display: flex;
  gap: 10px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.5;
  align-items: flex-start;
}
.service-card__fit-icon {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.service-card__foot {
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--fg-1);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}
.service-card__foot:hover,
.service-card__foot:focus-visible { color: var(--accent); outline: none; }
.service-card__foot:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.service-card__price {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg-1);
}
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t-base) var(--ease);
}
.service-card__cta .icon { transition: transform var(--t-base) var(--ease); }
.service-card__foot:hover .service-card__cta { gap: 12px; }
.service-card__foot:hover .service-card__cta .icon { transform: translateX(2px); }

/* --- CaseWB --------------------------------------------------- */
.case-wb__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.case-wb__head-text { max-width: 760px; }
.case-wb__head h2 { margin-top: 16px; }
.case-wb__head-pills { display: flex; gap: 8px; }
.case-wb__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.case-wb__prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-wb__prose p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-2);
}
.case-wb__prose strong { color: var(--fg-1); font-weight: 600; }
.case-wb__agents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-wb__agent {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.case-wb__agent-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  min-width: 28px;
}
.case-wb__agent-name {
  font-weight: 600;
  color: var(--fg-1);
  font-size: 15px;
}
.case-wb__agent-role {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.5;
}
.case-wb__stats {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case-wb__stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.case-wb__stat:first-child {
  padding-top: 0;
  border-top: none;
}
.case-wb__stat-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--fg-3);
}

/* --- CaseSecondary --------------------------------------------------- */
.case-second {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.case-second__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-second__text h3 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.case-second__text p { color: var(--fg-2); line-height: 1.65; }
.case-second__text .case-second__quote { color: var(--fg-1); font-weight: 500; font-size: 17px; line-height: 1.5; }
.case-second__text .case-second__ps {
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 8px 8px 0;
  color: var(--fg-1);
  font-size: 14.5px;
  line-height: 1.55;
}
.case-second__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.case-second__stat {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-second__stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--fg-1);
  text-shadow: var(--text-glow);
  letter-spacing: -0.025em;
}
.case-second__stat-cap { color: var(--fg-3); font-size: 13px; line-height: 1.5; }

/* --- Process --------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.process-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-card__step {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.process-card h4 { font-size: 22px; margin-top: 4px; }
.process-card__note {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  background: var(--bg-0);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.process-card__body { color: var(--fg-2); font-size: 15px; line-height: 1.6; }

/* --- FAQ --------------------------------------------------- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 920px;
}
.faq-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease);
}
.faq-item[open] { border-color: var(--accent-soft); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--fg-1);
  text-wrap: balance;
}
.faq-item__chev {
  color: var(--fg-3);
  flex-shrink: 0;
  margin-left: 18px;
  transition: transform var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.faq-item[open] .faq-item__chev {
  color: var(--accent);
  transform: rotate(180deg);
}
.faq-item__a {
  padding: 0 24px 22px 24px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
}
.faq-item__a p { margin: 0 0 12px 0; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__a strong { color: var(--fg-1); font-weight: 600; }
.faq-item__a em { color: var(--accent); font-style: normal; font-weight: 600; }

/* --- Form --------------------------------------------------- */
.form-section { position: relative; }
.apply-form {
  max-width: 760px;
  background: var(--bg-2);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 40px rgba(0,0,0,0.4);
}
.form-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
}
.form-field__label {
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-field__optional {
  color: var(--fg-3);
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: all var(--t-base) var(--ease);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.radio-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.radio-card input { display: none; }
.radio-card__circle {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0; margin-top: 1px;
  transition: all var(--t-base) var(--ease);
}
.radio-card__txt {
  display: flex; flex-direction: column; gap: 2px;
}
.radio-card__txt-main { color: var(--fg-1); font-size: 15px; font-weight: 500; }
.radio-card__txt-hint { color: var(--fg-3); font-size: 13px; }
.radio-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.radio-card.is-selected .radio-card__circle {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg-0);
}

.tasks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.task-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  align-items: flex-start;
  transition: all var(--t-base) var(--ease);
}
.task-card input { display: none; }
.task-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.task-card__txt {
  display: flex; flex-direction: column; gap: 4px;
}
.task-card__title { color: var(--fg-1); font-size: 15px; font-weight: 600; line-height: 1.3; }
.task-card__sub { color: var(--fg-3); font-size: 13px; line-height: 1.4; }

.conditional-block {
  margin-top: 4px;
  padding: 24px;
  background: var(--bg-0);
  border: 1px dashed var(--accent-soft);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  gap: 18px;
}
.conditional-block.is-active { display: flex; }
.conditional-block__title {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow-size);
  letter-spacing: var(--t-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.cond-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-base) var(--ease);
}
.checkbox-card input { display: none; }
.checkbox-card__box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-on-accent); font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  transition: all var(--t-base) var(--ease);
}
.checkbox-card__box svg { display: none; width: 12px; height: 12px; }
.checkbox-card.is-checked {
  border-color: var(--accent-soft);
}
.checkbox-card.is-checked .checkbox-card__box {
  border-color: var(--accent);
  background: var(--accent);
}
.checkbox-card.is-checked .checkbox-card__box svg { display: block; }
.checkbox-card__label { color: var(--fg-1); font-size: 14px; }

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-row__opt {
  padding: 9px 14px;
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.radio-row__opt input { display: none; }
.radio-row__opt.is-selected {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}

.form-submit {
  background: var(--accent);
  color: var(--fg-on-accent);
  border: none;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  transition: all var(--t-base) var(--ease);
}
.form-submit:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-button);
  transform: translateY(-1px);
}
.form-disclaimer {
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* Thank-you state */
.form-thanks {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 56px;
  background: var(--bg-2);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: none;
}
.form-thanks.is-active { display: block; }
.form-thanks__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(94, 234, 212, 0.18), transparent 60%);
}
.form-thanks__inner { position: relative; }
.form-thanks__check {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  margin: 0 auto 28px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(94,234,212,0.08), 0 0 40px rgba(94,234,212,0.35);
}
.form-thanks h3 { margin-bottom: 14px; font-size: 32px; letter-spacing: -0.02em; }
.form-thanks p { color: var(--fg-2); line-height: 1.6; font-size: 17px; max-width: 480px; margin: 0 auto 8px; }
.form-thanks p strong { color: var(--fg-1); }
.form-thanks__minor { color: var(--fg-3) !important; font-size: 14px !important; margin-bottom: 36px !important; }
.form-thanks__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.form-thanks__hint {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.6;
}

/* --- Contacts --------------------------------------------------- */
.contacts__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.contact-row[href]:hover {
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}
.contact-row__icon {
  width: 32px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}
.contact-row__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  width: 84px;
  flex-shrink: 0;
}
.contact-row__value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--fg-1);
}
.contact-row__ext {
  margin-left: auto;
  color: var(--fg-3);
  display: inline-flex;
}
.contacts__cta {
  background: var(--bg-2);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.contacts__cta-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.25) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.contacts__cta h3 { font-size: 28px; line-height: 1.15; position: relative; }
.contacts__cta p { color: var(--fg-2); line-height: 1.6; position: relative; }

/* --- Footer --------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-0);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}
.footer__nav { display: flex; gap: 20px; font-size: 13px; }
.footer__nav a { color: var(--fg-3); }
.footer__nav a:hover { color: var(--fg-1); }

/* --- Mobile reflow --------------------------------------------------- */
@media (max-width: 900px) {
  .case-second {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 28px;
  }
  .case-wb__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .container, .header__inner, .hero__inner, .footer__inner { padding-left: 20px; padding-right: 20px; }
  .header__nav { display: none; }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about__portrait {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
  .about__portrait-monogram { font-size: 72px; }
  .case-wb__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .case-second__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tasks-grid { grid-template-columns: 1fr; }
  .cond-grid-2 { grid-template-columns: 1fr; }
  .apply-form { padding: 24px 18px; }
  .form-thanks { padding: 48px 24px; }
  .contact-row {
    flex-wrap: wrap;
    padding: 16px 18px;
    gap: 12px;
  }
  .contact-row__label { width: auto; }
  .contact-row__value { font-size: 14px; }
}

@media (max-width: 900px) {
  .about__receipts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .about__receipts { grid-template-columns: 1fr; }
  .case-second__stats { grid-template-columns: 1fr; }
  .header__cta .btn--secondary { display: none; }
}

/* --- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .promo-marquee { overflow: visible; }
  .promo-marquee__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }
  .promo-marquee__row[aria-hidden="true"] { display: none; }
  .promo-marquee__row {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: 10px 18px;
  }
  .promo-marquee::before,
  .promo-marquee::after { display: none; }
  /* Мягкий перелив на бейдже разрешён даже при reduce-motion:
     не двигает контент, не мигает — это просто color shift. */
  .pill--accent {
    animation-duration: 8s !important;
    animation-iteration-count: infinite !important;
  }
}
