/* =========================================================
   Anastasiia Kadushyna — AI marketer portfolio
   Palette: deep bordeaux + milky cream, single grotesque (Manrope)
   ========================================================= */

:root{
  /* --- colour --- */
  --bordeaux-900:#3d1116;
  --bordeaux-800:#4a151b;
  --bordeaux-700:#5c1a1f;
  --bordeaux-600:#7a1f2b;
  --bordeaux-500:#8f2733;
  --cream-100:#faf6ef;
  --cream-200:#f5efe6;
  --cream-300:#ece2d2;
  --ink:#2b1416;
  --ink-soft:rgba(43,20,22,.62);

  --paper:var(--cream-200);
  --on-paper:var(--ink);

  /* --- type — one grotesque family everywhere (was: Cormorant serif for display) --- */
  --sans:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:var(--sans);   /* kept as an alias so existing rules don't need touching */

  /* shared studio backdrop tone (fallback under background.png) */
  --bg-deep:#241a14;

  /* --- rhythm --- */
  --pad-x:clamp(1.25rem,5vw,5rem);
  --maxw:1400px;
  --ease:cubic-bezier(.22,1,.36,1);

  /* --- hero photo framing (tuned so the face never sits under text/cloth) --- */
  --hero-photo-pos:center 3%;
  --hero-photo-scale:1.05;
  --hero-photo-origin:50% 0%;
}

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

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

body{
  font-family:var(--sans);
  font-weight:400;
  color:var(--cream-100);
  background:var(--bg-deep);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* ONE seamless studio backdrop for the whole site — a single fixed layer
   behind every block. Sized to the LARGE viewport height so it never
   resizes when a mobile URL bar shows/hides -> no zoom/jump on scroll. */
body::before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  height:100lvh;
  z-index:-1;
  background:var(--bg-deep) url("../img/background.png") center center / cover no-repeat;
  pointer-events:none;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

::selection{background:var(--bordeaux-600);color:var(--cream-100)}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  padding:clamp(.9rem,2vw,1.6rem) 0;
  transition:background .5s var(--ease),backdrop-filter .5s var(--ease),padding .5s var(--ease);
}
.site-header.is-scrolled{
  background:rgba(61,17,22,.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  padding:.7rem 0;
}
.site-header__inner{
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--pad-x);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
}

.brand{
  display:block;
  color:var(--cream-100);
  font-family:var(--serif);
  font-size:clamp(1rem,1.5vw,1.3rem);
  font-weight:500;
  letter-spacing:.04em;
  line-height:1.2;
}
.brand span{display:block;white-space:nowrap}

.main-nav{display:flex;gap:clamp(1rem,2.4vw,2.4rem)}
.main-nav a{
  font-size:.74rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(245,239,230,.78);
  padding-block:.4rem;
  position:relative;
  transition:color .35s var(--ease);
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:100%;height:1px;
  background:var(--cream-100);
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .4s var(--ease);
}
.main-nav a:hover{color:var(--cream-100)}
.main-nav a:hover::after{transform:scaleX(1);transform-origin:left}

.lang-switch{display:flex;align-items:center;gap:.5rem;color:rgba(245,239,230,.5)}
.lang-switch button{
  font-family:var(--sans);
  font-size:.72rem;
  letter-spacing:.16em;
  color:rgba(245,239,230,.55);
  background:none;border:0;cursor:pointer;
  padding:.25rem .1rem;
  transition:color .3s var(--ease);
}
.lang-switch button:hover{color:var(--cream-100)}
.lang-switch button.is-active{color:var(--cream-100);border-bottom:1px solid var(--cream-100)}
.lang-switch__sep{font-size:.7rem;opacity:.5}

/* burger — hidden on desktop, shown ≤1024 (see Responsive) */
.nav-toggle{
  display:none;
  flex:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:2.4rem;height:2.4rem;
  margin-left:-.4rem;
  border:0;background:none;padding:0;cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:1.35rem;height:2px;border-radius:2px;
  background:var(--cream-100);
  transition:transform .3s var(--ease),opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  --btn-fg:var(--cream-100);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  padding:1.05em 2.1em;
  border:1px solid transparent;
  border-radius:2px;
  cursor:pointer;
  transition:background .4s var(--ease),color .4s var(--ease),border-color .4s var(--ease),transform .4s var(--ease);
}
.btn--primary{
  background:var(--bordeaux-600);
  color:var(--cream-100);
  border-color:var(--bordeaux-600);
}
.btn--primary:hover{background:var(--bordeaux-500);border-color:var(--bordeaux-500);transform:translateY(-2px)}
.btn--ghost{
  background:transparent;
  color:var(--cream-100);
  border-color:rgba(245,239,230,.4);
}
.btn--ghost:hover{border-color:var(--cream-100);background:rgba(245,239,230,.08);transform:translateY(-2px)}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;      /* small (stable) viewport height -> hero doesn't grow on scroll */
  display:flex;
  align-items:stretch;
  overflow:hidden;
  background:var(--bordeaux-900);
}

.hero__media{position:absolute;inset:0;z-index:0}

.hero__photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--hero-photo-pos);
  transform:scale(var(--hero-photo-scale));
  transform-origin:var(--hero-photo-origin);
  /* keep the soft, grainy vintage character — do NOT sharpen */
  filter:brightness(.94) saturate(1.03) contrast(1.02);
}

/* warm bordeaux-brown grade + vignette — light enough to keep skin tone + the face readable */
.hero__grade{
  position:absolute;inset:0;
  background:
    radial-gradient(135% 95% at 70% 30%,rgba(92,26,31,0) 0%,rgba(61,17,22,.12) 55%,rgba(45,12,16,.42) 100%),
    linear-gradient(180deg,rgba(61,17,22,.22) 0%,rgba(61,17,22,0) 30%,rgba(45,12,16,.05) 55%,rgba(45,12,16,.62) 90%,rgba(38,10,13,.82) 100%);
  mix-blend-mode:multiply;
}
.hero__media::after{
  /* warm bordeaux wash to pull the whole frame into the palette */
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(122,31,43,.22),rgba(122,31,43,.08) 45%,rgba(74,21,27,.3));
  mix-blend-mode:soft-light;
  pointer-events:none;
}
/* full-bleed readable scrim — reaches every edge, sits under the cloth + text.
   Mobile: dark top (name) + heavy dark bottom (lede/CTA). Desktop: dark left column. */
.hero__media::before{
  content:"";
  position:absolute;inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,
    rgba(20,6,8,.66) 0%,
    rgba(20,6,8,.2) 15%,
    rgba(20,6,8,.04) 38%,
    rgba(20,6,8,.5) 60%,
    rgba(20,6,8,.9) 84%,
    rgba(20,6,8,.97) 100%);
}

.hero__cloth{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:2;               /* above photo + grade, below subtitle/CTA */
  pointer-events:none;
  will-change:transform,opacity;
}
/* mobile: the clip itself carries the motion; afterwards the cloth keeps
   "falling" past the bottom edge of the (overflow:hidden) hero and vanishes */
.hero__cloth{
  transform:translateY(0);
  transition:transform 1.1s cubic-bezier(.6,.04,.98,.34); /* ease-in: accelerates as it drops */
}
.hero__cloth.is-exiting{
  transform:translateY(135%);
}

.hero__content{
  position:relative;
  z-index:3;
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  /* split composition: name up top (where the cloth is), lede + CTA down low —
     the portrait's face stays in the clear band between them */
  padding:calc(var(--pad-x) + 3.5rem) var(--pad-x) clamp(3rem,9vh,6rem);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:2rem;
}

