/* ════════════════════════════════════════════
   MY CORNER — stylesheet
   Mobile-first, brand palette
   ════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────── */
@font-face {
  font-family: "MyCorner";
  src: url("public/fonts/mycorner/mycorner.woff2") format("woff2"),
       url("public/fonts/mycorner/mycorner.woff") format("woff"),
       url("public/fonts/mycorner/mycorner.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ──────────────────────────────── */
:root {
  --paper:          #F2E0CD;
  --paper-soft:     #E0CCB6;
  --paper-deep:     #CCB69E;
  --terracotta:     #AD4B27;
  --terracotta-soft:#C89373;
  --sepia-line:     #A08A72;
  --muted-ink:      #685E53;
  --ink-brown:      #46382D;
  --ink:            #1D1813;

  --font-display:   "MyCorner", "Cormorant Garamond", Georgia, serif;
  --font-hand:      "MyCorner", "Cormorant Garamond", cursive;
  --font-body:      "Cormorant Garamond", Georgia, serif;

  --container:      1140px;
  --radius:         12px;
  --transition:     0.3s ease;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Custom cursor ──────────────────────────── */
body,
a,
button,
input,
textarea,
select,
[role="button"],
.nav-link,
.mobile-nav-link,
.btn,
.lang-btn,
.burger,
.carousel-arrow,
.dot,
.faq-question,
.about-inline-trigger {
  cursor: url("images/cursor-32.png") 4 2, auto;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ── Container ──────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border: 2px solid var(--terracotta);
}
.btn-primary:hover {
  background: var(--ink-brown);
  border-color: var(--ink-brown);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}
.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--muted-ink);
  border: 2px solid var(--paper-deep);
  font-weight: 400;
  font-style: italic;
}
.btn-ghost:hover {
  border-color: var(--sepia-line);
  color: var(--ink);
}
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ── Section common ─────────────────────────── */
section { padding: 80px 0; }
.section-eyebrow {
  display: block;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--terracotta);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.section-eyebrow.center { text-align: center; }
.section-title-center {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ── Animations ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════
   PRELOADER
   ════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
  animation: preloaderFade 0.6s ease 3s forwards;
}
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: preloaderFade 0.5s ease both;
}
.preloader-mark {
  width: 64px;
  animation: preloaderBounce 0.8s ease both;
}
.preloader-logo {
  width: 200px;
  animation: preloaderSlide 0.6s ease 0.3s both;
}
@keyframes preloaderFade {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}
@keyframes preloaderBounce {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes preloaderSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 224, 205, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper-deep);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(29,24,19,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.header-logo img { height: 41px; width: auto; }
.header-nav {
  display: none;
  gap: 28px;
  margin: 0 auto;
}
.nav-link {
  font-size: 0.99rem;
  color: var(--muted-ink);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--terracotta); }
.nav-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-cta { display: none; }

/* Language switcher */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
  cursor: pointer;
}
.lang-btn span { transition: color var(--transition); }
.lang-btn .active { color: var(--terracotta); }
.lang-divider { color: var(--paper-deep); }
.lang-btn:hover span { opacity: 0.8; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, border-color 0.3s;
}
.mobile-menu.open {
  max-height: 360px;
  border-color: var(--paper-deep);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  gap: 16px;
}
.mobile-nav-link {
  font-size: 1.1rem;
  color: var(--ink-brown);
  padding: 4px 0;
  border-bottom: 1px solid var(--paper-soft);
}
.mobile-buy { margin-top: 8px; text-align: center; }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
#hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 0 44px;
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(173,75,39,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(204,182,158,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}
.hero-content {
  flex: 0 0 55%;
  max-width: 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-photo-col {
  flex: 0 0 45%;
  position: relative;
  align-self: flex-start;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}
.hero-bubble {
  position: absolute;
  top: -45px;
  left: calc(2% + 220px);
  width: 50%;
  opacity: 0;
  transform: scale(0.92) translateY(6px);
  animation: bubbleAppear 1.5s ease-out 0.8s forwards;
  pointer-events: none;
}
.hero-bubble-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}
.hero-bubble-text {
  position: absolute;
  inset: 18% 18% 28% 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-hand);
  font-size: clamp(0.6rem, 0.9vw, 0.85rem);
  line-height: 1.2;
  color: var(--ink);
  opacity: 0;
  animation: bubbleTextAppear 0.7s ease-out 1s forwards;
}
@keyframes bubbleAppear {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes bubbleTextAppear {
  to { opacity: 1; }
}
.hero-photo-col img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  filter: none;
  clip-path: inset(1px);
}
.hero-logo-wrap {
  margin-bottom: 20px;
}
.hero-logo-title {
  display: block;
  width: 363px;
  max-width: 90%;
  height: auto;
  animation: logoDrawIn 2.2s linear 0.5s both;
}
@keyframes logoDrawIn {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow-text {
  font-family: var(--font-hand);
  color: var(--muted-ink);
  font-size: 0.95rem;
  white-space: nowrap;
}
.eyebrow-line {
  flex: 1;
  height: 1px;
  background: var(--sepia-line);
  max-width: 80px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
  white-space: pre-line;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted-ink);
  margin-bottom: 40px;
  white-space: pre-line;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }

