/*
Theme Name: Yoga Life
Theme URI: https://yogalife.example
Author: Yoga Life Studio
Author URI: https://yogalife.example
Description: Airy and light — a "Sky Breath" block theme for an online yoga studio. Turquoise, sky-blue and ocean-navy on a luminous blue-white canvas, with Lora + Nunito Sans typography. Full Site Editing ready, with marketing patterns for hero, classes, schedule, teachers, pricing, journal and CTA sections. RU-first, translation-ready.
Tags: blog, portfolio, education, full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wellness
Version:           2.0.12
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yogalife
*/

/* =========================================================================
   YOGA LIFE — Design System
   Sky Breath — air, breath, space, lightness. Sky-turquoise + aquamarine
   on a luminous blue-white canvas, ocean-graphite ink. Mobile-first. RU primary.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Nunito+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---- Core palette ---- */
  --sand:        #F8FCFD;   /* main background, warm off-white */
  --sand-deep:   #ECF6F8;   /* recessed surfaces */
  --paper:       #FFFFFF;   /* cards on sand */
  --beige:       #DDF8FB;   /* dusty support */

  --sage:        #69C9D0;   /* primary brand green (muted) */
  --sage-soft:   #C7EEF2;   /* light sage for tags/cards */
  --sage-tint:   #EAF8FA;

  --forest:      #243746;   /* deep forest from logo, dark sections */
  --forest-soft: #2E4757;

  --terracotta:  #49B8D6;   /* action / fire */
  --terracotta-d:#2FA7C9;   /* pressed */
  --terracotta-soft:#DAF3F8;
  --amber:       #8FDCE6;   /* warm secondary accent */

  --ink:         #243746;   /* primary text, warm near-black */
  --ink-soft:    #6C7A86;   /* secondary text */
  --ink-faint:   #93A3AE;   /* tertiary / captions */
  --line:        #DCEAEE;   /* hairline borders */
  --line-strong: #C5DBE1;

  /* ---- Type ---- */
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, system-ui, sans-serif;

  --t-display: clamp(2.6rem, 6vw, 4.4rem);
  --t-h1:      clamp(2rem, 4.4vw, 3rem);
  --t-h2:      clamp(1.5rem, 3vw, 2.1rem);
  --t-h3:      1.3rem;
  --t-lead:    1.18rem;
  --t-body:    1rem;
  --t-sm:      0.9rem;
  --t-xs:      0.78rem;

  /* ---- Shape & depth ---- */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(36,55,70,.04), 0 2px 8px rgba(36,55,70,.05);
  --shadow:    0 4px 14px rgba(36,55,70,.07), 0 1px 3px rgba(36,55,70,.05);
  --shadow-lg: 0 14px 40px rgba(36,55,70,.10), 0 4px 12px rgba(36,55,70,.06);

  /* ---- Spacing rhythm ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* ---- Motion: slow, gentle, no jarring parallax ---- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur:  .45s;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--terracotta-soft); }

/* =========================================================================
   LAYOUT HELPERS
   ========================================================================= */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.wrap-narrow { max-width: 720px; }

.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(73,184,214,.30);
}
.btn-primary:hover { background: var(--terracotta-d); box-shadow: 0 8px 22px rgba(73,184,214,.36); }

.btn-secondary {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--sage);
}
.btn-secondary:hover { border-color: var(--sage); background: var(--sage-tint); }

.btn-ghost { background: transparent; color: var(--terracotta); padding-inline: 8px; }
.btn-ghost:hover { color: var(--terracotta-d); }

