/* ============================================
   ELENA MOSTOVAYA · QIGONG · DESIGN SYSTEM
   Institutional minimalism · B&W · Archivo
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #faf8f4;
  --ink: #2b2723;
  --muted: #8a8378;
  --line: #e9e3d8;
  --accent: #8a7355;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1600px;
  color-scheme: light only;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #faf8f4; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
}
.topbar-left { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: inline-flex; flex-direction: column; gap: 5px;
  padding: 14px 16px 14px 0;
  font-family: inherit; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink);
  transition: gap 0.2s ease;
}
.menu-btn:hover { gap: 7px; }
.menu-btn::before,
.menu-btn::after {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--ink);
  display: block;
}
.menu-btn span { display: inline-block; margin-top: 4px; }

.brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  color: var(--ink);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
}
.lang-toggle {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  overflow: hidden;
}
.lang-toggle button {
  padding: 8px 12px;
  background: var(--bg);
  color: var(--muted);
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}
.lang-toggle button:not(.active):hover { color: var(--ink); }

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: gap 0.2s ease;
}
.topbar-cta:hover { gap: 14px; }

/* ============================================
   FULLSCREEN MENU
   ============================================ */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 24px 32px 48px;
}
.fullmenu.open { display: flex; }

.fullmenu-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
}
.close-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.close-btn::before {
  content: '×';
  font-size: 28px; line-height: 1; font-weight: 300;
}

