:root {
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --ink: #1f2a24;
  --muted: #5d6b62;
  --sage: #a9bfa8;
  --sage-light: #dfe8dc;
  --forest: #2f4a3a;
  --coral: #ff4f7b;
  --coral-soft: #ffe1e8;
  --sun: #ffd166;
  --line: rgba(31, 42, 36, .12);
  --radius: 28px;
  --shadow: 0 20px 60px -20px rgba(47, 74, 58, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { max-width: 100%; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Unbounded", sans-serif; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4.5vw, 52px); }
b { font-weight: 800; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; margin-top: 14px; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ---------- formula background ---------- */
.formula-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.formula-bg span {
  position: absolute; font-family: "Unbounded", system-ui, sans-serif; color: var(--forest); opacity: .07;
  animation: floatUp linear infinite; white-space: nowrap;
}
@keyframes floatUp {
  from { transform: translateY(110vh) rotate(0deg); }
  to { transform: translateY(-20vh) rotate(25deg); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 24px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(255, 253, 248, .72); backdrop-filter: blur(16px);
  border: 1px solid var(--line); transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.logo { font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--forest); color: var(--bg); display: grid; place-items: center; }
.logo-dot { color: var(--coral); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px "Manrope", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 10px 18px; font-size: 14px; background: var(--forest); color: var(--bg); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -8px rgba(255, 79, 123, .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(255, 79, 123, .7); }
.btn-ghost { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--bg); color: var(--forest); }
.btn-outline-light { background: transparent; border-color: var(--bg); color: var(--bg); }
.link-btn { background: none; border: 0; font: 600 15px "Manrope", system-ui, sans-serif; color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: 12px; }

/* ---------- layout ---------- */
section, header, footer, .marquee { position: relative; z-index: 1; }
.section { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.section-head .btn { margin-top: 28px; }
.kicker {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest); background: var(--sage-light); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.kicker.light { background: rgba(255, 255, 255, .15); color: var(--bg); }

/* ---------- hero ---------- */
.hero {
  width: min(1160px, calc(100% - 32px)); margin: 0 auto; min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 120px 0 60px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px;
  background: var(--paper); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); } }
h1 { font-size: clamp(40px, 6.4vw, 82px); font-weight: 900; }
.scribble { position: relative; color: var(--coral); white-space: nowrap; }
.scribble::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -.08em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 40 4, 80 18, 120 8 S 180 6, 198 12' fill='none' stroke='%23ffd166' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1; transform-origin: left; animation: draw 1.2s .6s both cubic-bezier(.6, 0, .2, 1);
}
@keyframes draw { from { transform: scaleX(0); } }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stats b { font-family: "Unbounded", system-ui, sans-serif; font-size: 34px; display: block; color: var(--forest); }
.stats span { font-size: 14px; color: var(--muted); font-weight: 600; }

.hero-visual { position: relative; }
.photo-card {
  position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--sage-light), var(--sage)); box-shadow: var(--shadow);
  transition: transform .2s ease-out;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: none; position: absolute; inset: 0; place-items: center;
  font: 900 160px "Unbounded", system-ui, sans-serif; color: rgba(255, 255, 255, .7);
}
.photo-card.no-photo img { display: none; }
.photo-card.no-photo .photo-fallback { display: grid; }
.sticker {
  position: absolute; background: var(--paper); padding: 12px 18px; border-radius: 18px;
  font-weight: 800; font-size: 14px; line-height: 1.3; box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}
.s1 { top: 8%; left: -40px; transform: rotate(-6deg); }
.s2 { bottom: 16%; right: -30px; animation-delay: -1.5s; background: var(--sun); }
@keyframes bob { 50% { translate: 0 -12px; } }

/* ---------- marquee ---------- */
.marquee { background: var(--forest); color: var(--bg); padding: 18px 0; overflow: hidden; transform: rotate(-1.5deg); margin: 20px -20px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 30s linear infinite; font: 700 20px "Unbounded", system-ui, sans-serif; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- quiz ---------- */
.challenge-banner {
  max-width: 640px; margin: 0 auto 30px; text-align: center; padding: 16px 22px;
  background: var(--sun); border-radius: 20px; font-weight: 700; animation: shake .6s .3s;
}
@keyframes shake { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.quiz-card {
  max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: var(--radius);
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 44px; min-height: 420px;
  display: grid;
}
.quiz-screen { display: none; text-align: center; align-self: center; }
.quiz-screen.active { display: block; animation: pop .4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.quiz-emoji { font-size: 64px; margin-bottom: 10px; }
.quiz-screen h3 { font-size: 28px; margin-bottom: 12px; }
.quiz-screen .btn-lg { margin-top: 26px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.q-timer { font-family: "Unbounded", system-ui, sans-serif; font-size: 22px; background: var(--forest); color: var(--bg); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; }
.q-timer.danger { background: var(--coral); animation: pulse-red .5s infinite alternate; }
@keyframes pulse-red { to { transform: scale(1.1); } }
.q-progress { height: 8px; background: var(--sage-light); border-radius: 99px; margin: 18px 0 30px; overflow: hidden; }
.q-progress div { height: 100%; background: var(--coral); width: 0; transition: width .3s; }
.q-text { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 28px; min-height: 2.2em; }
.q-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-options button {
  font: 700 18px "Manrope", system-ui, sans-serif; padding: 18px; border-radius: 18px; cursor: pointer;
  background: var(--bg); border: 2px solid var(--line); color: var(--ink); transition: all .15s;
}
.q-options button:hover { border-color: var(--forest); transform: translateY(-2px); }
.q-options button.correct { background: #c8f0d2; border-color: #2ecc71; }
.q-options button.wrong { background: var(--coral-soft); border-color: var(--coral); animation: shake .3s; }
.result-score { font: 900 96px "Unbounded", system-ui, sans-serif; color: var(--coral); line-height: 1; }
.result-score small { font-size: 40px; color: var(--muted); }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.result-cta { display: block; font-weight: 800; color: var(--forest); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo .photo-card { transform: rotate(-3deg); }
.about-text h2 { margin-bottom: 18px; }
.about-text > p { font-size: 18px; color: var(--muted); }
.facts { display: grid; gap: 10px; margin: 28px 0; }
.fact {
  display: flex; gap: 14px; align-items: center; background: var(--paper); padding: 14px 18px;
  border-radius: 18px; border: 1px solid var(--line); font-weight: 600; transition: transform .2s;
}
.fact:hover { transform: translateX(8px); }
.fact span { font-size: 24px; }
blockquote {
  font: 500 20px/1.45 "Unbounded", system-ui, sans-serif; padding: 24px 28px; background: var(--sage-light);
  border-radius: 24px; border-left: 6px solid var(--forest);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step {
  background: var(--paper); border-radius: 24px; padding: 28px 22px; border: 1px solid var(--line);
  transition: transform .3s, background .3s, color .3s;
}
.step:hover { transform: translateY(-8px) rotate(-1deg); background: var(--forest); color: var(--bg); }
.step:hover p { color: var(--sage-light); }
.step b { font: 900 42px "Unbounded", system-ui, sans-serif; color: var(--coral); display: block; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); transition: color .3s; }

/* ---------- prices ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.price-card.featured { background: var(--forest); color: var(--bg); border: 0; box-shadow: var(--shadow); }
.price-card.featured .muted { color: var(--sage-light); }
.ribbon { position: absolute; top: -14px; right: 26px; background: var(--coral); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 99px; }
.price-tag { font: 700 22px "Unbounded", system-ui, sans-serif; margin-bottom: 6px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.price-card li::before { content: "✓"; color: var(--coral); font-weight: 900; margin-right: 10px; }
.notes { max-width: 900px; margin: 28px auto 0; display: grid; gap: 14px; }
.note { padding: 18px 22px; border-radius: 20px; background: var(--paper); border: 1px dashed var(--muted); }
.note.warn { background: var(--coral-soft); border-color: var(--coral); }

/* ---------- referral ---------- */
.referral {
  position: relative; overflow: hidden; background: var(--coral); color: #fff;
  border-radius: 40px; padding: 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.referral h2 { margin-bottom: 16px; }
.referral p { font-size: 18px; opacity: .95; }
.ref-actions { display: grid; gap: 12px; position: relative; z-index: 1; }
.ref-actions .btn-light { color: var(--coral); }
.ref-deco { position: absolute; right: -20px; bottom: -80px; font: 900 260px "Unbounded", system-ui, sans-serif; opacity: .12; pointer-events: none; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--paper); border-radius: 22px; border: 1px solid var(--line); transition: background .2s; }
details[open] { background: var(--sage-light); }
summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 26px "Unbounded", system-ui, sans-serif; line-height: 1; transition: transform .3s; color: var(--coral); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- final ---------- */
.final { padding: 120px 16px; }
  max-width: 900px; margin: 0 auto; text-align: center; background: var(--paper);
  border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--forest); border-radius: 40px; padding: 70px 32px;
}
.heart { font-size: 56px; animation: beat 1.2s infinite; display: inline-block; }
@keyframes beat { 15% { transform: scale(1.2); } 30% { transform: scale(1); } }
.footer { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 110px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }

/* ---------- misc ---------- */
.sticky-cta {
  display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--coral); color: #fff; text-align: center; font-weight: 800; text-decoration: none;
  padding: 17px; border-radius: 999px; box-shadow: 0 14px 40px -10px rgba(255, 79, 123, .7);
  transform: translateY(150%); transition: transform .4s;
}
.sticky-cta.show { transform: none; }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 30px); opacity: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 99px; font-weight: 700;
  transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; width: 100%; height: 100%; }

.js .reveal { opacity: 0; transform: translateY(30px); }
.reveal { transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero, .about, .referral { grid-template-columns: 1fr; }
  .hero { text-align: left; padding-top: 110px; }
  .hero-visual { max-width: 420px; margin: 20px auto 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .section { padding-top: 80px; }
  .s1 { left: -8px; } .s2 { right: -8px; }
  .stats { gap: 24px; }
  .steps, .price-grid, .q-options { grid-template-columns: 1fr; }
  .quiz-card { padding: 28px 20px; box-shadow: 6px 6px 0 var(--ink); }
  .referral { padding: 40px 24px; border-radius: 28px; }
  .price-card { padding: 28px 22px; }
  .sticky-cta { display: block; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .s1 { top: -14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2: отзывы-пузыри Telegram, галерея, новые цены
   ========================================================= */
:root { --tg-bg: #ffffff; --tg-name: #3a8fd9; }

.tg {
  position: relative; background: var(--tg-bg); border-radius: 20px 20px 20px 6px;
  padding: 14px 18px 12px; box-shadow: 0 14px 40px -16px rgba(31, 42, 36, .35);
  font-size: 15px; line-height: 1.45; max-width: 360px; margin: 0;
}
.tg::before {
  content: ""; position: absolute; left: -7px; bottom: 0; width: 14px; height: 14px;
  background: radial-gradient(circle at 0 0, transparent 13px, var(--tg-bg) 14px);
}
.tg figcaption { color: var(--tg-name); font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.tg p { color: var(--ink); }
.tg-meta { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: #eef3f8; padding: 3px 9px; border-radius: 99px; }

/* hero bubble */
.hero-tg { position: absolute; left: -70px; bottom: 40px; max-width: 280px; transform: rotate(-4deg); animation: bob 5s ease-in-out infinite; animation-delay: -2s; z-index: 2; }
.s2 { bottom: auto; top: 46%; }

/* quiz side bubbles */
.quiz-wrap { display: grid; grid-template-columns: 1fr minmax(0, 680px) 1fr; gap: 28px; align-items: center; }
.quiz-wrap .quiz-card { margin: 0; width: 100%; }
.tg-side { max-width: 250px; font-size: 14px; }
.tg-left { justify-self: end; rotate: -5deg; }
.tg-right { justify-self: start; rotate: 4deg; margin-top: 140px; }

/* about */
.about-photo { position: relative; }
.about-tg { position: absolute; right: -40px; bottom: 30px; max-width: 270px; rotate: 3deg; }

/* gallery mosaic */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 16px;
}
.g { margin: 0; border-radius: 26px; overflow: hidden; position: relative; background: var(--sage-light); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.g:hover img { transform: scale(1.06); }
.gallery { grid-template-areas: "g1 g1 g2 g3" "g1 g1 g2 g3" "g1 g1 g4 g5" "tg tg g4 g5"; }
.g1 { grid-area: g1; } .g1 img { object-position: center 30%; }
.g2 { grid-area: g2; } .g3 { grid-area: g3; }
.g4 { grid-area: g4; } .g4 img { object-position: center 60%; }
.g5 { grid-area: g5; } .g5 img { object-position: center 35%; }
.g-tg { grid-area: tg; align-self: center; justify-self: center; rotate: -2deg; font-size: 15px; max-width: 460px; }
.g-tag { position: absolute; left: 14px; bottom: 14px; background: var(--paper); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 99px; }

/* wide parent review */
.tg-wide { max-width: 820px; margin: 40px auto 0; font-size: 17px; padding: 22px 28px 20px; rotate: -1deg; }

/* prices */
.price-hero { color: var(--coral); white-space: nowrap; }
.price-emoji { font-size: 40px; margin-bottom: 10px; }
.price-card ul { margin-top: 22px; }
.subs {
  max-width: 900px; margin: 24px auto 0; background: var(--sun); border-radius: var(--radius);
  padding: 32px 36px; display: grid; grid-template-columns: 1fr auto; gap: 22px 28px; align-items: center;
}
.subs .kicker { background: rgba(255, 255, 255, .6); margin-bottom: 10px; }
.subs h3 { font-size: 24px; }
.sub-cards { display: flex; gap: 14px; grid-column: 1 / -1; }
.sub-card { flex: 1; background: var(--paper); border-radius: 22px; padding: 18px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.sub-card b { font: 900 52px/1 "Unbounded", system-ui, sans-serif; color: var(--forest); grid-row: span 2; }
.sub-card span { font-weight: 800; font-size: 18px; }
.sub-card small { color: var(--muted); font-weight: 600; }
.sub-card.hot { background: var(--forest); color: var(--bg); }
.sub-card.hot b { color: var(--sun); }
.sub-card.hot small { color: var(--sage-light); }
.subs > .btn { grid-column: 1 / -1; justify-self: start; }
.price-tgs { max-width: 900px; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 20px; }
.price-tgs .tg:nth-child(1) { rotate: -3deg; }
.price-tgs .tg:nth-child(2) { rotate: 2.5deg; margin-top: 30px; }

/* reviews wall */
.reviews .section-head { margin-bottom: 30px; }
.tg-wall { position: relative; z-index: 1; overflow: hidden; padding: 20px 0; display: grid; gap: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tg-row { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; align-items: flex-start; }
.tg-row.reverse { animation-direction: reverse; animation-duration: 85s; }
.tg-wall:hover .tg-row { animation-play-state: paused; }
.tg-row .tg { width: 330px; flex: none; }
.tg-row .tg:nth-child(odd) { transform: rotate(-1.5deg); }
.tg-row .tg:nth-child(even) { transform: rotate(1.5deg); margin-top: 18px; }
.reviews-cta { text-align: center; margin-top: 30px; position: relative; z-index: 1; }

/* final */
.final-tg { margin-top: 30px; transform: rotate(-2deg); max-width: 400px; }
.footer a { color: inherit; }

@media (max-width: 1100px) {
  .quiz-wrap { grid-template-columns: 1fr; }
  .quiz-wrap .quiz-card { max-width: 680px; justify-self: center; }
  .tg-side { justify-self: center !important; margin: 0 !important; max-width: 420px; }
  .tg-left { order: 2; } .quiz-wrap .quiz-card { order: 1; } .tg-right { order: 3; }
}
@media (max-width: 980px) {
  .hero-tg { left: -10px; bottom: -40px; }
  .about-tg { right: -6px; bottom: -30px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery { grid-template-areas: "g1 g1" "g1 g1" "g1 g1" "g2 g3" "g2 g3" "tg tg" "g4 g5" "g4 g5"; grid-auto-rows: auto; grid-template-rows: repeat(5, 150px) auto 150px 150px; }
  .final-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .hero-tg { position: relative; left: auto; bottom: auto; margin: -30px 10px 0 auto; }
  .about-tg { position: relative; right: auto; bottom: auto; margin: -40px 0 0 auto; }
  .subs { padding: 26px 20px; grid-template-columns: 1fr; }
  .sub-cards { flex-direction: column; }
  .subs > .btn { justify-self: stretch; }
  .price-tgs { flex-direction: column; align-items: center; }
  .price-tgs .tg:nth-child(2) { margin-top: 0; }
  .tg-row .tg { width: 280px; }
  .hero-cta { flex-direction: column; }
}
.final .tg p { margin: 0; font-size: 15px; max-width: none; color: var(--ink); }
.price-tgs { align-items: flex-start; }
@media (max-width: 640px) {
  .stats { display: grid; grid-template-columns: auto auto auto; gap: 14px; margin-top: 36px; }
  .stats b { font-size: 21px; white-space: nowrap; }
  .stats span { font-size: 12px; }
}

/* Сайт всегда светлый: не даём браузерам и просмотрщикам «затемнять» его в тёмном режиме */
:root { color-scheme: light only; }
html { background: var(--bg) !important; }
body { background: var(--bg) !important; color: var(--ink) !important; position: relative; z-index: 0; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; background: var(--bg); z-index: -1; pointer-events: none; }

/* =========================================================
   v3: раздел «Контакты» + форма заявки
   ========================================================= */
.final { padding: 110px 16px 60px; }
.contacts-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.contacts-head p { color: var(--muted); font-size: 18px; margin: 18px auto 0; max-width: 560px; }
.contacts-grid {
  width: min(1100px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start;
}
.contacts-left { min-width: 0; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 6px; text-decoration: none; transition: padding .25s, background .25s;
  border-radius: 14px;
}
.contact-list a:hover { padding-left: 16px; padding-right: 16px; background: var(--paper); }
.c-value { font: 700 clamp(18px, 2.2vw, 24px) "Unbounded", system-ui, sans-serif; min-width: 0; overflow-wrap: anywhere; }
.c-label { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.contact-list a:hover .c-label { color: var(--coral); }
.contacts-note { color: var(--muted); margin-top: 26px; max-width: 460px; }
.contacts-left .final-tg { margin-top: 28px; }

.lead-card {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--forest);
  border-radius: 32px; padding: 36px; min-width: 0;
}
.lead-card h3 { font-size: 26px; margin-bottom: 6px; }
.lead-card form > .muted { margin-bottom: 18px; }
.lead-card label {
  display: block; margin: 16px 0 8px; font-weight: 800; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--forest);
}
.lead-card input, .lead-card select, .lead-card textarea {
  width: 100%; font: 500 16px "Manrope", system-ui, sans-serif; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px;
  transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.lead-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232f4a3a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.lead-card textarea { resize: vertical; min-height: 110px; }
.lead-card input:focus, .lead-card select:focus, .lead-card textarea:focus { outline: none; border-color: var(--forest); background: #fff; }
.lead-card input::placeholder, .lead-card textarea::placeholder { color: #9aa59d; }
.lead-card .btn { margin-top: 24px; }
.lead-card .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-hint { margin-top: 12px; color: #c0284f; font-weight: 700; }
.lead-card .tiny { margin-top: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lead-success { text-align: center; padding: 30px 0; }
.lead-success .btn { margin-top: 20px; }
.btn:focus-visible, .lead-card input:focus-visible, .contact-list a:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .lead-card { order: -1; }
}
@media (max-width: 640px) {
  .final { padding: 80px 16px 40px; }
  .lead-card { padding: 26px 20px; border-radius: 26px; box-shadow: 6px 6px 0 var(--forest); }
  .contact-list a { padding: 18px 4px; }
}
#contacts, section[id] { scroll-margin-top: 90px; }

/* контакты: значки мессенджеров */
.contact-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.c-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: var(--forest); flex: none; transition: transform .25s;
}
.c-icon svg { width: 24px; height: 24px; }
.contact-list a:hover .c-icon { transform: rotate(-6deg) scale(1.06); }
.c-tg .c-icon { background: #2aabee; }
.c-wa .c-icon { background: #25d366; }
.c-max .c-icon { background: linear-gradient(135deg, #4f8cff, #8a4dff); }
.c-ph .c-icon { background: var(--forest); }
.c-ml .c-icon { background: var(--coral); }
.c-value { font-size: clamp(16px, 2vw, 22px); }
.c-ml .c-value { font-size: clamp(14px, 1.6vw, 18px); }
@media (max-width: 640px) {
  .contact-list a { gap: 12px; }
  .c-icon { width: 40px; height: 40px; border-radius: 12px; }
  .c-icon svg { width: 21px; height: 21px; }
  .c-label { font-size: 10px; letter-spacing: .1em; }
}
