/* =========================================================================
   nadyalider.pro — design system
   Layout is flexbox only (no CSS grid) so every section maps onto a native
   Elementor container/widget when the site is rebuilt in WordPress.
   ========================================================================= */

:root{
  --cream:#F7F3EE;
  --cream-2:#FFFFFF;
  --dark:#1C1A17;
  --dark-2:#2A2621;
  --gold:#B8975A;
  --gold-light:#D4B483;
  --muted:#5A534A;
  --muted-2:#8A8177;
  --border:#E5DDD4;
  --border-dark:rgba(255,255,255,.12);

  --ff-display:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-body:'Jost', 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap:1180px;
  --pad:5%;
  --radius:2px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  background:var(--cream);
  color:var(--dark);
  font-family:var(--ff-body);
  font-weight:400;
  font-size:16px;
  line-height:1.7;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
button{font-family:inherit;cursor:pointer}
::selection{background:var(--gold);color:#fff}

/* ---------------------------------------------------------------- type -- */
h1,h2,h3,h4{font-family:var(--ff-display);font-weight:600;line-height:1.15;letter-spacing:-.01em}
h1{font-size:clamp(2.4rem,5.4vw,4.4rem)}
h2{font-size:clamp(1.85rem,4vw,3rem)}
h3{font-size:clamp(1.25rem,2.2vw,1.6rem)}
h4{font-size:1.1rem}
em{font-style:italic;color:var(--gold)}
h1 em,h2 em,h3 em{font-style:italic;color:var(--gold)}
p{color:var(--muted)}
strong{font-weight:600;color:var(--dark)}

.eyebrow{
  display:block;
  font-family:var(--ff-body);
  font-size:.7rem;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold);margin-bottom:.9rem;
}
.lead{font-size:1.06rem;color:var(--muted);max-width:56ch}
.small{font-size:.86rem}

/* -------------------------------------------------------------- layout -- */
.wrap{width:100%;max-width:var(--wrap);margin:0 auto}
.section{padding:clamp(3.5rem,7vw,6.5rem) var(--pad)}
.section--tight{padding-top:clamp(2rem,4vw,3.5rem);padding-bottom:clamp(2rem,4vw,3.5rem)}
.section--dark{background:var(--dark);color:var(--cream)}
.section--dark p{color:#B9B1A6}
.section--dark h1,.section--dark h2,.section--dark h3{color:var(--cream)}
.section--white{background:var(--cream-2)}
.section-head{max-width:46rem;margin-bottom:clamp(2rem,4vw,3.2rem)}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}
.section-head h1+p,.section-head h2+p{margin-top:1rem}

/* flex primitives — these become Elementor containers 1:1 */
.row{display:flex;flex-wrap:wrap;gap:clamp(1.1rem,2.4vw,2rem)}
.row--middle{align-items:center}
.row--between{justify-content:space-between}
.row--center{justify-content:center}
.col{display:flex;flex-direction:column}
.col-2>*{flex:1 1 clamp(260px,44%,520px)}
.col-3>*{flex:1 1 clamp(240px,30%,360px)}
.col-4>*{flex:1 1 clamp(190px,22%,270px)}

/* -------------------------------------------------------------- header -- */
.header{
  position:sticky;top:0;z-index:200;
  background:rgba(28,26,23,.95);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-dark);
}
.header__inner{
  display:flex;align-items:center;justify-content:space-between;gap:1.2rem;
  max-width:var(--wrap);margin:0 auto;padding:0 var(--pad);height:72px;
}

/* logo lockup: diamond mark = the four key positions of a birth date */
.logo{display:inline-flex;align-items:center;gap:11px;text-decoration:none;flex:0 0 auto}
.logo__mark{flex:0 0 auto;display:block}
.logo__text{display:flex;flex-direction:column;gap:4px}
/* the wordmark is cream on the dark ground; ".ru" carries the gold accent
   and the nav links pick up the same cream so header reads as one lockup */
.logo__name{
  font-family:var(--ff-body);font-weight:500;font-size:17px;
  letter-spacing:.15em;text-transform:uppercase;line-height:1;
  color:var(--cream);white-space:nowrap;
}
.logo__dot{color:var(--gold-light)}
.logo__desc{display:flex;align-items:center;gap:6px}
.logo__desc i{flex:1;height:1px;background:var(--gold-light);opacity:.5}
.logo__desc span{
  font-size:6.5px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold-light);white-space:nowrap;
}

.nav{display:flex;align-items:center;gap:1.6rem;margin-left:auto}
.nav__list{display:flex;align-items:center;gap:1.4rem;list-style:none}
.nav__list a{
  font-size:.74rem;font-weight:500;letter-spacing:.11em;text-transform:uppercase;
  color:var(--cream);text-decoration:none;transition:color .2s;white-space:nowrap;
}
.nav__list a:hover,.nav__list a[aria-current="page"]{color:var(--gold-light)}