/* --- title block: lives beneath the cloth so it is revealed as cloth slides --- */
.hero__title-block{position:relative;z-index:1;max-width:18ch}
.hero__name{
  font-family:var(--serif);
  font-weight:500;
  line-height:.98;
  letter-spacing:.01em;
  color:var(--cream-100);
  text-shadow:0 2px 40px rgba(0,0,0,.35);
}
.hero__name span{
  display:block;
  font-size:clamp(2.9rem,7.4vw,6.4rem);
}
.hero__name span:last-child{
  font-weight:600;
  margin-left:.02em;
}
/* role sits UNDER the name, a touch larger than a plain eyebrow */
.hero__role{
  margin-top:1.15rem;
  padding-left:.16em;
  font-size:clamp(.9rem,1.5vw,1.2rem);
  letter-spacing:.4em;
  text-transform:uppercase;
  white-space:nowrap;            /* keep "AI-МАРКЕТОЛОГ" on a single line */
  color:rgba(245,239,230,.82);
}

/* --- lede + CTA: hidden until JS reveals them (~3s) --- */
.hero__lede-block,
.hero__cta{
  position:relative;
  opacity:0;
  transform:translateY(26px);
  transition:opacity 1.1s var(--ease),transform 1.1s var(--ease);
}
.hero__lede-block{max-width:40ch}
.hero__lede{
  font-family:var(--sans);
  font-size:clamp(1.05rem,1.9vw,1.5rem);
  font-weight:400;
  line-height:1.5;
  color:rgba(245,239,230,.95);
  text-shadow:0 1px 24px rgba(20,6,8,.7),0 1px 3px rgba(20,6,8,.5);
  margin-bottom:0;
}
.hero__cta{display:flex;flex-wrap:wrap;gap:1rem}

.hero__scroll{
  position:absolute;
  left:50%;
  bottom:1.6rem;
  z-index:3;
  transform:translateX(-50%);
  opacity:0;
  transition:opacity 1.2s var(--ease) .3s;
}
.hero__scroll-line{
  display:block;
  width:1px;height:52px;
  background:linear-gradient(180deg,rgba(245,239,230,.7),rgba(245,239,230,0));
  animation:scroll-pulse 2.6s var(--ease) infinite;
  transform-origin:top;
}
@keyframes scroll-pulse{
  0%{transform:scaleY(0);opacity:0}
  40%{transform:scaleY(1);opacity:1}
  100%{transform:scaleY(1) translateY(30px);opacity:0}
}

/* revealed state (set by JS, or immediately on fallback / reduced-motion) */
.hero.is-revealed .hero__lede-block,
.hero.is-revealed .hero__cta{opacity:1;transform:none}
.hero.is-revealed .hero__scroll{opacity:1}

/* wider than a phone: dedicated landscape portrait, all hero text in one
   lower-left column so the centred face stays clear once the cloth is gone */
@media (min-width:700px){
  :root{
    --hero-photo-pos:6% 6%;     /* push the face well right of the text column */
    --hero-photo-scale:1;
    --hero-photo-origin:50% 0%;
  }
  .hero__content{
    justify-content:flex-end;
    gap:clamp(1.25rem,3vh,2rem);
    padding-bottom:clamp(3.5rem,9vh,6rem);
  }
  .hero__name span{font-size:clamp(2.6rem,4.1vw,4.5rem)}
  .hero__title-block{max-width:14ch}
  .hero__lede-block{max-width:34ch}
  .hero__lede{font-size:clamp(1rem,1.4vw,1.32rem);line-height:1.5}
  .hero__lede span{white-space:normal}
  .hero__lede br{display:none}                  /* let it wrap inside the left column */
  .hero__cta{flex-direction:column;align-items:stretch;gap:.85rem;max-width:22rem}
  .hero__cta .btn{width:100%}                   /* both CTAs identical size */
  /* desktop scrim: dark left column for the text, clears her face on the right */
  .hero__media::before{
    background:linear-gradient(83deg,
      rgba(15,4,6,.95) 0%,
      rgba(15,4,6,.88) 20%,
      rgba(15,4,6,.6) 34%,
      rgba(15,4,6,.24) 48%,
      rgba(15,4,6,.05) 60%,
      rgba(15,4,6,0) 70%);
  }

  /* desktop: the cloth begins fully OFF-SCREEN above the viewport, drops in
     from the top, glides down across the full screen, and keeps falling out
     the bottom. scaled up a touch so it truly fills the screen. */
  .hero__cloth{
    transform:translateY(-112%) scale(1.12);          /* pre-roll: entirely above the top edge */
    transform-origin:50% 0%;
  }
  .hero__cloth.is-dropping{
    transform:translateY(40%) scale(1.14);
    transition:transform 5.9s cubic-bezier(.22,.62,.3,1);  /* long, decelerating glide down */
  }
  .hero__cloth.is-exiting{
    transform:translateY(170%) scale(1.14);
    transition:transform 1.6s cubic-bezier(.6,.04,.98,.34); /* ease-in: accelerates out of frame */
  }
}

/* ≥900: two-column hero — narrow left column (backdrop + text + CTA),
   wider right column with the portrait + cloth animation confined to it */
@media (min-width:900px){
  :root{--hero-photo-pos:center 6%}
  .hero{background:transparent}
  /* right column wider than the text column; photo fades to transparent at
     the bottom so the shared backdrop runs straight into the next block */
  .hero__media{
    inset:0 0 0 44%;
    -webkit-mask-image:linear-gradient(180deg,#000 0,#000 62%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0,#000 62%,transparent 100%);
  }
  .hero::after{display:none}
  .hero__content{
    width:44%;                                  /* left column, narrower than the photo */
    max-width:none;
    margin:0;
    /* symmetric inline padding so heading / lede / buttons share one centre line */
    padding:clamp(5rem,13vh,8rem) var(--pad-x) clamp(3.5rem,8vh,5.5rem);
    justify-content:center;                     /* group sits vertically centred — as before */
    gap:clamp(1.5rem,3.5vh,2.5rem);
  }
  .hero__title-block{max-width:none;text-align:center}   /* name + role centred on the button axis */
  .hero__name span{font-size:clamp(2.2rem,4vw,4rem)}
  /* lede sits on the same centre line as the buttons, no wider than them */
  .hero__lede-block{width:min(20rem,100%);max-width:none;margin-inline:auto;text-align:left}
  .hero__lede{margin-bottom:0;text-align:left}
  /* RU: keep "а позволяет его прочувствовать." on one line (line 3) */
  :root[lang="ru"] .hero__lede span:last-child{white-space:nowrap}
  /* name + lede stay vertically centred; only the buttons drop to the bottom */
  .hero__cta{
    position:absolute;
    left:var(--pad-x);
    right:var(--pad-x);
    bottom:clamp(3.5rem,8vh,5.5rem);
    width:min(20rem,100%);
    margin:0 auto;                              /* centred horizontally */
  }
  /* no gradient wash on the photo itself (the block-boundary blur stays) */
  .hero__media::before{display:none}

  /* cloth animation covers the whole viewport (it's a direct child of .hero now),
     scaled up so its edges fall outside the screen */
  .hero__cloth{
    transform:translateY(-112%) scale(1.4);
    transform-origin:50% 0%;
  }
  .hero__cloth.is-dropping{transform:translateY(40%) scale(1.42)}
  .hero__cloth.is-exiting{transform:translateY(170%) scale(1.42)}
}

@media (min-width:1200px){
  :root{--hero-photo-pos:center 8%}
  .hero__name span{font-size:clamp(3.2rem,4vw,4.8rem)}
}

/* if JS never runs at all, still show everything */
.no-js .hero__lede-block,
.no-js .hero__cta,
.no-js .hero__scroll{opacity:1;transform:none}

/* =========================================================
   Content sections — shared shell + alternating theme
   ========================================================= */
.section{position:relative;overflow:hidden}
/* keep anchored jumps clear of the fixed header */
main > section[id]{scroll-margin-top:4.5rem}
.section-dark{color:var(--cream-100)}
.section-light{background:var(--cream-100);color:var(--ink)}
.section-light + .section-light{border-top:1px solid var(--cream-300)}

/* every block now shares the one fixed studio backdrop (body::before) —
   sections stay transparent so it shows straight through */
main{background:transparent}
:root{--seam:#1b0a0d}
/* Hero -> content: soft fade at the bottom of the first screen into the backdrop */
.hero::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;
  height:13%;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(36,26,20,0),var(--bg-deep));
}
/* keep each section's own content above any local overlay */
.about__inner,.services__inner,.cases__inner,.cases__stripwrap,.process__inner,.pricing__inner,.contact__inner,.case-detail{
  position:relative;
  z-index:2;
}

