/* Контур — magazine format: cover (slide 1) + spread (slide 2) */
:root {
  --cream: #f6f3ed;
  --cream-dark: #ebe6dc;
  --ink: #1a1816;
  --ink-soft: #3d3935;
  --muted: #6b6560;
  --light: #faf8f5;
  --sd-blue: #3d5a73;
  --sd-green: #4a6356;
  --sd-warm: #9a6b47;
  --editorial-red: #c41e3a;
  --editorial-red-bg: #f8e8ec;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-brand: "Syne", system-ui, sans-serif;
  --max: 1160px;
  --pad: clamp(4rem, 9vw, 6.5rem);
  --header-h: 68px;
  --top-h: 38px;
  --strip-gap: clamp(6px, 1.2vw, 14px);
  --text-base: 1.125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.magazine { background: var(--cream); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--muted);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--top-h);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top note */
.top-note {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  min-height: var(--top-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  :root {
    --top-h: 60px;
    --header-h: 58px;
  }
  .top-note__inner {
    gap: 0.4rem 0.75rem;
    padding: 0.4rem 0;
    justify-content: center;
    font-size: 0.65rem;
  }
  .top-note__sep { display: none; }
}

.top-note__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-note__sep { width: 24px; height: 1px; background: var(--editorial-red); opacity: 0.7; }
.top-note__link { color: var(--cream); border-bottom: 1px solid currentColor; }

/* Header */
.header {
  position: sticky;
  top: var(--top-h);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

.header--on-hero .logo, .header--on-hero .nav a, .header--on-hero .menu-toggle span { color: var(--light); }
.header--on-hero .logo__mark { color: var(--light); }
.header--on-hero .menu-toggle { border-color: rgba(255,255,255,0.35); }
.header--on-hero .menu-toggle span { background: var(--light); }

.header--scrolled {
  background: rgba(246,243,237,0.96);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(26,24,22,0.08);
}

.header--scrolled .logo, .header--scrolled .nav a, .header--scrolled .menu-toggle span { color: var(--ink); }
.header--scrolled .logo__mark { color: var(--sd-blue); }

.header__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo__word {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.logo__mark { flex-shrink: 0; }

.nav { display: none; gap: 2rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; border: 1px solid rgba(26,24,22,0.15); background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; width: 14px; height: 1.5px; margin-inline: auto; background: var(--ink); transition: transform 0.2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: calc(var(--top-h) + var(--header-h));
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 2px solid rgba(26,24,22,0.10);
  box-shadow: 0 8px 32px rgba(26,24,22,0.12);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              padding 0.3s;
  padding: 0 1.5rem;
  pointer-events: none;
}
.mobile-nav:not([hidden]) {
  max-height: 600px;
  opacity: 1;
  padding: 0.5rem 1.5rem 1.5rem;
  pointer-events: auto;
}
.mobile-nav[hidden] { display: flex !important; }
.mobile-nav a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-family: var(--font-serif);
  color: var(--ink);
  border-bottom: 1px solid rgba(26,24,22,0.07);
  letter-spacing: 0.01em;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--sd-blue); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header__cta { display: inline-flex; }
}
.header__cta { display: none; }

/* Watermark */
.logo-watermark {
  position: fixed; z-index: 50;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1.5rem, 5vw, 3rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  color: var(--ink); opacity: 0; pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.6s, transform 0.6s;
}
.logo-watermark.is-visible { opacity: 0.18; transform: scale(1); }
.logo-watermark.is-pulse { opacity: 0.32; transform: scale(1.05); }
.logo-watermark__mark { width: 44px; height: 44px; }
.logo-watermark__word { font-family: var(--font-brand); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--light);
  padding: 0.8rem 0;
  border-block: 3px solid var(--ink);
}
.marquee--reverse { background: var(--cream-dark); color: var(--ink); }
.marquee--red { background: var(--editorial-red); color: var(--light); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 30s; }
.marquee__track span { padding-right: 2.5rem; white-space: nowrap; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ═══ COVER SPREAD (slide 1) ═══ */
.mag-cover {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 12vh, 8rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 5vw, 4rem);
}

.mag-cover--short { min-height: 85vh; min-height: 85dvh; }

.mag-cover--hero .mag-cover__content {
  padding-top: calc(var(--top-h) + var(--header-h) + 7rem);
}

