/* ============================================================
   sale — design system (custom brand)
   Pure CSS, no preprocessor. All tokens in :root.
   ============================================================ */

@font-face {
  font-family: 'Heading';
  src: url('fonts/heading.otf') format('opentype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Body';
  src: url('fonts/body.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  /* — cream + surface family — */
  --paper: #FFFAF0;
  --paper-2: #FFFAF0;
  --paper-3: #FFFDF7;
  --sky: #CEE5EC;
  --wine: #4a0308;

  /* — ink / text — */
  --ink: #1D1B1A;
  --ink-2: #2a2624;
  --muted: #6b625a;

  /* — brand red — */
  --brand: #8D070F;
  --brand-hover: #6f050c;
  --brand-deep: #4a0308;
  --brand-soft: #CEE5EC;
  --bordo: var(--brand);
  --bordo-2: var(--brand-hover);
  --bordo-3: var(--brand-deep);
  --bordo-soft: var(--brand-soft);

  /* — accent — */
  --yellow: #FFF161;
  --green: #3E4F2F;
  --green-2: #8EB56C;
  --navy: #1D1B1A;

  /* — radii — */
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  /* — layout — */
  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 80px);
  --sect-y: clamp(56px, 7vw, 100px);

  /* — type: two families only — */
  --h-font: 'Heading', 'Unbounded', system-ui, sans-serif;
  --body-font: 'Body', 'Manrope', system-ui, sans-serif;

  /* — type scale (single source of truth) — */
  --fs-hero:  clamp(52px, 12.7vw, 246px); /* hero title — one big line on desktop (Figma: 244px @1920) */
  --fs-h2:    clamp(36px, 5.2vw, 76px);    /* every section title */
  --fs-h3:    clamp(26px, 3vw, 40px);      /* mid card titles */
  --fs-h4:    clamp(19px, 2vw, 24px);      /* small card titles */
  --fs-price: clamp(46px, 5.2vw, 76px);    /* tariff price + countdown */
  --fs-lead:  clamp(17px, 1.35vw, 21px);   /* section leads */
  --fs-body:  clamp(15px, 1.05vw, 17px);   /* base body */
  --fs-sm:    0.95rem;                      /* card body copy */
  --fs-xs:    0.78rem;                      /* eyebrows, tags, meta */

  /* — motion — */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --marquee-dur: 60s;
  --gallery-dur: 70s;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100vw;
}
body {
  font-family: var(--body-font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* --- containers --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- typography helpers --- */
.h-display {
  font-family: var(--h-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.028em;
  line-height: .88;
  color: var(--brand);
  text-shadow:
    1px 1px 0 var(--brand-deep),
    2px 2px 0 var(--brand-deep),
    3px 3px 0 var(--brand-deep),
    4px 4px 0 var(--brand-deep),
    5px 5px 0 var(--brand-deep);
}
/* mobile-only line break helper: hidden on desktop, shown as <br> on mobile */
.mob-br { display: none; }

.h-section {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: .95;
  font-size: clamp(32px, 4.4vw, 64px);
  color: var(--ink);
  margin: 0 0 .5em;
}
.eyebrow {
  font-family: var(--body-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--brand);
}
.mark {
  background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%);
  padding: 0 .12em;
}
.hand { font-family: var(--h-font); font-weight: 700; }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .95em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(28, 56, 74, .55);
}
.btn--primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -16px rgba(28, 56, 74, .6);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(28, 27, 26, .18);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ink {
  background: var(--ink);
  color: var(--paper-3);
}
.btn--ink:hover { background: #000; transform: translateY(-2px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .5em 1em;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, .08);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(142, 181, 108, .55); }
  50% { box-shadow: 0 0 0 8px rgba(142, 181, 108, 0); }
}

/* ============================================================
   header — pill nav
   ============================================================ */
.header {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 90;
  padding: 0 var(--pad);
  transition: top .3s var(--ease);
}
.header__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 14px 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f2e1d8;
  border-radius: 46px;
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .25);
  transition: padding .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-scrolled .header__bar {
  padding: 8px 12px 8px 22px;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .3);
}
.header__logo {
  display: inline-flex;
  align-items: center;
  height: 34px;
}
.header__logo img {
  height: 100%;
  width: auto;
  display: block;
}
.header__nav {
  display: flex;
  gap: clamp(22px, 2vw, 40px);
  margin: 0 auto;
  font-size: clamp(.92rem, 1vw, 1.15rem);
  font-weight: 500;
}
.header__nav a { color: #291712; transition: color .2s var(--ease); }
.header__nav a:hover { color: var(--brand); }
.header__socials {
  display: flex;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(0, 0, 0, .12);
}
.header__socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .04);
  transition: background .2s var(--ease);
}
.header__socials a:hover { background: rgba(0, 0, 0, .1); }
.header__cta {
  margin-left: 4px;
  background: #9b1f12;
  border-radius: 40px;
  font-size: clamp(.85rem, .95vw, 1.1rem);
  padding: 1em 1.8em;
}
.header__cta:hover { background: #7d180e; }
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-3);
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--paper-3);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============================================================
   hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 88px var(--pad) 40px;
  background: #9b1f12;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .45;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  /* light grid lines that fade out toward the center (per Figma) */
  background-image:
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 68.5px 72.6px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at center, transparent 30%, black 95%);
          mask-image: radial-gradient(ellipse 75% 70% at center, transparent 30%, black 95%);
  z-index: -1;
}
.hero__inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: clamp(12px, 2vw, 28px) 0;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 24px;
}