/* the switcher sits outside .nav so it stays reachable next to the burger
   when the menu is collapsed; flex order keeps the desktop arrangement */
.logo{order:1}
.nav{order:2}
.lang{order:3}
.burger{order:4}

.lang{display:flex;align-items:center;gap:2px;border:1px solid var(--border-dark);padding:2px;flex:0 0 auto}
.lang button{
  background:none;border:0;padding:.25rem .5rem;
  font-size:.68rem;font-weight:500;letter-spacing:.08em;color:#8E867B;
  transition:background .2s,color .2s;
}
.lang button:hover{color:var(--cream)}
.lang button.is-active{background:var(--cream);color:var(--dark)}

/* the dark header needs its CTA in gold — a dark button would vanish */
.header .btn--primary{background:var(--gold);color:#fff}
.header .btn--primary:hover{background:var(--cream);color:var(--dark)}

.burger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:40px;height:40px;background:none;border:0;
}
.burger span{display:block;width:22px;height:1.5px;background:var(--cream);transition:transform .25s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

/* ------------------------------------------------------------- buttons -- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.95rem 2rem;border:1px solid transparent;border-radius:var(--radius);
  font-family:var(--ff-body);font-size:.76rem;font-weight:500;
  letter-spacing:.13em;text-transform:uppercase;text-decoration:none;
  transition:background .25s,color .25s,border-color .25s,transform .2s;
}
.btn--primary{background:var(--dark);color:var(--cream)}
.btn--primary:hover{background:var(--gold);transform:translateY(-1px)}
.btn--gold{background:var(--gold);color:#fff}
.btn--gold:hover{background:var(--dark);transform:translateY(-1px)}
.btn--outline{background:transparent;color:var(--dark);border-color:var(--border)}
.btn--outline:hover{border-color:var(--gold);color:var(--gold)}
/* .cta paints its own dark ground without carrying .section--dark, so it has
   to be named here too — otherwise an outline button is graphite on graphite */
.section--dark .btn--outline,
.cta .btn--outline{color:var(--cream);border-color:var(--border-dark)}
.section--dark .btn--outline:hover,
.cta .btn--outline:hover{border-color:var(--gold-light);color:var(--gold-light);background:rgba(212,180,131,.08)}
.btn--block{width:100%}
.btn--sm{padding:.7rem 1.4rem;font-size:.7rem}
.btn-group{display:flex;flex-wrap:wrap;gap:.85rem}

.link-arrow{
  display:inline-flex;align-items:center;gap:.45rem;
  font-size:.76rem;font-weight:500;letter-spacing:.11em;text-transform:uppercase;
  color:var(--gold);text-decoration:none;transition:gap .2s;
}
.link-arrow:hover{gap:.8rem}

/* ---------------------------------------------------------------- hero -- */
.hero{position:relative;overflow:hidden;padding:clamp(3rem,6vw,5.5rem) var(--pad) clamp(3rem,6vw,5rem)}
.hero::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 72% 45%,rgba(184,151,90,.10) 0%,transparent 62%);
}
.hero__inner{position:relative;max-width:var(--wrap);margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:clamp(2rem,5vw,4rem)}
.hero__body{flex:1 1 clamp(280px,48%,600px)}
.hero__media{flex:1 1 clamp(260px,40%,460px);position:relative}
.hero__media img{width:100%;border-radius:var(--radius)}
.hero__media::after{
  content:'';position:absolute;inset:auto -14px -14px auto;width:62%;height:62%;
  border:1px solid var(--gold);opacity:.4;z-index:-1;
}
.hero p{margin-bottom:2rem}
.hero h1{margin-bottom:1.4rem}
.pill{
  display:inline-block;font-size:.68rem;font-weight:500;
  letter-spacing:.18em;text-transform:uppercase;color:var(--gold);
  border:1px solid var(--gold-light);padding:.4rem .95rem;
  border-radius:var(--radius);margin-bottom:1.6rem;
}