.mag-cover__meta {
  position: absolute;
  top: calc(var(--top-h) + var(--header-h) + 0.75rem);
  left: clamp(1rem, 4vw, 2.5rem);
  right: clamp(1rem, 4vw, 2.5rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mag-cover__brand {
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--light);
}

.mag-cover__issue {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.mag-cover__barcode {
  width: 44px; height: 26px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.7) 0, rgba(255,255,255,0.7) 2px, transparent 2px, transparent 4px);
  opacity: 0.45;
}

.mag-cover__strips {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--strip-gap);
  padding: 0 clamp(4px, 1vw, 8px);
  padding-top: calc(var(--top-h) + var(--header-h));
}

.mag-cover__strip {
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0.94);
  animation: stripIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mag-cover__strip:nth-child(1) { animation-delay: 0.08s; }
.mag-cover__strip:nth-child(2) { animation-delay: 0.2s; }
.mag-cover__strip:nth-child(3) { animation-delay: 0.32s; }

@keyframes stripIn { to { opacity: 1; transform: scaleY(1); } }

.mag-cover__strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.18);
}

.mag-cover__halftone {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(circle, rgba(61,90,115,0.5) 1px, transparent 1px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
  animation: halftone 14s linear infinite;
}
@keyframes halftone { to { background-position: 7px 7px; } }

.mag-cover__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.mag-cover__content--split {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 800px) {
  .mag-cover__content--split { grid-template-columns: 1.1fr 0.9fr; }
}

.mag-cover__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 4px 50px rgba(0,0,0,0.85);
}

.mag-cover__title--sm {
  font-size: clamp(2.8rem, 10vw, 6.5rem);
}

.mag-cover__title span { display: block; }
.mag-cover__title-accent { color: #fff; }

.mag-cover__box {
  max-width: 36rem;
  padding: 1.35rem 1.5rem;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--editorial-red);
}

.mag-cover__aside {
  padding: 1.5rem;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}