/* — decorative 3d glass shapes — */
.hero__decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero__decor--star {
  --r: -13deg;
  top: clamp(40px, 6vh, 70px);
  right: clamp(-90px, -4.5vw, -40px);
  width: clamp(160px, 17.5vw, 340px);
  transform: rotate(var(--r));
  animation: floatY 6.5s ease-in-out infinite;
}
.hero__decor--squiggle {
  --r: 8deg;
  top: 46%;
  left: clamp(-72px, -3.8vw, -34px);
  width: clamp(140px, 13.5vw, 260px);
  transform: rotate(var(--r));
  animation: floatY 7.5s ease-in-out infinite reverse;
}
.hero__cta-main {
  position: relative;
  display: inline-flex;
}
.hero__decor--cursor {
  position: absolute;
  right: -54px;
  bottom: -52px;
  width: clamp(76px, 6.5vw, 124px);
  pointer-events: none;
  user-select: none;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(40, 3, 6, .35));
}
.hero__chip {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff5f0;
  border-radius: 30px;
  font-size: clamp(.85rem, .95vw, 1.1rem);
  padding: .8em 1.4em;
  backdrop-filter: blur(8px);
}
.hero__title {
  font-family: var(--h-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.028em;
  line-height: .92;
  font-size: clamp(52px, 7.6vw, 122px);
  margin: 0;
  /* sharp offset shadow (down-right, per Figma) — drop-shadow so it sits
     BEHIND the gradient-clipped glyphs instead of on top. */
  filter: drop-shadow(clamp(4px, .55vw, 10px) clamp(5px, .63vw, 12px) 0 #4a0d05);
}
/* gradient fill — yellow flowing to white across the line (per Figma) */
.hero__t1,
.hero__t2 {
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero__t1 { background-image: linear-gradient(157deg, #F8EF8B 0%, #FDF6C4 100%); }
.hero__t2 { background-image: linear-gradient(157deg, #FDF6C4 0%, #FFFFFF 90%); }
.hero__lead {
  max-width: min(1343px, 74vw);
  font-size: clamp(16px, 1.6vw, 31px);
  line-height: 1.55;
  color: #fff7f2;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 8px;
}
.hero__btn-main {
  background: #fff695;
  color: #9b1f12;
  font-weight: 600;
  padding: 1.1em 1.8em;
  font-size: clamp(16px, 1.3vw, 25px);
  border-radius: 44px;
  animation: btnPulse 2.2s ease-in-out infinite;
}
.hero__btn-main:hover { background: #fffab8; }
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 246, 149, .55); transform: scale(1); }
  60%  { box-shadow: 0 0 0 20px rgba(255, 246, 149, 0); transform: scale(1.035); }
  100% { box-shadow: 0 0 0 0 rgba(255, 246, 149, 0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__btn-main { animation: none; }
  .hero__decor { animation: none !important; }
}
.hero__btn-alt {
  color: #fffaf5;
  border: 1.5px solid rgba(255, 242, 235, .7);
  padding: 1.1em 1.7em;
  font-size: clamp(16px, 1.3vw, 25px);
  border-radius: 44px;
}
.hero__btn-alt:hover { background: rgba(255, 250, 240, .12); }

/* floating glass cards */
.hero__float {
  position: absolute;
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 3/4;
  border-radius: 22px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  z-index: 1;
}
.hero__float--tl { top: 14%; left: 4%; transform: rotate(-8deg); animation: floatY 5.5s ease-in-out infinite; }
.hero__float--tr { top: 12%; right: 4%; transform: rotate(8deg); animation: floatY 6.5s ease-in-out infinite reverse; }
.hero__float--bl { bottom: 8%; left: 8%; transform: rotate(6deg); animation: floatY 6s ease-in-out infinite reverse; }
.hero__float--br { bottom: 10%; right: 8%; transform: rotate(-6deg); animation: floatY 5s ease-in-out infinite; }
.hero__float .num { font-family: var(--h-font); font-weight: 900; font-size: 1.4rem; }
.hero__float .word { font-family: var(--h-font); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.hero__float .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, -8deg)); }
}

/* spinning badge */
.hero__badge {
  position: absolute;
  bottom: 24px; right: 22px;
  width: 110px; height: 110px;
  animation: spin360 10s linear infinite;
  z-index: 2;
}
@keyframes spin360 { to { transform: rotate(360deg); } }

/* hero plate — 3 feature cards on cream */
.hero__plate {
  position: relative;
  max-width: var(--maxw);
  margin: -60px auto 0;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper-3);
  border-radius: var(--r-xl);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  z-index: 3;
}
.feature {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
}
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--brand);
  display: grid; place-items: center;
  font-family: var(--h-font);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.feature__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.feature__text { font-size: .95rem; color: rgba(255, 255, 255, .88); margin: 0; }
.feature__tag {
  position: absolute;
  top: 14px; right: -30px;
  transform: rotate(8deg);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: .72rem;
  padding: 4px 40px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ============================================================
   works — dual marquee
   ============================================================ */
.works { padding: var(--sect-y) 0; overflow: hidden; }
.works__head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 var(--pad);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.marquee {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}
.marquee__track {
  display: flex;
  gap: 24px;
  animation-name: marquee-left;
  animation-duration: var(--marquee-dur);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  flex-shrink: 0;
  min-width: 100%;
}
.marquee--right .marquee__track {
  animation-name: marquee-right;
  animation-duration: var(--gallery-dur);
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 24px)); }
}
@keyframes marquee-right {
  from { transform: translateX(calc(-100% - 24px)); }
  to { transform: translateX(0); }
}
.marquee__item {
  flex: 0 0 clamp(200px, 22vw, 320px);
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .06);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--h-font);
  font-weight: 900;
  font-size: 2rem;
  color: var(--brand);
}

/* ============================================================
   audience — two contrasting cards
   ============================================================ */
.audience { padding: var(--sect-y) 0; }
.audience__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.aud-card {
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .2);
}
.aud-card--paper { background: var(--paper-3); }
.aud-card--brand { background: var(--brand); color: #fff; }
.aud-card__eyebrow {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  opacity: .7;
  margin-bottom: 14px;
}
.aud-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
  font-size: clamp(24px, 2.8vw, 40px);
  margin: 0 0 18px;
  line-height: 1;
}
.aud-card__list { list-style: none; padding: 0; margin: 0; }
.aud-card__list li {
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  font-size: 1rem;
}
.aud-card--brand .aud-card__list li { border-top-color: rgba(255, 255, 255, .18); }
.aud-card__list li:first-child { border-top: 0; padding-top: 0; }

/* ============================================================
   tools — pill cloud
   ============================================================ */