/* --------------------------------------------------------------- stats -- */
.stats{display:flex;flex-wrap:wrap;gap:clamp(1rem,3vw,2.4rem);margin-top:2.4rem}
.stat{flex:1 1 130px}
.stat__num{font-family:var(--ff-display);font-size:2.5rem;font-weight:600;color:var(--gold);line-height:1}
.stat__label{font-size:.78rem;color:var(--muted);margin-top:.3rem}
.section--dark .stat__label{color:#B9B1A6}

/* ----------------------------------------------------------- icon box -- */
.iconbox{
  display:flex;flex-direction:column;
  padding:1.7rem;border:1px solid var(--border);background:var(--cream-2);
  border-radius:var(--radius);transition:border-color .3s,transform .3s;
}
.iconbox:hover{border-color:var(--gold);transform:translateY(-3px)}
.iconbox__icon{font-size:1.7rem;line-height:1;margin-bottom:.9rem}
.iconbox h3{font-size:1.05rem;font-family:var(--ff-body);font-weight:500;letter-spacing:0;margin-bottom:.5rem}
.iconbox p{font-size:.9rem}
.section--dark .iconbox{background:transparent;border-color:var(--border-dark)}
.section--dark .iconbox:hover{border-color:var(--gold)}
.section--dark .iconbox h3{color:var(--cream)}

/* numbered variant */
.iconbox__num{
  font-family:var(--ff-display);font-size:2rem;font-weight:600;
  color:var(--gold);line-height:1;margin-bottom:.7rem;
}

/* ---------------------------------------------------------- price card -- */
.pcard{
  display:flex;flex-direction:column;
  padding:2rem 1.8rem;border:1px solid var(--border);background:var(--cream-2);
  border-radius:var(--radius);position:relative;transition:border-color .3s,transform .3s;
}
.pcard:hover{border-color:var(--gold);transform:translateY(-3px)}
.pcard--featured{border-color:var(--gold);box-shadow:0 12px 40px -18px rgba(184,151,90,.55)}
.pcard__badge{
  position:absolute;top:-1px;right:1.4rem;
  background:var(--gold);color:#fff;
  font-size:.6rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  padding:.32rem .7rem;
}
.pcard__kicker{font-size:.66rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:.7rem}
.pcard h3{margin-bottom:.6rem}
.pcard h3 small{display:block;margin-top:.2rem;font-family:var(--ff-body);font-size:.85rem;font-weight:500;color:var(--gold);letter-spacing:.02em}
.pcard__price{font-family:var(--ff-display);font-size:2.4rem;font-weight:600;line-height:1;margin:.5rem 0 1.2rem}
.pcard__price small{font-family:var(--ff-body);font-size:.8rem;font-weight:400;color:var(--muted-2);letter-spacing:.04em}
.pcard__list{list-style:none;margin-bottom:1.6rem;display:flex;flex-direction:column;gap:.55rem}
.pcard__list li{position:relative;padding-left:1.3rem;font-size:.9rem;color:var(--muted)}
.pcard__list li::before{content:'';position:absolute;left:0;top:.62em;width:6px;height:6px;background:var(--gold);border-radius:50%}
.pcard .btn{margin-top:auto}

/* ------------------------------------------------------------- reviews -- */
.review{
  display:flex;flex-direction:column;
  padding:1.8rem;border:1px solid var(--border);background:var(--cream-2);
  border-radius:var(--radius);
}
.review__stars{color:var(--gold);letter-spacing:.16em;font-size:.86rem;margin-bottom:.85rem}
.review__text{font-size:.94rem;color:var(--muted);margin-bottom:1.2rem;flex:1}
.review__who{display:flex;align-items:center;gap:.75rem;padding-top:1rem;border-top:1px solid var(--border)}
.review__avatar{
  flex:0 0 auto;width:38px;height:38px;border-radius:50%;
  background:var(--gold);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-display);font-size:1.05rem;font-weight:600;
}
.review__name{font-size:.85rem;font-weight:500;color:var(--dark);line-height:1.3}
.review__meta{font-size:.72rem;color:var(--muted-2)}
/* screenshot wall — real Instagram comments, published with permission.
   In Elementor this maps onto the native Image Gallery widget with lightbox. */
.shots{display:flex;flex-wrap:wrap;gap:1rem}
.shots__item{
  flex:1 1 clamp(190px,22%,250px);max-width:280px;
  display:block;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;background:var(--cream-2);cursor:zoom-in;
  transition:border-color .25s,transform .25s,box-shadow .25s;
}
.shots__item:hover{border-color:var(--gold);transform:translateY(-3px);box-shadow:0 14px 34px -20px rgba(28,26,23,.45)}
.shots__item img{width:100%;aspect-ratio:720/1272;object-fit:cover;object-position:top center;display:block}