.mag-cover__aside-label {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.mag-cover__aside-count {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}
.mag-cover__aside-count span { color: var(--editorial-red); }

.mag-cover__bar {
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 1rem;
  overflow: hidden;
}
.mag-cover__bar span {
  display: block; height: 100%; width: 0;
  background: var(--editorial-red);
  transition: width 1.2s ease;
}

.hero-offer {
  font-size: 1.12rem;
  line-height: 1.55;
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.deck {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.25rem;
}

.mag-cover .btn--primary { background: var(--editorial-red); }
.mag-cover .btn--primary:hover { background: #a01830; }
.mag-cover .btn--outline { border-color: rgba(255,255,255,0.55); color: #fff; }

.hero-enter > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-enter > *:nth-child(1) { animation-delay: 0.15s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.28s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.4s; }

@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ═══ EDITORIAL SPREAD (slide 2) ═══ */
.mag-spread {
  padding: var(--pad) 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(26,24,22,0.06);
}

.mag-spread__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.mag-spread__issue {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.mag-spread__barcode {
  width: 40px; height: 22px;
  background: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 2px, transparent 2px, transparent 4px);
  opacity: 0.35;
}

.mag-spread__body {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .mag-spread__body { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .mag-spread__body--stack { grid-template-columns: 1fr; }
}

.mag-spread__intro { margin-bottom: 2.5rem; max-width: 40rem; }
.mag-spread__intro--center { margin-inline: auto; text-align: center; }

.kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.kicker--blue { color: var(--sd-blue); }
.kicker--green { color: var(--sd-green); }
.kicker--warm { color: var(--sd-warm); }

.lead {
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.body-lg {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--sd-green);
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.pull-quote--light {
  color: #fff;
  border-left-color: var(--editorial-red);
}

/* Stats grid — slide 2 signature */
.mag-spread__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

.mag-spread__stats--grid {
  grid-template-columns: repeat(2, 1fr);
}

.mag-spread__stats--tiles {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .mag-spread__stats--grid { grid-template-columns: repeat(3, 1fr); }
  .mag-spread__stats--tiles { grid-template-columns: repeat(3, 1fr); }
}

.stat-block {
  padding: 1.75rem 1.25rem;
  background: var(--light);
  text-align: center;
  transition: transform 0.35s ease;
}

.stat-block:hover { transform: translateY(-2px); }

.stat-block--accent { background: var(--editorial-red-bg); }

.stat-block--tile {
  text-align: left;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.stat-block--tile h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.stat-block--tile p { margin: 0; font-size: 1rem; flex: 1; }

.stat-block__n {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.stat-block__l {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.tile__offer {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26,24,22,0.1);
  font-size: 0.82rem !important;
  font-weight: 600;
  color: var(--editorial-red) !important;
}

/* Method steps — spread format */
.mag-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

@media (max-width: 700px) {
  .mag-steps { grid-template-columns: 1fr; }
}

.mag-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0.75rem;
  background: var(--light);
  text-align: center;
  opacity: 0.35;
  transition: opacity 0.4s, background 0.4s;
}

.mag-steps li.is-active {
  opacity: 1;
  background: var(--editorial-red-bg);
}

.mag-steps__n {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--editorial-red);
  line-height: 1;
}

.mag-steps__t {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* Lists */
.mag-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.15rem;
  font-size: 1.02rem;
  border-top: 1px solid rgba(26,24,22,0.08);
  color: var(--ink-soft);
}

.mag-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1rem;
  width: 5px; height: 5px;
  background: var(--editorial-red);
  border-radius: 50%;
}

.mag-list--light li {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.12);
}

.mag-list--spread { max-width: 100%; }

/* Directions — spread pages */
.mag-directions {
  display: grid;
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
}

@media (min-width: 640px) {
  .mag-directions { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .mag-directions { grid-template-columns: repeat(3, 1fr); }
}

.mag-dir {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 1.75rem;
  background: var(--light);
  transition: transform 0.35s, background 0.35s;
}

.mag-dir:hover { background: #fff; transform: translateY(-2px); }

.mag-dir header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mag-dir__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--editorial-red);
  line-height: 1;
}

.mag-dir__tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  background: var(--editorial-red-bg);
  color: var(--editorial-red);
}

.mag-dir h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(26,24,22,0.08);
}

.mag-dir__ctx {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mag-dir__result {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
  flex: 1;
}

.mag-dir__how {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mag-dir__offer {
  margin: 0 0 1rem;
  padding: 0.85rem;
  background: var(--editorial-red-bg);
  border: 2px solid var(--editorial-red);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.offer-label {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--editorial-red);
  padding: 0.2rem 0.45rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.mag-dir__link {
  margin-top: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sd-blue);
}
.mag-dir__link:hover { color: var(--editorial-red); }

/* Form on cover */
.mag-form {
  padding: 1.5rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.mag-form input {
  width: 100%;
  padding: 0.9rem 0;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  outline: none;
  margin-bottom: 0.25rem;
}
.mag-form input:focus { border-color: var(--editorial-red); }
.mag-form input::placeholder { color: rgba(255,255,255,0.45); }
.mag-form .form__note { color: rgba(255,255,255,0.45); font-size: 0.8rem; text-align: center; margin-top: 0.75rem; }
.mag-form .form__status { color: #fff; min-height: 1.2rem; font-size: 0.9rem; }
.mag-form .form__status.is-success { color: #8fd4a8; }
.mag-form .form__status.is-error { color: #f0a0a0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s, opacity 0.25s;
}

.btn--primary { background: var(--ink); color: var(--light); }
.btn--primary:hover { background: var(--sd-blue); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.45); color: inherit; }
.btn--full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.5rem; }

.form.is-loading button { opacity: 0.55; pointer-events: none; }

/* Footer */
.footer {
  padding: 2rem 0;
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
}

.footer a:hover { color: var(--light); }

/* Reveal */
.reveal, .reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible, .reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > *, .hero-enter > *, .mag-cover__strip {
    opacity: 1; transform: none; transition: none; animation: none;
  }
  .marquee__track { animation: none; }
  .mag-cover__halftone { animation: none; }
  .logo-watermark { display: none; }
  .mag-steps li { opacity: 1; }
}

@media (max-width: 640px) {
  .mag-spread__stats { grid-template-columns: 1fr; }
}

/* ── Tech Services Block ──────────────────────────────────── */

/* цветовые акценты для каждой карточки */
:root {
  --tc-1: #e8f0f6;  /* синий — онлайн-школы */
  --tc-2: #eaf2ee;  /* зелёный — сайты */
  --tc-3: #f0ece8;  /* тёплый — мобильные */
  --tc-4: #f6eef0;  /* розовый — боты */
  --tc-5: #edf0e8;  /* оливковый — маркетинг */
  --tc-6: #ece8f0;  /* фиолетовый — продажи */

  --tc-1-acc: var(--sd-blue);
  --tc-2-acc: var(--sd-green);
  --tc-3-acc: var(--sd-warm);
  --tc-4-acc: #8a4a5e;
  --tc-5-acc: #5a6a3d;
  --tc-6-acc: #5a4a7a;
}

.tech-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 760px) {
  .tech-services { grid-template-columns: 1fr; gap: 0.75rem; }
  .tech-cat__num { font-size: 1.5rem; width: 2rem; }
  .tech-cat__header { padding: 1rem; gap: 0.75rem; }
  .tech-cat__title { font-size: 0.95rem; }
  .tech-cat__desc { font-size: 0.75rem; }
  .tech-cat__list { padding: 0 1rem 1rem 1rem; }
  .tech-extra__card { grid-template-columns: 1fr; }
  .tech-extra__card .btn { grid-column: 1; grid-row: auto; margin-top: 1rem; }
}

.tech-cat {
  background: var(--tc-bg, var(--cream-dark));
  border: 1px solid rgba(26,24,22,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.tech-cat:hover { box-shadow: 0 4px 20px rgba(26,24,22,0.08); }

/* индивидуальные цвета */
.tech-cat:nth-child(1) { --tc-bg: var(--tc-1); --tc-acc: var(--tc-1-acc); }
.tech-cat:nth-child(2) { --tc-bg: var(--tc-2); --tc-acc: var(--tc-2-acc); }
.tech-cat:nth-child(3) { --tc-bg: var(--tc-3); --tc-acc: var(--tc-3-acc); }
.tech-cat:nth-child(4) { --tc-bg: var(--tc-4); --tc-acc: var(--tc-4-acc); }
.tech-cat:nth-child(5) { --tc-bg: var(--tc-5); --tc-acc: var(--tc-5-acc); }
.tech-cat:nth-child(6) { --tc-bg: var(--tc-6); --tc-acc: var(--tc-6-acc); }

/* цветная полоска сверху */
.tech-cat::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--tc-acc, var(--sd-blue));
}

.tech-cat__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: background 0.15s;
}

.tech-cat__header:hover { background: rgba(26,24,22,0.03); }
.tech-cat__header[aria-expanded="true"] { background: rgba(26,24,22,0.04); }

.tech-cat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--tc-acc, var(--sd-blue));
  flex-shrink: 0;
  width: 2.5rem;
  line-height: 1;
  opacity: 0.55;
}