/* ════════════════════════════════════════════
   GUIDE PROMO
   ════════════════════════════════════════════ */
#guide-promo { padding: 40px 0 60px; }

.guide-promo-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--paper-soft);
  border-radius: 20px;
  padding: 31px 50px;
  border: 1px solid var(--paper-deep);
}

.guide-promo-text { flex: 1; }

.guide-promo-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}

.guide-promo-desc {
  color: var(--muted-ink);
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.guide-promo-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.guide-cover-card {
  background: var(--paper);
  border-radius: 10px;
  padding: 18px 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 139px;
  box-shadow: 0 6px 28px rgba(29,24,19,0.10);
  border: 1px solid var(--paper-deep);
}

.guide-cover-eyebrow {
  font-family: var(--font-body);
  font-size: 0.38rem;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  text-transform: uppercase;
  line-height: 1.5;
}

.guide-cover-title {
  font-family: var(--font-display);
  font-size: 1.39rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: var(--ink);
}

.guide-cover-quote {
  font-family: var(--font-hand);
  font-size: 0.6rem;
  color: var(--terracotta);
  line-height: 1.55;
  font-style: italic;
}

.guide-cover-img {
  width: 139px;
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(29,24,19,0.10);
  object-fit: cover;
}

.guide-promo-btn { min-width: 162px; }

@media (max-width: 720px) {
  .guide-promo-inner {
    flex-direction: column;
    padding: 36px 28px;
    gap: 32px;
  }
  .guide-promo-right { width: 100%; }
  .guide-cover-card, .guide-cover-img { width: 100%; max-width: 280px; margin: 0 auto; }
}

/* ════════════════════════════════════════════
   PHOTO JOURNAL
   ════════════════════════════════════════════ */
.section-photo-journal {
  background: var(--ink-brown);
  padding: 56px 0 48px;
  overflow: hidden;
}
.pj-header { text-align: center; margin-bottom: 40px; }
.photo-journal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper-soft);
  letter-spacing: 0.06em;
}

/* Slider shell */
.pj-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.pj-track-wrap {
  flex: 1;
  overflow: hidden;
  padding: 14px 0; /* vertical room for SVG frame overflow */
}
.pj-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Group of 3 frames */
.pj-group {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 0 10px; /* horizontal room for SVG frame overflow */
  box-sizing: border-box;
}

/* Single photo frame */
.pj-frame-outer {
  position: relative;
  /* overflow: visible so SVG can extend 10px beyond frame */
}
.pj-frame-inner {
  aspect-ratio: 629 / 934;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}
.pj-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pj-pencil-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 2;
}

/* Nav arrows */
.pj-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(204,182,158,0.3);
  color: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.pj-nav:hover { background: rgba(204,182,158,0.15); border-color: rgba(204,182,158,0.6); }
.pj-nav svg { width: 20px; height: 20px; }

/* Dot indicators */
.pj-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.pj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(204,182,158,0.3);
  transition: background 0.3s, transform 0.3s;
}
.pj-dot.active {
  background: var(--terracotta-soft);
  transform: scale(1.4);
}