.lightbox{
  position:fixed;inset:0;z-index:400;
  display:flex;align-items:center;justify-content:center;
  padding:3vmin;background:rgba(28,26,23,.93);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
.lightbox[hidden]{display:none}
.lightbox img{max-width:min(100%,520px);max-height:94vh;border-radius:var(--radius);box-shadow:0 30px 80px -30px #000}
.lightbox__close{
  position:absolute;top:1rem;right:1.2rem;
  width:44px;height:44px;border:1px solid var(--border-dark);border-radius:50%;
  background:transparent;color:var(--cream);font-size:1.4rem;line-height:1;
}
.lightbox__close:hover{border-color:var(--gold-light);color:var(--gold-light)}
.lightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:48px;height:48px;border:1px solid var(--border-dark);border-radius:50%;
  background:rgba(28,26,23,.6);color:var(--cream);font-size:1.3rem;line-height:1;
}
.lightbox__nav:hover{border-color:var(--gold-light);color:var(--gold-light)}
.lightbox__nav--prev{left:1rem}
.lightbox__nav--next{right:1rem}
@media (max-width:640px){
  .shots__item{flex:1 1 44%}
  .lightbox__nav{width:40px;height:40px}
}

.rating-line{display:flex;align-items:center;justify-content:center;gap:.7rem;flex-wrap:wrap;margin-bottom:2rem}
.rating-line .stars{color:var(--gold);font-size:1.15rem;letter-spacing:.14em}
.rating-line .score{font-family:var(--ff-display);font-size:1.5rem;font-weight:600}

/* ------------------------------------------------------------ accordion -- */
.acc{border-top:1px solid var(--border)}
.acc__item{border-bottom:1px solid var(--border)}
.acc__btn{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  background:none;border:0;padding:1.25rem 0;text-align:left;
  font-family:var(--ff-body);font-size:1rem;font-weight:500;color:var(--dark);
}
.acc__btn:hover{color:var(--gold)}
.acc__sign{flex:0 0 auto;color:var(--gold);font-size:1.3rem;line-height:1;transition:transform .25s}
.acc__item.is-open .acc__sign{transform:rotate(45deg)}
.acc__panel{max-height:0;overflow:hidden;transition:max-height .32s ease}
.acc__panel>div{padding:0 0 1.35rem;font-size:.95rem;color:var(--muted)}
.acc__panel p+p{margin-top:.7rem}
.section--dark .acc,.section--dark .acc__item{border-color:var(--border-dark)}
.section--dark .acc__btn{color:var(--cream)}

/* ------------------------------------------------------------- gallery -- */
.gallery{display:flex;flex-wrap:wrap;gap:.9rem}
.gallery a,.gallery figure{flex:1 1 clamp(140px,22%,260px);margin:0;overflow:hidden;border-radius:var(--radius);position:relative}
.gallery img,.gallery video{width:100%;aspect-ratio:2/3;object-fit:cover;transition:transform .5s;display:block;background:var(--dark)}
.gallery img:hover,.gallery video:hover{transform:scale(1.05)}
.gallery__play{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:56px;height:56px;border-radius:50%;
  background:rgba(28,26,23,.42);backdrop-filter:blur(2px);
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;transition:opacity .25s;
}
.gallery__play::after{
  content:'';width:0;height:0;margin-left:4px;
  border-style:solid;border-width:9px 0 9px 15px;
  border-color:transparent transparent transparent var(--cream);
}
figure.is-playing .gallery__play{opacity:0}

/* ------------------------------------------------------------- content -- */
.media-figure{position:relative;flex:1 1 clamp(240px,40%,440px)}
.media-figure img{width:100%;border-radius:var(--radius)}
.prose p+p{margin-top:1rem}
.prose ul{list-style:none;display:flex;flex-direction:column;gap:.6rem;margin:1.1rem 0}
.prose ul li{position:relative;padding-left:1.5rem;color:var(--muted)}
.prose ul li::before{content:'';position:absolute;left:0;top:.68em;width:7px;height:7px;border:1px solid var(--gold);transform:rotate(45deg)}

.video-frame{position:relative;width:100%;padding-top:56.25%;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--dark)}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* self-hosted module video: object-fit:contain so a source that isn't
   exactly 16:9 letterboxes on black instead of stretching or cropping */
.video-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}

/* a module whose material is a readable file (PDF) rather than a video —
   opens in a new tab so the browser's own PDF viewer handles it: reads
   fine right there, and still has its own save/download control for
   anyone who wants a copy on their phone */
.file-card{
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  padding:1.4rem 1.6rem;border:1px solid var(--border);border-radius:var(--radius);
  background:var(--cream-2);
}
.file-card__icon{
  flex:0 0 auto;width:44px;height:44px;border-radius:10px;
  background:rgba(184,151,90,.12);color:var(--gold);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-body);font-size:.66rem;font-weight:600;letter-spacing:.03em;
}
.file-card__body{flex:1 1 200px;min-width:0}
.file-card__name{font-size:.92rem;color:var(--dark);margin-bottom:.15rem;word-break:break-word}
.file-card__meta{font-size:.78rem;color:var(--muted)}

.callout{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem;
  padding:clamp(1.6rem,3vw,2.6rem);border:1px solid var(--gold);border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(184,151,90,.08),transparent 70%);
}
.callout__body{flex:1 1 320px}