.tools { padding: var(--sect-y) 0; }
.tools__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  text-align: center;
}
.tools__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.tool-pill {
  padding: .8em 1.4em;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, .08);
  font-weight: 600;
  font-size: .95rem;
}
.tool-pill--brand { background: var(--brand); color: #fff; border-color: transparent; }
.tool-pill--ink { background: var(--ink); color: var(--paper-3); border-color: transparent; }

/* ============================================================
   program — dark navy sticky
   ============================================================ */
.prog {
  background: var(--navy);
  color: var(--paper-3);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--sect-y) 0;
  margin-top: var(--sect-y);
}
.prog__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.prog__meta {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, .04);
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.prog__meta h2 {
  color: var(--paper-3);
  font-family: var(--h-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  font-size: clamp(28px, 3vw, 44px);
  line-height: .95;
  margin: 0 0 20px;
}
.prog__meta ul { list-style: none; padding: 0; margin: 0; }
.prog__meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem;
}
.prog__meta li:first-child { border-top: 0; }
.prog__meta li strong { font-weight: 700; color: #fff; }

.prog__blocks { display: grid; gap: clamp(20px, 2.2vw, 32px); }
.prog-block {
  padding: clamp(24px, 2.6vw, 36px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
}
.prog-block__num {
  font-family: var(--h-font);
  font-weight: 900;
  font-size: 3rem;
  color: var(--brand-soft);
  line-height: 1;
  opacity: .8;
}
.prog-block__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(20px, 2vw, 28px);
  margin: 8px 0 12px;
  color: #fff;
}
.prog-block__lessons {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.prog-block__lessons summary {
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-soft);
  list-style: none;
}
.prog-block__lessons summary::-webkit-details-marker { display: none; }
.prog-block__lessons ul { list-style: none; padding: 0 0 12px; margin: 0; font-size: .92rem; }
.prog-block__lessons li { padding: 6px 0; opacity: .85; }

/* ============================================================
   result — cream frame with 4-step grid
   ============================================================ */
.result {
  background: var(--ink);
  padding: var(--sect-y) var(--pad);
}
.result__frame {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--paper-3);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4vw, 60px);
}
.result__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: 32px;
}
.result-step {
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid rgba(0, 0, 0, .06);
}
.result-step--accent { background: var(--brand); color: #fff; border-color: transparent; }
.result-step__num {
  font-family: var(--h-font);
  font-weight: 900;
  font-size: 2rem;
  color: var(--brand);
  opacity: .5;
}
.result-step--accent .result-step__num { color: var(--yellow); opacity: 1; }
.result-step__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

/* ============================================================
   cases — horizontal snap deck
   ============================================================ */
.cases { padding: var(--sect-y) 0; }
.cases__head {
  max-width: var(--maxw);
  margin: 0 auto 32px;
  padding: 0 var(--pad);
}
.cases__deck {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--pad) 30px;
  scrollbar-width: none;
}
.cases__deck::-webkit-scrollbar { display: none; }
.case-card {
  flex: 0 0 clamp(280px, 33%, 420px);
  scroll-snap-align: start;
  background: var(--paper-3);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .35); }
.case-card__media {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  display: grid;
  place-items: center;
  color: var(--paper-3);
  font-family: var(--h-font);
  font-weight: 900;
  font-size: 3rem;
}
.case-card__body { padding: 20px 22px 24px; }
.case-card__name { font-family: var(--h-font); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.15rem; margin: 0 0 6px; }
.case-card__meta { font-size: .85rem; color: var(--muted); }
.case-card__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
}

/* ============================================================
   tariffs — 4 pricing tiers по референсу
   ============================================================ */
.tariffs { padding: var(--sect-y) 0; }
.tariffs__subtitle {
  margin: 14px 0 0;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--brand);
  opacity: .85;
}
.tariffs__grid {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 40px var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.tariffs__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tariff {
  position: relative;
  padding: clamp(26px, 2.8vw, 36px) clamp(14px, 1.5vw, 20px);
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .2);
}
/* colored variants */
.tariff--paper { background: var(--paper); color: var(--ink); }
.tariff--ink    { background: var(--ink);   color: var(--paper); border-color: transparent; }
.tariff--sky    { background: var(--sky);   color: var(--ink); border-color: transparent; }
.tariff--wine   { background: var(--wine);  color: var(--paper); border-color: transparent; }

/* popular tint on top for Премиум и VIP */
.tariff--ink,
.tariff--wine {
  transform: translateY(-4px);
}

.tariff__badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -55%);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35);
}

.tariff__head {
  text-align: left;
  padding-top: 4px;
}
.tariff__name {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(28px, 2.8vw, 38px);
  margin: 0 0 6px;
}
.tariff--ink .tariff__name  { color: var(--paper); }
.tariff--wine .tariff__name { color: var(--yellow); }

.tariff__price {
  font-family: var(--h-font);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 1;
  margin: 0;
}
.tariff--ink .tariff__price  { color: var(--yellow); }
.tariff--wine .tariff__price { color: var(--yellow); }
.tariff--paper .tariff__price { color: var(--ink); }
.tariff--sky .tariff__price   { color: var(--ink); }

.tariff__install {
  align-self: stretch;
  text-align: center;
  white-space: nowrap;
  padding: 8px 8px;
  border-radius: 999px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  background: rgba(0, 0, 0, .06);
  color: var(--ink);
}
.tariff--ink .tariff__install {
  background: rgba(255, 241, 97, .18);
  color: var(--yellow);
}
.tariff--wine .tariff__install {
  background: rgba(255, 241, 97, .14);
  color: var(--yellow);
}
.tariff--sky .tariff__install {
  background: rgba(0, 0, 0, .1);
  color: var(--ink);
}

.tariff__divider {
  height: 1px;
  background: rgba(0, 0, 0, .1);
  margin: 4px 0;
}
.tariff--ink .tariff__divider  { background: rgba(255, 255, 255, .12); }
.tariff--wine .tariff__divider { background: rgba(255, 255, 255, .12); }

.tariff__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tariff__list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .95rem;
  line-height: 1.4;
}
.tariff__list li::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 1px;
}
.tariff--ink .tariff__list li::before  { background-color: var(--yellow); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1B1A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }
.tariff--sky .tariff__list li::before  { background-color: var(--ink); }
.tariff--wine .tariff__list li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1B1A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); }