/* Mobile: 1 photo centered */
@media (max-width: 639px) {
  .pj-slider { gap: 8px; padding: 0 8px; }
  .pj-group {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 0 16px;
  }
  .pj-frame-outer:nth-child(2),
  .pj-frame-outer:nth-child(3) { display: none; }
  .pj-frame-outer:nth-child(1) { width: 75%; max-width: 280px; }
  .pj-nav { width: 36px; height: 36px; }
}

/* ════════════════════════════════════════════
   INTRO (repurposed as editorial block)
   ════════════════════════════════════════════ */
.section-intro {
  padding: 90px 0 50px;
  margin-top: -36px;
  background: var(--paper-soft);
  position: relative;
  overflow: visible;
}

.editorial-title-img {
  display: block;
  max-width: 720px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  opacity: 0;
}
html[lang="en"] .editorial-title-ru { display: none; }
html[lang="ru"] .editorial-title-en { display: none; }

/* Анимация «проявление рисунка» — reveal слева направо */
@keyframes reveal-draw {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  8%   { opacity: 1; }
  100% { clip-path: inset(0 0% 0 0);   opacity: 1; }
}
.editorial-title-wrap.draw-revealed .editorial-title-img {
  animation: reveal-draw 1.82s cubic-bezier(0.3, 0, 0.1, 1) forwards;
}

/* «Философия клуба» — абсолютно, верхний левый угол, ref: section */
.section-intro .section-eyebrow {
  position: absolute;
  top: 35px;
  left: max(24px, calc(50% - 630px));
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 0;
}
.section-intro .section-eyebrow.fade-up { transition-delay: 0s; }
/* PNG-враппер: высота через aspect-ratio, текст центрирован по вертикали */
.section-intro .editorial-title-wrap {
  max-width: 648px;
  margin: 0 auto 70px;
  aspect-ratio: 3.8;
  overflow: hidden;
}
.section-intro .editorial-title-img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.editorial-body.fade-up { transition-delay: 0.2s; }
.intro-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--ink-brown);
  white-space: pre-line;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.intro-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--terracotta-soft);
  line-height: 0;
  vertical-align: -0.4em;
}
.intro-doodle {
  position: absolute;
  right: 5%;
  bottom: -20px;
  opacity: 0.08;
}
.intro-skirt { width: 120px; }

/* ════════════════════════════════════════════
   WHAT'S INSIDE
   ════════════════════════════════════════════ */
.section-inside { padding: 45px 0 90px; }
.section-header { margin-bottom: 48px; }
.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}
.hand-underline { margin-top: 8px; width: 200px; }
.hand-underline svg { width: 100%; height: 12px; }

.inside-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.inside-card {
  background: var(--paper-soft);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  cursor: pointer;
  min-height: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) {
  .inside-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(29,24,19,0.08);
    border-color: var(--terracotta-soft);
  }
}
.inside-card.expanded {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(29,24,19,0.08);
  border-color: var(--terracotta-soft);
}
.inside-card-num {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--terracotta-soft);
  line-height: 1;
  margin-bottom: 12px;
}
.inside-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-brown);
}
.inside-card-text { color: var(--muted-ink); font-size: 0.95rem; }

/* ── Card expand detail ──────────────────────── */
.inside-card-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
@media (hover: hover) {
  .inside-card:hover .inside-card-detail {
    max-height: 240px;
    opacity: 1;
    margin-top: 14px;
  }
}
.inside-card.expanded .inside-card-detail {
  max-height: 240px;
  opacity: 1;
  margin-top: 14px;
}
.inside-card-detail-text {
  font-size: 0.9rem;
  color: var(--ink-brown);
  line-height: 1.6;
  border-top: 1px solid var(--paper-deep);
  padding-top: 12px;
}

/* ════════════════════════════════════════════
   MAGAZINE
   ════════════════════════════════════════════ */
.section-magazine {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0;
}
.section-magazine h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--paper);
}
.section-magazine p { color: var(--paper-soft); margin-bottom: 36px; }