/* section kickers removed per client — the big titles already name the block */
.section__eyebrow{display:none}
.section__title{
  font-family:var(--sans);
  font-weight:600;
  font-size:clamp(2rem,4.6vw,3.3rem);
  line-height:1.12;
  letter-spacing:-.005em;
}

/* ---------- About / My approach ---------- */
.about{background:transparent}
.about__inner{
  position:relative;
  max-width:var(--maxw);
  margin-inline:auto;
  padding:clamp(4.5rem,11vh,9rem) var(--pad-x);
}

.about__lead{max-width:none}
.about__lead .section__title{margin-bottom:1.75rem}
.about__lead p{
  max-width:60ch;
  font-size:clamp(1rem,1.15vw,1.12rem);
  line-height:1.72;
  color:rgba(245,239,230,.85);
  margin-top:1.1rem;
}

.about__split{
  margin-top:clamp(2rem,5vh,3.25rem);
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}
.about__col{max-width:60ch}
.about__cue{
  margin-top:clamp(1rem,3vh,2rem);
  font-size:.95rem;
  line-height:1.7;
  color:rgba(245,239,230,.62);
}
.about__q{
  margin:1.4rem 0;
  width:fit-content;
  max-width:34ch;
  text-wrap:normal;
  text-align:left;                                /* plate hugs the text; left-aligned */
  font-family:var(--sans);
  font-weight:600;
  font-size:clamp(1rem,1.5vw,1.28rem);            /* smaller than before */
  line-height:1.42;
  color:var(--cream-100);
  padding:clamp(.95rem,2vw,1.4rem) clamp(1.05rem,2.2vw,1.45rem);
  border-radius:14px;
  background:rgba(92,26,31,.5);                    /* plate, in place of the vertical rule */
  border:1px solid rgba(222,190,140,.32);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.about__closing{
  font-size:clamp(1rem,1.15vw,1.12rem);
  line-height:1.72;
  color:rgba(245,239,230,.85);
  text-wrap:pretty;                 /* no single-word orphan on the last line */
}
.about__figure{
  margin:1.75rem 0 0;
  width:100%;
}
.about__figure img{
  display:block;
  width:100%;
  border-radius:8px;
}

/* mobile: text first, photo under it — tighter gap intro -> cue */
@media (max-width:899px){
  .about__split{margin-top:clamp(1.5rem,4vh,2.25rem)}
  .about__cue{margin-top:.5rem}
  .about__figure{max-width:460px;margin-inline:auto}
}
@media (max-width:700px){
  .about__inner{padding-top:clamp(2.5rem,7vh,3.75rem)}
}

/* desktop: photo left · yellow divider · heading + text right */
@media (min-width:900px){
  .about__inner{
    display:grid;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    column-gap:0;
    align-items:stretch;
  }
  .about__figure{
    grid-column:1;
    grid-row:1;
    margin:0;
    align-self:center;
    padding-right:clamp(2.5rem,5vw,5rem);
  }
  .about__figure img{max-width:440px;margin-left:auto}
  .about__body{
    grid-column:2;
    grid-row:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding-left:clamp(2.5rem,5vw,5rem);
    border-left:2px solid rgba(224,192,142,.9);   /* the "yellow" divider down the middle */
  }
  .about__lead p{max-width:54ch}
  .about__col{max-width:54ch}
  .about__q{max-width:32ch}
}

/* ---------- Services / What I create ---------- */
.services{background:transparent;color:var(--cream-100)}
.services__inner{
  position:relative;
  max-width:var(--maxw);
  margin-inline:auto;
  padding:clamp(4.5rem,11vh,9rem) var(--pad-x);
}
.services__head{max-width:none}
.services__head .section__title{margin-top:1.25rem}
.services__title span{white-space:nowrap}   /* break only between the two spans -> "Что я создаю" / "для брендов" */

.services__grid{
  margin-top:clamp(2.75rem,7vh,5rem);
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(1.25rem,2.5vw,1.75rem);
  align-items:stretch;                       /* every card as tall as the tallest */
}
@media (min-width:860px){
  .services__grid{grid-template-columns:repeat(3,1fr)}
}

.svc{
  display:flex;
  flex-direction:column;
  padding:clamp(1.75rem,2.6vw,2.5rem);
  border-radius:18px;
  /* frosted / smoked glass */
  background:rgba(28,13,11,.34);
  border:1px solid rgba(245,239,230,.16);
  box-shadow:0 24px 60px rgba(0,0,0,.34),inset 0 1px 0 rgba(245,239,230,.12);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);
  backdrop-filter:blur(16px) saturate(1.15);
}
.svc__body{}   /* min-height equalised by JS on desktop so the note dividers line up */
.svc__num{
  font-family:var(--serif);
  font-size:1.05rem;
  letter-spacing:.14em;
  color:rgba(245,239,230,.62);
  margin-bottom:1rem;
}
.svc__title{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(1.35rem,2vw,1.7rem);
  line-height:1.2;
  color:var(--cream-100);
  margin-bottom:1.15rem;
}
.svc__lead{
  font-size:.96rem;
  line-height:1.62;
  color:rgba(245,239,230,.72);
  margin-bottom:1rem;
}
.svc__list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.svc__list li{
  position:relative;
  padding-left:1.35rem;
  font-size:.97rem;
  line-height:1.5;
  color:rgba(245,239,230,.9);
}
.svc__list li::before{                      /* small diamond marker */
  content:"";
  position:absolute;
  left:.05rem;top:.5em;
  width:.44rem;height:.44rem;
  background:var(--cream-100);
  opacity:.85;
  transform:rotate(45deg);
}
.svc__note{
  margin-top:1.75rem;                       /* clear space above the divider */
  padding-top:1.5rem;
  border-top:1px solid rgba(245,239,230,.16);
  font-family:var(--sans);
  font-size:.95rem;
  line-height:1.55;
  color:rgba(245,239,230,.82);
}

