/* === Reset === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{
  font-family:'Inter','Manrope',-apple-system,system-ui,sans-serif;
  background:#fafafa;
  color:#0a0a0a;
  line-height:1.55;
  font-size:16px;
  overflow-x:clip; /* clip — unlike hidden, does NOT break position:sticky on descendants */
}
img,video{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
em{font-style:italic;font-family:'Manrope',serif;font-weight:500}

/* === Containers === */
.container{max-width:1240px;margin:0 auto;padding:0 32px}
@media (max-width:768px){.container{padding:0 20px}}

/* === Navigation — aligned to site grid (1240px container) === */
.nav{
  position:fixed;top:20px;left:0;right:0;z-index:100;
  pointer-events:none;
}
.nav-inner{
  max-width:1240px;
  margin:0 auto;
  padding:0 32px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  height:52px;
}
.nav-inner > *{pointer-events:auto;height:52px}

/* Pill lives in the flexible middle column, justified to its center */
.nav-inner .nav-pill{
  justify-self:center;
}

/* Shared capsule look — subtle dark glass */
.nav-logo,
.nav-pill,
.nav-cta{
  background:rgba(20,20,20,.16);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 6px 20px -10px rgba(0,0,0,.25);
  border-radius:999px;
  color:#fff;
  transition:transform .25s ease, background .25s ease, border-color .25s ease;
  box-sizing:border-box;
}

/* Logo capsule (circle, equal to nav height) */
.nav-logo{
  width:52px;
  display:grid;place-items:center;
  flex-shrink:0;
}
.nav-logo:hover{
  background:rgba(20,20,20,.28);
  border-color:rgba(255,255,255,.22);
}
.nav-logo svg{display:block}

/* Center pill with links */
.nav-pill{
  display:flex;align-items:center;
  padding:4px;
  gap:2px;
}
.nav-pill a{
  display:inline-flex;align-items:center;
  height:100%;
  padding:0 18px;
  font-size:14px;font-weight:500;letter-spacing:0;
  color:rgba(255,255,255,.88);
  border-radius:999px;
  transition:background .2s, color .2s;
  line-height:1;
}
.nav-pill a:hover{
  background:rgba(255,255,255,.1);
  color:#fff;
}

/* CTA capsule (right) */
.nav-cta{
  display:inline-flex;align-items:center;gap:8px;
  padding:0 22px;
  font-size:14px;font-weight:500;letter-spacing:0;
}
.nav-cta:hover{
  transform:translateY(-1px);
  background:rgba(20,20,20,.28);
  border-color:rgba(255,255,255,.22);
}
.nav-cta svg{transition:transform .25s;flex-shrink:0}
.nav-cta:hover svg{transform:translateX(2px)}

/* Scrolled state — slightly denser */
.nav.scrolled .nav-logo,
.nav.scrolled .nav-pill,
.nav.scrolled .nav-cta{
  background:rgba(20,20,20,.32);
  border-color:rgba(255,255,255,.18);
}

@media (max-width:760px){
  .nav-pill{display:none}
  .nav{top:14px}
  .nav-inner{padding:0 16px;height:48px;gap:12px}
  .nav-inner > *{height:48px}
  .nav-logo{width:48px}
}

/* === Hero === */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;align-items:center;
  padding:140px 0 80px;
  overflow:hidden;
  background:#0a0a0a;
}
.hero-video{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;
  opacity:.55;
  filter:grayscale(.2) contrast(1.05);
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.85) 100%);
}
.hero-content{
  position:relative;z-index:2;
  max-width:1240px;margin:0 auto;padding:0 32px;
  color:#fff;width:100%;
}
.hero-eyebrow{
  display:inline-block;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.7);
  padding:6px 14px;border:1px solid rgba(255,255,255,.2);border-radius:999px;
  margin-bottom:28px;
}
.hero-title{
  font-family:'Manrope';
  font-size:clamp(40px,7vw,96px);
  font-weight:300;
  letter-spacing:-.03em;
  line-height:1.02;
  margin-bottom:24px;
}
.hero-title em{font-weight:500;font-style:italic;color:#e5e5e5}
.hero-sub{
  font-size:clamp(16px,1.4vw,20px);
  color:rgba(255,255,255,.75);
  max-width:580px;margin-bottom:40px;
  line-height:1.55;
}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:64px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 28px;border-radius:999px;
  font-size:15px;font-weight:600;letter-spacing:.01em;
  transition:transform .2s,background .2s,border-color .2s,color .2s;
  cursor:pointer;
  border:none;            /* drop default <button> border */
  font-family:inherit;
  outline:none;
}
.btn:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.35)}
.btn-primary{background:#fff;color:#0a0a0a}
.btn-primary:hover{transform:translateY(-2px);background:#f5f5f5}
.btn-ghost{
  border:1px solid rgba(255,255,255,.3);color:#fff;background:transparent;
}
.btn-ghost:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.5)}

.hero-stats{display:flex;gap:48px;flex-wrap:wrap}
.hero-stats > div{display:flex;flex-direction:column;gap:4px}
.hero-stats b{
  font-family:'Manrope';font-weight:600;font-size:36px;
  letter-spacing:-.02em;color:#fff;
}
.hero-stats span{font-size:13px;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.1em}

.hero-scroll{
  position:absolute;bottom:32px;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:8px;
  color:rgba(255,255,255,.55);
  font-size:11px;letter-spacing:.15em;text-transform:uppercase;
}
.scroll-line{width:1px;height:32px;background:linear-gradient(180deg,rgba(255,255,255,.6),transparent);animation:scrollFall 2s ease-in-out infinite}
@keyframes scrollFall{0%{transform:translateY(-8px);opacity:0}50%{opacity:1}100%{transform:translateY(8px);opacity:0}}

/* === Sections === */
section{padding:120px 0}
@media (max-width:768px){section{padding:80px 0}}