.magazine-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.magazine-cover { position: relative; flex-shrink: 0; }
.magazine-cover-frame {
  position: relative;
  display: inline-block;
}
.magazine-cover-img {
  width: 220px;
  min-height: 280px;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.cover-photo-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.cover-photo.active { opacity: 1; }
/* Top gradient so logo is readable (~10-12% of cover height) */
.cover-gradient-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(29,24,19,0.72) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
/* Logo overlaid on photo — transparent PNG, no background */
.cover-logo-overlay {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  z-index: 2;
  pointer-events: none;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
/* Season label at bottom of photo */
.cover-season-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 0 10px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 0.88rem;
  color: rgba(242,224,205,0.92);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(29,24,19,0.66) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Details button */
.magazine-details-btn { margin-top: 20px; }

/* Magazine popup overlay */
.magazine-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,24,19,0.65);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}
.magazine-popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.magazine-popup {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  max-width: 520px;
  width: 90%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.magazine-popup-overlay.open .magazine-popup { transform: none; }
.magazine-popup h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}
.magazine-popup p {
  color: var(--muted-ink);
  line-height: 1.75;
  font-size: 1rem;
}
.magazine-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--paper-deep);
  color: var(--muted-ink);
  transition: background 0.2s;
}
.magazine-popup-close:hover { background: var(--paper-soft); }
.magazine-popup-close svg { width: 16px; height: 16px; }
.popup-section { margin: 0; }
.popup-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.popup-section p { margin-bottom: 0; }
.popup-divider {
  border: none;
  border-top: 1px solid var(--paper-deep);
  margin: 20px 0;
}
.pencil-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
}
.magazine-stats {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--terracotta-soft);
}
.stat-label { font-size: 0.85rem; color: var(--paper-deep); }
.stat-divider { width: 1px; height: 40px; background: var(--muted-ink); opacity: 0.3; }

/* ════════════════════════════════════════════
   ABOUT AUTHOR (typewriter)
   ════════════════════════════════════════════ */
.section-about-author { padding: 0 0 90px; margin-top: -10px; background: var(--paper-soft); }
.about-author-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.typewriter-visual { position: relative; display: inline-block; }
.typewriter-photo {
  width: min(320px, 90vw);
  height: auto;
  display: block;
  border-radius: 8px;
}
.about-accordion-inline {
  margin-top: 48px;
  border-top: 1px solid var(--paper-deep);
  padding-top: 48px;
  overflow: hidden;
}
.typewriter-note {
  position: absolute;
  bottom: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.typewriter-note svg { width: 60px; }
.typewriter-note-text {
  font-family: var(--font-hand);
  color: var(--terracotta);
  font-size: 0.9rem;
}
.about-author-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.about-author-text p {
  color: var(--muted-ink);
  margin-bottom: 28px;
  max-width: 480px;
}

/* ════════════════════════════════════════════
   EDITORIAL
   ════════════════════════════════════════════ */
.section-editorial { padding: 90px 0; }
.editorial-inner { max-width: 900px; margin: 0 auto; }
.editorial-title-wrap { position: relative; margin-bottom: 36px; }
.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}
.editorial-handwrite {
  position: absolute;
  top: -12px;
  right: 0;
  font-family: var(--font-hand);
  color: var(--terracotta);
  font-size: 1.1rem;
  transform: rotate(-3deg);
  opacity: 0.7;
}
.editorial-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.editorial-text {
  flex: 1;
  white-space: pre-line;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.26rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}
.para-break { height: 25px; }
.editorial-photo-slot {
  flex: 0 0 180px;
  position: relative;
  display: none;
}
.photo-placeholder {
  width: 180px;
  height: 240px;
  background: var(--paper-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--sepia-line);
}
.pencil-frame--photo {
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
}
.editorial-accent {
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--terracotta);
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--paper-deep);
  border-bottom: 1px solid var(--paper-deep);
}

/* ════════════════════════════════════════════
   CLUB ABOUT
   ════════════════════════════════════════════ */
.section-club { background: var(--paper-deep); padding: 61px 0; }

/* Two-column layout: content left, image right */
.club-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.club-content { flex: 0 0 50%; }
.club-image-slot {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-left: -100px;
  height: 492px;
  align-self: flex-start;
}
.dressup-wrap {
  position: relative;
  display: inline-block;
}
.dressup-img {
  height: 396px;
  width: auto;
  display: block;
  transition: opacity 0.9s ease;
}
.dressup-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
}