.btn-on-dark {
  background: var(--sand);
  color: var(--forest);
}
.btn-on-dark:hover { background: #fff; }

.btn-sm { padding: 11px 18px; font-size: var(--t-sm); }
.btn-lg { padding: 19px 36px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* =========================================================================
   BADGES / TAGS
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--sage-soft);
  color: var(--forest);
  line-height: 1;
  white-space: nowrap;
}
.badge-level-1 { background: var(--sage-soft);    color: #2E7E89; }  /* Начинающий */
.badge-level-2 { background: #DCEAF3;             color: #3E6E96; }  /* Средний */
.badge-level-3 { background: #D5DEE6; color: #243746; } /* Продвинутый */
.badge-cat   { background: var(--sand-deep); color: var(--ink-soft); font-weight: 600; }
.badge-live  { background: #C7503E; color: #fff; }
.badge-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.meta-dot { color: var(--line-strong); padding-inline: 2px; }

/* =========================================================================
   FORM INPUTS
   ========================================================================= */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); }
.input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(124,144,130,.16);
}
.input.is-error { border-color: #C7503E; box-shadow: 0 0 0 4px rgba(199,80,62,.12); }
.field-error { font-size: var(--t-xs); color: #C7503E; font-weight: 600; }
.field-hint  { font-size: var(--t-xs); color: var(--ink-faint); }

/* =========================================================================
   CARDS — generic surface
   ========================================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* ---- Lesson card ---- */
.lesson {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.lesson:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.lesson-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--sage-soft) 0%, transparent 60%),
    linear-gradient(150deg, #CDEAED 0%, #A7D8E0 55%, #8FCBD6 100%);
  overflow: hidden;
}
.lesson-thumb image-slot { width: 100%; height: 100%; }
.lesson-dur {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(36,55,70,.82); color: #fff;
  font-size: var(--t-xs); font-weight: 700;
  padding: 4px 9px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.lesson-fav {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: var(--ink-soft);
  border: none; cursor: pointer; backdrop-filter: blur(4px);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lesson-fav:hover, .lesson-fav.is-active { color: var(--terracotta); background: #fff; }
.lesson-fav.is-active svg { fill: var(--terracotta); }

.lesson-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lesson-title { font-size: 1.16rem; font-weight: 500; line-height: 1.25; }
.lesson-meta { display: flex; align-items: center; gap: 4px; font-size: var(--t-sm); color: var(--ink-soft); margin-top: auto; }

/* ---- Locked (no access) state on a card ---- */
.lesson.is-locked .lesson-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(36,55,70,.34);
  backdrop-filter: blur(3px);
}
.lesson-lock {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  color: #fff;
}
.lesson-lock span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(36,55,70,.55); padding: 8px 14px; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 700;
}

/* =========================================================================
   VIDEO PLAYER WRAPPER (Mux placeholder)
   ========================================================================= */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(130% 100% at 50% 0%, var(--forest-soft) 0%, var(--forest) 70%);
  display: grid; place-items: center;
}
.player image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-play {
  position: relative; z-index: 2;
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--terracotta);
  border: none; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.player-play:hover { transform: scale(1.06); background: #fff; }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(20,28,22,.7));
  color: rgba(255,255,255,.92); font-size: var(--t-sm); font-weight: 600;
}
.player-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; }
.player-track i { display: block; height: 100%; width: 32%; background: var(--terracotta); border-radius: 4px; }

/* =========================================================================
   NO-ACCESS BLOCK
   ========================================================================= */
.noaccess {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background:
    radial-gradient(130% 120% at 50% 10%, var(--forest-soft), var(--forest));
  color: var(--sand);
  display: grid; place-items: center; text-align: center;
  padding: 32px;
  overflow: hidden;
}
.noaccess-inner { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.noaccess .lock-ring {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(248,252,253,.12); color: var(--amber);
  border: 1px solid rgba(248,252,253,.2);
}
.noaccess h3 { color: var(--sand); font-size: 1.5rem; }
.noaccess p { color: rgba(248,252,253,.78); font-size: var(--t-sm); }

/* =========================================================================
   HEADER (desktop) + MOBILE BOTTOM NAV
   ========================================================================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,252,253,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .bar { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--amber), var(--terracotta) 55%, var(--terracotta-d));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.logo b { font-weight: 600; }
.logo .ya-light { color: var(--sage); }
.logo .logo-img {
  width: 48px; height: 48px; flex: none; object-fit: contain;
  mix-blend-mode: multiply;   /* drops the white JPG background into the header */
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--sand-deep); }
.nav a.is-active { color: var(--forest); background: var(--sage-soft); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--sage), var(--forest-soft));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .9rem;
}

/* mobile bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  background: rgba(248,252,253,.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--ink-faint);
  padding: 6px 0; border-radius: var(--r-sm);
}
.tabbar a.is-active { color: var(--terracotta); }
.tabbar svg { width: 23px; height: 23px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-foot { background: #173547; color: rgba(217,230,236,.82); }
.site-foot .wrap { padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.site-foot h4 { color: var(--sand); font-family: var(--font-body); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.site-foot .logo { color: var(--sand); }
.site-foot .logo .ya-light { color: var(--amber); }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: var(--t-sm); }
.foot-links a:hover { color: var(--sand); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(248,252,253,.14); font-size: var(--t-xs); color: rgba(248,252,253,.5); }

/* =========================================================================
   STATES — skeleton / empty / error / success
   ========================================================================= */
