/* === Tokens === */
:root {
  --bg-dark: #0F1626;
  --bg-dark-2: #0A1020;
  --bg-cream: #F4ECE0;
  --bg-cream-2: #EDE3D3;
  --accent: #E69A2A;
  --accent-bright: #F2B340;
  --accent-soft: rgba(230, 154, 42, 0.18);
  --ink: #1A1A1A;
  --ink-muted: #5A5650;
  --white: #FFFFFF;
  --white-muted: rgba(255, 255, 255, 0.72);
  --white-faint: rgba(255, 255, 255, 0.5);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-cream: rgba(26, 26, 26, 0.1);

  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-script: 'Caveat', 'Marck Script', cursive;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 32px -12px rgba(15, 22, 38, 0.18);
  --shadow-strong: 0 24px 48px -16px rgba(15, 22, 38, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* === Layout shell === */
.page {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-cream);
  overflow: clip;
}

section {
  padding: 64px 22px;
  position: relative;
}
section.dark {
  background: var(--bg-dark);
  color: var(--white);
}
section.cream {
  background: var(--bg-cream);
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  section { padding: 96px 48px; }
}
@media (min-width: 1024px) {
  section { padding: 120px 64px; }
}

/* === Type === */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 9vw, 96px);
  text-wrap: balance;
}
h2 {
  font-size: clamp(32px, 6vw, 60px);
  text-wrap: balance;
}
h3 {
  font-size: clamp(22px, 3vw, 30px);
}
p {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
}
.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}
.small {
  font-size: 14px;
  color: var(--ink-muted);
}
.dark .small { color: var(--white-faint); }

.accent { color: var(--accent); }
.script { font-family: var(--font-script); font-weight: 700; letter-spacing: 0; }

/* === Number marker (01 — line) === */
.nummark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: currentColor;
  opacity: 0.95;
  margin-bottom: 28px;
}
.nummark .bar {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--accent);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1A1003;
  box-shadow: 0 12px 24px -10px rgba(230, 154, 42, 0.6);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -10px rgba(230, 154, 42, 0.7);
}
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.06); }
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 26, 26, 0.18);
}
.btn-ghost-dark:hover { background: rgba(26, 26, 26, 0.04); }
.btn-lg { padding: 22px 36px; font-size: 18px; }
.btn-block { width: 100%; }

/* "бесплатно" badge inside CTA buttons */
.btn-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #1A1003;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  line-height: 1;
  white-space: nowrap;
}
.btn-lg .btn-badge { font-size: 13px; padding: 5px 12px; }
.btn-ink {
  background: #14110A;
  color: var(--accent-bright);
}
.btn-ink:hover { background: #000; transform: translateY(-1px); }

/* === Client offer band (free guide / free consultation) === */
.client-offer {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #1A1003;
  overflow: hidden;
}
.client-offer-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 880px) {
  .client-offer-inner { grid-template-columns: 1.4fr 0.8fr; gap: 56px; }
}
.client-offer-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 17, 10, 0.16);
  color: #14110A;
  margin-bottom: 22px;
}
.client-offer-main h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.04;
  color: #14110A;
  margin: 0 0 20px;
}
.client-offer-main h2 .uline {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(20,17,10,0.4);
}
.client-offer-main p {
  font-size: 18px;
  line-height: 1.6;
  color: #2a2208;
  max-width: 56ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.client-offer-main p strong { color: #14110A; font-weight: 800; }
.client-offer-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.client-offer-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 34px 40px;
  background: #FBF6EC;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -16px rgba(20,17,10,0.45);
  transform: rotate(-3deg);
}
.client-offer-tag .t-from {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.client-offer-tag .t-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
}
.client-offer-tag .t-note {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--accent);
  margin-top: 4px;
}

/* === Highlight (scribble underline) === */
.highlight {
  position: relative;
  display: inline;
  white-space: nowrap;
  color: var(--accent);
}
.highlight-text {
  position: relative;
  display: inline-block;
  color: var(--ink);
}
.dark .highlight-text { color: var(--white); }
.highlight-text svg {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.18em;
  width: 108%;
  height: 0.5em;
  pointer-events: none;
}