/* ---------- Cases / Portfolio ---------- */
.cases{background:transparent;color:var(--cream-100)}
.cases__inner{
  position:relative;
  max-width:var(--maxw);
  margin-inline:auto;
  padding:clamp(4.5rem,11vh,9rem) var(--pad-x) 0;
}
.cases__head{max-width:56ch}
.cases__head .section__title{margin-top:1.25rem}
.cases__disclaimer{
  margin-top:1.75rem;
  max-width:62ch;
  font-size:.9rem;
  line-height:1.7;
  color:rgba(245,239,230,.55);
}

/* the strip + scroll affordances */
.cases__stripwrap{position:relative;z-index:1}
.cases__strip{
  display:flex;
  gap:clamp(1rem,2.2vw,2rem);
  overflow-x:auto;
  overflow-y:hidden;
  padding:clamp(2rem,5vh,3.5rem) var(--pad-x) clamp(2.5rem,6vh,4rem);
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
}
.cases__strip::-webkit-scrollbar{display:none}
.cases.is-open .cases__strip{filter:brightness(.32) saturate(.6);pointer-events:none}

.cases__arrow{
  position:absolute;top:calc(50% - 1.6rem);
  z-index:3;
  width:2.9rem;height:2.9rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--cream-100);
  background:rgba(20,8,7,.55);
  border:1px solid rgba(245,239,230,.22);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  cursor:pointer;
  transition:background .3s,opacity .3s,transform .3s;
}
.cases__arrow svg{width:1.4rem;height:1.4rem}
.cases__arrow:hover{background:rgba(20,8,7,.8);transform:scale(1.06)}
.cases__arrow[hidden]{display:none}
.cases__arrow--prev{left:clamp(.5rem,2vw,1.5rem)}
.cases__arrow--next{right:clamp(.5rem,2vw,1.5rem)}
.cases.is-open .cases__arrow{display:none}

.cases__hint{
  position:relative;z-index:1;
  margin:0;
  padding:0 var(--pad-x) clamp(3rem,7vh,5rem);
  font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(245,239,230,.4);
  display:flex;align-items:center;gap:.6em;
  transition:opacity .4s ease;
}
.cases__hint::after{content:"\2192";font-size:1.1em;letter-spacing:0;animation:hint-nudge 1.8s var(--ease) infinite}
@keyframes hint-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}
.cases__stripwrap.is-scrolled .cases__hint{opacity:0}
@media (max-width:700px){
  .cases__arrow--prev,.cases__arrow--next{display:none}
}

/* phone mockup */
.phone{
  appearance:none;-webkit-appearance:none;
  background:none;border:0;padding:0;margin:0;
  font:inherit;color:inherit;text-align:left;cursor:pointer;
  flex:0 0 auto;
  scroll-snap-align:center;
}
.phone--sm{width:clamp(144px,19vw,196px)}
.phone__frame{
  position:relative;display:block;width:100%;
  aspect-ratio:9 / 19.5;
  padding:5px;
  border-radius:clamp(20px,2.4vw,32px);
  background:#140a09;
  border:1px solid rgba(245,239,230,.14);
  box-shadow:0 30px 60px rgba(0,0,0,.45);
  transition:transform .5s var(--ease),box-shadow .5s var(--ease);
}
.phone:hover .phone__frame,
.phone:focus-visible .phone__frame{transform:translateY(-8px);box-shadow:0 42px 80px rgba(0,0,0,.55)}
.phone__notch{
  position:absolute;top:5px;left:50%;transform:translateX(-50%);
  width:38%;height:11px;background:#140a09;border-radius:0 0 10px 10px;z-index:3;
}
.phone__screen{
  position:relative;display:block;width:100%;height:100%;
  border-radius:clamp(15px,1.9vw,24px);
  overflow:hidden;background:#1e0f0d;
}
.phone__poster{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(120% 80% at 30% 18%,rgba(122,31,43,.5),rgba(61,17,22,0) 62%),
    linear-gradient(160deg,#661d24,#280f13 72%);
}
.phone__poster-img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
}
.phone__glyph{
  font-size:clamp(1.4rem,3vw,2rem);
  line-height:1;
  color:rgba(245,239,230,.34);
}
.phone__label{
  display:block;
  margin-top:1rem;
  max-width:22ch;
  font-size:.8rem;
  line-height:1.42;
  color:rgba(245,239,230,.7);
}

/* media inside an opened phone: blurred fill + contained clip */
.phone__media{position:absolute;inset:0}
.phone__media-bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;transform:scale(1.25);
  filter:blur(24px) brightness(.65);
}
.phone__media-fg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
}
.phone--contain .phone__media-fg{object-fit:contain}
.phone__media.is-missing{background:#280f13}
.phone__media.is-missing::after{
  content:"media not loaded";
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(245,239,230,.4);
}

/* gallery (photo-carousel cases) */
.phone__gallery{position:absolute;inset:0}
.phone__gallery img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;opacity:0;transition:opacity .5s var(--ease);
}
.phone__gallery img.is-active{opacity:1}
.phone__dots{
  position:absolute;left:50%;bottom:12px;transform:translateX(-50%);
  display:flex;gap:6px;z-index:4;
}
.phone__dots span{width:5px;height:5px;border-radius:50%;background:rgba(245,239,230,.35)}
.phone__dots span.is-active{background:var(--cream-100)}
.phone__gcount{
  position:absolute;right:10px;top:10px;z-index:5;
  padding:.2em .55em;border-radius:1rem;
  font-size:.62rem;letter-spacing:.08em;
  color:rgba(245,239,230,.9);
  background:rgba(20,8,7,.55);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
.phone__gnav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:5;
  width:2rem;height:2rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(245,239,230,.28);
  background:rgba(20,8,7,.55);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  color:var(--cream-100);font-size:1.15rem;line-height:1;
  cursor:pointer;transition:background .25s,transform .25s;
}
.phone__gnav:hover{background:rgba(20,8,7,.85);transform:translateY(-50%) scale(1.08)}
.phone__gnav--prev{left:.55rem}
.phone__gnav--next{right:.55rem}

.phone__yt{position:absolute;inset:0;width:100%;height:100%;border:0}
/* "Regular" (16:9) YouTube clip -> centre it, leave the rest of the screen dark */
.phone--contain .phone__yt{
  top:50%;bottom:auto;height:auto;
  aspect-ratio:16 / 9;
  transform:translateY(-50%);
}