/* ---------------------------------------------------------------- CTA --- */
.cta{text-align:center;background:var(--dark);color:var(--cream);padding:clamp(3.2rem,6vw,5rem) var(--pad)}
.cta h2{color:var(--cream);margin-bottom:.9rem}
.cta p{color:#B9B1A6;max-width:42rem;margin:0 auto 2rem}
.cta .btn-group{justify-content:center}

/* -------------------------------------------------------------- footer -- */
.footer{background:var(--dark);color:#B9B1A6;padding:clamp(2.8rem,5vw,4rem) var(--pad) 2rem}
.footer__inner{max-width:var(--wrap);margin:0 auto}
.footer__top{display:flex;flex-wrap:wrap;gap:2.2rem;justify-content:space-between;margin-bottom:2.4rem}
.footer__brand{flex:1 1 260px;max-width:320px}
.footer__brand p{font-size:.88rem;color:#8E867B;margin-top:1rem}
.footer__nav{flex:1 1 150px}
.footer__nav h4{font-family:var(--ff-body);font-size:.7rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-light);margin-bottom:1rem}
.footer__nav ul{list-style:none;display:flex;flex-direction:column;gap:.55rem}
.footer__nav a{font-size:.88rem;color:#B9B1A6;text-decoration:none;transition:color .2s}
.footer__nav a:hover{color:var(--gold-light)}
.socials{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.2rem}
.socials a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border:1px solid var(--border-dark);border-radius:50%;
  color:#B9B1A6;text-decoration:none;font-size:.66rem;font-weight:500;letter-spacing:.02em;
  transition:border-color .25s,color .25s;
}
.socials a:hover{border-color:var(--gold-light);color:var(--gold-light)}
.footer__bottom{
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;
  border-top:1px solid var(--border-dark);padding-top:1.5rem;font-size:.8rem;color:#7C7469;
}
.footer__bottom nav{display:flex;flex-wrap:wrap;gap:1.2rem}
.footer__bottom a{color:#7C7469;text-decoration:none}
.footer__bottom a:hover{color:var(--gold-light)}

/* -------------------------------------------------------- breadcrumbs -- */
.crumbs{font-size:.76rem;color:var(--muted-2);padding:1rem var(--pad) 0;max-width:var(--wrap);margin:0 auto}
.crumbs a{color:var(--muted-2);text-decoration:none}
.crumbs a:hover{color:var(--gold)}

/* ------------------------------------------------------------ consent -- */
.consent{
  position:fixed;left:50%;bottom:1rem;z-index:350;
  transform:translate(-50%,calc(100% + 2rem));
  width:min(660px,calc(100% - 2rem));
  display:flex;flex-wrap:wrap;align-items:center;gap:1rem;
  padding:1.1rem 1.3rem;
  background:var(--dark);color:#B9B1A6;
  border:1px solid var(--border-dark);border-radius:var(--radius);
  box-shadow:0 24px 60px -24px rgba(0,0,0,.7);
  opacity:0;transition:transform .35s ease,opacity .35s ease;
}
.consent.is-in{transform:translate(-50%,0);opacity:1}
.consent__text{flex:1 1 300px;font-size:.86rem;color:#B9B1A6;margin:0}
.consent__text a{color:var(--gold-light)}
.consent__actions{display:flex;gap:.6rem;flex:0 0 auto}
.consent .btn--outline{color:var(--cream);border-color:var(--border-dark)}
.consent .btn--outline:hover{border-color:var(--gold-light);color:var(--gold-light)}
@media (max-width:640px){
  .consent{bottom:0;width:100%;border-radius:0;border-left:0;border-right:0;border-bottom:0}
  .consent__actions{flex:1 1 100%}
  .consent__actions .btn{flex:1 1 0;width:auto}
}

/* ------------------------------------------------------------- reveal -- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* =============================================================== forms == */
.field{display:flex;flex-direction:column;gap:.4rem;flex:1 1 160px}
.field label{font-size:.7rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.field input,.field select,.field textarea{
  font-family:var(--ff-body);font-size:.95rem;color:var(--dark);
  padding:.8rem .9rem;background:var(--cream-2);
  border:1px solid var(--border);border-radius:var(--radius);
  transition:border-color .2s;width:100%;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:var(--gold)}
.field textarea{min-height:120px;resize:vertical}
.field__count{align-self:flex-end;font-size:.72rem;color:var(--muted-2)}
.field__count.is-low{color:#B4462F}

/* ========================================================== calculator == */
.calc{border:1px solid var(--border);background:var(--cream-2);border-radius:var(--radius);padding:clamp(1.4rem,3vw,2.2rem)}
.calc__tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.8rem}
.calc__tab{
  flex:1 1 200px;padding:.85rem 1.1rem;background:var(--cream);
  border:1px solid var(--border);border-radius:var(--radius);
  font-size:.74rem;font-weight:500;letter-spacing:.11em;text-transform:uppercase;
  color:var(--muted);transition:all .22s;
}
.calc__tab.is-active{background:var(--dark);border-color:var(--dark);color:var(--cream)}
.calc__form{display:flex;flex-wrap:wrap;gap:.9rem;align-items:flex-end}
.calc__form .btn{flex:0 0 auto;padding-top:.85rem;padding-bottom:.85rem}
.calc__error{color:#B4462F;font-size:.85rem;margin-top:.8rem}
.calc__pair{margin-top:1.2rem;padding-top:1.2rem;border-top:1px dashed var(--border)}
.calc__pair[hidden]{display:none}
.calc__pair-label{
  display:block;margin-bottom:.7rem;
  font-size:.7rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);
}
.calc__result{margin-top:2rem;padding-top:2rem;border-top:1px solid var(--border)}
.calc__result[hidden]{display:none}

.keycard{
  display:flex;align-items:flex-start;gap:1rem;
  padding:1.3rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--cream);
}
.keycard__num{
  flex:0 0 auto;width:54px;height:54px;border:1px solid var(--gold);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-display);font-size:1.7rem;font-weight:600;color:var(--gold);
  transform:rotate(45deg);
}
.keycard__num span{transform:rotate(-45deg)}
.keycard__body h4{font-family:var(--ff-body);font-size:.72rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:.35rem}
.keycard__body h3{font-size:1.15rem;margin-bottom:.4rem}
.keycard__body p{font-size:.9rem}

/* Pythagoras square — flex rows, not CSS grid, so Elementor can rebuild it */
.psq{display:flex;flex-direction:column;gap:.5rem;max-width:420px}
.psq__row{display:flex;gap:.5rem}
.psq__cell{
  flex:1 1 0;min-width:0;aspect-ratio:1/1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1px solid var(--border);background:var(--cream);border-radius:var(--radius);
  padding:.4rem;text-align:center;
}
.psq__cell.is-empty{background:transparent;border-style:dashed;opacity:.55}
.psq__cell.is-strong{border-color:var(--gold);background:rgba(184,151,90,.08)}
.psq__digits{font-family:var(--ff-display);font-size:clamp(1.2rem,3vw,1.7rem);font-weight:600;line-height:1;color:var(--dark);word-break:break-all}
.psq__cell.is-empty .psq__digits{color:var(--muted-2)}
.psq__name{font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);margin-top:.35rem;line-height:1.25}

.linebar{display:flex;flex-direction:column;gap:.75rem}
.linebar__item{display:flex;align-items:center;gap:.9rem}
.linebar__label{flex:0 0 clamp(110px,26%,170px);font-size:.82rem;color:var(--muted)}
.linebar__track{flex:1;height:6px;background:var(--border);border-radius:3px;overflow:hidden}
.linebar__fill{height:100%;background:var(--gold);border-radius:3px;transition:width .6s ease}
.linebar__val{flex:0 0 auto;font-size:.8rem;font-weight:500;color:var(--dark);min-width:2.6rem;text-align:right}

/* destiny matrix octagram */
.matrix-wrap{display:flex;flex-wrap:wrap;gap:2rem;align-items:flex-start}
.matrix-figure{flex:1 1 clamp(280px,44%,460px)}
.matrix-figure svg{width:100%;height:auto;display:block}
.matrix-legend{flex:1 1 clamp(260px,44%,440px);display:flex;flex-direction:column;gap:.7rem}
.mrow{display:flex;align-items:baseline;gap:.8rem;padding-bottom:.6rem;border-bottom:1px solid var(--border)}
.mrow__k{flex:1;font-size:.88rem;color:var(--muted)}
.mrow__v{flex:0 0 auto;font-family:var(--ff-display);font-size:1.35rem;font-weight:600;color:var(--gold);line-height:1}
/* a calc-result upsell link — plain <a> inherits body colour by default
   (see `a{color:inherit}` above), so it needs its own styling to read as a link */
.calc__promo{margin-top:1rem;font-size:.9rem}
.calc__promo a{color:var(--gold);text-decoration:underline;text-underline-offset:.2em}
.calc__promo a:hover{color:var(--dark)}

/* =========================================================== payment === */
.pay-card{
  display:flex;flex-direction:column;
  padding:clamp(1.5rem,3vw,2.2rem);border:1px solid var(--border);
  background:var(--cream-2);border-radius:var(--radius);
}
.pay-card__head{display:flex;align-items:center;gap:.8rem;margin-bottom:1.1rem}
.pay-card__logo{
  font-family:var(--ff-body);font-weight:600;font-size:1.05rem;letter-spacing:-.01em;
  padding:.35rem .7rem;border-radius:var(--radius);color:#fff;
}
.pay-card__logo--pp{background:#0070BA}
.pay-card__logo--yk{background:#0B1F33}
.pay-note{display:flex;gap:.8rem;padding:1rem 1.2rem;border-left:2px solid var(--gold);background:rgba(184,151,90,.07);font-size:.9rem;color:var(--muted)}
.pay-or{display:flex;align-items:center;gap:.9rem;margin:1.5rem 0}
.pay-or::before,.pay-or::after{content:'';flex:1;height:1px;background:var(--border)}
.pay-or span{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted-2)}

/* ==================================================== course access === */
.gate{
  max-width:640px;margin:0 auto;text-align:center;
  padding:clamp(2rem,4vw,3rem);border:1px solid var(--gold);border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(184,151,90,.08),transparent 70%);
}
.gate .btn-group{justify-content:center}
.gate__form{max-width:320px;margin:1.6rem auto 0}
.gate__input{
  width:100%;text-align:center;letter-spacing:.08em;
  font-family:var(--ff-body);font-size:.95rem;color:var(--dark);
  padding:.8rem .9rem;background:var(--cream-2);
  border:1px solid var(--border);border-radius:var(--radius);
}
.gate__input:focus{outline:0;border-color:var(--gold)}
.gate__err{color:#B4462F;margin-top:.9rem}

.course-modules{display:flex;flex-direction:column;gap:clamp(2rem,4vw,3.2rem)}
.course-module{padding-bottom:clamp(2rem,4vw,3.2rem);border-bottom:1px solid var(--border)}
.course-module:last-child{border-bottom:0;padding-bottom:0}
.course-module__head{display:flex;align-items:baseline;gap:1rem;margin-bottom:.7rem}
.course-module__head h2{margin:0}
.course-module p{color:var(--muted);margin-bottom:1.2rem}
/* module 12 is a free bonus, not part of the numbered curriculum — a card of
   its own says that at a glance instead of relying on the heading text */
.course-module--bonus{
  padding:clamp(1.6rem,3vw,2.4rem)!important;margin-top:.4rem;
  border:1px solid var(--gold)!important;border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(184,151,90,.08),transparent 70%);
}
.course-module--bonus .iconbox__num{color:var(--gold)}
.video-frame__placeholder{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:var(--muted-2);font-size:.85rem;letter-spacing:.06em;text-align:center;padding:1rem;
}
/* a module that bundles several videos (e.g. modules 3-5 sharing one card) —
   laid out the same way as the site's .row.col-3 grid, so three stacked
   full-width 16:9 players don't turn one card into a huge wall of video */
.video-group{display:flex;flex-wrap:wrap;gap:clamp(1.1rem,2.4vw,1.6rem)}
.video-group>div{flex:1 1 clamp(220px,30%,340px)}

/* On a phone the content column is ~338px wide, and inside the bonus card
   only ~285px — too small to read the slides inside a lecture video. So on
   narrow screens the player breaks out of the page padding and takes the
   full screen width instead. `aspect-ratio` replaces the percentage
   padding-top here on purpose: percentage padding resolves against the
   CONTAINER width, which would no longer match the widened player. */
@media (max-width:640px){
  /* the breakout is measured from the container, not from 100vw: with a
     classic scrollbar 100vw is wider than the visible area and would shove
     the player off the left edge. .section pads by var(--pad) of the
     viewport, so the column is 0.9 of it — hence --pad / 0.9 here. */
  .video-frame{
    width:auto;margin-inline:calc(var(--pad) / 0.9 * -1);
    padding-top:0;aspect-ratio:16/9;
    border-left:0;border-right:0;border-radius:0;
  }
  /* two 230px players side by side on a wider phone read worse than one
     full-width player, so a group is always one per row here */
  .video-group>div{flex:1 1 100%}
  /* the bonus card's own side padding would shrink its two videos below the
     width of every other module's, which reads as a bug. On a phone the card
     goes edge to edge and its text carries the inset instead, so all eleven
     players end up exactly the same width. */
  .course-module--bonus{
    padding:1.4rem 0!important;border-left:0!important;border-right:0!important;border-radius:0;
  }
  .course-module--bonus>.course-module__head,
  .course-module--bonus>p,
  .course-module--bonus .video-group__label{padding-inline:var(--pad)}
}
.video-group__label{
  font-size:.7rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);margin-bottom:.5rem;
}

/* quick jump-to-module list at the top of a course page */
.toc{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.8rem}
.toc a{
  display:flex;align-items:baseline;gap:.5rem;
  padding:.55rem .9rem;text-decoration:none;
  border:1px solid var(--border);border-radius:var(--radius);background:var(--cream-2);
  font-size:.82rem;color:var(--muted);transition:border-color .25s,color .25s,transform .25s;
}
.toc a:hover{border-color:var(--gold);color:var(--dark);transform:translateY(-2px)}
.toc a b{font-family:var(--ff-display);font-size:1rem;font-weight:600;color:var(--gold)}

/* live Bank of Russia rate beside the rouble amount. `hidden` needs stating
   explicitly here because the element is display:flex, which would win. */
.rate{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.55rem;
  padding:.6rem .8rem;background:rgba(184,151,90,.09);
  border:1px solid rgba(184,151,90,.3);border-radius:var(--radius);
  font-size:.74rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);
}
.rate[hidden]{display:none}
.rate__val{
  font-family:var(--ff-display);font-size:1.2rem;font-weight:600;
  letter-spacing:0;text-transform:none;color:var(--gold);line-height:1;
}
.rate__date{margin-left:auto;font-size:.66rem;letter-spacing:.08em;color:var(--muted-2)}
.rate__hint{color:var(--muted-2)}
/* a required field left empty must be visible, not silently blocking submit */
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:#B4462F;background:#FDF6F4}
.pay-steps{list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:1rem}
.pay-steps li{position:relative;padding-left:2.6rem;counter-increment:s;color:var(--muted);font-size:.94rem}
/* compact contact rows — the full icon-box was too heavy under the form */
.contact-tiles{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.2rem}
.contact-tile{
  flex:1 1 clamp(150px,30%,220px);
  display:flex;align-items:center;gap:.7rem;
  padding:.7rem .85rem;text-decoration:none;
  border:1px solid var(--border);border-radius:var(--radius);background:var(--cream-2);
  transition:border-color .25s,transform .25s;
}
.contact-tile:hover{border-color:var(--gold);transform:translateY(-2px)}
.contact-tile__icon{flex:0 0 auto;font-size:1.1rem;line-height:1;color:var(--gold)}
.contact-tile__body{display:flex;flex-direction:column;min-width:0}
.contact-tile__body b{font-size:.8rem;font-weight:500;color:var(--dark);line-height:1.3}
.contact-tile__body span{font-size:.74rem;color:var(--muted-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){.contact-tile{flex:1 1 100%}}

.pay-steps li::before{
  content:counter(s);position:absolute;left:0;top:-.1rem;
  width:1.9rem;height:1.9rem;border:1px solid var(--gold);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ff-display);font-size:.95rem;font-weight:600;color:var(--gold);
}