/* === Kraft tape sticker === */
.tape {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(180deg, #D9C39A 0%, #C5A878 100%);
  color: #2a1f10;
  font-family: var(--font-script);
  font-size: 24px;
  line-height: 1.05;
  transform: rotate(6deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
  position: relative;
  text-align: center;
}
.tape::before, .tape::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background-image:
    radial-gradient(circle at 3px 3px, rgba(0,0,0,0.12) 1px, transparent 1.5px),
    radial-gradient(circle at 3px 10px, rgba(0,0,0,0.08) 1px, transparent 1.5px);
}
.tape::before { left: 0; }
.tape::after { right: 0; transform: scaleX(-1); }

/* === Card === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.card-cream {
  background: #FBF6EC;
  border: 1px solid rgba(26, 26, 26, 0.06);
}

/* === Icon dot === */
.icon-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.dark .icon-dot { color: var(--accent-bright); border-color: var(--accent-bright); }

/* === Hero === */
.hero {
  padding: 88px 22px 100px;
  background: var(--bg-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 120px 48px 140px; }
}
.hero h1 .accent { display: block; }
.hero h1 .accent + br { display: none; } /* the block already ends the line; the <br> made an empty one */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 154, 42, 0.18);
}
/* first-screen value points: experience, money saved, bank refusal, what realtors don't say */
.hero-proof {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 46ch;
}
.hero-proof li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.45;
  color: var(--white);
  font-weight: 500;
}
.hero-proof svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent-bright);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 36px;
  align-items: center;
}
.hero-meta .meta-item {
  display: flex; flex-direction: column;
}
.hero-meta .meta-item .v {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}
.hero-meta .meta-item .l {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: contents; } }

/* === Hero layout (mobile first): text -> price + buy + free sample -> the guide's video as its own full-width block
   -> details. Desktop: text, buttons and details on the left, the phone in the right column. === */
.hero-showcase {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.hero-cta { order: -1; } /* buttons first (first screen), then the video */
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-caption { font-family: var(--font-script); font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--accent-bright); text-align: center; }
.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.hero-cta .hero-price, .hero-cta .price-timer { grid-column: 1 / -1; }
.hero-cta .btn { width: 100%; padding: 15px 10px; font-size: 15px; gap: 8px; }
.hero-cta .hero-price .num { font-size: 40px; }
.hero-details { margin-top: 36px; }
.hero-details .hero-sub { margin-top: 0; }
@media (max-width: 360px) {
  .hero-cta .btn { padding: 13px 6px; font-size: 14px; gap: 5px; }
  .hero-cta .btn svg { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  .hero-cta .btn { width: auto; padding: 16px 26px; }
}
@media (min-width: 900px) {
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "text phone" "cta phone" "details phone";
    column-gap: 72px;
    align-items: start;
  }
  .hero-text { grid-area: text; }
  .hero-details { grid-area: details; margin-top: 36px; }
  .hero-showcase { display: contents; }
  .hero-phone { grid-area: phone; align-self: start; margin-top: 56px; }
  .hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
  .hero-cta .btn { width: auto; padding: 18px 28px; font-size: 17px; }
  .hero-cta .hero-price .num { font-size: 44px; }
  .hero .phone { width: 300px; height: 620px; border-radius: 44px; padding: 12px; }
  .hero .phone .notch { top: 14px; width: 100px; height: 26px; border-radius: 16px; }
  .hero .phone .screen { border-radius: 32px; }
  .hero .phone .phone-spinner { width: 38px; height: 38px; border-width: 3px; }
}
.hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hero-price .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.02em;
}
.hero-price .cur {
  font-size: 18px;
  color: var(--white-muted);
}
.hero-price .strike {
  text-decoration: line-through;
  color: var(--white-faint);
  font-size: 18px;
}

/* === Hero author badge (expert / Credipass) === */
.hero-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 22px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(230, 154, 42, 0.35);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  color: var(--white-muted);
  font-size: 15px;
  line-height: 1.35;
  max-width: 100%;
}
.hero-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.hero-author strong { color: var(--white); font-weight: 700; }
.hero-author-name { white-space: nowrap; } /* first name + surname never split; «Автор —» may sit above on narrow phones */
.hero-author strong.accent { color: var(--accent-bright); }
@media (max-width: 380px) {
  .hero-author { font-size: 13.5px; border-radius: 18px; gap: 10px; padding-right: 14px; }
  .hero-author img { width: 40px; height: 40px; }
}