/* detail overlay */
html.case-lock,html.case-lock body{overflow:hidden}
.case-detail{position:fixed;inset:0;z-index:200;display:flex}
.case-detail[hidden]{display:none}
.case-detail__backdrop{
  position:absolute;inset:0;
  background:rgba(9,4,4,.82);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  opacity:0;transition:opacity .35s ease;
}
.case-detail.is-visible .case-detail__backdrop{opacity:1}
.case-detail__panel{
  position:relative;margin:auto;
  width:min(1060px,92vw);max-height:90vh;overflow:auto;
  display:grid;grid-template-columns:minmax(0,280px) 1fr;
  gap:clamp(1.5rem,4vw,3.5rem);
  padding:clamp(1.75rem,4vw,3rem);
  background:var(--bordeaux-900);
  border:1px solid rgba(245,239,230,.12);
  border-radius:18px;
  box-shadow:0 40px 120px rgba(0,0,0,.6);
  opacity:0;transform:translateY(18px) scale(.985);
  transition:opacity .4s var(--ease),transform .4s var(--ease);
}
.case-detail.is-visible .case-detail__panel{opacity:1;transform:none}
.case-detail__close{
  position:absolute;top:.6rem;right:.75rem;z-index:5;
  width:2.4rem;height:2.4rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;line-height:1;cursor:pointer;
  color:var(--cream-100);
  background:rgba(245,239,230,.08);border:1px solid rgba(245,239,230,.16);
  transition:background .3s;
}
.case-detail__close:hover{background:rgba(245,239,230,.18)}
.case-detail__stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem}
.case-detail__sound{
  display:inline-flex;align-items:center;gap:.55em;
  font:inherit;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  padding:.62em 1.15em;border-radius:2rem;cursor:pointer;
  color:var(--cream-100);
  background:rgba(245,239,230,.06);
  border:1px solid rgba(245,239,230,.2);
  transition:background .3s,border-color .3s;
}
.case-detail__sound:hover{background:rgba(245,239,230,.14)}
.case-detail__sound[hidden]{display:none}
.case-detail__sound .ic{width:1.05rem;height:1.05rem;flex:0 0 auto}
.case-detail__sound .ic--on{display:none}
.case-detail__sound.is-on .ic--on{display:block}
.case-detail__sound.is-on .ic--off{display:none}
.case-detail__sound.is-on{border-color:rgba(245,239,230,.5);background:rgba(245,239,230,.16)}
.phone--lg{width:min(272px,58vw)}
.case-detail__text{align-self:center;min-width:0}
.case-detail__count{
  font-size:.78rem;letter-spacing:.22em;
  color:rgba(245,239,230,.5);margin-bottom:1rem;
}
.case-detail__title{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(1.5rem,3vw,2.3rem);line-height:1.16;
  margin-bottom:1.75rem;
}
.case-detail__meta div{margin-bottom:1.35rem}
.case-detail__meta dt{
  font-size:.7rem;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(245,239,230,.5);margin-bottom:.4rem;
}
.case-detail__meta dd{
  font-family:var(--sans);
  font-size:.95rem;line-height:1.6;color:rgba(245,239,230,.8);
}
.case-detail__nav{display:flex;gap:.75rem;margin-top:1.75rem}
.case-detail__nav button{
  font:inherit;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;
  padding:.8em 1.5em;border-radius:2px;cursor:pointer;
  color:var(--cream-100);
  background:transparent;border:1px solid rgba(245,239,230,.28);
  transition:border-color .3s,background .3s;
}
.case-detail__nav button:hover{border-color:var(--cream-100);background:rgba(245,239,230,.08)}

@media (max-width:780px){
  .case-detail__panel{grid-template-columns:1fr;gap:1.5rem}
  .case-detail__stage{order:-1}
  .phone--lg{width:min(220px,52vw)}
  .case-detail__text{align-self:start}
}

/* ---------- Process / How the work goes ---------- */
.process{background:transparent;color:var(--cream-100)}
.process__inner{
  position:relative;
  max-width:var(--maxw);
  margin-inline:auto;
  padding:clamp(4.5rem,11vh,9rem) var(--pad-x);
}
.process__head{max-width:44ch}
.process__head .section__eyebrow{color:rgba(245,239,230,.72);text-shadow:0 1px 20px rgba(10,4,6,.6)}
.process__head .section__title{
  margin-top:1.25rem;
  text-shadow:0 2px 30px rgba(10,4,6,.6);
}

/* one wide glass panel holding the whole timeline */
.process__panel{
  margin-top:clamp(2.25rem,6vh,4rem);
  padding:clamp(1.75rem,4vw,3.25rem);
  border-radius:20px;
  background:rgba(92,26,31,.52);
  border:1px solid rgba(222,190,140,.34);
  box-shadow:0 34px 90px rgba(0,0,0,.44),inset 0 1px 0 rgba(245,239,230,.1);
  -webkit-backdrop-filter:blur(20px) saturate(1.1);
  backdrop-filter:blur(20px) saturate(1.1);
  overflow:hidden;
}

.process__steps{
  list-style:none;position:relative;
  --pgap:clamp(1rem,3vw,1.75rem);
  --dgap:clamp(1.25rem,2.6vw,2.25rem);
}

/* --- step --- */
.pstep,.pstep__fine{position:relative;padding-bottom:clamp(1.75rem,4vh,2.5rem)}
.pstep{
  display:grid;
  grid-template-columns:1.6rem 1fr;
  gap:var(--pgap);
  align-items:start;
}
.pstep:last-child{padding-bottom:0}

/* connecting line (vertical on mobile) */
.pstep::before,
.pstep__fine::before{
  content:"";position:absolute;
  left:.8rem;width:1px;
  background:rgba(245,239,230,.3);
  transform:translateX(-.5px);
}
.pstep::before{top:.9rem;bottom:0}
/* subtract this li's own border-left so the through-line stays plumb */
.pstep__fine::before{top:0;bottom:0;left:calc(.8rem - 1.6rem - var(--pgap) - 2px)}
.pstep:last-child::before{top:0;height:.9rem;bottom:auto}

.pstep__marker{
  position:relative;z-index:1;
  width:1.6rem;height:1.1rem;
  display:flex;align-items:center;justify-content:center;
}
.pstep__dot{
  width:.55rem;height:.55rem;border-radius:50%;
  background:var(--cream-100);
  box-shadow:0 0 0 4px rgba(92,26,31,.55);
}
.pstep__num{
  display:block;
  font-family:var(--serif);font-weight:500;
  font-size:clamp(1.2rem,1.5vw,1.5rem);
  letter-spacing:.06em;
  line-height:1;
  color:rgba(245,239,230,.58);
  margin-bottom:.5rem;
}
.pstep__title{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(1.3rem,1.9vw,1.65rem);
  line-height:1.22;
  color:var(--cream-100);
  margin-bottom:.5rem;
}
.pstep__text{
  font-size:clamp(.96rem,1.05vw,1.05rem);
  line-height:1.68;
  color:rgba(245,239,230,.82);
  max-width:44ch;
}
.pstep__fine{
  margin-left:calc(1.6rem + var(--pgap));              /* align with step bodies */
  padding-left:1.1rem;
  border-left:2px solid rgba(224,192,142,.78);         /* gold — reads on the bordeaux glass */
  max-width:64ch;
}
.pstep__fine p{
  margin:0;
  font-family:var(--sans);
  font-size:.92rem;
  line-height:1.68;
  color:rgba(245,239,230,.82);
}
.pstep__fine p + p{margin-top:0}

/* --- desktop: horizontal timeline --- */
@media (min-width:900px){
  .process__head{max-width:none}
  .process__head .section__title{white-space:nowrap}

  .process__steps{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:var(--dgap);
    align-items:start;
  }
  .pstep,.pstep__fine{padding-bottom:0}
  .pstep{
    display:flex;flex-direction:column;align-items:flex-start;text-align:left;
  }
  .pstep::before,.pstep__fine::before{display:none}
  .process__steps::before{                 /* single horizontal line: from the dot above 01 to the dot above 05 */
    content:"";position:absolute;
    left:.8rem;                                     /* centre of the marker above step 01 */
    right:calc((100% - 4 * var(--dgap)) / 5 - .8rem);
    top:calc(.55rem - .5px);
    height:1px;background:rgba(245,239,230,.3);
  }
  /* dot sits above its own number, not centred in the column */
  .pstep__marker{align-self:flex-start;justify-content:center;margin-bottom:1.35rem}
  .pstep__num{font-size:clamp(1.25rem,1.6vw,1.6rem)}
  .pstep__title{font-size:clamp(1.3rem,1.8vw,1.7rem);margin-bottom:.6rem}
  .pstep__text{font-size:clamp(.92rem,1.02vw,1.02rem);line-height:1.62;max-width:none}
  .pstep__fine{
    order:10;grid-column:1 / -1;
    margin-left:0;margin-top:clamp(2rem,5vh,3.25rem);
    max-width:none;
    padding:clamp(1.4rem,2.4vw,2rem) clamp(1.6rem,3vw,2.25rem);
    border:1px solid rgba(224,192,142,.42);
    border-radius:12px;
    background:rgba(18,7,9,.18);
  }
}