.fullmenu-cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  align-content: start;
}
.menu-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
}
.menu-col ul { list-style: none; }
.menu-col li { margin-bottom: 10px; }
.menu-col a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: gap 0.25s ease, color 0.2s;
}
.menu-col a:hover { gap: 20px; color: var(--muted); }
.menu-num {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* Sub-links in menu (articles, sub-items) */
.menu-col li.sub a { font-size: clamp(0.875rem, 1.6vw, 1.25rem); font-weight: 500; opacity: 0.65; }
.menu-col li.sub a:hover { opacity: 1; }
.menu-col li.sub .menu-num { font-size: 14px; }

.fullmenu-bottom {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================
   LAYOUT
   ============================================ */
main { padding-top: 64px; background: var(--bg); }
.section { padding: 80px 32px; max-width: var(--max); margin: 0 auto; background: var(--bg); }
.section-tight { padding: 56px 32px; }

.crumb {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.h-hero {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: none;
}
.h-display {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
}
.h-section {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
}
.h-sub {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  max-width: 65ch;
  color: #4a443c;
}
.body-text {
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 500;
  max-width: 65ch;
  color: #4a443c;
}
.pull-quote {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-transform: none;
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  max-width: 50ch;
  font-style: italic;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 32px 48px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero-with-bg {
  max-width: none;
  padding-left: 56px;
  padding-right: 56px;
  position: relative;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.72) 35%, rgba(255,255,255,0.15) 65%, rgba(255,255,255,0) 100%),
    linear-gradient(to right, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%);
}
.hero-with-bg .h-hero,
.hero-with-bg .eyebrow,
.hero-with-bg .crumb,
.hero-with-bg .hero-meta-block,
.hero-with-bg .hero-meta-block strong { color: var(--ink); }
.hero-with-bg .hero-meta-block strong { color: var(--muted); }
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.hero-meta-block { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.hero-meta-block strong { display: block; color: var(--muted); margin-bottom: 6px; font-weight: 600; }

.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS / LINKS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease, background 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { gap: 16px; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; gap: 16px; }
.btn-arrow::after { content: '→'; font-size: 14px; }
.btn-large { padding: 17px 30px; font-size: 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 16px; }

/* ============================================
   STATEMENT BLOCK
   ============================================ */
.statement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
  padding-top: 64px;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.card:hover { transform: translateY(-6px); }
.card-img {
  aspect-ratio: 1/1;
  background: var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-img svg { width: 100%; height: 100%; display: block; }
.card-num {
  position: absolute;
  top: 14px; left: 14px;
  color: var(--bg);
  background: rgba(17,17,17,0.85);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  z-index: 2;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================
   LIST ROWS (What's On)
   ============================================ */
.list-rows {
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.list-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease, background 0.2s;
}
.list-row:hover { padding-left: 16px; }
.list-row-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.list-row-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.2;
}
.list-row-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.list-row-arrow {
  text-align: right;
  font-size: 18px;
  font-weight: 600;
}

/* ============================================
   IN-ACTION VIDEO BLOCK
   ============================================ */
.in-action {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
.in-action-video {
  aspect-ratio: 9/16;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.in-action-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.in-action-text { padding: 0 16px; }
.in-action-text h2 { margin-bottom: 24px; }
.in-action-text p { margin-bottom: 24px; }

/* ============================================
   GALLERY (horizontal scroll)
   ============================================ */
.gallery-h {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 380px;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  margin-top: 48px;
  scrollbar-width: thin;
}
.gallery-h::-webkit-scrollbar { height: 4px; }
.gallery-h::-webkit-scrollbar-track { background: var(--line); }
.gallery-h::-webkit-scrollbar-thumb { background: var(--ink); }


/* ============================================
   CTA BLOCK (black)
   ============================================ */
.cta-block {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 120px 64px;
  text-align: left;
  margin: 96px 32px 0;
}
@media (min-width: 1664px) {
  .cta-block { margin: 96px auto 0; max-width: var(--max); }
}
.cta-block .h-hero,
.cta-block .h-display { color: var(--bg); max-width: 14ch; }
.cta-block-row {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.cta-block .btn-primary { background: var(--bg); color: var(--ink); }
.cta-block .btn-outline { border-color: var(--bg); color: var(--bg); }
.cta-block .btn-outline:hover { background: var(--bg); color: var(--ink); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.testimonial {
  padding: 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.testimonial-quote {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 32px;
  flex: 1;
}
.testimonial-author {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.testimonial-author span { color: var(--muted); font-weight: 600; }

/* ============================================
   COURSE PAGE
   ============================================ */
.course-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.meta-item-value {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
}

.days-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.day-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  gap: 32px;
  transition: padding 0.25s;
}
.day-row:hover { padding-left: 16px; }
.day-num {
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--accent);
}
.day-content h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 12px;
}
.day-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.day-duration {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
  color: var(--muted);
}

/* ============================================
   STEPS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  border-top: 2px solid var(--accent);
  padding-top: 24px;
}
.step-num {
  font-family: 'Archivo', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1;
  color: var(--accent);
}
.step h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 8px;
}
.step p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ============================================
   FAQ
   ============================================ */
.faq {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.005em;
  text-transform: none;
  line-height: 1.3;
  transition: padding 0.2s;
}
.faq-q:hover { padding-left: 16px; }
.faq-q::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  margin-left: 24px;
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 64px 28px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 70ch;
}
html[data-lang="ru"] .faq-item.open .faq-a[data-lang-ru] { display: block; }
html[data-lang="en"] .faq-item.open .faq-a[data-lang-en] { display: block; }

/* ============================================
   SESSIONS PAGE
   ============================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.service-block:nth-child(even) .service-img { order: 2; }
.service-img {
  aspect-ratio: 4/5;
  background: var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-img svg { width: 100%; height: 100%; }
.service-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.service-meta-table {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.service-meta-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.service-meta-row strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}

/* ============================================
   COMMUNITY PAGE
   ============================================ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.community-card {
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.community-card:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.community-card:hover .community-platform { color: rgba(255,255,255,0.8); }
.community-card:hover .community-meta { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.3); }
.community-platform {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
}
.community-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   STORY PAGE
   ============================================ */
.story-portrait {
  aspect-ratio: 4/5;
  max-width: 720px;
  margin: 96px auto;
  background: var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.story-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-portrait svg { width: 100%; height: 100%; }
.story-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.credential h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 12px;
}
.credential p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============================================
   CONTACT 2x2 GRID
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.contact-card {
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
}
.contact-card:nth-child(odd) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact-card:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.contact-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 96px 32px 32px;
  margin-top: 96px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.footer-brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: none;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--muted); }
.footer-bottom {
  max-width: var(--max);
  margin: 96px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ============================================
   PATREON FUNNEL STYLES
   ============================================ */
/* Patreon brand button — orange */
.btn-patreon {
  background: #FF424D;
  color: #fff;
  border: 2px solid #FF424D;
}
.btn-patreon:hover { background: #e03040; border-color: #e03040; color: #fff; }

/* Small topbar Patreon pill */
.btn-patreon-sm {
  background: #FF424D;
  color: #fff !important;
  border: 2px solid #FF424D;
}
.btn-patreon-sm:hover { background: #e03040; border-color: #e03040; }

/* "Теперь на Patreon" hero badge */
.patreon-badge {
  display: inline-block;
  background: #FF424D;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

/* Early-bird offer bar */
.patreon-offer-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff8f8;
  border: 1px solid #ffd0d3;
  border-radius: var(--radius);
  padding: 28px 40px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}
.patreon-offer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  flex: 1 1 160px;
}
.patreon-offer-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.patreon-price-old {
  font-size: 1.25rem;
  color: var(--muted);
  text-decoration: line-through;
}
.patreon-price-new {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FF424D;
  font-family: 'Archivo Black', sans-serif;
}
.patreon-offer-note {
  font-size: 12px;
  color: var(--muted);
  flex: 1 1 140px;
}

/* Includes grid */
.patreon-includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.patreon-include-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.patreon-include-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.patreon-include-item strong { display: block; font-weight: 700; margin-bottom: 4px; }
.patreon-include-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Patreon funnel strip on blog pages */
.patreon-strip {
  background: linear-gradient(135deg, #fff3f3 0%, #fff8f0 100%);
  border: 1px solid #ffd0d3;
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 48px 0 0;
}
.patreon-strip-text { flex: 1 1 260px; }
.patreon-strip-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF424D;
  margin-bottom: 6px;
}
.patreon-strip-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
[data-lang-en], [data-lang-ru] { display: none; }
html[data-lang="en"] [data-lang-en] { display: inline; }
html[data-lang="ru"] [data-lang-ru] { display: inline; }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 900px) {
  .topbar { padding: 0 14px; height: 52px; grid-template-columns: auto 1fr auto; }
  .topbar .brand { display: none; }
  .topbar-cta { padding: 7px 11px; font-size: 9.5px; letter-spacing: 0.1em; }
  .lang-toggle button { padding: 5px 7px; font-size: 9.5px; }
  .menu-btn { padding: 12px 14px 12px 0; font-size: 11px; }
  .menu-btn::before, .menu-btn::after { width: 18px; }
  .topbar-right { gap: 12px; }
  main { padding-top: 52px; }

  .section, .section-tight { padding: 56px 18px; }
  .hero { padding: 88px 18px 40px; min-height: 100vh; }
  .hero-with-bg { padding-left: 18px; padding-right: 18px; }

  .in-action { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .in-action-text { padding: 0; }

  /* Mobile typography — readable */
  .h-hero { font-size: clamp(1.875rem, 8vw, 2.75rem); line-height: 1.05; letter-spacing: -0.015em; }
  .h-display { font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.12; }
  .h-section { font-size: clamp(1.25rem, 5vw, 1.75rem); line-height: 1.18; }
  .h-sub { font-size: clamp(1.0625rem, 3.5vw, 1.375rem); line-height: 1.22; }
  .lead { font-size: 1rem; line-height: 1.55; }
  .body-text { font-size: 15px; line-height: 1.65; }
  .pull-quote { font-size: 1.0625rem; padding-left: 16px; margin: 28px 0; line-height: 1.4; }
  .eyebrow { font-size: 10px; letter-spacing: 0.14em; }

  /* Mobile buttons — smaller */
  .btn { padding: 11px 18px; font-size: 10.5px; letter-spacing: 0.12em; }
  .btn-large { padding: 14px 22px; font-size: 11px; }
  .btn-arrow::after { font-size: 13px; }

  .fullmenu { padding: 14px 18px 28px; }
  .fullmenu-cols { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .menu-col h4 { font-size: 10px; letter-spacing: 0.16em; margin-bottom: 14px; }
  .menu-col a { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
  .menu-col li { margin-bottom: 8px; }

  .statement { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .cards-grid, .testimonials { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }

  .service-block { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; margin-bottom: 56px; }
  .service-block:nth-child(even) .service-img { order: 0; }

  .community-grid { grid-template-columns: 1fr; gap: 12px; }
  .community-card { padding: 32px 22px; min-height: 280px; }

  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { padding: 32px 22px; min-height: 200px; }

  .course-meta-grid { grid-template-columns: 1fr 1fr; padding: 20px 0; gap: 14px; }
  .meta-item-value { font-size: 1.05rem; }
  .day-row { grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 0; }
  .day-duration { grid-column: 2; text-align: left; }
  .day-num { font-size: 1.75rem; }

  .list-row { grid-template-columns: 70px 1fr 28px; padding: 20px 0; gap: 12px; }
  .list-row-title { font-size: 1.125rem; }
  .list-row-type { display: none; }
  .list-row-date { font-size: 10.5px; }

  .testimonial { padding: 24px; }
  .testimonial-quote { font-size: 14.5px; margin-bottom: 24px; }

  .faq-q { padding: 22px 0; font-size: 1.0625rem; }
  .faq-q::after { font-size: 22px; margin-left: 16px; }
  .faq-a { padding: 0 32px 22px 0; font-size: 14px; }

  .cta-block { padding: 56px 22px; margin-top: 48px; }
  .cta-block-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-block .h-hero { font-size: clamp(1.5rem, 7.5vw, 2.125rem); line-height: 1.08; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { font-size: clamp(2rem, 8vw, 2.5rem); }
  footer { padding: 56px 22px 24px; margin-top: 56px; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 56px; }

  .hero-meta { gap: 14px; margin-top: 20px; }
  .hero-meta-block { font-size: 10px; letter-spacing: 0.06em; }
  .hero-cta-row { margin-top: 28px; gap: 10px; }

  .story-portrait { margin: 48px auto; max-width: 100%; }
  .story-credentials { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; margin-top: 32px; }

  /* ── mobile menu accordion ── */
  .fullmenu { overflow-y: auto; max-height: 100dvh; }
  .fullmenu-cols { gap: 0; margin-top: 12px; }
  .menu-col { border-bottom: 1px solid var(--line); padding: 4px 0; }
  .menu-col:last-child { border-bottom: none; }
  .menu-col h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 0;
    user-select: none;
  }
  .menu-col h4::after {
    content: '+';
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 300;
    opacity: 0.4;
    transition: transform 0.2s ease;
  }
  .menu-col.open h4::after { content: '−'; opacity: 0.6; }
  .menu-col ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-bottom: 0;
  }
  .menu-col.open ul { max-height: 600px; padding-bottom: 16px; }

  /* ── mobile hero fixes ── */
  .hero { min-height: 85vh; }
  .hero-with-bg { min-height: 90vh; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-cta-row .btn { width: 100%; text-align: center; justify-content: center; }

  /* ── mobile service meta table ── */
  .service-meta-row { grid-template-columns: 120px 1fr; font-size: 12.5px; }
  .service-meta-row strong { font-size: 10px; }

  /* ── mobile crumb ── */
  .crumb { font-size: 10px; letter-spacing: 0.08em; gap: 6px; }

  /* ── mobile service-num ── */
  .service-num { font-size: 3rem; }

  /* ── mobile list-rows ── */
  .list-row { gap: 10px; }

  /* ── mobile footer services link ── */
  .footer-col ul li { margin-bottom: 10px; }
  .footer-col a { font-size: 14px; }

  /* ── mobile Patreon ── */
  .patreon-offer-bar { padding: 20px 20px; gap: 16px; }
  .patreon-price-new { font-size: 1.75rem; }
  .patreon-includes-grid { grid-template-columns: 1fr; gap: 20px; }
  .patreon-strip { padding: 24px 20px; gap: 16px; }
  .patreon-strip-title { font-size: 1rem; }
}

/* ============================================
   CHAT WIDGET
   ============================================ */
#cw-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cw-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(138,115,85,0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}
.cw-fab:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(138,115,85,0.4); }
.cw-fab[aria-expanded="true"] { background: #6f5c43; }

.cw-panel {
  flex-direction: column;
  width: 300px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  animation: cw-in 0.2s ease;
}

@keyframes cw-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--accent);
  color: #fff;
}
.cw-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cw-close-btn {
  background: none;
  border: none;
  color: var(--bg);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.cw-close-btn:hover { opacity: 1; }

.cw-body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-greeting {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 6px;
}

.cw-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cw-item {
  text-align: left;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}
.cw-item:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.cw-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  text-align: left;
  margin-bottom: 4px;
}
.cw-back:hover { color: var(--ink); }

.cw-q-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cw-answer {
  font-size: 13.5px;
  line-height: 1.6;
  color: #444;
}
.cw-action-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cw-action-btn:hover { opacity: 0.82; }

@media (max-width: 600px) {
  #cw-widget { bottom: 16px; right: 16px; }
  .cw-panel { width: 280px; }
}

/* ============================================
   ECOSYSTEM: BLOG RELATED POSTS
   ============================================ */
.blog-related {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  margin-top: 56px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 32px;
}
.blog-related-card {
  background: var(--bg);
  padding: 32px 28px;
  display: block;
  transition: background 0.15s;
}
.blog-related-card:hover { background: #f7f7f7; }
.blog-related-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.blog-related-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.blog-related-arrow {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   ECOSYSTEM: ENTRY/UPGRADE STRIPS
   ============================================ */
.eco-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin: 56px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.eco-strip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eco-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.eco-strip-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .blog-related-grid { grid-template-columns: 1fr; }
  .eco-strip { flex-direction: column; align-items: flex-start; }
}