.tariff__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.tariff__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 15px 5px;
  border-radius: 14px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.2;
  letter-spacing: 0;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.tariff__btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.tariff__btn--primary:hover { transform: translateY(-2px); }
.tariff__btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(0, 0, 0, .35);
}
.tariff__btn--outline:hover { background: var(--ink); color: var(--paper); }

/* per-variant button colors */
.tariff--ink .tariff__btn--primary  { background: var(--brand); color: var(--paper); }
.tariff--ink .tariff__btn--outline  { color: var(--paper); border-color: rgba(255,255,255,.35); background: transparent; }
.tariff--ink .tariff__btn--outline:hover { background: var(--paper); color: var(--ink); }

.tariff--sky .tariff__btn--primary  { background: var(--ink); color: var(--paper); }
.tariff--sky .tariff__btn--outline  { color: var(--ink); border-color: rgba(0,0,0,.4); }
.tariff--sky .tariff__btn--outline:hover { background: var(--ink); color: var(--paper); }

.tariff--wine .tariff__btn--primary { background: var(--yellow); color: var(--ink); }
.tariff--wine .tariff__btn--outline { color: var(--paper); border-color: rgba(255,255,255,.35); background: transparent; }
.tariff--wine .tariff__btn--outline:hover { background: var(--paper); color: var(--ink); }

.tariff--paper .tariff__btn--primary { background: var(--ink); color: var(--paper); }

.tariff__foot-note {
  font-size: .78rem;
  opacity: .65;
  margin: 6px 0 0;
  text-align: center;
}

/* ============================================================
   faq
   ============================================================ */
.faq {
  padding: var(--sect-y) 0;
  background: var(--paper);
}
.faq__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.faq__item {
  border-top: 1px solid rgba(0, 0, 0, .12);
  padding: 6px 0;
}
.faq__item:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.faq__item summary {
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--ink);
  gap: 16px;
  transition: background .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-3);
  flex-shrink: 0;
  background-image:
    linear-gradient(var(--paper-3), var(--paper-3)),
    linear-gradient(var(--paper-3), var(--paper-3));
  background-size: 12px 2px, 2px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] { background: var(--paper-3); border-radius: var(--r-md); padding: 6px 18px; }
.faq__item p { padding: 0 0 22px; margin: 0; color: var(--muted); font-size: 1rem; }

/* ============================================================
   contact — CTA on brand color with radial glow
   ============================================================ */
.contact {
  padding: var(--sect-y) var(--pad);
}
.contact__card {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px);
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact__card::before {
  content: '';
  position: absolute;
  right: -20%; top: -30%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--brand-soft) 30%, transparent 60%);
  opacity: .35;
  z-index: -1;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.contact__title {
  font-family: var(--h-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .92;
  font-size: clamp(32px, 4.4vw, 60px);
  margin: 0 0 16px;
  color: var(--paper-3);
}
.contact__lead { font-size: 1.05rem; color: rgba(255, 255, 255, .88); margin: 0 0 20px; }
.form {
  display: grid;
  gap: 12px;
}
.form input, .form textarea {
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .55); }
.form input:focus, .form textarea:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, .18);
}
.form button {
  margin-top: 6px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.form button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(254, 255, 85, .55); }

/* ============================================================
   footer + socials
   ============================================================ */
.socials-row { padding: var(--sect-y) 0; }
.socials-row__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.social-card {
  padding: 24px;
  background: var(--paper-3);
  border-radius: var(--r-md);
  border: 1px solid rgba(0, 0, 0, .06);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.social-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(0, 0, 0, .3); }
.social-card__name { font-weight: 700; margin-bottom: 4px; }
.social-card__handle { font-size: .85rem; color: var(--muted); }

.footer {
  background: var(--ink);
  color: var(--paper-3);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: clamp(40px, 5vw, 70px) var(--pad) 24px;
  margin-top: var(--sect-y);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__brand {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--paper-3);
}
.footer__col h4 { font-family: var(--h-font); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--brand-soft); margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { padding: 6px 0; opacity: .8; font-size: .92rem; }
.footer__bottom {
  max-width: var(--maxw);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  opacity: .6;
}