.club-about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 22px;
  text-align: left;
}
.club-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 14px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--terracotta);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .club-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(70, 56, 45, 0.12);
  }
}
@media (max-width: 767px) {
  .club-layout { flex-direction: column; gap: 32px; }
  .club-content { flex: none; width: 100%; }
  .club-image-slot {
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .dressup-wrap { display: flex; justify-content: center; width: 100%; }
  .dressup-img { height: 170px; width: auto; }
}
.club-item-bullet {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}
.club-item-bullet img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
  .club-item:hover .club-item-bullet img {
    transform: scale(1.25) rotate(14deg);
  }
}
.club-item-text {
  font-size: 0.95rem;
  color: var(--ink-brown);
  line-height: 1.5;
  overflow: hidden;
  max-height: 1.5rem;
  transition: max-height 0.4s ease;
}
@media (hover: hover) {
  .club-item:hover .club-item-text {
    max-height: 12rem;
  }
}
@media (hover: none) {
  .club-item.open .club-item-text {
    max-height: 12rem;
  }
}

/* ── Chevron indicator (mobile only) ─────────── */
.card-chevron {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
  align-items: center;
  color: var(--terracotta);
  transition: transform 0.35s ease;
}
.card-chevron svg { width: 18px; height: 18px; }

@media (max-width: 767px) {
  .card-chevron { display: flex; }

  /* club-item: collapsed by default, open on .open */
  .club-item.open .club-item-text { max-height: 12rem; }
  .club-item.open .card-chevron { transform: rotate(180deg); }

  /* inside-card: chevron rotates when .expanded */
  .inside-card.expanded .card-chevron { transform: rotate(180deg); }
  .inside-card .card-chevron {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-left: 0;
  }
}

/* ════════════════════════════════════════════
   MORE THAN
   ════════════════════════════════════════════ */
.section-more { padding: 90px 0; }
.more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.more-card {
  padding: 28px 24px;
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  background: var(--paper-soft);
  transition: transform var(--transition);
}
.more-card:hover { transform: translateY(-3px); }
.more-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-brown);
  margin-bottom: 8px;
}
.more-card-title::before {
  content: '✦ ';
  color: var(--terracotta);
  font-size: 0.8em;
}
.more-card-text { color: var(--muted-ink); font-size: 0.95rem; }

/* ════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════ */
.section-how { background: var(--paper-soft); padding: 90px 0; }
.steps-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 32px;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--paper-deep);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-hand);
  font-size: 2.5rem;
  color: var(--terracotta);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-brown);
  margin-bottom: 6px;
}
.step-text { color: var(--muted-ink); }
.how-note {
  text-align: center;
  font-family: var(--font-hand);
  color: var(--terracotta);
  font-size: 1rem;
  margin-top: 16px;
}

/* ════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════ */
.section-pricing {
  padding: 81px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(173,75,39,0.06) 0%, transparent 60%);
}
/* Three-card grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 391px));
  gap: 22px;
  align-items: stretch;
  justify-content: center;
}
.pricing-card {
  background: var(--paper-soft);
  border: 2px solid var(--paper-deep);
  border-radius: 18px;
  padding: 43px 29px;
  text-align: center;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.pricing-card .pricing-features { flex: 1; }
.pricing-card .btn { margin-top: auto; }
/* Featured (middle) card */
.pricing-card--featured {
  border-color: var(--terracotta);
  background: var(--paper);
  box-shadow: 0 8px 40px rgba(173,75,39,0.12);
}
/* Inactive (coming soon) card */
.pricing-card--inactive {
  opacity: 0.55;
  pointer-events: none;
}
.pricing-card--inactive .pricing-price { color: var(--muted-ink); }
/* Badge variants */
.pricing-badge--soon { background: var(--muted-ink); }
/* Alt price line (e.g. "или 1 000 ₽") */
.pricing-alt-price {
  font-size: 0.85rem;
  color: var(--muted-ink);
  margin-bottom: 25px;
  margin-top: -18px;
}
/* Responsive */
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terracotta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 22px;
  color: var(--ink-brown);
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 29px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2.16rem, 4.5vw, 2.88rem);
  font-weight: 600;
  color: var(--terracotta);
}
.pricing-period { color: var(--muted-ink); font-size: 0.9rem; }
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 29px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pricing-feature {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--ink-brown);
}
.pricing-feature::before {
  content: '✓';
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-note {
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--muted-ink);
  font-style: italic;
}
.pricing-doodle {
  position: absolute;
  bottom: -20px;
  right: -16px;
  opacity: 0.12;
}
.pricing-doodle img { width: 72px; }