.skeleton {
  background: linear-gradient(100deg, var(--sand-deep) 30%, #f3eee6 50%, var(--sand-deep) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.8s var(--ease) infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-line { height: 12px; border-radius: 6px; }

.state-block {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; padding: 48px 28px; max-width: 420px; margin: 0 auto;
}
.state-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-tint); color: var(--sage);
}
.state-block.success .state-icon { background: var(--sage-soft); color: #4a7256; }
.state-block.error   .state-icon { background: var(--terracotta-soft); color: var(--terracotta-d); }
.state-block h3 { font-size: 1.4rem; }
.state-block p { color: var(--ink-soft); font-size: var(--t-sm); }

.toast {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--forest); color: var(--sand);
  padding: 13px 18px; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 600; box-shadow: var(--shadow-lg);
}
.toast.success .dot { color: #9ec6a6; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  /* Let the Navigation block's own overlay (hamburger) handle the menu; keep the
     action CTAs reachable by letting the bar wrap rather than hiding them. */
  .site-head .bar { flex-wrap: wrap; row-gap: 10px; }
  .head-right { margin-left: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .12s !important; }
}


/* ===== WEBSITE LAYER (marketing sections) ===== */
/* =========================================================================
   YOGA LIFE — Website layer
   Marketing-site sections built on top of the Yoga Life design system tokens.
   Desktop-first, responsive. Pairs with yogalife.css.
   ========================================================================= */

/* ---- shared rhythm ---- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 52px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { color: var(--ink-soft); font-size: var(--t-lead); margin-top: 14px; }
.center { text-align: center; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }

.bg-deep   { background: var(--sand-deep); }
.bg-sage   { background: var(--sage-tint); }
.bg-forest { background: var(--forest); color: rgba(248,252,253,.82); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--sand); }

/* ---- top announce bar ---- */
.announce {
  background: var(--forest); color: rgba(248,252,253,.9);
  text-align: center; font-size: var(--t-sm); font-weight: 600;
  padding: 9px 16px;
}
.announce a { color: var(--amber); font-weight: 700; }

/* ---- header tweaks for marketing site ---- */
.site-head .bar { height: 76px; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); flex-wrap: nowrap; }
.site-head .nav { margin-inline: auto; display: flex; flex-wrap: nowrap; gap: clamp(4px, 1vw, 12px); min-width: 0; }
.nav a { white-space: nowrap; }
.menu-toggle { display: none; }
.lesson-dur { white-space: nowrap; }

/* Header collapses to a hamburger at <=900px (WP's nav defaults to 600px,
   so we extend "mobile" mode through the 600-900 range below).
   Action CTAs are inline buttons (.head-right) on desktop and fold into the
   hamburger overlay (.nav-cta links) on mobile. */
@media (min-width: 900px) { .site-head .wp-block-navigation .nav-cta { display: none; } }
@media (max-width: 899.98px) {
  /* Mobile bar reads: logo … Войти ☰ (hamburger stays rightmost). */
  .site-head .nav { margin-inline: 0; order: 3; }
  .site-head .head-right { order: 2; }

  /* Push WP's 600px nav breakpoint up to 900px: show the hamburger and
     hide the inline menu through the whole mobile range (overrides core's
     min-width:600px rules, which otherwise show the inline nav from 600px). */
  .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }

  /* WP navigation overlay -> full-screen mobile sheet.
     Core sets position:fixed but a stray height:76px keeps the panel
     header-tall; force full height and lay the links out as a column. */
  .wp-block-navigation__responsive-container.is-menu-open {
    height: 100vh; height: 100dvh; background: var(--paper);
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100%;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation.nav {
    flex-direction: column; align-items: center; gap: 12px;
    padding-top: 40px; font-size: var(--t-lead);
  }
  .wp-block-navigation__responsive-container.is-menu-open .nav-cta .wp-block-navigation-item__content {
    background: var(--sage-soft); color: var(--forest); font-weight: 700;
  }
}