/* floating consult FAB */
.fab {
  position: fixed;
  left: 12px; bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  padding: 5px 22px 5px 5px;
  background: #191410;
  color: #fffaf5;
  border-radius: 40px;
  box-shadow: 0 18px 32px -16px rgba(0, 0, 0, .45);
  font-weight: 500;
  font-size: 1rem;
  gap: 13px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.fab__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #9b1f12;
  display: grid; place-items: center;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.fab__icon:hover { background: #7d180e; }
.fab__label {
  color: #fffaf5;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.fab__label:hover { color: var(--yellow); }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
}

/* ============================================================
   reveal animations (JS-driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1100px) {
  .header__nav, .header__socials, .header__laurel { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__cta { display: none; }
}
@media (max-width: 1100px) {
  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs__grid--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero__plate { grid-template-columns: 1fr; }
  .audience__grid { grid-template-columns: 1fr; }
  .result__grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs__grid { grid-template-columns: 1fr; row-gap: 46px; }
  .tariffs__grid--four { grid-template-columns: 1fr; row-gap: 46px; }
  .tariff--brand { transform: none; }
  /* stacked cards: neutralize lift so badges don't overlap the card above */
  .tariff--ink, .tariff--wine { transform: none; }
  .prog__inner { grid-template-columns: 1fr; }
  .prog__meta { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .socials-row__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__float--tl, .hero__float--tr { display: none; }
  .courses__grid { grid-template-columns: 1fr; }
  .pace__grid { grid-template-columns: 1fr; }
  .single-courses { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero { padding-top: 110px; }
  .hero__float { width: 130px; }
  .hero__badge { width: 78px; height: 78px; bottom: 12px; right: 12px; }
  .result__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   countdown — до старта потоков
   ============================================================ */
.countdown {
  padding: clamp(48px, 6vw, 80px) var(--pad);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.countdown__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.countdown__eyebrow {
  font-family: var(--body-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  color: var(--yellow);
  margin-bottom: 14px;
}
.countdown__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(24px, 3vw, 40px);
  margin: 0 0 32px;
  line-height: 1;
  color: var(--paper);
}
.countdown__title .mark {
  background: linear-gradient(180deg, transparent 62%, var(--brand) 62%);
  color: var(--paper);
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  max-width: 720px;
  margin: 0 auto;
}
.countdown__tile {
  padding: clamp(18px, 2vw, 26px) 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
}
.countdown__num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.countdown__label {
  margin-top: 8px;
  font-family: var(--body-font);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .7;
}
.countdown__foot {
  margin-top: 28px;
  font-size: .95rem;
  opacity: .75;
}
.countdown.is-over .countdown__grid { display: none; }
.countdown.is-over .countdown__over {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--yellow);
}
.countdown__over { display: none; }
.countdown.is-over .countdown__over { display: block; }

/* ============================================================
   courses — two side-by-side course cards
   ============================================================ */
.courses { padding: var(--sect-y) 0; }
.courses__head {
  max-width: var(--maxw);
  margin: 0 auto 40px;
  padding: 0 var(--pad);
  text-align: center;
}
.courses__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
.course-card {
  padding: clamp(28px, 3vw, 44px);
  background: var(--paper-3);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.course-card--brand {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}
.course-card__eyebrow {
  font-family: var(--body-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--brand);
  opacity: .9;
}
.course-card--brand .course-card__eyebrow { color: var(--yellow); opacity: 1; }
.course-card__title {
  font-family: var(--h-font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: .95;
  margin: 0;
}
.course-card__lead { font-size: 1rem; opacity: .9; margin: 0; }
.course-card__subhead {
  font-family: var(--body-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(14px, 1.15vw, 17px);
  margin: 12px 0 2px;
  opacity: 1;
}
/* color per course card */
.course-card .course-card__subhead { color: var(--brand); }          /* Лаборатория нейросетей → red */
.course-card--brand .course-card__subhead { color: var(--yellow); }  /* AI-автоматизация → yellow */
.course-card__list { list-style: none; padding: 0; margin: 0; }
.course-card__list li {
  padding: 8px 0;
  font-size: .98rem;
  line-height: 1.4;
}
.course-card__tools {
  padding: 14px 16px;
  background: rgba(0, 0, 0, .04);
  border-radius: var(--r-md);
  font-size: .88rem;
  line-height: 1.55;
}
.course-card--brand .course-card__tools { background: rgba(255, 255, 255, .12); }
.course-card__foot { margin-top: auto; padding-top: 8px; }
.course-card__foot .btn {
  width: 100%;
  justify-content: center;
  padding: 1.15em 1.4em;
  font-size: 1.02rem;
}

.bundle-note {
  max-width: var(--maxw);
  margin: clamp(40px, 5vw, 60px) auto 0;
  padding: clamp(28px, 3vw, 40px) var(--pad);
  text-align: center;
}
.bundle-note__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0 0 20px;
}

/* ============================================================
   capabilities — 4-card grid
   ============================================================ */
.capabilities { padding: var(--sect-y) 0; }
.capabilities__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.capabilities__head { text-align: center; margin-bottom: 40px; }
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.cap-card {
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--paper-3);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .06);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cap-card__num {
  font-family: var(--h-font);
  font-weight: 900;
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
  opacity: .3;
}
.cap-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: 1.15rem;
  margin: 12px 0 8px;
}
.cap-card__text { font-size: .95rem; color: var(--muted); margin: 0; }

/* ============================================================
   pace — two-card + CTA
   ============================================================ */
.pace { padding: var(--sect-y) 0; }
.pace__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pace__head { text-align: center; margin-bottom: 40px; }
.pace__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
.pace-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper-3);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .06);
}
.pace-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.pace-card__text { color: var(--muted); margin: 0 0 10px; }
.pace__cta { text-align: center; margin-top: 40px; }

/* ============================================================
   tariff toggle + 4-col grid + tables
   ============================================================ */
.tariff-toggle {
  display: inline-flex;
  background: var(--paper-3);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 999px;
  padding: 6px;
  margin: 0 auto;
  gap: 4px;
}
.tariff-toggle__btn {
  padding: .7em 1.3em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tariff-toggle__btn.is-active {
  background: var(--brand);
  color: #fff;
}
.tariff-view { display: none; }
.tariff-view.is-active { display: block; animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* combination subtitle under the tariff name */
.tariff__subtitle {
  font-size: var(--fs-xs);
  line-height: 1.35;
  opacity: .7;
  margin: 0 0 12px;
}
.tariff--ink .tariff__subtitle,
.tariff--wine .tariff__subtitle { opacity: .82; }

/* struck original price */
.tariff__old {
  font-family: var(--body-font);
  font-weight: 500;
  text-decoration: line-through;
  font-size: 1.3rem;
  opacity: .38;
  margin: 0 0 2px;
}
.tariff--ink .tariff__old,
.tariff--wine .tariff__old { opacity: .5; }

/* sub-heading line inside the feature list ("Также команда школы…") */
.tariff__list li.tariff__li-head {
  grid-template-columns: 1fr;
  font-weight: 700;
  margin-top: 6px;
}
.tariff__list li.tariff__li-head::before { display: none; }

/* «не входит» — зачёркнуто, приглушённо, с прочерком вместо галочки */
.tariff__list li.tariff__li-no { opacity: .5; }
.tariff__list li.tariff__li-no span { text-decoration: line-through; }
.tariff__list li.tariff__li-no::before {
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='3' stroke-linecap='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  background-size: 16px;
}

.tariff__foot-note {
  font-size: var(--fs-xs);
  opacity: .7;
  margin: 6px 0 0;
  text-align: center;
}

.single-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.price-table-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper-3);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .06);
}
.price-table-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0 0 20px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.price-table th, .price-table td {
  padding: 12px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-size: .96rem;
}
.price-table th:first-child, .price-table td:first-child { text-align: left; font-weight: 600; }
.price-table thead th {
  font-family: var(--h-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .74rem;
  color: var(--muted);
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.discount { color: var(--brand); font-weight: 800; }
.price-table__note {
  font-size: .85rem;
  color: var(--muted);
  margin: 12px 0 20px;
  line-height: 1.45;
}

.combo {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) var(--sect-y);
}
.combo-callout {
  width: 100%;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-lg);
  border: none;
  text-align: left;
}
.combo-callout__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 10px;
  color: var(--yellow);
}
.combo-callout__text {
  color: rgba(255, 255, 255, .9);
  margin: 0 0 22px;
  max-width: 760px;
}
.combo-callout__btn {
  background: var(--paper-3);
  color: var(--brand);
  font-weight: 700;
}
.combo-callout__btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   terms (условия) — 3 cards
   ============================================================ */