/* =========================================================
   Pricing  (intro + gateway to the calculator; no public table)
   ========================================================= */
.pricing{background:transparent}
.pricing__inner{
  position:relative;
  max-width:var(--maxw);
  margin-inline:auto;
  padding:clamp(4.5rem,11vh,9rem) var(--pad-x);
}
.pricing__head{max-width:none}
.pricing__head .section__title{margin-bottom:0}

/* heading, text + CTA, and image — all items of the same grid so the
   heading and (on desktop) the image can share a row */
.pricing__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(2rem,4vw,3rem);
}
.pricing__left{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(1.75rem,4vh,2.75rem)}
.pricing__lead{
  font-size:clamp(1rem,1.15vw,1.15rem);
  line-height:1.7;
  color:rgba(245,239,230,.82);
}
.pricing__figure{margin:0}
.pricing__figure img{width:100%;border-radius:12px;box-shadow:0 30px 70px rgba(0,0,0,.4)}

@media (min-width:900px){
  /* heading and photo share the grid's first row, so their top edges align */
  .pricing__grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "head   figure"
      "left   figure";
    column-gap:clamp(2.5rem,5vw,4.5rem);
    row-gap:clamp(2rem,5vh,3.25rem);
  }
  .pricing__head{grid-area:head}
  .pricing__left{grid-area:left}
  .pricing__figure{grid-area:figure}
  .pricing__figure img{max-width:375px;margin-inline:auto}   /* smaller — fits within the screen */
}
@media (max-width:899px){
  .pricing__figure{max-width:520px;margin-inline:auto}
}

.pricing__cta{                                    /* same frosted bordeaux tint as the Process panel */
  width:100%;
  padding:clamp(1.75rem,4vw,2.75rem);
  border-radius:20px;
  background:rgba(92,26,31,.52);
  border:1px solid rgba(222,190,140,.34);
  box-shadow:0 34px 90px rgba(0,0,0,.44),inset 0 1px 0 rgba(245,239,230,.1);
  -webkit-backdrop-filter:blur(20px) saturate(1.1);
  backdrop-filter:blur(20px) saturate(1.1);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:1.5rem;
}
.pricing__cta-text{
  font-family:var(--serif);
  font-size:clamp(1.15rem,1.6vw,1.45rem);
  line-height:1.4;
  color:var(--cream-100);
}
.pricing__cta .btn{align-self:center}          /* button centred in the plate */
.pricing__cta-text .cta-br{display:none}
/* every language: break so "…30 seconds" drops to its own line */
:root[lang="ru"] .pricing__cta-text .cta-br,
:root[lang="en"] .pricing__cta-text .cta-br,
:root[lang="uk"] .pricing__cta-text .cta-br{display:inline}

/* desktop: the plate hugs its text, flush-left with the lede, riding at
   the vertical middle of the photo */
@media (min-width:900px){
  .pricing__left{justify-content:flex-start;padding-bottom:clamp(4.5rem,12vh,8rem)}
  .pricing__cta{
    display:block;width:fit-content;max-width:100%;
    margin-block:auto;
    margin-inline:0;
  }
  .pricing__cta-text{margin-bottom:1.5rem}
  .pricing__cta .btn{align-self:auto;display:flex;width:fit-content;margin-inline:auto}
}
/* mobile: a touch smaller so each prompt line stays on one row;
   centred so the room to the left and right plate edges is the same */
@media (max-width:699px){
  .pricing__cta-text{font-size:clamp(.92rem,3.9vw,1.15rem);text-align:center}
}