/* ---- HERO ---- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(48px, 7vw, 104px);
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.04; letter-spacing: -.02em;
}
.hero-copy .lead { font-size: var(--t-lead); color: var(--ink-soft); margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust .stat .n { font-family: var(--font-head); font-size: 1.9rem; color: var(--forest); line-height: 1; }
.hero-trust .stat .l { font-size: var(--t-xs); color: var(--ink-soft); margin-top: 6px; letter-spacing: .02em; }

.hero-art {
  width: 100%; max-width: 100%;
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 95% at 50% 28%, #AEEFF4, #DDF8FB 55%, #F7FEFF);
  box-shadow: var(--shadow-lg);
}
.hero-art image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .hero-emblem {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto; max-width: 74%; max-height: 80%; z-index: 1;
  object-fit: contain;        /* keep the square ratio on any card shape */
  mix-blend-mode: multiply;   /* drops the white JPG bg onto the aqua gradient */
}
.hero-art .float {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 36px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: var(--r-pill); padding: 9px 15px 9px 11px;
  box-shadow: var(--shadow); font-size: var(--t-sm); font-weight: 700; color: var(--ink);
}
.hero-art .float .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; color: var(--forest); }

/* ---- stats / trust strip ---- */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px,4vw,64px); align-items: center; }
.strip .item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; font-size: var(--t-sm); }
.strip .item svg { color: var(--sage); }

/* ---- feature grid ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feat .feat-ic {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage-tint); color: var(--sage); margin-bottom: 20px;
}
.feat h3 { font-size: 1.3rem; }
.feat p { color: var(--ink-soft); font-size: var(--t-sm); margin-top: 10px; }

/* ---- class / lesson grid ---- */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lesson-thumb .lesson-dur { z-index: 2; }
.lesson-tag-row { display: flex; gap: 8px; position: absolute; top: 12px; left: 12px; z-index: 2; }