.terms {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sect-y) var(--pad);
}
.terms__inner { width: 100%; }
.terms__title { text-align: center; margin: 0 0 clamp(32px, 4vw, 48px); }
.terms__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.term-card {
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .08);
}
.term-card--paper  { background: var(--paper-3); color: var(--ink); }
.term-card--sky    { background: var(--sky);   color: var(--ink); border-color: transparent; }
.term-card--yellow { background: #FFF5A8;      color: var(--ink); border-color: transparent; }
.term-card--ink    { background: var(--ink);   color: var(--paper); border-color: transparent; }
.term-card--wide  { grid-column: 1 / -1; }
.term-card__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  margin: 0 0 14px;
}
.term-card--ink .term-card__title { color: var(--yellow); }
.term-card__text {
  font-size: var(--fs-body);
  line-height: 1.55;
  margin: 0 0 12px;
}
.term-card__text:last-child { margin-bottom: 0; }
.term-card--paper .term-card__text,
.term-card--sky .term-card__text,
.term-card--yellow .term-card__text { opacity: .85; }
.term-card--ink .term-card__text { color: rgba(255, 255, 255, .85); }

@media (max-width: 760px) {
  .terms__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   upgrade info block
   ============================================================ */
.upgrade { padding: var(--sect-y) 0; }
.upgrade__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 3.4vw, 48px);
  background: var(--paper-3);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0, 0, 0, .06);
  margin-inline: clamp(20px, 5vw, auto);
}
.upgrade__title {
  font-family: var(--h-font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(24px, 2.6vw, 36px);
  margin: 0 0 16px;
}
.upgrade__highlight {
  background: var(--yellow);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 700;
  margin: 20px 0;
}
.upgrade__list { padding-left: 20px; margin: 0; }
.upgrade__list li { padding: 6px 0; }

/* ============================================================
   deadline note
   ============================================================ */
.deadline {
  display: block;
  margin-top: 14px;
  font-family: var(--body-font);
  font-style: italic;
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
}
.hero .deadline { text-align: center; }

/* mobile menu overlay */
/* mobile menu — bubble-pill style (like kava-design-lab) */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(234, 224, 207, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 88px var(--pad) calc(28px + env(safe-area-inset-bottom));
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
/* logo stays visible in the fixed header bar (z-index 90, above this panel),
   so hide the duplicate inside the sheet */
.mobile-menu__logo { display: none; }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu li { padding: 0; width: 100%; }
.mobile-menu ul a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(56px, 9vh, 70px);
  border-radius: 999px;
  background: #FFFAF1;
  color: var(--brand);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: clamp(19px, 5.6vw, 24px);
  letter-spacing: -.01em;
  box-shadow: 0 6px 20px rgba(20, 8, 8, .10);
  transform: scale(0);
}
.mobile-menu.is-open ul a {
  animation: bubblePop .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.mobile-menu.is-open li:nth-child(1) a { animation-delay: .05s; }
.mobile-menu.is-open li:nth-child(2) a { animation-delay: .13s; }
.mobile-menu.is-open li:nth-child(3) a { animation-delay: .21s; }
.mobile-menu ul a:active {
  background: var(--brand);
  color: #FFFAF1;
}
@keyframes bubblePop { from { transform: scale(0); } to { transform: scale(1); } }
.mobile-menu__cta {
  width: 100%;
  margin-top: 0;
  font-size: 1.05rem;
  min-height: clamp(56px, 9vh, 70px);
  justify-content: center;
  transform: scale(0);
}
.mobile-menu.is-open .mobile-menu__cta {
  animation: bubblePop .5s cubic-bezier(.34, 1.56, .64, 1) .3s both;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu ul a, .mobile-menu__cta { transform: none; animation: none !important; }
}

/* ============================================================
   TYPOGRAPHY SYSTEM — single source of truth
   Every repeating block pulls from the same scale token, so
   like blocks always share a size. Two families only:
   --h-font (headings) and --body-font (text).
   ============================================================ */

/* — hero title — */
.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: .02em;
  line-height: .9;
}

/* — H2 · every section title, one size everywhere — */
.h-section,
.contact__title,
.countdown__title,
.course-card__title,
.pace-card__title,
.bundle-note__title,
.price-table-card__title,
.aud-card__title,
.prog__meta h2 {
  font-size: var(--fs-h2);
  letter-spacing: .02em;
  line-height: .95;
}

/* — H3 · mid-level card titles — */
.tariff__name,
.result-step__title,
.prog-block__title {
  font-size: var(--fs-h3);
  letter-spacing: .02em;
  line-height: 1.02;
}

/* — H4 · small card titles — */
.feature__title,
.social-card__name,
.case-card__name {
  font-size: var(--fs-h4);
  letter-spacing: .02em;
  line-height: 1.05;
}

/* — leads / section intros — (hero lead sized in its own block per Figma) */
.course-card__lead,
.contact__lead { font-size: var(--fs-lead); }

/* — eyebrows / kickers · one size everywhere — */
.eyebrow,
.aud-card__eyebrow,
.course-card__eyebrow,
.countdown__eyebrow,
.footer__col h4 {
  font-size: var(--fs-xs);
  letter-spacing: .18em;
}
.course-card__subhead { letter-spacing: .04em; }

/* — body copy inside cards · one size everywhere — */
.feature__text,
.course-card__list li,
.tariff__list li,
.result-step p,
.aud-card__list li,
.faq__item p,
.prog__meta li,
.social-card__handle,
.case-card__meta,
.footer__col li { font-size: var(--fs-sm); }

/* — prices · big numerals, one size — */
.tariff__price,
.countdown__num {
  font-size: var(--fs-price);
  letter-spacing: .04em;
}

/* — footer wordmark — */
.footer__brand { font-size: clamp(40px, 4vw, 60px); letter-spacing: .02em; }

/* — intentional exceptions (kept deliberately compact/prominent) — */
.pace-card__text { font-size: var(--fs-xs); line-height: 1.5; }

.combo-callout { padding: clamp(28px, 3.4vw, 48px); }
.combo-callout__title {
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.combo-callout__text {
  font-size: var(--fs-body);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 820px;
}
.combo-callout .btn { padding: .8em 1.5em; font-size: .95rem; }

.bundle-note { margin-top: clamp(56px, 6vw, 90px); }
.bundle-note .btn {
  margin-top: clamp(28px, 3vw, 44px);
  padding: 1.1em 2.1em;
  font-size: 1.1rem;
  letter-spacing: .03em;
}

/* — responsive: scale the whole system down by retuning tokens — */
@media (max-width: 980px) {
  :root {
    --fs-hero:  clamp(52px, 12vw, 100px);
    --fs-h2:    clamp(30px, 6vw, 56px);
    --fs-h3:    clamp(23px, 4vw, 32px);
    --fs-h4:    clamp(18px, 3vw, 22px);
    --fs-price: clamp(40px, 9vw, 64px);
  }
}

/* re-apply mobile column collapses (must come after later base grids) */
@media (max-width: 1100px) {
  .capabilities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariffs__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .courses__grid,
  .pace__grid,
  .capabilities__grid,
  .audience__grid,
  .single-courses,
  .tariffs__grid,
  .tariffs__grid--four,
  .result__grid,
  .socials-row__grid,
  .contact__grid,
  .prog__inner,
  .footer__inner { grid-template-columns: 1fr; }
  .prog__meta { position: static; }
  .tariff--ink, .tariff--wine { transform: none; }
  .hero__float--tl, .hero__float--tr { display: none; }
}

/* ============================================================
   mobile — larger headings (phones)
   Placed last so it overrides earlier base heading rules.
   ============================================================ */
@media (max-width: 600px) {
  :root {
    /* Figma mobile: title ≈ 84% width, two lines */
    --fs-hero:  clamp(115px, 36vw, 135px);
    --fs-h2:    clamp(40px, 9.5vw, 62px);
    --fs-h3:    clamp(28px, 6.2vw, 40px);
    --fs-h4:    clamp(21px, 4.6vw, 27px);
    --fs-price: clamp(46px, 11vw, 68px);
  }
  /* hero — two-line title as in the layout: «Скидка −35%» / «на 2 курса» */
  .hero__t1, .hero__t2 { display: block; }
  .hero__title { letter-spacing: -.005em; line-height: .9; }
  /* full-viewport hero, content pinned near the top under the header */
  .hero { justify-content: flex-start; padding: 115px 14px 110px; min-height: 100svh; min-height: 100vh; }
  .hero__inner { gap: 20px; padding-top: 0; }
  .hero__chip { font-size: .85rem; padding: 10px 18px; }
  .hero__lead { font-size: 15px; line-height: 1.4; max-width: none; padding: 0 4px; letter-spacing: .03em; }
  /* denser + more transparent grid on phones */
  .hero::before {
    background-size: 25px 25.2px;
    background-image:
      linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  }
  /* CTA buttons — centered pills, not full width (per Figma) */
  .hero__ctas { flex-direction: column; align-items: center; gap: 12px; }
  .hero__btn-main,
  .hero__btn-alt { font-size: 15px; padding: 15px 26px; }
  .hero__decor--star     { top: 56px;  right: -52px; width: 120px; }
  .hero__decor--squiggle { top: 42%;   left:  -26px; width: 102px; }
  .hero__decor--cursor   { right: -27px; bottom: -19px; width: 44px; }
  /* burger per Figma — plain dark lines, no circle */
  .burger {
    width: 40px; height: 40px;
    background: transparent;
    border-radius: 0;
  }
  .burger span {
    left: 9px; right: 9px;
    height: 2.5px;
    background: var(--ink);
  }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 20px; }
  .burger span:nth-child(3) { top: 26px; }
  .burger.is-open span:nth-child(1) { top: 20px; }
  .burger.is-open span:nth-child(3) { top: 20px; }
  /* slimmer header bar */
  .header__bar { padding: 9px 16px 9px 18px; }
  .header__logo { height: 24px; }
  /* smaller FAB (per Figma) */
  .fab { font-size: 13px; gap: 10px; padding: 4px 16px 4px 4px; }
  .fab__icon { width: 34px; height: 34px; }
  .fab__icon svg { width: 16px; height: 16px; }
  .term-card__title    { font-size: clamp(34px, 9vw, 46px); }
  .combo-callout__title{ font-size: clamp(34px, 9vw, 46px); }

  /* mobile-only line break helper */
  .mob-br { display: inline; }

  /* больше горизонтального воздуха внутри карточек тарифов */
  .tariff { padding-left: 24px; padding-right: 24px; }

  /* section titles — bigger on phones */
  .h-section { font-size: clamp(45px, 12vw, 60px); }

  /* course lists sub-labels — smaller on phones */
  .course-card__subhead{ font-size: clamp(13px, 3.4vw, 16px); }

  /* tariffs — bigger name + price on phones */
  .tariff__name  { font-size: clamp(34px, 9vw, 42px); }
  .tariff__price { font-size: clamp(54px, 13.5vw, 72px); }

  /* tariff feature list — bigger text on phones */
  .tariff__list li { font-size: 1.08rem; }

  /* installment + tariff buttons — larger on phones (cards are full-width here) */
  .tariff__install { font-size: .95rem; padding: 10px 12px; }
  .tariff__btn { font-size: .95rem; padding: 15px 12px; }
}

/* ============================================================
   support — «Остались вопросы?» + чат поддержки
   ============================================================ */
.support {
  padding: var(--sect-y) 0;
  background: var(--paper);
}
.support__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.support__head { display: flex; flex-direction: column; align-items: center; }
.support__accent { color: var(--brand); }
.support__sub {
  font-family: var(--body-font);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin: 4px auto 0;
}

.help-chat {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: clamp(32px, 5vw, 56px) 0 28px;
}
.help-chat__row { display: flex; align-items: flex-end; gap: 8px; }
.help-chat__row--in  { justify-content: flex-start; }
.help-chat__row--out { justify-content: flex-end; }
.help-chat__msg {
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 18px;
  max-width: 86%;
  text-align: left;
}
.help-chat__msg--in {
  background: var(--paper-3);
  color: var(--ink);
  border: 1px solid rgba(29, 27, 26, .08);
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 8px 22px rgba(29, 27, 26, .06);
}
.help-chat__msg--out {
  background: var(--brand);
  color: #FFFAF1;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 10px 24px rgba(141, 7, 15, .22);
}
.help-chat__ava {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.help-chat__ava--user {
  background: var(--paper-3);
  border: 1px solid rgba(29, 27, 26, .12);
}
.help-chat__meta {
  align-self: center;
  font-family: var(--body-font);
  font-size: 12px;
  color: rgba(29, 27, 26, .5);
  margin-top: 8px;
  letter-spacing: .03em;
}
.btn.help-chat__btn {
  background: var(--brand);
  color: #FFFAF1;
  border: 1px solid var(--brand);
  padding: 1.05em 2.2em;
  font-size: 1rem;
}
.btn.help-chat__btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* ============================================================
   socials — «Наши соцсети»
   ============================================================ */
.socials {
  padding: 0 0 var(--sect-y);
  background: var(--paper);
}
.socials__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.socials-block {
  background: var(--sky);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.2vw, 44px);
}
.socials-block__h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 64px);
  letter-spacing: .04em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.socials-block__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.social-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 18px 22px;
  background: var(--yellow);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  min-width: 0;
}
.social-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(29, 27, 26, .5); }
.social-card__ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  display: grid; place-items: center;
  flex: none;
}
.social-card__ico svg { width: 20px; height: 20px; }
.social-card b {
  display: block;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: .1em;
  text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 880px) {
  .socials-block__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .socials-block__list { grid-template-columns: minmax(0, 1fr); }
  .social-card b { font-size: 20px; }
}
/* heading matches «Остались вопросы» on phones (placed after base to win order) */
@media (max-width: 600px) {
  .socials-block__h { font-size: clamp(38px, 10vw, 52px); }
}