.section-head{
  display:flex;align-items:center;gap:14px;
  margin-bottom:40px;
  font-size:13px;font-weight:500;
  color:#737373;letter-spacing:.08em;text-transform:uppercase;
}
.section-head.light{color:rgba(255,255,255,.6)}
.section-num{
  width:32px;height:32px;border-radius:50%;
  display:grid;place-items:center;
  background:#0a0a0a;color:#fff;font-size:12px;
}
.section-head.light .section-num{background:#fff;color:#0a0a0a}

/* Centered "photo-block" section header (used for blocks with hero photo) */
.sec-head{
  display:flex;flex-direction:column;align-items:center;gap:18px;
  text-align:center;
  margin:0 auto 56px;
  max-width:780px;
}
.sec-pill{
  display:inline-block;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:#525252;font-weight:500;
  padding:7px 16px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:rgba(0,0,0,.02);
  line-height:1;
}
/* Standalone pill (when used outside .sec-head, as left-aligned header marker) */
.sec-pill.block{
  display:inline-block;
  margin-bottom:40px;
}
.sec-pill.light{
  color:rgba(255,255,255,.78);
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.05);
}
.sec-head.light .sec-pill{
  color:rgba(255,255,255,.78);
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.05);
}
.sec-title{
  font-family:'Manrope';
  font-size:clamp(36px,5vw,68px);
  font-weight:300;letter-spacing:-.025em;line-height:1;
  margin:0;color:#0a0a0a;
}
.sec-head.light .sec-title{color:#fafafa}
.sec-title em{font-style:italic;font-weight:500}
.sec-lead{
  font-size:clamp(15px,1.2vw,18px);
  color:#525252;line-height:1.45;
  max-width:560px;margin:0 auto;
}
.sec-head.light .sec-lead{color:rgba(255,255,255,.7)}
@media (max-width:768px){
  .sec-head{gap:14px;margin-bottom:40px}
}

/* === About === */
.about-grid{
  display:grid;grid-template-columns:1.1fr 1fr;gap:80px;align-items:center;
}
.about-text h2{
  font-family:'Manrope';
  font-size:clamp(32px,4vw,56px);
  font-weight:300;letter-spacing:-.02em;line-height:1.05;
  margin-bottom:28px;
}
.about-text .lead{font-size:20px;color:#404040;margin-bottom:18px;line-height:1.5}
.about-text p{color:#525252;font-size:16px}
/* Apple-style expanding photo on scroll — single header travels from top to center */
.about{padding:0 !important;background:#fafafa}
.about-pin{
  position:relative;
  height:280vh;
}
.about-pin-inner{
  position:sticky;top:0;
  width:100%;
  height:100vh;
  overflow:hidden;
  background:#fafafa;
}

/* Single header that travels from top to center */
.about-head{
  --head-y:10vh;
  --pill-bg:rgba(0,0,0,.02);
  --pill-bd:rgba(0,0,0,.12);
  --pill-color:#525252;
  --title-color:#0a0a0a;
  --lead-color:#525252;
  position:absolute;
  left:0;right:0;
  top:var(--head-y);
  margin:0 auto !important;
  width:auto;
  max-width:820px;
  padding:0 24px;
  box-sizing:border-box;
  z-index:10;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  will-change:top;
  pointer-events:none;
}
.about-head .sec-title{color:var(--title-color) !important;transition:color .25s ease}
.about-head .sec-lead{color:var(--lead-color) !important;transition:color .25s ease}
.about-head .sec-pill{
  background:var(--pill-bg) !important;
  border-color:var(--pill-bd) !important;
  color:var(--pill-color) !important;
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.about-head.on-photo{
  --pill-bg:rgba(255,255,255,.06);
  --pill-bd:rgba(255,255,255,.24);
  --pill-color:rgba(255,255,255,.85);
  --title-color:#fff;
  --lead-color:rgba(255,255,255,.88);
}

/* Photo frame with clip-path expansion */
.about-frame{
  --pad-x:13vw;
  --pad-top:42vh;
  --pad-bot:6vh;
  --r:28px;
  position:absolute;inset:0;
  width:100%;height:100%;
  clip-path:inset(var(--pad-top) var(--pad-x) var(--pad-bot) var(--pad-x) round var(--r));
  -webkit-clip-path:inset(var(--pad-top) var(--pad-x) var(--pad-bot) var(--pad-x) round var(--r));
  will-change:clip-path;
  z-index:1;
}
.about-img{
  --scale:1.12;
  width:100%;height:100%;object-fit:cover;display:block;
  transform:scale(var(--scale));
  transform-origin:center center;
  will-change:transform;
}
@media (max-width:900px){
  .about-frame{--pad-x:6vw;--pad-top:46vh;--pad-bot:5vh;--r:24px}
  .about-pin{height:220vh}
  .about-head{--head-y:8vh}
}
@media (max-width:900px){
  .about-frame{--pad-x:6vw;--pad-y:14vh;--r:24px}
  .about-pin{height:220vh}
}

/* === Pillars v2 — Fixaplan-style (sticky sidebar + scrolling cards) === */
.pillars-v2{
  background:#0a0a0a;
  color:#fafafa;
  padding:120px 0 !important;
  position:relative;
  /* overflow removed — it breaks position:sticky on children */
}
/* clip glows that would escape the section */
.pl-card{overflow:hidden}
.pillars-v2 .container{position:relative;z-index:1}

/* Layout */
.pl-grid{
  display:grid;
  grid-template-columns:0.95fr 1fr;
  gap:80px;
  /* align-items defaults to stretch — left column takes the full height of right cards */
}

/* LEFT — sticky sidebar */
.pl-left{
  position:relative;
  /* stretch (default) — fills the full height of grid row so sticky has room to scroll */
}
.pl-sticky{
  position:sticky;
  top:104px;
  display:flex;flex-direction:column;
  gap:32px;
}
.pl-pill{
  display:inline-block;align-self:flex-start;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.78);font-weight:500;
  padding:7px 16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  line-height:1;
}
.pl-title{
  font-family:'Manrope';
  font-size:clamp(32px,3.8vw,52px);
  font-weight:300;letter-spacing:-.025em;line-height:1.05;
  color:#fff;margin:0;
}
.pl-title em{font-style:italic;font-weight:500;color:#fff}

.pl-tabs{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:10px;align-items:flex-start;
}
.pl-tab{
  display:inline-block;
  padding:11px 20px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.55);
  font-size:15px;font-weight:500;letter-spacing:-.005em;line-height:1.2;
  cursor:pointer;
  transition:background .3s ease, color .3s ease, border-color .3s ease, transform .2s ease;
  user-select:none;
}
.pl-tab:hover{
  background:rgba(255,255,255,.1);
  color:#fff;
  border-color:rgba(255,255,255,.16);
}
.pl-tab:focus-visible{outline:2px solid #fff;outline-offset:2px}
.pl-tab.is-active{
  background:#fff;
  color:#0a0a0a;
  border-color:#fff;
}

.pl-desc{
  font-size:15px;line-height:1.55;
  color:rgba(255,255,255,.6);
  max-width:380px;
  margin:0;
}

/* RIGHT — scrolling cards */
.pl-cards{
  display:flex;flex-direction:column;
  gap:24px;
}
.pl-card{
  position:relative;
  background:linear-gradient(180deg, #181818 0%, #0e0e0e 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  padding:40px;
  overflow:hidden;
  min-height:560px;
  display:flex;flex-direction:column;gap:24px;
}
/* Single subtle corner glow per card — tinted with KRMK logo colours */
.pl-card-glow{
  position:absolute;top:-30%;right:-20%;
  width:420px;height:420px;border-radius:50%;
  pointer-events:none;
  z-index:0;
  filter:blur(20px);
  will-change:transform;
  animation:pl-glow-breathe 16s ease-in-out infinite alternate;
}
.pl-card[data-tone="green"] .pl-card-glow{
  background:radial-gradient(circle, rgba(30,163,63,.20) 0%, transparent 65%);
  animation-delay:-2s;
}
.pl-card[data-tone="warm"] .pl-card-glow{
  background:radial-gradient(circle, rgba(229,57,53,.18) 0%, transparent 65%);
  animation-delay:-7s;
}
.pl-card[data-tone="cool"] .pl-card-glow{
  background:radial-gradient(circle, rgba(94,53,177,.20) 0%, transparent 65%);
  animation-delay:-12s;
}
.pl-card[data-tone="rose"] .pl-card-glow{
  background:radial-gradient(circle, rgba(249,168,37,.20) 0%, transparent 65%);
  animation-delay:-17s;
}

@keyframes pl-glow-breathe{
  0%   { transform:translate(0, 0)   scale(1); }
  50%  { transform:translate(-8%, 6%) scale(1.15); }
  100% { transform:translate(6%, -4%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce){
  .pl-card-glow{animation:none}
}

.pl-card > *:not(.pl-card-glow){position:relative;z-index:1}

.pl-card-head{
  display:flex;align-items:center;gap:14px;
  margin:0;
}
.pl-card-icon{
  width:48px;height:48px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  display:grid;place-items:center;
  color:#fff;flex-shrink:0;
}
.pl-card-icon svg{display:block}
.pl-card-eyebrow{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.5);font-weight:500;
}
.pl-card-title{
  font-family:'Manrope';
  font-size:clamp(28px,3vw,40px);
  font-weight:500;letter-spacing:-.02em;line-height:1.05;
  color:#fff;
  margin:0;
}
.pl-card-text{
  font-size:17px;line-height:1.5;
  color:rgba(255,255,255,.72);
  max-width:520px;
  margin:0;
}

.pl-card-panel{
  margin-top:auto;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:24px;
}
.pl-card-label{
  display:block;
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.5);margin-bottom:16px;font-weight:500;
}
.pl-chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  display:inline-flex;align-items:center;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  font-size:13px;font-weight:500;line-height:1;
  color:rgba(255,255,255,.88);
  white-space:nowrap;
}

/* Responsive */
@media (max-width:980px){
  .pl-grid{grid-template-columns:1fr;gap:40px}
  .pl-sticky{position:static;top:auto}
  .pl-card{min-height:auto;padding:32px}
  .pl-tabs{flex-direction:row;flex-wrap:wrap}
}
@media (max-width:540px){
  .pillars-v2{padding:80px 0 !important}
  .pl-card{padding:24px}
  .pl-card-title{font-size:26px}
}

/* === Specs — accordion === */
.specs{padding:120px 0;background:#fafafa}
.specs-title{
  font-family:'Manrope';
  font-size:clamp(32px,4vw,56px);
  font-weight:300;letter-spacing:-.025em;line-height:1.05;
  margin-bottom:48px;
}
.specs-title em{font-style:italic;font-weight:500}

.acc{border-top:1px solid rgba(0,0,0,.1)}
.acc-item{
  border-bottom:1px solid rgba(0,0,0,.1);
  position:relative;
}

.acc-head{
  appearance:none;border:none;background:transparent;cursor:pointer;
  font-family:inherit;color:inherit;text-align:left;
  width:100%;
  display:grid;
  grid-template-columns:56px 1fr 140px 40px;
  gap:24px;align-items:center;
  padding:26px 16px;
  transition:background .35s cubic-bezier(.4,0,.2,1);
}
.acc-head:hover{background:rgba(0,0,0,.025)}
.acc-item.is-open .acc-head{background:rgba(0,0,0,.025)}

.acc-num{
  font-family:'Manrope';
  font-size:14px;font-weight:500;letter-spacing:.04em;
  color:#a3a3a3;
}
.acc-name{
  font-family:'Manrope';
  font-size:clamp(18px,1.5vw,22px);
  font-weight:500;letter-spacing:-.01em;line-height:1.25;
  color:#0a0a0a;
}
.acc-tag{
  font-size:11px;color:#525252;letter-spacing:.12em;text-transform:uppercase;
  padding:6px 12px;border:1px solid rgba(0,0,0,.12);border-radius:999px;
  line-height:1;font-weight:500;
  background:rgba(0,0,0,.02);
  justify-self:end;white-space:nowrap;
}

/* Plus → minus toggle icon (two crossed lines) */
.acc-toggle{
  position:relative;
  width:32px;height:32px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.15);
  display:grid;place-items:center;
  justify-self:end;
  transition:background .35s cubic-bezier(.4,0,.2,1), border-color .35s cubic-bezier(.4,0,.2,1);
}
.acc-toggle span{
  position:absolute;left:50%;top:50%;
  width:12px;height:1.5px;
  background:#0a0a0a;border-radius:1px;
  transform:translate(-50%,-50%);
  transition:transform .5s cubic-bezier(.4,0,.2,1), background .35s ease;
}
.acc-toggle span:nth-child(2){transform:translate(-50%,-50%) rotate(90deg)}
.acc-head:hover .acc-toggle{border-color:#0a0a0a}
.acc-item.is-open .acc-toggle{background:#0a0a0a;border-color:#0a0a0a}
.acc-item.is-open .acc-toggle span{background:#fff}
.acc-item.is-open .acc-toggle span:nth-child(2){transform:translate(-50%,-50%) rotate(0deg)}

/* Body — smooth max-height transition */
.acc-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .55s cubic-bezier(.4,0,.2,1);
}
.acc-body-inner{
  padding:8px 16px 36px;
  opacity:0;transform:translateY(-6px);
  transition:opacity .45s ease .1s, transform .45s ease .1s;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  grid-template-areas:
    "info  video"
    "btn   video";
  grid-template-rows:auto auto;
  column-gap:48px;
  row-gap:20px;
  align-items:start;
}
.acc-item.is-open .acc-body-inner{opacity:1;transform:none}

.acc-grid {grid-area:info; align-self:start}
.acc-video{
  grid-area:video;
  margin:0;
  align-self:center;     /* vertically centred in the right column */
  width:100%;
}
.acc-btn  {grid-area:btn; margin:0; justify-self:start; align-self:start}

/* Vertical list of facts on the left */
.acc-grid{
  display:flex;flex-direction:column;
  gap:18px;
  padding:0;
  border:none;
}
.acc-cell p{font-size:15px}

/* If the row has no video, left column takes the full width */
.acc-body-inner:has(.acc-video:empty){
  grid-template-columns:1fr;
  grid-template-areas:
    "info"
    "btn";
}

@media (max-width:900px){
  .acc-body-inner{
    grid-template-columns:1fr;
    grid-template-areas:
      "video"
      "info"
      "btn";
    column-gap:0;
    row-gap:24px;
  }
}
.acc-cell{display:flex;flex-direction:column;gap:8px;min-width:0}
.acc-label{
  font-size:11px;color:#737373;
  letter-spacing:.14em;text-transform:uppercase;font-weight:500;
}
.acc-cell p{
  font-size:15px;color:#0a0a0a;line-height:1.5;margin:0;
}

/* Inline video that slides in when an accordion row is opened */
.acc-video{
  width:100%;
  aspect-ratio:16/9;
  border-radius:18px;
  overflow:hidden;
  background:#0a0a0a;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 24px 50px -18px rgba(0,0,0,.22);
}
.acc-video:empty{display:none}
.acc-video iframe{
  width:100%;height:100%;border:0;display:block;
}

.acc-btn{
  display:inline-flex;align-items:center;gap:10px;
  margin-top:24px;
  padding:13px 22px;
  border-radius:999px;
  background:#0a0a0a;color:#fff;
  font-size:14px;font-weight:600;letter-spacing:-.005em;
  transition:background .25s ease, transform .25s ease;
}
.acc-btn:hover{background:#262626;transform:translateY(-1px)}
.acc-btn span{transition:transform .3s ease}
.acc-btn:hover span{transform:translateX(4px)}

@media (max-width:760px){
  .acc-head{
    grid-template-columns:40px 1fr 36px;
    gap:14px;
    padding:20px 12px;
  }
  .acc-tag{display:none}
  .acc-grid{grid-template-columns:1fr;gap:20px}
  .acc-body-inner{padding:8px 12px 28px}
}


/* === Why === */
.why{background:#0a0a0a;color:#fff}
.why-title{
  font-family:'Manrope';
  font-size:clamp(32px,4vw,56px);
  font-weight:300;letter-spacing:-.02em;line-height:1.05;
  margin-bottom:48px;
}
.why-title em{color:#fafafa;font-weight:500}
.why-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
}
.why-card{
  position:relative;
  background:#171717;border:1px solid #262626;border-radius:20px;
  padding:28px 24px;display:flex;flex-direction:column;gap:12px;
  transition:background .3s,transform .3s,border-color .3s;
  min-height:240px;
  overflow:hidden;
  isolation:isolate;
}
.why-card:hover{background:#1f1f1f;transform:translateY(-4px);border-color:#404040}

/* Brand-colored blur that appears on hover (like pl-card-glow) */
.why-card::before{
  content:"";
  position:absolute;
  top:-40%;right:-30%;
  width:380px;height:380px;border-radius:50%;
  filter:blur(40px);
  opacity:0;
  transition:opacity .55s ease, transform 1s ease;
  pointer-events:none;
  z-index:-1;
}
.why-grid .why-card:nth-child(1)::before{background:radial-gradient(circle, rgba(30,163,63,.45) 0%, transparent 65%)}   /* green */
.why-grid .why-card:nth-child(2)::before{background:radial-gradient(circle, rgba(249,168,37,.40) 0%, transparent 65%)}  /* yellow */
.why-grid .why-card:nth-child(3)::before{background:radial-gradient(circle, rgba(229,57,53,.40) 0%, transparent 65%)}   /* red */
.why-grid .why-card:nth-child(4)::before{background:radial-gradient(circle, rgba(94,53,177,.45) 0%, transparent 65%)}   /* purple */
.why-grid .why-card:nth-child(5)::before{background:radial-gradient(circle, rgba(30,163,63,.40) 0%, transparent 65%)}   /* green (loop) */

/* hover-fired blur on devices that actually have a hover capability */
@media (hover: hover){
  .why-card:hover::before{
    opacity:1;
    transform:scale(1.1);
  }
}
/* On touch / no-hover devices keep the colored blur visible by default
   (no "sticky hover" while scrolling) */
@media (hover: none){
  .why-card::before{
    opacity:.85;
    transform:scale(1.05);
  }
}
.why-num{
  font-family:'Manrope';color:#737373;font-size:13px;font-weight:500;
  letter-spacing:.08em;
}
.why-card h3{
  font-family:'Manrope';font-size:19px;font-weight:600;line-height:1.2;
  letter-spacing:-.01em;
}
.why-card p{color:rgba(255,255,255,.6);font-size:14px;line-height:1.5}
@media (max-width:1100px){
  .why-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:760px){
  .why-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:480px){
  .why-grid{grid-template-columns:1fr}
}

/* === People === */
.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.person-card{
  position:relative;border-radius:24px;overflow:hidden;
  aspect-ratio:3/4;
}
/* person-card img — styled inside .person-photo wrapper at bottom of file */
.person-info{
  position:absolute;left:0;right:0;bottom:0;
  padding:24px;color:#fff;
  background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.7) 100%);
}
.person-info span{font-size:12px;color:rgba(255,255,255,.7);text-transform:uppercase;letter-spacing:.12em}
.person-info h3{font-family:'Manrope';font-size:22px;font-weight:500;margin-top:6px}
/* On mobile — swipeable horizontal carousel keeping the desktop 3:4 ratio */
@media (max-width:900px){
  .people-grid{
    display:flex;
    flex-direction:row;
    grid-template-columns:none;
    gap:14px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:4px 20px 8px;
    margin:0 -20px;
  }
  .people-grid::-webkit-scrollbar{display:none}
  .person-card{
    flex:0 0 78%;
    max-width:380px;
    aspect-ratio:3/4;
    scroll-snap-align:center;
  }
}

/* === CTA === */
/* === Stack section (Dime/Icon-style scroll-wipe) === */
.block-stack{
  width:100%;
  position:relative;
  background:#000;
  padding:0;
}
.stack-wrapper{
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
}
.stack-item{
  position:sticky;top:0;
  width:100%;
  height:100vh;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  will-change:clip-path;
}
.stack-bg{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  z-index:1;
  transform:scale(1.1);
  transition:transform .15s ease-out;
  will-change:transform;
}
.stack-bg-first{
  object-position:center !important;
  transform:scale(1.05) !important;
  transform-origin:center !important;
}
.stack-bg-last{
  object-position:center !important;
  transform:scale(1.0) !important;
}
.stack-overlay{
  position:absolute;inset:0;z-index:2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.7) 100%);
  pointer-events:none;
}
.stack-bg{pointer-events:none}
.stack-content{
  position:relative;z-index:3;
  width:100%;
  max-width:900px;
  padding:0 32px;
  text-align:center;
  color:#fff;
  display:flex;flex-direction:column;align-items:center;
  gap:24px;
}
.stack-eyebrow{
  display:inline-block;
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.78);
  padding:7px 16px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  backdrop-filter:blur(8px);
  background:rgba(255,255,255,.06);
  line-height:1;
  margin:0;
}
.stack-title{
  font-family:'Manrope';
  font-size:clamp(42px,6.5vw,88px);
  font-weight:300;letter-spacing:-.03em;line-height:1;
  margin:0;
}
.stack-title em{
  font-style:italic;font-weight:500;
  color:#fafafa;
}
.stack-desc{
  font-size:clamp(16px,1.35vw,19px);
  color:rgba(255,255,255,.85);
  max-width:680px;
  line-height:1.45;
  margin:0 auto;
}
.stack-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.stack-actions .btn-primary{background:#fff;color:#0a0a0a}
.stack-actions .btn-primary:hover{background:#f5f5f5}
.stack-actions .btn-ghost{border:1px solid rgba(255,255,255,.4);color:#fff;background:transparent}
.stack-actions .btn-ghost:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.65)}

@media (max-width:768px){
  .stack-content{padding:0 20px;gap:16px}
  .stack-desc{font-size:15px}
}

/* === Footer === */
.footer{background:#0a0a0a;color:#fff;padding:80px 0 0}

/* Map block at the BOTTOM of the footer */
.footer-map{
  position:relative;
  width:100%;
  height:520px;
  overflow:hidden;
  background:#0a0a0a;
  margin-top:24px;
}
.footer-map iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
  border:0;display:block;
  filter:saturate(.9) contrast(.95);
}
/* Long, multi-stop fade from the dark footer above into the map */
.footer-map-overlay{
  position:absolute;left:0;right:0;top:0;
  height:240px;
  background:linear-gradient(
    180deg,
    rgba(10,10,10,1)    0%,
    rgba(10,10,10,.92) 18%,
    rgba(10,10,10,.78) 36%,
    rgba(10,10,10,.55) 54%,
    rgba(10,10,10,.30) 72%,
    rgba(10,10,10,.10) 88%,
    rgba(10,10,10,0)  100%
  );
  pointer-events:none;
  z-index:1;
}
/* Anchor that aligns the pin to the site grid (max-width 1240, padding 32) */
.footer-map-anchor{
  position:absolute;
  top:0;left:0;right:0;
  height:100%;
  pointer-events:none;
  z-index:2;
}
/* Floating pin/card on top of the map */
.footer-map-pin{
  position:absolute;
  right:32px; bottom:32px;   /* bottom-right corner, on the site grid */
  display:flex;flex-direction:column;gap:4px;
  padding:18px 22px;
  background:rgba(10,10,10,.85);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  color:#fff;text-decoration:none;
  box-shadow:0 12px 32px -10px rgba(0,0,0,.5);
  transition:transform .25s ease, background .25s ease;
  max-width:340px;
  pointer-events:auto;
}
.footer-map-pin:hover{
  transform:translateY(-2px);
  background:rgba(20,20,20,.92);
}
.fmp-label{
  font-family:'Manrope';
  font-size:18px;font-weight:700;letter-spacing:.02em;
  color:#fff;
}
.fmp-addr{
  font-size:13px;color:rgba(255,255,255,.65);line-height:1.4;
}
.fmp-arrow{
  position:absolute;top:14px;right:16px;
  font-size:16px;color:rgba(255,255,255,.6);
  transition:transform .25s ease, color .25s ease;
}
.footer-map-pin:hover .fmp-arrow{
  transform:translate(2px,-2px);color:#fff;
}

@media (max-width:768px){
  .footer-map{height:380px}
  .footer-map-pin{
    right:20px; bottom:20px;
    padding:14px 16px;max-width:260px;
  }
  .fmp-label{font-size:16px}
  .fmp-addr{font-size:12px}
}

/* unified 4-column grid for both rows */
.footer-top,
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:48px;
}
.footer-top{
  padding-bottom:48px;
  border-bottom:1px solid #262626;
  align-items:start;
}

.footer-brand{display:flex;flex-direction:column;gap:14px}
.footer-brand .logo-text{
  font-family:'Manrope';
  font-size:24px;font-weight:700;letter-spacing:.02em;
  color:#fff;
  align-self:flex-start;
  display:inline-flex;
}
.logo-rainbow span:nth-child(1){color:#1ea33f}  /* К — green */
.logo-rainbow span:nth-child(2){color:#e53935}  /* Р — red */
.logo-rainbow span:nth-child(3){color:#5e35b1}  /* М — purple */
.logo-rainbow span:nth-child(4){color:#f9a825}  /* К — yellow */
.footer-tag{
  color:rgba(255,255,255,.55);
  font-size:14px;line-height:1.5;
  max-width:300px;
  margin:0;
}

.fc-card{display:flex;flex-direction:column;gap:8px}
.fc-label{
  font-size:11px;color:rgba(255,255,255,.5);
  text-transform:uppercase;letter-spacing:.14em;font-weight:500;
}
.fc-value{
  font-family:'Manrope';
  font-size:15px;font-weight:500;line-height:1.5;
  color:#fff;margin:0;
}
.fc-value a{color:#fff;transition:color .2s}
.fc-value a:hover{color:rgba(255,255,255,.7)}

.footer-grid{
  padding:48px 0;
  border-bottom:1px solid #262626;
}
.footer-grid > div{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.footer-h{
  font-size:11px;color:rgba(255,255,255,.5);
  text-transform:uppercase;letter-spacing:.14em;font-weight:500;
  margin-bottom:6px;
}
.footer a{
  font-size:14px;color:rgba(255,255,255,.78);
  transition:color .2s;
}
.footer a:hover{color:#fff}

.footer-bottom{
  display:flex;justify-content:space-between;
  padding-top:24px;font-size:12px;color:rgba(255,255,255,.45);
  letter-spacing:.04em;
  flex-wrap:wrap;gap:8px;
}

@media (max-width:1024px){
  .footer-top,
  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:40px;
  }
}
@media (max-width:540px){
  .footer-top,
  .footer-grid{
    grid-template-columns:1fr;
    gap:32px;
  }
}

/* === Reveal animation === */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s ease}
.reveal.visible{opacity:1;transform:none}

/* === Quiz CTA section — scroll-driven video background === */
.quiz{
  padding:140px 0;
  position:relative;
  text-align:center;
  background:#0a0a0a;
  overflow:hidden;
  min-height:560px;
}
/* Background image — replaces the video */
.quiz-bg-gradient{
  position:absolute;
  top:-12%;left:0;right:0;bottom:-12%;
  background:url('assets/%D0%B3%D1%80%D0%B0%D0%B4%D0%B8%D0%B5%D0%BD%D1%82.png') center/cover no-repeat, #0a0a0a;
  z-index:0;
  pointer-events:none;
  will-change:transform;
}
.quiz > .container{position:relative;z-index:2}

.quiz-intro{display:flex;flex-direction:column;align-items:center;gap:20px;max-width:780px;margin:0 auto}
.quiz-pill{
  font-size:12px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.82);font-weight:500;
  padding:7px 16px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  line-height:1;
}
.quiz-title{
  font-family:'Manrope';
  font-size:clamp(32px,5vw,56px);
  font-weight:300;letter-spacing:-.025em;line-height:1.05;
  color:#fff;margin:0;
}
.quiz-title em{font-style:italic;font-weight:500;color:#fff}
.quiz-lead{
  font-size:17px;color:rgba(255,255,255,.82);
  line-height:1.45;max-width:540px;margin:0 0 16px;
}
.quiz-open{
  display:inline-flex;align-items:center;gap:10px;
  padding:15px 28px;
  background:#fff;
  color:#0a0a0a;
  font-size:15px;font-weight:600;
  border:none;
  box-shadow:none;
  transition:background .25s ease, transform .25s ease;
}
.quiz-open:hover{
  background:#f5f5f5;
  transform:translateY(-2px);
}
.quiz-open span{display:inline-flex;align-items:center;transition:transform .25s ease}
.quiz-open:hover span{transform:translateX(4px)}

/* === Quiz Modal === */
.quiz-modal{
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;
  visibility:hidden;opacity:0;
  transition:opacity .3s ease, visibility 0s linear .3s;
  padding:20px;
}
.quiz-modal.open{
  visibility:visible;opacity:1;
  transition:opacity .3s ease;
}
.quiz-modal-bg{
  position:absolute;inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
}
.quiz-modal-card{
  position:relative;z-index:2;
  background:#fafafa;
  width:100%;max-width:620px;
  max-height:88vh;
  border-radius:24px;
  padding:64px 36px 32px;     /* extra top space so the close button doesn't overlap the progress bar */
  box-shadow:0 30px 80px -20px rgba(0,0,0,.4);
  transform:translateY(20px) scale(.98);
  transition:transform .35s cubic-bezier(.16,.84,.44,1);
  display:flex;flex-direction:column;
  overflow:hidden;
}
.quiz-modal.open .quiz-modal-card{transform:none}
.quiz-close{
  position:absolute;top:16px;right:16px;
  width:34px;height:34px;border-radius:50%;
  background:#0a0a0a;color:#fff;border:none;cursor:pointer;
  display:grid;place-items:center;
  font-size:13px;line-height:1;
  transition:transform .2s, background .2s;
  z-index:3;
}
.quiz-close:hover{background:#262626;transform:rotate(90deg)}

.quiz-progress{margin-bottom:28px;flex-shrink:0}
.quiz-progress-bar{
  height:4px;border-radius:999px;background:#e5e5e5;overflow:hidden;
  position:relative;
}
.quiz-progress-bar span{
  display:block;height:100%;
  background:#0a0a0a;border-radius:999px;
  width:10%;
  transition:width .35s cubic-bezier(.16,.84,.44,1);
}
.quiz-progress-text{
  margin-top:10px;
  font-size:11px;color:#737373;letter-spacing:.12em;text-transform:uppercase;font-weight:500;
}

.quiz-steps{flex:1;overflow-y:auto;padding-right:4px}
.quiz-step{display:none}
.quiz-step.active{display:block;animation:quizFade .35s ease}
@keyframes quizFade{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
.quiz-step h3{
  font-family:'Manrope';
  font-size:22px;font-weight:600;
  margin-bottom:22px;line-height:1.3;
  letter-spacing:-.005em;
  color:#0a0a0a;
}
.quiz-options{display:flex;flex-direction:column;gap:8px}
.quiz-option{
  text-align:left;
  padding:15px 18px;
  border:1px solid #e5e5e5;border-radius:14px;
  background:#fff;cursor:pointer;
  font-size:15px;font-weight:500;color:#0a0a0a;
  font-family:inherit;
  transition:border-color .2s, background .2s, transform .15s, color .2s;
  line-height:1.35;
}
.quiz-option:hover{
  border-color:#0a0a0a;background:#0a0a0a;color:#fff;
  transform:translateY(-1px);
}

/* Result step */
.quiz-result{text-align:center;padding-top:12px}
.result-eyebrow{
  display:inline-block;font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:#525252;padding:6px 14px;border:1px solid rgba(0,0,0,.12);border-radius:999px;
  margin-bottom:20px;
  background:rgba(0,0,0,.02);
}
.result-title{
  font-family:'Manrope';
  font-size:clamp(26px,3.5vw,36px);font-weight:600;
  letter-spacing:-.015em;margin-bottom:14px;line-height:1.1;
  color:#0a0a0a;
}
.result-desc{font-size:15px;color:#525252;margin-bottom:28px;line-height:1.55;max-width:440px;margin-left:auto;margin-right:auto}
.result-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.result-actions .btn{padding:13px 24px;font-size:14px;border:none}
.result-actions .btn-primary{background:#0a0a0a;color:#fff}
.result-actions .btn-primary:hover{background:#262626;transform:translateY(-1px)}
.result-actions .btn-ghost{
  background:rgba(0,0,0,.04);
  color:#0a0a0a;
  border:none;
}
.result-actions .btn-ghost:hover{background:rgba(0,0,0,.08)}

@media (max-width:540px){
  .quiz-modal-card{padding:56px 22px 24px;max-height:92vh}
  .quiz-step h3{font-size:19px;margin-bottom:18px}
  .quiz-option{padding:13px 16px;font-size:14px}
}

/* === Rainbow letters (brand colors from logo) === */
.rainbow{display:inline-block}
.rainbow .l{display:inline-block;color:var(--c, currentColor);transition:color .45s ease}
.rainbow .l-1{--c:#1ea33f} /* green */
.rainbow .l-2{--c:#e53935} /* red */
.rainbow .l-3{--c:#5e35b1} /* purple */
.rainbow .l-4{--c:#f9a825} /* yellow */

/* When the About header is overlayed on the fullscreen photo — fade rainbow letters to white */
.about-head.on-photo .rainbow .l{
  --c:#fff;
}

/* === Consultation Modal === */
.consult-modal{
  position:fixed;inset:0;
  z-index:1100;
  display:flex;align-items:center;justify-content:center;
  visibility:hidden;opacity:0;
  transition:opacity .3s ease, visibility 0s linear .3s;
  padding:20px;
}
.consult-modal.is-open{
  visibility:visible;opacity:1;
  transition:opacity .3s ease;
}
.consult-modal-bg{
  position:absolute;inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  cursor:pointer;
}
.consult-modal-card{
  position:relative;z-index:2;
  background:#fafafa;
  width:100%;max-width:520px;
  max-height:90vh;
  border-radius:24px;
  padding:40px 40px 32px;
  box-shadow:0 40px 80px -24px rgba(0,0,0,.45);
  transform:translateY(24px) scale(.97);
  transition:transform .4s cubic-bezier(.16,.84,.44,1);
  overflow-y:auto;
}
.consult-modal.is-open .consult-modal-card{transform:none}

.consult-close{
  position:absolute;top:16px;right:16px;
  width:36px;height:36px;border-radius:50%;
  background:#0a0a0a;color:#fff;border:none;cursor:pointer;
  display:grid;place-items:center;
  font-size:13px;line-height:1;
  transition:transform .2s ease, background .2s ease;
  z-index:3;
}
.consult-close:hover{background:#262626;transform:rotate(90deg)}

.consult-pill{
  display:inline-block;
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:#525252;font-weight:500;
  padding:6px 14px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:rgba(0,0,0,.02);
  line-height:1;
  margin-bottom:16px;
}
.consult-title{
  font-family:'Manrope';
  font-size:clamp(26px,3vw,34px);
  font-weight:300;letter-spacing:-.025em;line-height:1.1;
  color:#0a0a0a;margin:0 0 12px;
}
.consult-title em{font-style:italic;font-weight:500}
.consult-lead{
  font-size:15px;color:#525252;line-height:1.5;
  margin:0 0 24px;
}

/* Form */
.consult-form{display:flex;flex-direction:column;gap:14px}
.consult-field{display:flex;flex-direction:column;gap:6px}
.consult-field-label{
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:#737373;font-weight:500;
}
.consult-field-label em{font-style:normal;color:#a3a3a3;font-weight:400}
.consult-field input,
.consult-field textarea,
.consult-field select{
  appearance:none;-webkit-appearance:none;
  font-family:inherit;
  font-size:15px;
  color:#0a0a0a;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
  padding:13px 16px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
  width:100%;
}
.consult-field textarea{resize:vertical;min-height:78px;line-height:1.5}
.consult-field input:focus,
.consult-field textarea:focus,
.consult-field select:focus{
  border-color:#0a0a0a;
  box-shadow:0 0 0 4px rgba(0,0,0,.06);
}
.consult-field input::placeholder,
.consult-field textarea::placeholder{color:#a3a3a3}
.consult-field input.is-error,
.consult-field textarea.is-error{border-color:#e53935;box-shadow:0 0 0 4px rgba(229,57,53,.12)}

/* Custom select arrow */
.consult-select-wrap{position:relative}
.consult-select-wrap::after{
  content:"";
  position:absolute;right:18px;top:50%;
  width:8px;height:8px;
  border-right:1.5px solid #525252;
  border-bottom:1.5px solid #525252;
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
.consult-field select{padding-right:42px;cursor:pointer}

/* Consent checkbox */
.consult-check{
  display:flex;align-items:flex-start;gap:10px;
  font-size:13px;color:#525252;line-height:1.45;
  cursor:pointer;user-select:none;
}
.consult-check input{
  appearance:none;-webkit-appearance:none;
  flex-shrink:0;
  width:18px;height:18px;margin-top:1px;
  border:1.5px solid #d4d4d4;
  border-radius:5px;
  background:#fff;cursor:pointer;
  transition:background .2s ease, border-color .2s ease;
  display:grid;place-items:center;
}
.consult-check input:checked{background:#0a0a0a;border-color:#0a0a0a}
.consult-check input:checked::after{
  content:"";
  width:9px;height:5px;
  border-left:1.5px solid #fff;
  border-bottom:1.5px solid #fff;
  transform:rotate(-45deg) translate(1px,-1px);
}
.consult-check a{color:#0a0a0a;text-decoration:underline;text-underline-offset:2px}
.consult-check a:hover{color:#262626}

/* Submit button */
.consult-submit{
  appearance:none;border:none;cursor:pointer;
  font-family:inherit;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  width:100%;
  padding:15px 22px;
  border-radius:999px;
  background:#0a0a0a;color:#fff;
  font-size:15px;font-weight:600;letter-spacing:-.005em;
  transition:background .25s ease, transform .25s ease;
  margin-top:6px;
}
.consult-submit:hover{background:#262626;transform:translateY(-1px)}
.consult-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}
.consult-arrow{transition:transform .25s ease}
.consult-submit:hover .consult-arrow{transform:translateX(4px)}

/* Make sure [hidden] always wins over display:flex */
.consult-modal [hidden]{display:none !important}

/* Success view */
.consult-success{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:16px 0 4px;
}
.consult-success-icon{
  width:64px;height:64px;border-radius:50%;
  background:#0a0a0a;color:#fff;
  display:grid;place-items:center;
  margin:0 auto 20px;
}
.consult-success .consult-title{margin-bottom:10px}
.consult-success .consult-lead{margin-bottom:24px;max-width:340px}

@media (max-width:540px){
  .consult-modal-card{padding:28px 22px 24px;max-height:94vh}
  .consult-title{font-size:24px}
}


/* === Brand color accents across the site === */

/* Color-coded specialty tags — softer brand colors, white text, no border */
.acc-tag[data-cat="eng"]{ color:#fff; background:#e7706d; border:none; }   /* softer red */
.acc-tag[data-cat="it"] { color:#fff; background:#8367c4; border:none; }   /* softer purple */
.acc-tag[data-cat="cre"]{ color:#fff; background:#f0b35a; border:none; }   /* softer yellow */
.acc-tag[data-cat="pro"]{ color:#fff; background:#5cb874; border:none; }   /* softer green */

/* A small colored dot before every section pill — one per section, cycling brand colors */
.sec-pill.block{position:relative;padding-left:30px}
.sec-pill.block::before{
  content:"";
  position:absolute;left:14px;top:50%;
  width:7px;height:7px;border-radius:50%;
  transform:translateY(-50%);
  background:var(--accent, currentColor);
}
#specs .sec-pill.block{--accent:#e53935}   /* 03 Специальности — red */
#why   .sec-pill.block{--accent:#5e35b1}   /* 04 Почему КРМК   — purple */

/* About (01) / People (05) use a centered .sec-head — add dot to that pill too */
.sec-head .sec-pill{position:relative;padding-left:30px}
.sec-head .sec-pill::before{
  content:"";
  position:absolute;left:14px;top:50%;
  width:7px;height:7px;border-radius:50%;
  transform:translateY(-50%);
  background:var(--accent, currentColor);
}
#about .sec-pill{--accent:#1ea33f}    /* 01 About — green */
.people .sec-pill{--accent:#f9a825}   /* 05 People — yellow */

/* Pillars (02) pill */
.pl-pill{position:relative;padding-left:30px}
.pl-pill::before{
  content:"";
  position:absolute;left:14px;top:50%;
  width:7px;height:7px;border-radius:50%;
  transform:translateY(-50%);
  background:#f9a825;  /* 02 Направления — yellow */
}

/* Quiz pill */
.quiz-pill{position:relative;padding-left:30px}
.quiz-pill::before{
  content:"";
  position:absolute;left:14px;top:50%;
  width:7px;height:7px;border-radius:50%;
  transform:translateY(-50%);
  background:#1ea33f;
}

/* Consult modal pill */
.consult-pill{position:relative;padding-left:30px}
.consult-pill::before{
  content:"";
  position:absolute;left:14px;top:50%;
  width:7px;height:7px;border-radius:50%;
  transform:translateY(-50%);
  background:#e53935;
}

/* =========================================================
   MOBILE ADAPTATION — comprehensive responsive overrides
   ========================================================= */

/* Tablets and below */
@media (max-width:900px){

  /* Containers — tighter padding */
  .container{padding:0 20px}
  section{padding:80px 0}

  /* Hero — smaller everything + centered content on mobile */
  .hero{
    min-height:auto;
    padding:120px 0 60px;
    text-align:center;
  }
  .hero-content{align-items:center;display:flex;flex-direction:column}
  .hero-title{font-size:clamp(36px,9vw,64px);line-height:1.04;margin-bottom:20px}
  .hero-sub{font-size:15px;margin-bottom:32px;max-width:none}
  .hero-cta{gap:10px;margin-bottom:48px;justify-content:center;flex-wrap:wrap}
  .hero-cta .btn{padding:13px 22px;font-size:14px}
  .hero-stats{
    gap:24px;
    justify-content:center;
    width:100%;
  }
  .hero-stats > div{align-items:center;text-align:center}
  .hero-stats b{font-size:28px}
  .hero-stats span{font-size:11px}
  .hero-eyebrow{font-size:11px;margin-bottom:20px}
  .hero-scroll{display:none}

  /* Sec-head & big titles */
  .sec-title,
  .specs-title,
  .why-title,
  .pl-title{
    font-size:clamp(28px,6vw,42px) !important;
    line-height:1.08;
  }
  .sec-pill, .sec-pill.block, .pl-pill, .quiz-pill, .consult-pill{
    font-size:11px;
    /* keep padding-left from the dot rules — only tune vertical/right padding */
    padding-top:6px;padding-right:14px;padding-bottom:6px;
  }
  .sec-head{margin-bottom:36px;gap:14px}
  .sec-pill.block{margin-bottom:28px}

  /* About — scroll-pin effect is preserved (mobile values handled by JS) */

  /* Pillars v2 — single column, sidebar not sticky */
  .pl-grid{grid-template-columns:1fr;gap:32px}
  .pl-sticky{position:static !important;top:auto !important}
  .pl-card{padding:28px 22px;min-height:auto}
  .pl-card-title{font-size:24px}
  .pl-card-text{font-size:15px}
  .pl-tabs{flex-wrap:wrap;flex-direction:row;gap:8px}
  .pl-tab{font-size:14px;padding:9px 16px}

  /* Specs accordion */
  .acc-head{
    grid-template-columns:34px 1fr 32px;
    gap:12px;
    padding:18px 12px;
  }
  .acc-name{font-size:15px;line-height:1.3}
  .acc-tag{display:none}
  .acc-body-inner{
    grid-template-columns:1fr !important;
    grid-template-areas:"video" "info" "btn" !important;
    gap:18px !important;
    padding:8px 12px 24px !important;
  }
  .acc-video{margin:0}
  .acc-grid{gap:16px}
  .acc-cell p{font-size:14px}
  .acc-label{font-size:10px}

  /* Quiz — softer paddings */
  .quiz{padding:80px 0;min-height:auto}
  .quiz-intro{gap:16px;padding:0 20px}
  .quiz-title{font-size:clamp(28px,7vw,40px)}
  .quiz-lead{font-size:15px}
  .quiz-bg-video{filter:brightness(.8) saturate(.9)}

  /* Why — 1 column on small screens */
  .why-grid{grid-template-columns:1fr 1fr;gap:12px}
  .why-card{padding:22px 18px;min-height:200px}
  .why-card h3{font-size:18px}
  .why-card p{font-size:13px}

  /* People — handled by the horizontal carousel rules above */

  /* Stack section — keep effect but reduce intensity */
  #apply .stack-content{padding:0 20px}
  #apply .stack-title{font-size:clamp(34px,9vw,52px)}
  #apply .stack-desc{font-size:14px}
  #apply .stack-actions{gap:10px}
  #apply .stack-actions .btn{padding:12px 20px;font-size:14px}

  /* Footer */
  .footer-top, .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:28px;
  }
  .footer-brand{grid-column:1 / -1}
  .footer-map{height:340px;margin-top:0}
  .footer-map-pin{
    left:auto;right:20px;bottom:20px;
    padding:12px 14px;max-width:240px;
  }
  .fmp-label{font-size:15px}
  .fmp-addr{font-size:11px}
}

/* Phones */
@media (max-width:540px){
  /* Nav — tighter on phones */
  .nav-inner{padding:0 14px;gap:8px}

  .hero-title{font-size:clamp(32px,10vw,48px)}
  .hero-stats{gap:20px}
  .hero-stats > div{flex:0 0 calc(50% - 12px)}

  /* Why single column */
  .why-grid{grid-template-columns:1fr}

  /* Footer to single column */
  .footer-top, .footer-grid{grid-template-columns:1fr;gap:24px}
  .footer-brand{grid-column:auto}

  /* Modal — full screen feel */
  .consult-modal{padding:12px}
  .consult-modal-card{padding:30px 22px 24px;border-radius:18px;max-height:94vh}
  .quiz-modal{padding:12px}
  .quiz-modal-card{padding:54px 18px 22px;border-radius:18px}

  /* About — slimmer */
  .about-pin-inner{padding:40px 0 32px}
  .about-frame{aspect-ratio:3/4}
}

/* === Mobile nav: burger + dropdown menu === */
.nav-burger{
  display:none;
  width:48px;height:48px;
  border-radius:999px;
  background:rgba(20,20,20,.16);
  backdrop-filter:blur(16px) saturate(150%);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  border:1px solid rgba(255,255,255,.14);
  cursor:pointer;
  padding:0;
  position:relative;
  pointer-events:auto;
}
.nav-burger span{
  position:absolute;left:50%;top:50%;
  width:18px;height:1.5px;background:#fff;
  transform:translate(-50%,-50%);
  transition:transform .3s ease, opacity .25s ease;
}
.nav-burger span:nth-child(1){transform:translate(-50%,calc(-50% - 5px))}
.nav-burger span:nth-child(3){transform:translate(-50%,calc(-50% + 5px))}
.nav.menu-open .nav-burger span:nth-child(1){transform:translate(-50%,-50%) rotate(45deg)}
.nav.menu-open .nav-burger span:nth-child(2){opacity:0}
.nav.menu-open .nav-burger span:nth-child(3){transform:translate(-50%,-50%) rotate(-45deg)}

.nav-mobile{
  position:absolute;top:60px;left:16px;right:16px;
  background:rgba(20,20,20,.92);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:10px;
  display:none;flex-direction:column;
  opacity:0;
  transform:translateY(-8px);
  transition:opacity .25s ease, transform .25s ease;
  pointer-events:auto;
}
.nav-mobile a{
  display:block;
  padding:14px 18px;
  font-size:15px;font-weight:500;color:#fff;
  border-radius:12px;
  transition:background .2s ease;
}
.nav-mobile a:hover{background:rgba(255,255,255,.08)}
.nav.menu-open .nav-mobile{
  display:flex;
  opacity:1;
  transform:translateY(0);
}

@media (max-width:760px){
  .nav-burger{display:grid;place-items:center}
  /* logo | title | burger */
  .nav-inner{grid-template-columns:auto 1fr auto}
  .nav-inner .nav-pill,
  .nav-inner > .nav-cta{display:none}
  .nav-title{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:100%;
    justify-self:center;
    align-self:stretch;
    font-family:'Manrope';
    font-weight:700;
    font-size:18px;
    line-height:1;
    letter-spacing:.04em;
    color:#fff;
    mix-blend-mode:difference;   /* always readable: white on dark, dark on light */
    pointer-events:none;
  }
}
@media (min-width:761px){
  .nav-title{display:none}
}
@media (min-width:761px){
  .nav-burger{display:none}
  .nav-mobile{display:none !important}
}

/* CTA inside the burger menu */
.nav-mobile-cta{
  margin-top:8px;
  background:#fff;
  color:#0a0a0a !important;
  text-align:center;
  font-weight:600;
}
.nav-mobile-cta:hover{background:#f5f5f5 !important}

/* === Custom cursor — minimal dot + ring with inertia === */
@media (hover: hover) and (pointer: fine){
  html.has-custom-cursor,
  html.has-custom-cursor body,
  html.has-custom-cursor *{
    cursor:none !important;
  }
  /* Keep text-cursor for actual text inputs */
  html.has-custom-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  html.has-custom-cursor textarea{
    cursor:text !important;
  }

  .cursor-dot,
  .cursor-ring{
    position:fixed;
    top:0;left:0;
    pointer-events:none;
    z-index:10000;
    will-change:transform, width, height;
  }
  .cursor-dot{
    width:6px;height:6px;border-radius:50%;
    background:#0a0a0a;
    transition:width .2s ease, height .2s ease, opacity .2s ease, background .25s ease;
    mix-blend-mode:difference;
  }
  .cursor-dot{background:#fff}    /* white + difference → contrast on any bg */

  .cursor-ring{
    width:34px;height:34px;border-radius:50%;
    border:1.5px solid #fff;
    transition:width .35s cubic-bezier(.16,.84,.44,1),
               height .35s cubic-bezier(.16,.84,.44,1),
               border-color .25s ease,
               background .25s ease,
               opacity .25s ease;
    mix-blend-mode:difference;
  }

  /* Hover state — ring grows, dot shrinks */
  .cursor-ring.is-hover{
    width:56px;height:56px;
    border-color:#fff;
    background:rgba(255,255,255,.06);
  }
  .cursor-dot.is-hover{
    width:0;height:0;opacity:0;
  }

  /* Pressed state */
  .cursor-ring.is-down{
    width:24px;height:24px;
  }
  .cursor-dot.is-down{
    width:4px;height:4px;
  }

  /* Cursor leaves the window */
  .cursor-dot.is-out,
  .cursor-ring.is-out{opacity:0}
}

/* Touch / no hover — hide entirely */
@media (hover: none), (pointer: coarse){
  .cursor-dot, .cursor-ring{display:none}
}

.footer-map-pin{will-change:transform}

/* Hero & Quiz background videos — no parallax */

/* Person card — wrap is moved by JS (parallax), img is zoomed by CSS (hover) */
.person-card{position:relative;overflow:hidden}
.person-photo{
  position:absolute;inset:0;
  height:110%;
  will-change:transform;
}
.person-photo img{
  width:100%;height:100%;object-fit:cover;
  transform:scale(1);
  transition:transform .7s cubic-bezier(.16,.84,.44,1);
  will-change:transform;
}
.person-card:hover .person-photo img{
  transform:scale(1.12);
}

/* ===== Text appear animations ===== */

/* Hero text — staged fade-in on load */
.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-cta,
.hero-stats{
  opacity:0;
  transform:translateY(28px);
  animation:hero-fade-in .9s cubic-bezier(.16,.84,.44,1) forwards;
}
.hero-eyebrow{animation-delay:.10s}
.hero-title  {animation-delay:.22s}
.hero-sub    {animation-delay:.42s}
.hero-cta    {animation-delay:.58s}
.hero-stats  {animation-delay:.72s}
@keyframes hero-fade-in{
  to{opacity:1;transform:none}
}

/* Section header — staggered reveal: pill → title → lead */
.sec-head .sec-pill,
.sec-head .sec-title,
.sec-head .sec-lead{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .8s cubic-bezier(.16,.84,.44,1),
             transform .8s cubic-bezier(.16,.84,.44,1);
}
.sec-head.visible .sec-pill {opacity:1;transform:none;transition-delay:0s}
.sec-head.visible .sec-title{opacity:1;transform:none;transition-delay:.15s}
.sec-head.visible .sec-lead {opacity:1;transform:none;transition-delay:.30s}

/* Block pills (.sec-pill.block) and specs/why titles — also stagger */
.specs-title,
.why-title{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .8s cubic-bezier(.16,.84,.44,1),
             transform .8s cubic-bezier(.16,.84,.44,1);
}
.sec-pill.block{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s cubic-bezier(.16,.84,.44,1),
             transform .7s cubic-bezier(.16,.84,.44,1);
}
.sec-pill.block.visible{opacity:1;transform:none}
.specs-title.visible,
.why-title.visible{opacity:1;transform:none;transition-delay:.12s}

@media (prefers-reduced-motion: reduce){
  .hero-eyebrow,.hero-title,.hero-sub,.hero-cta,.hero-stats,
  .sec-head .sec-pill,.sec-head .sec-title,.sec-head .sec-lead,
  .specs-title,.why-title,.sec-pill.block{
    opacity:1 !important;transform:none !important;animation:none !important;
  }
}