/* ---- schedule (live this week) ---- */
.sched { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sched-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-time { text-align: center; }
.sched-time .d { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 700; }
.sched-time .t { font-family: var(--font-head); font-size: 1.35rem; color: var(--forest); }
.sched-main b { font-size: 1.05rem; font-weight: 600; }
.sched-main .sub { font-size: var(--t-sm); color: var(--ink-soft); display: flex; align-items: center; gap: 6px; margin-top: 4px; }

/* ---- teachers ---- */
.teach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.teach-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 540px; margin-inline: auto; gap: 32px; }
.teach { text-align: center; }
.teach .ph { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(150deg, #CDEAED, #8FCBD6); box-shadow: var(--shadow-sm); }
.teach .ph image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.teach h3 { font-size: 1.2rem; margin-top: 16px; }
.teach .role { font-size: var(--t-sm); color: var(--sage); font-weight: 700; margin-top: 3px; }
/* Групповое фото тренеров (альтернатива сетке карточек) */
.teach-group { margin: 0 auto; max-width: 760px; text-align: center; }
.teach-group img { width: 100%; height: auto; max-height: 520px; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: block; }
.teach-group-cap { margin-top: 16px; font-size: 1.2rem; font-weight: 700; color: var(--forest); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.plan.feature { background: var(--forest); border-color: var(--forest); color: rgba(248,252,253,.8); position: relative; box-shadow: var(--shadow-lg); }
.plan.feature h3, .plan.feature .price { color: var(--sand); }
.plan .tag { position: absolute; top: 22px; right: 24px; }
.plan h3 { font-size: 1.35rem; }
.plan .desc { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 6px; min-height: 42px; }
.plan.feature .desc { color: rgba(248,252,253,.7); }
.plan .price { font-family: var(--font-head); font-size: 2.8rem; line-height: 1; margin: 18px 0 4px; color: var(--forest); }
.plan .price span { font-size: 1rem; color: var(--ink-faint); font-family: var(--font-body); }
.plan.feature .price span { color: rgba(248,252,253,.6); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: var(--t-sm); align-items: flex-start; }
.plan li svg { flex: none; color: var(--sage); margin-top: 2px; }
.plan.feature li svg { color: var(--amber); }

/* ---- quote ---- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.4; font-style: italic; color: var(--ink); }
.quote .by { margin-top: 24px; font-size: var(--t-sm); font-weight: 700; color: var(--ink-soft); font-style: normal; }
.quote .by span { color: var(--sage); }

/* ---- journal / blog ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); cursor: pointer; }
.post:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post .ph { aspect-ratio: 16/10; position: relative; background: linear-gradient(150deg, #CDE9EE, #9FD0DA); }
.post .ph image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.post .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post .cat { font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.post h3 { font-size: 1.25rem; line-height: 1.25; }
.post .meta { margin-top: auto; font-size: var(--t-sm); color: var(--ink-faint); }

/* ---- CTA band ---- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px,6vw,80px);
  background: radial-gradient(130% 120% at 20% 10%, var(--forest-soft), var(--forest)); color: var(--sand); text-align: center; }
.cta-band h2 { color: var(--sand); font-size: var(--t-h2); }
.cta-band p { color: rgba(248,252,253,.78); margin: 16px auto 30px; max-width: 52ch; }

/* ---- breadcrumb / page hero (inner pages) ---- */
.page-hero { background: var(--sand-deep); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(40px,6vw,72px); text-align: center; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: var(--t-h1); }
.page-hero p { color: var(--ink-soft); margin: 14px auto 0; max-width: 56ch; font-size: var(--t-lead); }

/* ---- filter chips row ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { padding: 9px 18px; border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 700;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer; transition: all var(--dur) var(--ease); }
.filter:hover { border-color: var(--sage); color: var(--ink); }
.filter.on { background: var(--forest); color: var(--sand); border-color: var(--forest); }

/* ---- prose (single post) ---- */
.prose { max-width: 720px; margin: 0 auto; }
.prose > * + * { margin-top: 24px; }
.prose p { font-size: var(--t-lead); color: var(--ink); line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin-top: 44px; }
.prose h3 { font-size: 1.3rem; margin-top: 32px; }
.prose blockquote { border-left: 3px solid var(--terracotta); padding-left: 22px; font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); }
.prose ul { padding-left: 22px; color: var(--ink); }
.prose li { margin-top: 8px; }

/* ---- mobile menu sheet ---- */
.msheet { display: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .feat-grid, .class-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .teach-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/11; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
}
@media (max-width: 640px) {
  .feat-grid, .class-grid, .post-grid, .teach-grid { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 64px 1fr; }
  .sched-row .btn { grid-column: 2; justify-self: start; }
  .hero-trust { gap: 22px; }
}
/* Телефоны: длинные CTA не помещаются в строку (.btn nowrap + фикс. паддинги).
   Разрешаем перенос текста и делаем главные кнопки во всю ширину столбиком. */
@media (max-width: 600px) {
  .btn { white-space: normal; }              /* перенос вместо горизонтального переполнения */
  .btn-lg { padding: 16px 22px; }            /* компактнее на узком экране */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band .btn { display: flex; width: 100%; }
}


/* =========================================================================
   WORDPRESS BLOCK INTEGRATION
   Maps core blocks onto the Yoga Life design system.
   ========================================================================= */

/* Navigation block -> .nav look */
.site-head .wp-block-navigation { margin-inline: auto; }
.wp-block-navigation.nav { gap: 4px; font-size: var(--t-sm); font-weight: 600; flex-wrap: nowrap; min-width: 0; }
.wp-block-navigation.nav .wp-block-navigation-item__content { white-space: nowrap; }
.wp-block-navigation.nav .wp-block-navigation-item__content {
  color: var(--ink-soft); padding: 9px 14px; border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.wp-block-navigation.nav .wp-block-navigation-item__content:hover { color: var(--ink); background: var(--sand-deep); }
.wp-block-navigation.nav .current-menu-item .wp-block-navigation-item__content { color: var(--forest); background: var(--sage-soft); }

/* Query loop -> journal cards */
.wp-block-query .wp-block-post-template {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  list-style: none; padding: 0; margin: 0;
}
.wp-block-query .wp-block-post-template > li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wp-block-query .wp-block-post-template > li:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.wp-block-query .wp-block-post-featured-image {
  margin: 0; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(150deg,#CDE9EE,#9FD0DA);
}
.wp-block-query .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-query .loop-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wp-block-query .loop-cat a, .wp-block-query .loop-cat {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage);
}
.wp-block-query .wp-block-post-title { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.wp-block-query .wp-block-post-title a:hover { color: var(--terracotta); }
.wp-block-query .wp-block-post-date { margin: auto 0 0; color: var(--ink-faint); font-size: var(--t-sm); }
.wp-block-query-pagination { margin-top: 8px; font-weight: 700; }
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current { color: var(--terracotta); }

/* Query / archive titles reuse the page-hero treatment */
.page-hero .wp-block-query-title { font-family: var(--font-head); font-weight: 500; font-size: var(--t-h1); }
.eyebrow-terms a, .page-hero .eyebrow-terms {
  font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--sage);
}

/* Prose (single post / page content) */
.prose > * { margin-block: 24px; }
.prose > :first-child { margin-top: 0; }
.prose p { font-size: var(--t-lead); line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin-top: 44px; }
.prose h3 { font-size: 1.3rem; margin-top: 32px; }
.prose blockquote {
  border-left: 3px solid var(--terracotta); padding-left: 22px; margin-left: 0;
  font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--ink-soft);
}
.prose figure img, .prose img { border-radius: var(--r-lg); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 8px; }

/* Featured image on single */
.section > .wp-block-post-featured-image { margin-bottom: 32px; }
.section > .wp-block-post-featured-image img { border-radius: var(--r-xl); width: 100%; }

/* Comments */
.wp-block-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.wp-block-comments .wp-block-comment-author-name a { color: var(--ink); font-weight: 700; }
.wp-block-comments .wp-block-comment-date { color: var(--ink-faint); font-size: var(--t-sm); }

/* WP utility alignment safety */
.wp-block-group.section { width: 100%; }
main .wp-block-query .wp-block-post-template > li > a { display: block; }

@media (max-width: 980px) { .wp-block-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wp-block-query .wp-block-post-template { grid-template-columns: 1fr; } }

/* =========================================================================
   PLATFORM ADDITIONS (Phase 2): plugin shortcode output, footer CTA, popup
   ========================================================================= */

/* Footer CTA band (persistent CTAs on every page) */
.foot-cta { background: var(--sand-deep); border-top: 1px solid var(--line); padding-block: 32px; }
.foot-cta .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

/* [yoga_schedule] output */
.sched-live { text-align: center; }
.yoga-schedule {
  list-style: none; margin: 0 auto; padding: 0; max-width: 860px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.yoga-sched-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.yoga-sched-row:last-child { border-bottom: 0; }
.yoga-sched-row .day { font-weight: 600; font-size: 1.05rem; }
.yoga-sched-row .time { font-family: var(--font-head); color: var(--forest); }
.yoga-sched-row .time small { color: var(--ink-faint); font-family: var(--font-body); }
.yoga-sched-note { text-align: center; margin-top: 18px; font-weight: 700; }

/* [yoga_next_class] output */
.yoga-next-class {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  background: var(--sage-tint); border: 1px solid var(--sage-soft); border-radius: var(--r-pill);
  padding: 10px 18px; margin: 0 auto 22px; font-weight: 600;
}
.yoga-next-class .label { color: var(--forest); font-family: var(--font-head); }
.yoga-next-class .countdown { color: var(--terracotta); font-weight: 700; }

/* gate notice (plugin Access_Gate) */
.yoga-mux-gate {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--sand-deep); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; color: var(--ink-soft);
}

/* One-time trial popup */
.yl-popup-overlay {
  position: fixed; inset: 0; z-index: 200; padding: 20px;
  background: rgba(36,55,70,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center;
}
.yl-popup {
  background: var(--paper); border-radius: var(--r-xl); max-width: 420px; width: 100%;
  padding: 34px 28px 30px; text-align: center; box-shadow: var(--shadow-lg); position: relative;
}
.yl-popup h3 { font-size: 1.5rem; margin-bottom: 10px; }
.yl-popup p { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: 22px; }
.yl-popup .btn { width: 100%; }
.yl-popup-close {
  position: absolute; top: 10px; right: 14px; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: var(--ink-faint); cursor: pointer;
}
.yl-popup-close:hover { color: var(--ink); }

/* --- content refresh: rotation + new sections --- */
.rotate__item[hidden] { display: none !important; }
.formats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
@media (max-width: 860px) { .formats-grid { grid-template-columns: repeat(2, 1fr); } }
.format { display: block; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.06); text-decoration: none; color: inherit; }
.format h3 { margin: 0 0 6px; }
.review { max-width: 720px; margin: 0 auto; text-align: center; }
.review blockquote { font-family: Lora, Georgia, serif; font-size: 1.4rem; line-height: 1.5; margin: 0 0 12px; }
.review .who { opacity: .7; font-weight: 600; }
.lvl-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .95rem; }
.lvl-list li { margin: 2px 0; }