/* ================= Modals: Рассрочка + Оплатить половину ================= */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0;
  z-index: 9999;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0; transition: opacity .22s ease;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; }
.modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 12, 10, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 44px);
  max-width: 100%;
  width: 100%;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
  transform: translateY(14px);
  transition: transform .22s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__panel--sm { max-width: 720px; }
.modal__panel--lg { max-width: 1400px; }
.modal__close {
  position: absolute; top: 14px; right: 18px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--paper);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}
.modal__close:hover { background: rgba(255,255,255,.16); }
.modal__title {
  color: var(--yellow);
  margin: 0 0 22px;
}
.modal__card {
  border: 1.5px solid rgba(255, 220, 140, .38);
  border-radius: 24px;
  padding: clamp(20px, 2.6vw, 36px);
  position: relative;
}
.modal__text {
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.55;
  color: #d8c69a;
  margin: 0 0 18px;
  max-width: 74ch;
}
.modal__cta {
  background: var(--brand);
  color: var(--paper);
  padding: 16px 34px;
  border-radius: 44px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: inline-block;
}
/* place the Написать button in the bottom-right corner of the card (per screenshot) */
@media (min-width: 720px) {
  .modal__card { min-height: 220px; padding-right: 200px; }
  .modal__cta { position: absolute; right: 18px; bottom: 18px; }
}