/* ============================================================ tables === */
.tablewrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--cream-2)}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{padding:1rem 1.1rem;text-align:left;border-bottom:1px solid var(--border);font-size:.92rem}
th{font-size:.68rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);white-space:nowrap}
td{color:var(--muted)}
td strong{color:var(--dark)}
tr:last-child td{border-bottom:0}

/* ======================================================= breakpoints === */
@media (max-width:1024px){
  .nav__list{gap:1rem}
  .nav__list a{font-size:.7rem;letter-spacing:.08em}
}

@media (max-width:900px){
  .burger{display:flex}
  .nav{
    position:fixed;inset:72px 0 auto;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--dark);border-bottom:1px solid var(--border-dark);
    padding:.5rem var(--pad) 1.5rem;
    max-height:calc(100dvh - 72px);overflow-y:auto;
    transform:translateY(-12px);opacity:0;visibility:hidden;
    /* visibility must flip instantly on open and only after the fade on close,
       otherwise the panel stays hidden for the whole opening transition */
    transition:transform .28s ease,opacity .28s ease,visibility 0s linear .28s;
  }
  .nav.is-open{
    transform:none;opacity:1;visibility:visible;
    transition:transform .28s ease,opacity .28s ease,visibility 0s;
  }
  .nav__list{flex-direction:column;align-items:stretch;gap:0}
  .nav__list li{border-bottom:1px solid var(--border-dark)}
  .nav__list a{display:block;padding:1rem 0;font-size:.86rem;letter-spacing:.1em}
  .nav .btn{margin-top:1.2rem;width:100%}
  /* .nav is fixed here, so the header row collapses to logo + lang + burger */
  .nav{margin-left:0}
  .lang{margin-left:auto}
  /* a 2:3 portrait at full width would eat the whole phone screen before the
     headline is reached, so crop it to a landscape band above the fold */
  .hero__media{order:-1}
  .hero__media::after{display:none}
  .hero__media img{aspect-ratio:16/10;object-fit:cover;object-position:50% 22%}
}