/* === Price-increase countdown (dark sections: hero, price card, final CTA) === */
.price-timer {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(230, 154, 42, 0.35);
  background: rgba(230, 154, 42, 0.08);
  border-radius: var(--radius-sm);
  color: var(--white-muted);
  max-width: 100%;
}
.price-timer-caption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-timer-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 15px;
}
.price-timer-cell b {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}
.price-card .price-timer { margin-top: 16px; }
#contact .price-timer-cells { justify-content: center; }
@media (max-width: 380px) {
  .price-timer { padding: 10px 12px; }
  .price-timer-cells { gap: 4px 10px; font-size: 14px; }
  .price-timer-cell b { font-size: 19px; }
}


.hero-decor-arrow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 140px;
  opacity: 0.7;
  pointer-events: none;
}
@media (min-width: 768px) {
  .hero-decor-arrow { left: auto; right: 12%; bottom: 80px; width: 200px; }
}

.hero-decor-sparkle {
  position: absolute;
  color: var(--accent);
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-cream-2);
  aspect-ratio: 4 / 5;
  max-width: 480px;
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.portrait-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* === From the guide (excerpts: zadatek example, foreigners, deal route) === */
.fg-grid {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.fg-card {
  background: #FBF6EC;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  min-width: 0;
}
.fg-src {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.fg-card h3 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.15; text-wrap: balance; }
.fg-card h4 { font-size: 16px; font-weight: 700; line-height: 1.25; margin: 0 0 4px; }
.fg-card p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.fg-case { margin-top: 12px; }
.fg-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fg-tags li {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #7A4C0C;
}
.fg-route { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.fg-route-text p { margin-top: 8px; max-width: 52ch; }
/* teaser: the 7 steps as numbered dots on a line, ending in a lock — the step contents stay in the guide */
.fg-route-dots { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.fg-route-dots::before {
  content: '';
  position: absolute;
  left: 16px; right: 16px; top: 50%;
  height: 2px;
  background: var(--accent-soft);
}
.fg-step-n {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #1A1003;
  font: 800 15px var(--font-head);
}
.fg-lock {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
  color: var(--accent-bright);
}
.fg-lock svg { width: 15px; height: 15px; }
.fg-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 64ch;
}
.fg-cta p { font-size: 17px; font-weight: 500; color: var(--ink); text-wrap: pretty; }
@media (max-width: 480px) {
  .fg-cta .btn { width: 100%; }
}
@media (max-width: 360px) {
  .fg-card { padding: 22px 16px; }
  .fg-step-n, .fg-lock { width: 28px; height: 28px; font-size: 14px; }
}
@media (min-width: 768px) {
  .fg-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .fg-card { padding: 30px 28px; }
  /* two teasers on top, the deal route spans the full row: text left, steps right */
  .fg-route { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; }
  .fg-route-text { flex: 1 1 0; }
  .fg-route-dots { flex: 0 0 46%; }
}

/* === Guide contents (dark, continues «что внутри»): the PDF headings, numbered, two columns on desktop === */
section.toc-section { padding-top: 0; }
.toc-head { padding-top: 40px; border-top: 1px solid var(--line-dark); }
.toc-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}
.toc-head h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; text-wrap: balance; max-width: 30ch; }
.toc-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0 40px; }
.toc-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  min-width: 0;
}
.toc-n { flex: none; width: 26px; font: 800 14px var(--font-head); color: var(--accent-bright); }
.toc-h { font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.toc-cta { margin-top: 32px; }
@media (max-width: 480px) { .toc-cta .btn { width: 100%; } }
@media (min-width: 900px) {
  .toc-list { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(13, auto); }
}

/* === Personal consultation (bottom block, after the last «Купить») === */
.consult-card {
  display: grid; gap: 28px;
  background: #FBF6EC;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-soft);
}
.consult-person { display: flex; align-items: center; gap: 16px; }
.consult-person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid var(--accent); flex: none; }
.consult-name { font: 800 18px/1.2 var(--font-head); color: var(--ink); }
.consult-role { margin-top: 2px; font-size: 14px; color: var(--ink-muted); }
.consult-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.consult-free {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: #7A4C0C; font-size: 15px; font-weight: 700; line-height: 1.35;
}
.consult-free svg { flex: none; color: var(--accent); }
.consult-body h2 { margin-top: 0; font-size: clamp(28px, 4.4vw, 44px); }
.consult-lead { margin-top: 14px; font-size: 16px; color: var(--ink-muted); text-wrap: pretty; max-width: 58ch; }
.consult-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.consult-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ink); }
.consult-list li svg { flex: none; margin-top: 3px; color: var(--accent); }
.consult-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.consult-btn { background: var(--bg-dark); color: var(--white); border: 0; gap: 8px; }
.consult-btn:hover { background: #1B2440; }
.consult-btn svg { width: 18px; height: 18px; }
.consult-handles { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 480px) { .consult-btn { flex: 1 1 100%; justify-content: center; } }
/* narrow phones: the grid column may shrink below its widest word and the buttons may wrap (320px overflow, QA 2026-11-11) */
.consult-card { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 359px) { .consult-btn { white-space: normal; text-align: center; } .consult-body h2 { font-size: 23px; } }
@media (min-width: 900px) {
  .consult-card { grid-template-columns: 260px 1fr; gap: 48px; padding: 40px 44px; align-items: start; }
  .consult-person { flex-direction: column; align-items: flex-start; }
  .consult-person img { width: 260px; height: 300px; border-radius: var(--radius); border: 0; object-position: 50% 30%; }
}

/* === Inside / Benefits list === */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}
.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.feature-item .body { flex: 1; }
.feature-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-item .scribble-line {
  margin-top: 8px;
  color: var(--accent);
  height: 6px;
  display: block;
}
.dark .feature-item p { color: var(--white-muted); }