/* Booking (Оплатить половину) */
.booking__head {
  text-align: center;
  margin: 0 0 26px;
  display: grid;
  gap: 22px;
  justify-items: center;
}
.booking__head .booking__intro { text-align: center; }
.booking__head .h-section { color: var(--paper); margin: 0; }
.booking__head .h-section .mark { color: var(--yellow); background: none; padding: 0; }
.booking__intro {
  border: 1.5px solid rgba(255,220,140,.38);
  border-radius: 22px;
  padding: 22px clamp(20px, 2.4vw, 32px);
  color: #d8c69a;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.55;
  max-width: 900px;
}
.booking__intro p { margin: 0; }
.booking__grid { gap: 20px; }
.booking__prices {
  margin: 8px 0 6px;
  display: grid;
  gap: 10px;
}
.booking__price {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.booking__price b {
  line-height: 1;
  white-space: nowrap;
}
.booking__price span { white-space: nowrap; }
/* half-price (first row) — заголовочный шрифт, крупная */
.booking__prices .booking__price:first-child b {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(64px, 5.8vw, 96px);
  letter-spacing: -.02em;
}
/* full price (second row) — простой Manrope, компактно, в одну строку с подписью */
.booking__prices .booking__price:last-child {
  flex-wrap: nowrap;
  gap: 12px;
}
.booking__prices .booking__price:last-child b {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: -.01em;
}
.booking__prices .booking__price:last-child span {
  font-size: clamp(12px, .9vw, 14px);
}
.booking__price span {
  font-size: clamp(13px, 1vw, 16px);
  opacity: .8;
}
.tariff--ink .booking__price b { color: var(--paper); }
.tariff--wine .booking__price b { color: var(--paper); }
.tariff--paper .booking__price b,
.tariff--sky .booking__price b { color: var(--ink); }
.booking__deadline {
  text-align: center;
  font-size: 13px;
  opacity: .75;
  margin: 10px 0 0;
}
.booking__foot {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.booking__back {
  background: rgba(255,255,255,.08);
  color: var(--paper);
  padding: 16px 44px;
  border-radius: 44px;
  border: 1.5px solid rgba(255,255,255,.15);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.booking__back:hover { background: rgba(255,255,255,.14); }

/* modal mobile tweaks */
@media (max-width: 600px) {
  .modal { padding: 8px; }
  .modal__panel { padding: 22px 16px 26px; border-radius: 22px; }
  .modal__panel--sm { padding: 26px 18px; }
  .modal__card { padding: 20px 18px 22px; }
  .modal__cta { display: block; width: 100%; text-align: center; padding: 14px 20px; }
  .booking__grid { grid-template-columns: minmax(0, 1fr); }
  .booking__head .h-section { font-size: clamp(38px, 10vw, 52px); }
}