/* ════════════════════════════════════════════
   DEMO
   ════════════════════════════════════════════ */
.section-demo { padding: 80px 0; background: var(--paper-soft); }
.demo-visual { flex-shrink: 0; }
.demo-preview-wrap {
  position: relative;
  display: inline-block;
}
.demo-preview-img {
  max-width: 193px;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
.demo-pencil-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  z-index: 0;
}
.demo-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}
.demo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 16px;
}
.demo-text p {
  color: var(--muted-ink);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.demo-card {
  background: var(--paper);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 24px;
  width: 240px;
  box-shadow: 0 4px 20px rgba(29,24,19,0.06);
}
.demo-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--muted-ink);
  font-style: italic;
}
.demo-card-lines { display: flex; flex-direction: column; gap: 8px; }
.demo-line { height: 8px; background: var(--paper-soft); border-radius: 4px; }
.demo-line.short { width: 75%; }
.demo-line.shorter { width: 55%; }

/* ════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════ */
.section-reviews { padding: 90px 0; }
.reviews-header { text-align: center; margin-bottom: 48px; }
.reviews-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 12px;
}
.reviews-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted-ink);
  font-size: 1.1rem;
}

.reviews-stage {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.reviews-carousel-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.reviews-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.5s ease;
  padding-bottom: 8px;
}

.review-card {
  flex: 0 0 calc(100%);
  background: var(--paper-soft);
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--terracotta-soft);
  line-height: 1;
  opacity: 0.5;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-deep);
  flex-shrink: 0;
}
.review-meta { flex: 1; }
.review-name {
  font-weight: 600;
  color: var(--ink-brown);
  font-size: 0.95rem;
  display: block;
}
.review-handle {
  font-size: 0.82rem;
  color: var(--muted-ink);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.platform-icon { width: 14px; height: 14px; flex-shrink: 0; }
.review-text {
  color: var(--ink-brown);
  font-size: 0.97rem;
  line-height: 1.65;
  overflow: hidden;
  max-height: calc(1.65rem * 4);
  transition: max-height 0.4s ease;
}
@media (hover: hover) {
  .review-card:hover .review-text { max-height: 40rem; }
}

/* review chevron — mobile only */
.review-chevron {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .review-chevron { display: flex; }
  .review-card.open .review-text { max-height: 40rem; }
  .review-card.open .review-chevron { transform: rotate(180deg); }
}

.carousel-arrow {
  flex-shrink: 0;
  margin-top: 90px;
  background: var(--paper);
  border: 1px solid var(--paper-deep);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-brown);
  transition: all var(--transition);
  z-index: 5;
}
.carousel-arrow:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.carousel-arrow svg { width: 18px; height: 18px; }

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-deep);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.dot.active { background: var(--terracotta); transform: scale(1.3); }

.reviews-more-wrap { margin-top: 40px; text-align: center; }
.reviews-extra {
  display: none;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
  text-align: left;
}
.reviews-extra.open { display: grid; }

/* ════════════════════════════════════════════
   FOUNDER
   ════════════════════════════════════════════ */