/* === Phone with the guide's video (first screen) === */

.phone {
  position: relative;
  width: 280px;
  height: 580px;
  margin: 0 auto;
  background: #111;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.06),
    0 40px 80px -30px rgba(0,0,0,0.5),
    0 20px 40px -20px rgba(230, 154, 42, 0.2);
}
@media (min-width: 768px) {
  .phone { width: 320px; height: 660px; }
}
.phone .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 4;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #FBF6EC;
  position: relative;
}

/* Video / GIF fills the whole phone screen */
.phone .phone-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0F1626;
  display: block;
}

/* Placeholder shown until a media file is dropped in assets/ */
.phone .phone-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px 24px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #131C2E, #0B1322);
  color: #fff;
}
.phone .phone-placeholder .ph-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.phone .phone-placeholder .ph-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
}
.phone .phone-placeholder .ph-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.66);
}
.phone .phone-placeholder b { color: var(--accent-bright); font-weight: 700; }

/* Loading shimmer over poster until first video frame paints */
.phone .phone-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 19, 34, 0.28);
  backdrop-filter: blur(1px);
}
.phone .phone-spinner {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: var(--accent-bright);
  animation: phoneSpin 0.8s linear infinite;
}
@keyframes phoneSpin { to { transform: rotate(360deg); } }