/* ---------- Pricing calculator (modal wizard) ---------- */
.calc{
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;
  padding:clamp(.75rem,4vw,2.5rem);
}
.calc[hidden]{display:none}
.calc__backdrop{
  position:absolute;inset:0;
  background:rgba(10,4,6,.72);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
}
.calc__panel{
  position:relative;
  width:min(37rem,100%);
  max-height:calc(100vh - 1.5rem);
  max-height:calc(100dvh - 1.5rem);
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:clamp(1.5rem,4.5vw,2.75rem);
  border-radius:20px;
  background:linear-gradient(180deg,#3d1116,#2c0c11);
  border:1px solid rgba(222,190,140,.34);
  box-shadow:0 40px 120px rgba(0,0,0,.5),inset 0 1px 0 rgba(245,239,230,.08);
  color:var(--cream-100);
}
.calc__close{
  position:absolute;top:.6rem;right:.6rem;
  width:2.25rem;height:2.25rem;
  border:0;border-radius:50%;
  background:transparent;color:rgba(245,239,230,.7);
  font-size:1.5rem;line-height:1;cursor:pointer;
  transition:background .25s,color .25s;
}
.calc__close:hover{background:rgba(245,239,230,.1);color:var(--cream-100)}
.calc__step{
  font-size:.68rem;letter-spacing:.28em;text-transform:uppercase;
  color:rgba(245,239,230,.5);
}
.calc__bar{
  margin:.55rem 0 1.4rem;height:2px;border-radius:2px;
  background:rgba(245,239,230,.14);overflow:hidden;
}
.calc__bar span{display:block;height:100%;width:25%;background:#e0c08e;transition:width .35s var(--ease)}
.calc__title{
  font-family:var(--serif);font-weight:500;
  font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.2;
  margin-bottom:1.4rem;
}

.calc__opts{display:flex;flex-direction:column;gap:.6rem}
.calc__opt{
  display:block;width:100%;text-align:left;
  padding:.9rem 1.1rem;border-radius:12px;
  border:1px solid rgba(245,239,230,.2);
  background:rgba(245,239,230,.04);color:inherit;cursor:pointer;
  transition:border-color .25s,background .25s;
}
.calc__opt:hover{border-color:rgba(222,190,140,.5)}
.calc__opt[aria-pressed="true"]{border-color:#e0c08e;background:rgba(222,190,140,.12)}
.calc__opt-t{display:block;font-size:1rem;font-weight:500}
.calc__opt-h{display:block;font-size:.82rem;color:rgba(245,239,230,.6);margin-top:.15rem}

.calc__field{margin-top:1.15rem}
.calc__field:first-child{margin-top:0}
.calc__label{
  display:block;font-size:.8rem;letter-spacing:.02em;
  color:rgba(245,239,230,.72);margin-bottom:.55rem;
}
.calc__seg{display:flex;gap:.4rem;flex-wrap:wrap}
.calc__seg button{
  flex:1 1 auto;min-width:3.25rem;
  padding:.6rem .8rem;border-radius:10px;
  border:1px solid rgba(245,239,230,.2);
  background:rgba(245,239,230,.04);color:inherit;cursor:pointer;
  font-size:.9rem;transition:border-color .2s,background .2s;
}
.calc__seg button:hover{border-color:rgba(222,190,140,.5)}
.calc__seg button[aria-pressed="true"]{border-color:#e0c08e;background:rgba(222,190,140,.14)}
.calc__stepper{
  display:inline-flex;align-items:center;
  border:1px solid rgba(245,239,230,.2);border-radius:10px;overflow:hidden;
}
.calc__stepper button{
  width:2.6rem;height:2.6rem;border:0;
  background:rgba(245,239,230,.05);color:inherit;
  font-size:1.2rem;line-height:1;cursor:pointer;transition:background .2s;
}
.calc__stepper button:hover{background:rgba(245,239,230,.13)}
.calc__stepper span{min-width:2.75rem;text-align:center;font-size:1rem}
.calc__hint{font-size:.8rem;color:rgba(245,239,230,.55);margin-top:.55rem}
.calc__note{font-size:.85rem;line-height:1.55;color:rgba(245,239,230,.62);margin-bottom:1rem}

/* "ещё не определился" toggle under the frames stepper */
.calc__toggle{
  display:block;width:100%;margin-top:.7rem;
  padding:.7rem 1rem;border-radius:10px;
  border:1px solid rgba(245,239,230,.2);
  background:rgba(245,239,230,.04);color:inherit;cursor:pointer;
  font-size:.88rem;text-align:left;
  transition:border-color .2s,background .2s;
}
.calc__toggle:hover{border-color:rgba(222,190,140,.5)}
.calc__toggle[aria-pressed="true"]{border-color:#e0c08e;background:rgba(222,190,140,.14)}
.calc__auto{
  display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;
  font-family:var(--serif);font-size:1.5rem;color:var(--cream-100);
}
.calc__auto span{font-family:var(--sans);font-size:.8rem;color:rgba(245,239,230,.55)}

/* add-on rows (checkbox + name + computed price) */
.calc__addon-row{
  display:flex;align-items:center;gap:.75rem;width:100%;
  padding:.8rem 1rem;margin-bottom:.55rem;border-radius:12px;
  border:1px solid rgba(245,239,230,.16);
  background:rgba(245,239,230,.03);color:inherit;cursor:pointer;
  font-size:.95rem;text-align:left;
  transition:border-color .2s,background .2s;
}
.calc__addon-row:hover{border-color:rgba(222,190,140,.45)}
.calc__addon-row[aria-pressed="true"]{border-color:rgba(222,190,140,.55);background:rgba(222,190,140,.09)}
.calc__addon-name{flex:1 1 auto}
.calc__addon-price{white-space:nowrap;font-size:.85rem;color:rgba(245,239,230,.6)}
.calc__check{
  flex:none;width:1.35rem;height:1.35rem;border-radius:6px;
  border:1px solid rgba(245,239,230,.35);
  display:grid;place-items:center;font-size:.85rem;color:#2c0c11;
}
.calc__addon-row[aria-pressed="true"] .calc__check{background:#e0c08e;border-color:#e0c08e}

.calc__tg-body{font-size:1rem;line-height:1.65;color:rgba(245,239,230,.85)}

.calc__sum{list-style:none;margin:0 0 1.15rem;padding:0;border-top:1px solid rgba(245,239,230,.14)}
.calc__sum li{
  display:flex;justify-content:space-between;gap:1rem;
  padding:.7rem 0;border-bottom:1px solid rgba(245,239,230,.14);
  font-size:.92rem;
}
.calc__sum-label{color:rgba(245,239,230,.85)}
.calc__sum-price{white-space:nowrap}
.calc__total{
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  margin-bottom:1rem;
}
.calc__total span{
  font-size:.68rem;letter-spacing:.28em;text-transform:uppercase;
  color:rgba(245,239,230,.55);
}
.calc__total b{font-family:var(--serif);font-weight:500;font-size:clamp(1.6rem,4vw,2.2rem);color:#e8cc94}
.calc__disc{font-size:.82rem;line-height:1.6;color:rgba(245,239,230,.66)}

.calc__foot{
  display:flex;align-items:center;gap:.75rem;
  justify-content:space-between;flex-wrap:wrap;
  margin-top:1.7rem;
}
.calc__foot__l:empty{display:none}
.calc__foot__r{display:flex;align-items:center;gap:.75rem;margin-left:auto;flex-wrap:wrap}
.calc__running{font-size:.8rem;color:rgba(245,239,230,.6)}
.calc__running b{color:var(--cream-100)}
.calc__foot .btn{padding:.9em 1.6em}
.calc__foot .btn[disabled]{opacity:.4;cursor:not-allowed}

/* result screen: primary CTA full width, then Back / Start-over as an even 2-up row */
.calc__foot--result{display:flex;flex-direction:column;gap:.7rem;width:100%}
.calc__foot--result .calc__tgbtn{width:100%}
.calc__foot--result .calc__foot-row{display:flex;gap:.7rem}
.calc__foot--result .calc__foot-row .btn{flex:1 1 0;padding-inline:1em}

.calc__toast{
  position:absolute;left:50%;bottom:1rem;transform:translateX(-50%);
  max-width:calc(100% - 2rem);
  padding:.7rem 1.1rem;border-radius:10px;
  background:rgba(20,8,10,.94);border:1px solid rgba(222,190,140,.4);
  font-size:.82rem;color:var(--cream-100);
  transition:opacity .35s;
}
.calc__toast.is-out{opacity:0}

@media (max-width:600px){
  .calc{padding:0}
  .calc__panel{
    width:100%;max-width:none;
    max-height:100vh;max-height:100dvh;border-radius:0;
  }
  .calc__foot__r{width:100%}
  .calc__foot__r .btn{flex:1 1 auto}
}

/* =========================================================
   Contact / final CTA  (petal-envelope photo background)
   ========================================================= */
.contact{
  position:relative;
  background:transparent;
}
.contact__inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding:clamp(4.5rem,11vh,9rem) var(--pad-x) clamp(3rem,7vh,5rem);
}
.contact__head{max-width:none}
.contact__head .section__title{
  text-shadow:0 2px 26px rgba(10,4,6,.7);
}
/* desktop: heading centred on the screen, one line in every language */
@media (min-width:761px){
  .contact__head{text-align:center}
  .contact__head .section__title{
    white-space:nowrap;
    font-size:clamp(1.7rem,3.4vw,2.8rem);
  }
}

/* intro — a plate centred on the page, midway between the heading and
   the envelope; text flush left and filling the width so the side gaps match */
.contact__lede{
  margin-top:clamp(3.5rem,8vh,5rem);
  width:100%;
  max-width:30rem;
  margin-inline:auto;
  text-align:left;
  text-wrap:normal;
  font-size:clamp(1rem,1.15vw,1.15rem);
  line-height:1.7;
  color:var(--cream-100);
  padding:clamp(1.35rem,3vh,1.9rem) clamp(1.6rem,2.4vw,2rem);
  border-radius:16px;
  background:rgba(92,26,31,.5);
  border:1px solid rgba(222,190,140,.32);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.contact__lede .lede-ln{display:inline}       /* desktop: segments flow as one paragraph */
@media (min-width:700px){
  /* desktop EN: break at fixed points; plate hugs the longest line -> even side gaps */
  :root[lang="en"] .contact__lede{width:fit-content;max-width:100%;text-align:left}
  :root[lang="en"] .contact__lede .lede-ln{display:block;width:max-content;max-width:100%}
}
/* mobile EN: keep the segments flowing naturally (no forced breaks) */
@media (max-width:699px){
  :root[lang="en"] .contact__lede .lede-ln{display:inline}
}

/* petal-envelope — cropped tight around the envelope so it doesn't leave
   a big empty band between the plate and the petals */
.contact__media{
  position:relative;
  margin:clamp(1rem,2.5vh,1.5rem) auto 0;
  width:min(780px,94vw);
}
.contact__media img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  object-position:50% 57%;
  display:block;
}
/* Telegram button — one line, centred on the cream paper in the envelope */
.contact__cta{
  position:absolute;
  left:50%;
  top:44%;
  transform:translate(-50%,-50%);
  white-space:nowrap;
  box-shadow:0 16px 40px rgba(10,4,6,.42);
}

@media (max-width:699px){
  .contact__inner{padding-bottom:clamp(1.5rem,4vh,2.5rem)}
  /* mobile: no plate — plain text, full screen width */
  .contact__lede{
    margin-top:clamp(1.5rem,4vh,2.25rem);
    max-width:none;
    text-align:left;
    text-wrap:normal;
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  /* RU: the explicit line segments stack, flush left */
  .contact__lede .lede-ln{
    display:block;
    text-align:left;
  }
  /* envelope large — bleeds past the screen edges (clipped by overflow-x) */
  .contact__media{
    width:130vw;
    max-width:none;
    margin:1.25rem 0 0 50%;
    transform:translateX(-50%);
  }
  .contact__cta{
    padding:.9em 1.7em;
    font-size:.7rem;
    letter-spacing:.14em;
  }
  /* beat the global `.btn{width:100%}` — keep this one a one-line pill */
  .contact__cta.btn{width:max-content;max-width:82vw}
}

/* =========================================================
   Placeholder sections (temporary — real content next)
   ========================================================= */
.stub{
  min-height:70vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6rem var(--pad-x);
  border-top:1px solid rgba(0,0,0,.06);
}
/* alternating section screens: deep bordeaux <-> milky cream */
.stub--dark{
  background:var(--bordeaux-700);
  color:var(--cream-100);
  border-top-color:rgba(0,0,0,.25);
}
.stub--light{
  background:var(--cream-100);
  color:var(--ink);
}
.stub__inner{max-width:60ch;display:flex;flex-direction:column;align-items:center;gap:1rem}
.stub__eyebrow{
  font-size:.7rem;letter-spacing:.4em;text-transform:uppercase;
  color:var(--ink-soft);
}
.stub--dark .stub__eyebrow{color:rgba(245,239,230,.6)}
.stub__title{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(2rem,5vw,3.4rem);
  line-height:1.1;
}
.stub__note{
  font-size:.8rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--ink-soft);
  margin-top:.5rem;
}
.stub--dark .stub__note{color:rgba(245,239,230,.5)}
.stub--contact .btn{margin-top:1rem}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background:transparent;                 /* sits on the shared studio backdrop */
  color:rgba(245,239,230,.55);
  text-align:center;
  padding:clamp(2.5rem,6vh,3.5rem) var(--pad-x);
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.6rem;
}
/* social links live on the bordeaux footer strip, above (and larger than) the copyright line */
.site-footer__socials{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:clamp(1rem,3vw,1.6rem);
}
.site-footer__socials a{
  display:grid;
  place-items:center;
  width:2.9rem;
  height:2.9rem;
  border-radius:50%;
  border:1px solid rgba(245,239,230,.3);
  color:rgba(245,239,230,.75);
  transition:color .3s var(--ease),border-color .3s var(--ease),transform .3s var(--ease);
}
.site-footer__socials a:hover{
  color:var(--cream-100);
  border-color:rgba(224,192,142,.75);
  transform:translateY(-3px);
}
.site-footer__socials svg{
  width:1.4rem;
  height:1.4rem;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.site-footer p{margin:0}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1024px){
  .nav-toggle{display:flex}
  .site-header__inner{justify-content:flex-start;gap:clamp(.7rem,2vw,1.1rem)}
  .lang-switch{margin-left:auto}

  /* burger dropdown panel */
  .main-nav{
    display:flex;
    flex-direction:column;
    gap:0;
    position:absolute;
    top:100%;
    left:0;right:0;
    padding:.25rem var(--pad-x) .75rem;
    background:rgba(38,10,13,.985);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    border-top:1px solid rgba(224,192,142,.22);
    box-shadow:0 24px 50px rgba(10,4,6,.45);
    opacity:0;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .28s var(--ease),transform .28s var(--ease);
  }
  .site-header.nav-open .main-nav{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .site-header.nav-open{
    background:rgba(38,10,13,.985);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
  }
  .main-nav a{
    padding:.95rem .1rem;
    font-size:.78rem;
    color:rgba(245,239,230,.82);
    border-bottom:1px solid rgba(245,239,230,.1);
  }
  .main-nav a:last-child{border-bottom:0}
  .main-nav a::after{display:none}
}

@media (max-width:699px){
  :root{
    --hero-photo-pos:center 10%;
    --hero-photo-scale:1.08;
    --hero-photo-origin:50% 0%;
  }
  .hero__name span{font-size:clamp(2.6rem,11vw,3.7rem)}
  .hero__title-block{max-width:none}
  .site-header__inner{gap:1rem}
  .brand{font-size:.98rem}
  /* vh-free paddings so nothing reflows when the URL bar shows/hides */
  .hero__content{padding-bottom:3rem}
  .hero__name span:last-child{margin-left:0}
  .hero__role{margin-top:.9rem;font-size:.82rem;letter-spacing:.34em}
  .hero__lede-block{max-width:100%;margin-top:auto}   /* keep lede + buttons grouped low, as before */
  .hero__lede{font-size:1.02rem;line-height:1.45;margin-bottom:0}
  .hero__lede br{display:none}                 /* let the sentence flow as one block */
  .hero__cta{flex-direction:column;align-items:stretch}
  .btn{width:100%}
  .hero__scroll{display:none}

  /* flat backdrop on phones — the studio-photo vignette compresses into
     visible bands between blocks; a solid tone removes every seam */
  body::before{background:var(--bg-deep)}

  /* hero -> about: fade the photo itself to transparent so the flat
     backdrop shows straight through — no visible edge at all */
  .hero{background:transparent}
  .hero__media{
    -webkit-mask-image:linear-gradient(180deg,#000 0,#000 58%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0,#000 58%,transparent 100%);
  }
  .hero::after{display:none}

  /* gaps between blocks ~48px (hero -> about kept: .about padding-top untouched) */
  .services__inner,
  .process__inner,
  .pricing__inner{padding-top:3rem;padding-bottom:3rem}
  .cases__inner{padding-top:3rem}
  .about__inner{padding-bottom:3rem}
  .contact__inner{padding-top:3rem;padding-bottom:2rem}

  /* gold line after step 04 ends exactly at the text; gap to step 05 as before */
  .pstep__fine{padding-bottom:0;margin-bottom:2rem}
  .pstep__fine::before{bottom:-2rem}

  /* Telegram button a little higher — onto the cream paper */
  .contact__cta{top:38%}

  /* kill the big drop-shadows — on a flat backdrop their soft falloff
     shows as a horizontal band under the element */
  .svc{box-shadow:inset 0 1px 0 rgba(245,239,230,.12)}
  .process__panel{box-shadow:inset 0 1px 0 rgba(245,239,230,.1)}
  .pricing__cta{box-shadow:inset 0 1px 0 rgba(245,239,230,.1)}
  .pricing__figure img{
    box-shadow:none;
  }
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .hero__lede-block,.hero__cta{opacity:1;transform:none}
  .hero__cloth.is-settled{animation:none}
}