.tech-cat__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tech-cat__title {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.tech-cat__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.tech-cat__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--tc-acc, var(--muted));
  border-bottom: 1.5px solid var(--tc-acc, var(--muted));
  transform: rotate(45deg);
  transition: transform 0.3s, opacity 0.2s;
  margin-top: 6px;
  opacity: 0.5;
}

.tech-cat__header[aria-expanded="true"] .tech-cat__arrow {
  transform: rotate(225deg);
  opacity: 1;
}

.tech-cat__list[hidden] { display: none !important; }

.tech-cat__list {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(26,24,22,0.08);
}

.tech-cat__list li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.45rem 0 0.45rem 1rem;
  position: relative;
  border-bottom: 1px solid rgba(26,24,22,0.06);
}

.tech-cat__list li:last-child { border-bottom: none; }

.tech-cat__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tc-acc, var(--sd-blue));
  opacity: 0.6;
}

/* reveal animation for list */
.tech-cat__list:not([hidden]) {
  animation: techListReveal 0.28s ease both;
}

@keyframes techListReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Extra card */
.tech-extra {
  margin-top: 3rem;
}

.tech-extra__card {
  background: var(--ink);
  color: var(--light);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 3rem;
  align-items: start;
}

.tech-extra__card .kicker { grid-column: 1 / -1; }
.tech-extra__card h3 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 0;
}

.tech-extra__card > p {
  color: rgba(250,248,245,0.65);
  font-size: 0.9rem;
  margin: 0;
  grid-column: 1 / 2;
}

.tech-extra__list {
  grid-column: 1 / 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.tech-extra__list li {
  font-size: 0.8rem;
  color: rgba(250,248,245,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.02em;
}

.tech-extra__card .btn {
  grid-column: 2 / 3;
  grid-row: 2 / 5;
  align-self: center;
  white-space: nowrap;
}