/* Press-and-hold (Instagram-style) interaction on the phone screen */
.phone .screen {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.phone .screen .phone-media {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* let the screen handle press, not the video */
}
.phone .screen.is-held .phone-media {
  filter: brightness(0.82);
  transition: filter 0.15s ease;
}
/* central pause badge while held */
.phone .phone-held {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.phone .phone-held svg {
  width: 30px; height: 30px;
  color: #fff;
  background: rgba(15, 22, 38, 0.55);
  backdrop-filter: blur(4px);
  padding: 18px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: heldPop 0.18s ease;
}
@keyframes heldPop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* hint chip at the bottom */
.phone .phone-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(15, 22, 38, 0.5);
  backdrop-filter: blur(4px);
  padding: 7px 14px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.phone .screen.is-held .phone-hint { opacity: 0; }
.phone .pages {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: pageScroll 28s cubic-bezier(.65,.05,.36,1) infinite;
}
.phone.paused .pages { animation-play-state: paused; }
.phone .page {
  flex: 0 0 auto;
  min-height: 100%;
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone .page.cover {
  background: linear-gradient(180deg, #0F1626 0%, #1B2538 100%);
  color: #fff;
  justify-content: space-between;
  padding: 40px 26px 30px;
}
.phone .page.cream { background: #FBF6EC; color: #1A1A1A; }
.phone .page.toc { background: #FFFFFF; color: #1A1A1A; }
.phone .page.dark { background: #0F1626; color: #fff; }

.phone .page-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.phone .page-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}
.phone .page-line {
  height: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
}
.phone .page.dark .page-line { background: rgba(255,255,255,0.08); }
.phone .page-line.s { width: 70%; }
.phone .page-line.m { width: 90%; }
.phone .glossary-row {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
  font-size: 11px;
}
.phone .glossary-row .term {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 4px;
}
.phone .glossary-row .desc {
  color: #5a5650;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone .step {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.phone .step .n {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  color: #1A1003;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

@keyframes pageScroll {
  0%, 8%   { transform: translateY(0); }
  18%, 25% { transform: translateY(-100%); }
  35%, 42% { transform: translateY(-200%); }
  52%, 59% { transform: translateY(-300%); }
  69%, 76% { transform: translateY(-400%); }
  86%, 93% { transform: translateY(-500%); }
  100%     { transform: translateY(0); }
}
.phone .play-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: #0F1626;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.phone .play-btn:hover { transform: translateX(-50%) scale(1.05); }
.phone .pages-shade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 32px 32px;
}

/* === Checklist / who is this for === */
.checklist {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .checklist { grid-template-columns: 1fr 1fr; gap: 22px 40px; }
}
.checklist .row {
  display: flex; gap: 14px;
  align-items: flex-start;
  padding: 0;
}
.checklist .check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.checklist .row p { font-size: 17px; line-height: 1.45; }

/* === Author bio === */
.author-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 768px) {
  .author-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
  }
}
.author-bio { display: flex; flex-direction: column; gap: 20px; }
.author-bio .quote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 18px;
  font-style: italic;
  color: var(--white-muted);
}
.cream .author-bio .quote { color: var(--ink-muted); }

/* === Pricing card === */
.pricing-wrap {
  display: grid;
  gap: 28px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-wrap { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.price-card {
  background: var(--bg-dark);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.price-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.price-card .badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent);
  color: #1A1003;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.price-card .big {
  display: flex; align-items: baseline; gap: 12px;
  margin: 12px 0 8px;
}
.price-card .big .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 88px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card .big .cur {
  font-size: 22px;
  color: var(--white-muted);
}
.price-card .strike {
  text-decoration: line-through;
  color: var(--white-faint);
  font-size: 18px;
  margin-left: 8px;
}
.price-card .includes {
  margin: 28px 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 16px;
}
.price-card .includes .row {
  display: flex; gap: 12px; align-items: center;
}
.price-card .includes .row svg { color: var(--accent-bright); flex-shrink: 0; }

.price-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.price-side .trust {
  display: flex; flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--ink-muted);
}
.price-side .trust .item {
  display: flex; gap: 6px; align-items: center;
}
.price-side .trust svg { color: var(--accent); }

/* === FAQ === */
.faq {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #FBF6EC;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%;
  background: none; border: 0;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #1A1003;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s;
  font-weight: 700;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-muted); font-size: 16px; line-height: 1.6; }

/* === Footer === */
footer.page-foot {
  background: var(--bg-dark-2);
  color: var(--white-muted);
  padding: 48px 22px 40px;
  text-align: center;
  font-size: 14px;
}
footer.page-foot .name {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
footer.page-foot .links {
  display: flex; flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
}
footer.page-foot a {
  color: var(--white-muted); text-decoration: none;
}
footer.page-foot a:hover { color: var(--accent-bright); }

/* === Sticky mobile CTA === */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px;
  /* above the cookie banner while it is open (consent.js sets --mk-consent-h) */
  bottom: calc(12px + var(--mk-consent-h, 0px));
  z-index: 30;
  background: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px;
  display: flex; align-items: center;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,0.4);
  /* hidden below the screen even while lifted above the bottom cookie card (QA 2026-11-11) */
  transform: translateY(calc(120% + var(--mk-consent-h, 0px)));
  transition: transform 0.35s cubic-bezier(.5,.1,.3,1), bottom 0.25s ease;
}
.sticky-cta.visible { transform: translateY(0); }
/* while the bottom cookie card is open the buy bar stays visible above it, also at the top of the page (owner's request 2026-11-11) */
html[style*="--mk-consent-h"] .sticky-cta { transform: translateY(0); }
.sticky-cta .sticky-actions { flex: 1; display: flex; align-items: center; gap: 8px; }
/* two equal buttons: free sample + buy (the price lives in the buy button) */
.sticky-cta .btn { flex: 1 1 0; min-width: 0; padding: 13px 12px; font-size: 15px; gap: 6px; }
.sticky-cta .sticky-demo { border-width: 1px; }
.sticky-wide-only { display: inline-flex; }
@media (max-width: 380px) {
  .sticky-cta .btn { padding: 12px 8px; font-size: 14px; }
}
@media (max-width: 360px) {
  .sticky-wide-only { display: none; }
}
/* desktop: the same two buttons as a compact pill in the bottom-right corner (owner, 2026-10-31) */
@media (min-width: 900px) {
  .sticky-cta { left: auto; right: 28px; bottom: calc(28px + var(--mk-consent-h, 0px)); padding: 8px; }
  .sticky-cta .sticky-actions { flex: none; }
  .sticky-cta .btn { flex: none; padding: 12px 22px; font-size: 15px; }
}

/* Compact "download the free sample" link-button (preview section) */
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(230, 154, 42, 0.55);
  color: var(--accent-bright);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.btn-demo:hover { color: var(--accent-bright); border-color: var(--accent); }
/* Expressive variant (preview section): amber outline + text, next to the primary "Купить" */
.btn-demo-strong {
  background: rgba(230, 154, 42, 0.12);
  color: var(--accent-bright);
  border: 1.5px solid var(--accent);
}
.btn-demo-strong:hover { background: rgba(230, 154, 42, 0.22); color: #FFD27A; transform: translateY(-1px); }
.btn-demo-strong .btn-demo-meta { background: var(--accent); color: #1A1003; }
.btn-demo-strong svg { flex: none; } /* the download icon keeps its size next to the label (QA 2026-11-11) */
.demo-short { display: none; }
@media (max-width: 400px) {
  .demo-long { display: none; }
  .demo-short { display: inline; }
}
.btn-demo-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

/* === Decorative SVG === */
.sparkle {
  display: inline-block;
  color: var(--accent);
}

/* === Section header === */
.sec-head {
  max-width: 720px;
  margin-bottom: 8px;
}
.sec-head h2 { margin-bottom: 16px; }
.sec-head .lead { color: var(--white-muted); }
.cream .sec-head .lead { color: var(--ink-muted); }

/* Section bg variants */
.section-stripe-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-dark);
  opacity: 0.4;
}

/* Avoid sticky CTA covering content */
.page::after {
  content: '';
  display: block;
  height: 80px;
}


/* Tweaks panel reset is in tweaks-panel.jsx */

/* === Author: closed deals (expertise hooks) === */
.deals {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #FBF6EC;
  border: 1px solid rgba(230, 154, 42, 0.35);
}
.deals-title { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.deals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deals li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.deals li svg { flex: none; margin-top: 3px; color: var(--accent); }
.deals li strong { color: var(--ink); }

/* === Consultation: Instagram button + Telegram === */
.contact-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-buttons.light { align-items: center; }
.contact-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.contact-buttons.light .contact-alts { justify-content: center; }
.contact-buttons.dark .contact-alts > span { color: var(--ink-muted); }
.contact-buttons.light .contact-alts > span { color: var(--white-faint); }
.contact-alt { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.contact-alt svg { width: 16px; height: 16px; }
.contact-alt.dark { color: var(--ink); }
.contact-alt.light { color: var(--accent-bright); }
.contact-alt:hover { text-decoration: underline; }

/* === Author: Credipass office card (Google rating as a link) === */
.office {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #FBF6EC;
  border: 1px solid rgba(26, 26, 26, 0.08);
}
.office-title { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink); }
.office-addr { margin-top: 2px; font-size: 15px; color: var(--ink-muted); }
.office-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 16px; color: var(--ink); text-decoration: none; }
.office-rating b { font-size: 20px; font-family: var(--font-head); }
.office-rating:hover { text-decoration: underline; }
.office-stars { color: #F2B340; letter-spacing: 1px; font-size: 18px; }
.office-note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* hero author badge is a button: scrolls to «кто я и чем занимаюсь» */
button.hero-author { font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
button.hero-author:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.09); }
button.hero-author:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.hero-author-go { display: inline-flex; color: var(--accent-bright); flex: none; }
.hero-author-go svg { width: 16px; height: 16px; }