.section-founder { background: var(--paper-soft); padding: 90px 0; }
.founder-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  text-align: center;
}
.founder-photo-wrap {
  position: relative;
  display: inline-block;
}
.founder-photo-placeholder {
  width: 173px;
  height: 260px;
  background: var(--paper-deep);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder-avatar-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.pencil-frame--founder {
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
}
.founder-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 8px;
}
.founder-handle {
  display: inline-block;
  color: var(--terracotta);
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: opacity var(--transition);
}
.founder-handle:hover { opacity: 0.7; }
.founder-bio {
  color: var(--muted-ink);
  white-space: pre-line;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   AUTHOR MODAL (досье)
   ════════════════════════════════════════════ */
.author-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,24,19,0.72);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 24px;
}
.author-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.author-modal {
  background: var(--ink-brown);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 820px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
.author-modal-overlay.open .author-modal { transform: none; }
.author-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(204,182,158,0.3);
  color: var(--paper-soft);
  transition: background 0.2s;
}
.author-modal-close:hover { background: rgba(204,182,158,0.15); }
.author-modal-close svg { width: 16px; height: 16px; }
.author-modal-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
/* Photo column */
.author-modal-photo {
  flex: 0 0 173px;
  position: relative;
  display: inline-block;
}
.author-modal-photo .founder-photo-placeholder {
  background: rgba(70,56,45,0.6);
  border: 1px solid rgba(204,182,158,0.15);
}
/* Text column */
.author-modal-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.author-modal-eyebrow { color: var(--terracotta-soft) !important; margin-bottom: 10px; }
.author-modal-name { color: var(--paper); margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.author-modal-handle { color: var(--terracotta-soft); margin-bottom: 20px; }
.author-modal-bio { color: var(--paper-soft); margin: 0 0 28px; max-width: none; }
.author-modal-cta { border-color: rgba(204,182,158,0.4); color: var(--paper-soft); }
.author-modal-cta:hover { background: rgba(204,182,158,0.12); }
/* Mobile: stack vertically */
@media (max-width: 639px) {
  .author-modal { padding: 32px 20px; }
  .author-modal-inner { flex-direction: column; gap: 28px; }
  .author-modal-photo { flex: none; align-self: center; }
  .author-modal-text { align-items: center; text-align: center; }
}

/* ════════════════════════════════════════════
   ABOUT AUTHOR — accordion
   ════════════════════════════════════════════ */
#about-author { padding: 90px 0; }
.about-accordion {
  border: 1px solid var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 40px;
  background: var(--paper-soft);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.about-accordion-trigger:hover .about-accordion-title { color: var(--terracotta); }
.about-accordion-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-accordion-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  transition: color var(--transition);
}
.about-accordion-preview {
  font-size: 0.95rem;
  color: var(--muted-ink);
}
.about-accordion-icon {
  font-size: 1.6rem;
  color: var(--terracotta);
  line-height: 1;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.about-accordion-trigger[aria-expanded="true"] .about-accordion-icon {
  transform: rotate(45deg);
}
.about-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.about-accordion-body {
  padding: 48px 40px;
  background: var(--paper-soft);
}

/* ════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════ */
.section-faq { padding: 90px 0; }
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--paper-deep);
}
.faq-item:first-child { border-top: 1px solid var(--paper-deep); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-brown);
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--sepia-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--sepia-line);
}
.faq-icon svg { width: 12px; height: 12px; transition: transform var(--transition); }
.faq-item.open .faq-icon {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}
.faq-item.open .faq-icon svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--muted-ink);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════ */
.section-final-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
  text-align: center;
}
.final-cta-inner { position: relative; }
.final-cta-mark {
  margin-bottom: 24px;
}
.final-cta-mark img { width: 64px; margin: 0 auto; filter: brightness(0) invert(1); opacity: 0.3; }
.final-cta-title {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.15;
}
.final-cta-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--paper-soft);
  margin-bottom: 40px;
  font-size: 1.2rem;
}
.final-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-cta-btns .btn-primary { background: var(--paper); color: var(--terracotta); border-color: var(--paper); }
.final-cta-btns .btn-primary:hover { background: var(--paper-soft); }
.final-cta-btns .btn-ghost { border-color: rgba(242,224,205,0.3); color: var(--paper-soft); }
.final-annotation {
  position: absolute;
  bottom: -50px;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  opacity: 0.6;
}
.final-annotation svg { width: 70px; }
.annotation-text {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--paper-soft);
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
#footer {
  background: var(--ink-brown);
  color: var(--paper-soft);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Footer mid column: contacts + payment ── */
.footer-mid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sepia-line);
  margin-bottom: 6px;
}
.footer-contact-email {
  color: var(--paper-soft);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-contact-email:hover { color: var(--terracotta-soft); }
.footer-payment-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sepia-line);
  margin-bottom: 6px;
}
.footer-payment-text {
  font-size: 0.9rem;
  color: var(--sepia-line);
  line-height: 1.55;
}
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.75; margin-bottom: 16px; }
.footer-desc {
  font-size: 1.17rem;
  color: var(--sepia-line);
  white-space: pre-line;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 16px; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(242,224,205,0.2);
  border-radius: 50%;
  color: var(--paper-soft);
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--terracotta-soft); color: var(--terracotta-soft); }
.social-link svg { width: 18px; height: 18px; }