@media (max-width:640px){
  body{font-size:15px}
  .header__inner{height:64px}
  .nav{inset-block-start:64px;max-height:calc(100dvh - 64px)}
  .logo__desc{display:none}
  .logo__name{font-size:14px;letter-spacing:.1em}
  /* logo, switcher and burger must all fit across a 375px phone */
  .logo{gap:8px}
  .logo__mark{width:26px;height:26px}
  .lang button{padding:.22rem .38rem;font-size:.62rem;letter-spacing:.04em}
  .header__inner{gap:.5rem}
  .btn{width:100%}
  .btn-group{flex-direction:column}
  .btn-group .btn{width:100%}
  .stats{gap:1.2rem}
  .stat{flex:1 1 45%}
  .gallery a,.gallery figure{flex:1 1 45%}
  /* stacked, flex-basis would otherwise size the field's HEIGHT, not width */
  .calc__form{flex-direction:column;align-items:stretch}
  .calc__form .field{flex:0 0 auto}
  .calc__form .btn{width:100%}
  .psq__name{font-size:.52rem}
  .linebar__label{flex-basis:96px;font-size:.76rem}
  .footer__bottom{flex-direction:column;align-items:flex-start}
}

@media print{
  .header,.footer,.burger,.cta{display:none}
  body{background:#fff}
}