.footer-subscribe { margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; }
.footer-price-text {
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.footer-price-text strong { color: var(--paper); }
.footer-price-text span { color: var(--sepia-line); font-size: 1.17rem; }

.footer-lang { margin-bottom: 20px; display: flex; justify-content: flex-end; }
.footer-lang .lang-btn { color: var(--sepia-line); }
.footer-lang .lang-btn .active { color: var(--paper); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-link {
  font-size: 1.07rem;
  color: var(--sepia-line);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-align: right;
}
.footer-link:hover { color: var(--paper-soft); }
.footer-copy {
  font-size: 1.01rem;
  color: var(--muted-ink);
  margin-top: 8px;
}

/* Legal popups (shared style) */
.legal-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,24,19,0.65);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
  padding: 24px;
}
.legal-popup-overlay.open { opacity: 1; pointer-events: all; }
.legal-popup {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}
.legal-popup-overlay.open .legal-popup { transform: none; }
.legal-popup h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}
.legal-popup p { color: var(--muted-ink); line-height: 1.75; }
.legal-popup h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 6px;
}
.legal-popup ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted-ink);
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-popup ul li { margin-bottom: 3px; }
.legal-updated {
  font-size: 0.8rem;
  color: var(--muted-ink);
  margin-bottom: 16px;
  opacity: 0.7;
}
.legal-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--paper-deep);
  color: var(--muted-ink);
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}
.legal-popup-close:hover { background: var(--paper-soft); }
.legal-popup-close svg { width: 16px; height: 16px; }

/* Cookie consent overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,24,19,0.72);
  z-index: 970;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.cookie-modal {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--paper-deep);
  color: var(--muted-ink);
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-modal-close:hover { background: var(--paper-soft); }
.cookie-modal-close svg { width: 16px; height: 16px; }
.cookie-modal-icon { font-size: 2rem; margin-bottom: 12px; }
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
}
.cookie-modal-text {
  font-size: 0.875rem;
  color: var(--muted-ink);
  line-height: 1.7;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 32px 20px 24px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 639px)
   ════════════════════════════════════════════ */
@media (max-width: 639px) {
  .hero-inner { flex-direction: column; }
  .hero-content { flex: none; max-width: 100%; align-items: center; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-photo-col { flex: none; width: 100%; margin-top: 32px; }
  .hero-logo-title { width: 286px; }

  /* Footer — сброс правого выравнивания на мобильных */
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-info { text-align: left; align-items: flex-start; }
  .footer-subscribe { align-items: flex-start; }
  .footer-lang { justify-content: flex-start; }
  .footer-legal { align-items: flex-start; }
  .footer-link { text-align: left; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET 640px+
   ════════════════════════════════════════════ */
@media (min-width: 640px) {
  .inside-grid { grid-template-columns: repeat(2, 1fr); }
  .more-grid   { grid-template-columns: repeat(2, 1fr); }
  .reviews-extra { grid-template-columns: repeat(2, 1fr); }

  .review-card { flex: 0 0 calc(50% - 10px); }

  .magazine-inner { flex-direction: row; align-items: center; }

  .demo-inner { flex-direction: row; text-align: left; }
  .demo-text p { margin-left: 0; margin-right: 0; }

  .about-author-inner { flex-direction: row; align-items: center; }

  .editorial-photo-slot { display: block; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — DESKTOP 900px+
   ════════════════════════════════════════════ */
@media (min-width: 900px) {
  .header-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }

  .hero-logo-title { width: 418px; }

  .inside-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid   { grid-template-columns: repeat(2, 1fr); }

  .review-card { flex: 0 0 calc(33.333% - 14px); }

  .steps-row { flex-direction: row; gap: 0; }
  .step {
    flex: 1;
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid var(--paper-deep);
    padding: 28px 32px;
    gap: 12px;
  }
  .step:last-child { border-right: none; }

  .founder-inner { flex-direction: row; text-align: left; gap: 64px; }
  .founder-bio { margin-left: 0; }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
  }
  .footer-brand { flex: 0 0 240px; }
  .footer-info  { flex: 0 0 200px; text-align: right; align-items: flex-end; }
}

.mycorner-font {
  font-family: "MyCorner", sans-serif;
}
