/* «Охра» — сайт студии акварели (демо). Сначала телефон, потом ПК.
   Язык: мокрый ультрамарин, бумага с рваным краем, скотч, наклейки, рукописный Shantell Sans.
   Разделы чередуются: лист бумаги → заливка краской → лист… Каждый следующий лежит поверх предыдущего. */
:root{ --terra:#D8553A; --ochre-l:#F2D9A2; --ink-2:#3A3E5C; --bar-h:64px }
body{ --bg:var(--paper); --fg:var(--ink); background:var(--paper); color:var(--ink) }
html{ scroll-padding-top:calc(var(--bar-h) + 8px) }

/* ---------- шапка: поверх краски, после первого экрана — прилипает сверху ---------- */
.top{ display:block; padding:0; --top-fg:var(--paper); --top-btn-bg:var(--cad); --top-btn-fg:var(--ink); --menu-bg:rgba(251,248,241,.16); --nav-hover:rgba(251,248,241,.14); --logo-dab:var(--cad) }
.top::before{ content:""; position:absolute; z-index:-1; inset:0 0 -40px; pointer-events:none; background:linear-gradient(rgba(12,18,84,.45), rgba(12,18,84,0)) }
.top-in{ display:flex; align-items:center; gap:clamp(10px,2vw,24px); padding-top:max(10px, env(safe-area-inset-top, 0px)); padding-bottom:10px }
.top.fixed{ position:fixed; color:var(--ink); --top-fg:var(--ink); --top-btn-bg:var(--ultra); --top-btn-fg:var(--paper); --menu-bg:rgba(20,24,58,.07); --nav-hover:rgba(20,24,58,.07); --logo-dab:var(--ochre);
  background:rgba(251,248,241,.94); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); box-shadow:0 10px 30px -18px rgba(20,24,58,.45); animation:barIn .45s cubic-bezier(.2,.8,.2,1) both }
.top.fixed::before{ display:none }
.top.fixed .top-in{ padding-top:max(6px, env(safe-area-inset-top, 0px)); padding-bottom:6px }
@keyframes barIn{ from{ transform:translateY(-100%) } }
.nav a{ font-size:15.5px; padding:0 12px }
@media (max-width:1023px){ .nav{ display:none } .menu-btn{ display:grid } .top .btn-sm{ margin-left:auto } .menu-btn{ margin-left:0 } }
@media (max-width:760px){ .top.fixed .btn-sm{ display:inline-flex; padding:0 16px; font-size:15px } .top:not(.fixed) .menu-btn{ margin-left:auto } }

/* ---------- 1. первый экран (из варианта 1, краска приглушена) ---------- */
.hero{ position:relative; isolation:isolate; display:flex; min-height:calc(100vh - 64px); min-height:calc(100svh - 64px); overflow:hidden; background:#2A3DB4; color:var(--paper) }
.paint{ position:absolute; inset:0; width:100%; height:100%; opacity:0; transition:opacity .5s }
.hero.gl-on .paint{ opacity:1 }
/* фактура бумаги поверх краски: неподвижная картинка-шум, чёткая при любом разрешении холста */
.hero::after{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.42; mix-blend-mode:multiply; background-size:220px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.55' intercept='.6'/%3E%3CfeFuncG type='linear' slope='.55' intercept='.6'/%3E%3CfeFuncB type='linear' slope='.55' intercept='.62'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") }
.fallback{ position:absolute; inset:0;
  background:
    radial-gradient(28% 36% at 86% 26%, rgba(235,200,128,.8), rgba(235,200,128,0) 70%),
    radial-gradient(24% 32% at 70% 76%, rgba(196,96,70,.66), rgba(196,96,70,0) 70%),
    radial-gradient(32% 40% at 96% 86%, rgba(200,148,74,.72), rgba(200,148,74,0) 72%),
    radial-gradient(40% 50% at 18% 30%, rgba(20,26,92,.6), rgba(20,26,92,0) 72%),
    #2A3DB4 }
.js .fallback{ opacity:0; transition:opacity .4s }
.js .hero.no-gl .fallback, .js.nogl .fallback{ opacity:1 }
.hero-in{ position:relative; z-index:2; display:grid; width:100%; grid-template-columns:minmax(0,1fr); grid-template-areas:"h" "note" "lead" "hint";
  align-content:end; row-gap:22px; padding-top:92px; padding-bottom:40px }
.h1{ grid-area:h; margin:0; font-family:"Shantell Hero", var(--hand); font-weight:800; font-size:clamp(56px,20.4vw,128px); line-height:.84; letter-spacing:-.035em; text-shadow:0 .04em .28em rgba(10,14,70,.3) }
.ln{ display:block; white-space:nowrap }
.ln2 .w{ display:block }
.ln2 .po{ margin-left:1.55em; font-size:.8em; line-height:.9 }
.w{ display:inline-block; white-space:nowrap }
.ch{ display:inline-block; font-variation-settings:"BNCE" var(--b, 0), "INFM" var(--f, 38); will-change:translate, rotate }
.note{ grid-area:note; justify-self:start; position:relative; max-width:30ch; margin-left:2px; padding:10px 16px 12px; border-radius:14px 18px 12px 16px; background:var(--ink);
  font-family:var(--hand); font-weight:500; font-variation-settings:"INFM" 100, "BNCE" 30; font-size:17px; line-height:1.3; color:var(--cad); transform:rotate(-2.5deg); box-shadow:0 14px 28px -14px rgba(5,8,40,.6) }
.note .arr{ position:absolute; right:6%; top:-46px; width:66px; height:58px; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; transform:scaleX(-1) rotate(10deg) }
.lead{ grid-area:lead; display:flex; flex-direction:column; gap:16px }
.sub{ max-width:34ch; font-size:clamp(17px,1.3vw,20px); line-height:1.45; text-shadow:0 1px 18px rgba(10,14,70,.45) }
.act{ display:flex; flex-direction:column; align-items:stretch; gap:10px }
.hero .btn{ --acc:var(--cad); --acc-fg:var(--ink); min-height:62px; padding:0 40px; font-size:18px; width:100% }
.price{ text-align:center; font-size:15px; text-shadow:0 1px 12px rgba(10,14,70,.6) }
.hint{ grid-area:hint; justify-self:center; display:flex; align-items:center; gap:10px; padding:6px 14px 6px 8px; border-radius:999px; background:rgba(14,18,70,.42);
  font-family:var(--hand); font-weight:500; font-variation-settings:"INFM" 80; font-size:14px; color:rgba(251,248,241,.92) }
.hint::before{ content:""; width:22px; height:22px; flex:none; border-radius:46% 54% 60% 40% / 50% 40% 60% 50%; background:var(--cad); box-shadow:0 0 0 3px rgba(255,199,44,.25) }
.h-touch{ display:none }
@media (hover:none), (pointer:coarse){ .h-fine{ display:none } .h-touch{ display:inline } }

@keyframes chIn{ from{ opacity:0; transform:translateY(.34em) rotate(-9deg) scale(.86) } }
@keyframes rise{ from{ opacity:0; transform:translateY(18px) } }
@keyframes draw{ from{ stroke-dashoffset:170 } }
.js:not(.still) .h1 .ch{ animation:chIn .95s cubic-bezier(.2,.9,.25,1.15) backwards; animation-delay:calc(var(--i) * 42ms + 120ms) }
.js:not(.still) .lead{ animation:rise .9s cubic-bezier(.2,.8,.2,1) .78s backwards }
.js:not(.still) .note{ animation:rise .9s cubic-bezier(.2,.8,.2,1) 1.05s backwards }
.js:not(.still) .note .arr path{ stroke-dasharray:170; animation:draw 1s ease-out 1.35s backwards }
.js:not(.still) .hint{ animation:rise .9s ease-out 1.7s backwards }
.js:not(.still):not(.f-ok) .h1 .ch, .js:not(.still):not(.f-ok) .lead, .js:not(.still):not(.f-ok) .note, .js:not(.still):not(.f-ok) .note .arr path, .js:not(.still):not(.f-ok) .hint{ animation-play-state:paused }

/* ---------- листы и заливки: каждый раздел ложится поверх предыдущего ---------- */
.sheet, .wash{ position:relative; z-index:3; padding:clamp(56px,9vw,128px) 0 clamp(64px,10vw,140px) }
.sheet{ background-color:var(--paper); background-image:var(--paper-tex, none); background-size:160px; color:var(--ink) }
.sheet::before, .wash::before{ content:""; position:absolute; left:0; right:0; top:-26px; height:28px; pointer-events:none }
.sheet::before{ background:inherit; -webkit-mask:url("edge.svg") 0 0/100% 100% no-repeat; mask:url("edge.svg") 0 0/100% 100% no-repeat }
.wash{ background-color:var(--wash); background-size:cover; background-position:center; color:var(--paper) }
.wash::before{ top:-30px; height:32px; background:var(--wash); -webkit-mask:url("wave.svg") 0 0/100% 100% no-repeat; mask:url("wave.svg") 0 0/100% 100% no-repeat }
.kak{ --wash:#2238C8 } .ceny{ --wash:#E8C686; color:var(--ink) } .probnoe{ --wash:#18228C }
.sec-head{ display:flex; flex-direction:column; gap:14px; margin-bottom:clamp(28px,5vw,64px) }
.sec-head h2{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 45, "BNCE" 25; font-size:clamp(44px,11vw,108px); line-height:.92; letter-spacing:-.03em }
.sec-head p{ max-width:44ch; font-size:clamp(17px,1.4vw,20px); line-height:1.5 }
.sheet .sec-head h2{ color:var(--ultra) }
.sheet .sec-head p{ color:var(--ink-2) }
.wash .sec-head p{ color:rgba(251,248,241,.88) }
.ceny .sec-head h2{ color:var(--ink) } .ceny .sec-head p{ color:#3D2C12 }
@media (min-width:900px){ .sec-head{ flex-direction:row; align-items:flex-end; justify-content:space-between; gap:24px 48px } }

/* намёк под первым экраном */
.zan{ padding-top:14px }
.peek{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; margin-bottom:clamp(30px,6vw,72px); font-family:var(--hand); font-weight:600; font-variation-settings:"INFM" 70; font-size:clamp(17px,1.5vw,21px); color:var(--ink-2) }
.peek svg{ width:30px; height:34px; flex:none; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round }
.js:not(.still) .peek svg{ animation:nudge 2.4s ease-in-out 2.2s infinite }
@keyframes nudge{ 0%,70%,100%{ transform:none } 80%{ transform:translateY(6px) } 90%{ transform:translateY(-2px) } }

/* ---------- 2. занятия: карточки-наклейки (как в витрине) ---------- */
.groups{ display:grid; grid-template-columns:minmax(0,1fr); gap:44px 28px }
.grp{ position:relative; display:flex; flex-direction:column; gap:12px; padding:34px 24px 26px; border-radius:24px 34px 20px 30px; transform:rotate(var(--r)); box-shadow:0 26px 40px -30px rgba(20,24,58,.55) }
.g1{ --r:-1.6deg; --r0:-14deg; background:var(--cad); color:var(--ink) }
.g2{ --r:1.3deg; --r0:12deg; background:#FFFEFA; color:var(--ink) }
.g3{ --r:-.8deg; --r0:-9deg; background:var(--terra); color:#FFF8F2 }
.age{ position:absolute; left:20px; top:-18px; padding:.12em .55em .2em; background:var(--ultra); color:var(--paper); font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 40, "BNCE" 30; font-size:20px; line-height:1.1; transform:rotate(-4deg);
  clip-path:polygon(0% 8%, 7% 0%, 16% 6%, 28% 1%, 40% 6%, 52% 0%, 65% 5%, 77% 0%, 90% 6%, 100% 2%, 98% 52%, 100% 95%, 90% 100%, 77% 94%, 64% 100%, 51% 95%, 38% 100%, 25% 94%, 12% 100%, 0% 94%, 2% 48%) }
.g3 .age{ background:var(--ink) }
.grp h3{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 40, "BNCE" 20; font-size:clamp(34px,8vw,46px); line-height:1; letter-spacing:-.02em }
.grp > p{ font-size:17px; line-height:1.5 }
.facts{ display:grid; gap:8px; margin:6px 0 0 }
.facts div{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; padding-top:8px; border-top:1.5px dashed rgba(20,24,58,.22) }
.g3 .facts div{ border-top-color:rgba(255,248,242,.38) }
.facts dt{ min-width:72px; font-size:14px; opacity:.8 }
.facts dd{ margin:0; font-family:var(--hand); font-weight:600; font-variation-settings:"INFM" 80; font-size:19px }
@keyframes fallIn{
  0%{ opacity:0; transform:translateY(-120px) rotate(var(--r0)) }
  55%{ opacity:1; transform:translateY(12px) rotate(calc(var(--r) * -1.2)) }
  76%{ transform:translateY(-5px) rotate(calc(var(--r) * 1.4)) }
  100%{ transform:translateY(0) rotate(var(--r)) }
}
.js:not(.still):not(.noanim) .zan:not(.in) .grp{ opacity:0 }
.js:not(.still) .zan.in .grp{ animation:fallIn 1.15s cubic-bezier(.2,.75,.25,1) backwards }
.js:not(.still) .zan.in .g2{ animation-delay:.14s } .js:not(.still) .zan.in .g3{ animation-delay:.28s }
@media (min-width:900px){ .groups{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px clamp(22px,2.6vw,44px) } .grp{ padding:40px 30px 30px } }

/* ---------- 3. как проходит: 90 минут одной полосой краски ---------- */
.lesson{ display:flex; height:clamp(56px,8vw,96px); margin:0 -4px clamp(30px,4vw,48px);
  -webkit-mask:url("stroke.svg") center/100% 100% no-repeat; mask:url("stroke.svg") center/100% 100% no-repeat }
.seg{ flex:var(--w) 1 0; display:flex; align-items:center; justify-content:center; min-width:0; font-family:var(--hand); font-weight:800; font-size:clamp(15px,1.8vw,22px); color:var(--ink) }
.seg b{ font-weight:800; white-space:nowrap }
.s1{ background:var(--ochre-l) } .s2{ background:var(--cad) } .s3{ background:var(--terra); color:#FFF8F2 } .s4{ background:#C9D3F7 }
.steps{ display:grid; grid-template-columns:minmax(0,1fr); gap:22px; counter-reset:st }
.steps li{ position:relative; display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:14px; row-gap:2px; counter-increment:st }
.steps .dot{ grid-row:1 / span 3; display:grid; place-items:center; width:44px; height:44px; border-radius:46% 54% 60% 40% / 50% 40% 60% 50%; font-style:normal; font-family:var(--hand); font-weight:800; font-size:20px; color:var(--ink) }
.steps .dot::before{ content:counter(st) }
.st1 .dot{ background:var(--ochre-l) } .st2 .dot{ background:var(--cad) } .st3 .dot{ background:var(--terra); color:#FFF8F2 } .st4 .dot{ background:#C9D3F7 }
.steps b{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 40; font-size:clamp(22px,2vw,28px); line-height:1.1 }
.steps .min{ font-family:var(--hand); font-weight:500; font-variation-settings:"INFM" 90; font-size:16px; color:var(--cad) }
.steps p{ font-size:16.5px; line-height:1.5; color:rgba(251,248,241,.9) }
@keyframes paintIn{ from{ clip-path:inset(0 100% 0 0) } to{ clip-path:inset(0 0 0 0) } }
.js:not(.still):not(.noanim) .kak:not(.in) .lesson{ clip-path:inset(0 100% 0 0) }
.js:not(.still):not(.noanim) .kak:not(.in) .steps li{ opacity:0 }
.js:not(.still) .kak.in .lesson{ animation:paintIn 1.7s cubic-bezier(.45,.05,.3,1) both }
.js:not(.still) .kak.in .steps li{ animation:rise .8s cubic-bezier(.2,.8,.2,1) backwards }
.js:not(.still) .kak.in .st1{ animation-delay:.25s } .js:not(.still) .kak.in .st2{ animation-delay:.5s } .js:not(.still) .kak.in .st3{ animation-delay:.85s } .js:not(.still) .kak.in .st4{ animation-delay:1.4s }
@media (min-width:900px){ .steps{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px } .steps li{ grid-template-columns:minmax(0,1fr) } .steps .dot{ grid-row:auto; margin-bottom:10px } }

/* ---------- 4. работы учеников: лента со скотчем ---------- */
.works{ padding-bottom:clamp(40px,7vw,100px) }
.works-head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 28px; margin-bottom:clamp(24px,4vw,48px) }
.works-head h2{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 45, "BNCE" 25; font-size:clamp(44px,11vw,108px); line-height:.92; letter-spacing:-.03em; color:var(--ultra) }
.hand{ font-family:var(--hand); font-weight:500; font-variation-settings:"INFM" 100, "BNCE" 30; font-size:clamp(18px,1.6vw,23px); color:var(--ink-2) }
.track{ display:flex; gap:22px; padding:22px var(--gut-r) 30px var(--gut-l); overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-left:var(--gut-l); scrollbar-width:none; -webkit-overflow-scrolling:touch }
.track::-webkit-scrollbar{ display:none }
.track:focus-visible{ outline-offset:-6px }
.work{ flex:none; position:relative; width:clamp(230px,66vw,320px); margin:0; padding:10px 10px 14px; background:#FFFEFA; scroll-snap-align:start; transform:rotate(var(--r));
  box-shadow:0 28px 44px -30px rgba(20,24,58,.6), 0 2px 6px rgba(20,24,58,.06); transition:transform .45s cubic-bezier(.3,1.5,.5,1) }
.work:nth-child(odd){ --r:-1.4deg } .work:nth-child(even){ --r:1.2deg; margin-top:22px }
.work canvas{ display:block; width:100%; height:auto; aspect-ratio:4 / 5; background:#F3EEE2 }
.work canvas.painted{ animation:wetIn .9s ease-out both }
@keyframes wetIn{ from{ opacity:0; filter:blur(6px) saturate(.5) } }
.work .tape{ position:absolute; z-index:2; top:-13px; left:50%; width:92px; height:26px; margin-left:-46px; background:rgba(255,226,122,.72); transform:rotate(-3deg); box-shadow:0 1px 2px rgba(0,0,0,.05) }
.work figcaption{ margin-top:10px; font-family:var(--sign); font-size:21px; line-height:1.15; color:#3D404C }
.work figcaption span{ display:block; margin-top:2px; font-family:var(--sans); font-size:14px; color:#666A7E }
.swipe{ display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:0 var(--gut-r) 0 var(--gut-l); font-family:var(--hand); font-weight:500; font-variation-settings:"INFM" 90; font-size:16px; color:var(--ink-2) }
.swipe svg{ width:44px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round }
.js:not(.still) .swipe svg{ animation:nudgeX 2.4s ease-in-out 1.5s infinite }
@keyframes nudgeX{ 0%,70%,100%{ transform:none } 80%{ transform:translateX(6px) } 90%{ transform:translateX(-2px) } }
.js:not(.still):not(.noanim) .works:not(.in) .work{ opacity:0 }
@keyframes workIn{ 0%{ opacity:0; transform:translateY(90px) rotate(calc(var(--r) * -6)) } 60%{ opacity:1; transform:translateY(-6px) rotate(calc(var(--r) * 1.6)) } 100%{ transform:rotate(var(--r)) } }
.js:not(.still) .works.in .work{ animation:workIn 1.1s cubic-bezier(.2,.75,.25,1) backwards }
.js:not(.still) .works.in .work:nth-child(2){ animation-delay:.09s } .js:not(.still) .works.in .work:nth-child(3){ animation-delay:.18s } .js:not(.still) .works.in .work:nth-child(4){ animation-delay:.27s }
.js:not(.still) .works.in .work:nth-child(5){ animation-delay:.36s } .js:not(.still) .works.in .work:nth-child(6){ animation-delay:.45s } .js:not(.still) .works.in .work:nth-child(7){ animation-delay:.54s } .js:not(.still) .works.in .work:nth-child(8){ animation-delay:.63s }
@media (hover:hover) and (pointer:fine){ .work:hover{ transform:rotate(0deg) translateY(-8px) scale(1.02) } }
/* ПК: лента едет вбок, пока страница листается вниз (закреплённый экран, как в витрине) */
@media (min-width:1024px){
  .work{ width:clamp(260px,22vw,380px) }
  .works.pin{ padding:0 }
  .works.pin .works-pin{ position:sticky; top:0; height:100vh; height:100svh; display:flex; flex-direction:column; justify-content:center; overflow:hidden; padding-top:var(--bar-h) }
  .works.pin .track{ overflow:visible; scroll-snap-type:none; will-change:transform }
  .works.pin .swipe{ display:none }
  .still .track, .noanim .track{ flex-wrap:wrap; justify-content:center; overflow:visible }
  .still .swipe, .noanim .swipe{ display:none }
}

/* ---------- 5. цены: наклейки на светлой охре ---------- */
.prices{ display:grid; grid-template-columns:minmax(0,1fr); gap:30px 26px; align-items:start }
.pc{ position:relative; display:flex; flex-direction:column; gap:12px; padding:30px 24px 26px; border-radius:22px 30px 20px 28px; transform:rotate(var(--r)); box-shadow:0 26px 40px -30px rgba(60,40,10,.6) }
.pc1{ --r:-1.2deg; --r0:-10deg; background:var(--terra); color:#FFF8F2 }
.pc2{ --r:.8deg; --r0:9deg; background:#FFFEFA; color:var(--ink) }
.pc3{ --r:-.6deg; --r0:-7deg; background:var(--ultra); color:var(--paper) }
.pc h3{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 40, "BNCE" 20; font-size:clamp(26px,6vw,34px); line-height:1.05 }
.pc .sum{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 30, "BNCE" 25; font-size:clamp(52px,13vw,76px); line-height:.95; letter-spacing:-.02em }
.pc .sum-sm{ font-family:var(--hand); font-weight:600; font-variation-settings:"INFM" 80; font-size:20px; color:var(--ink-2) }
.pc > p:last-child{ font-size:16.5px; line-height:1.5 }
.rows{ display:grid; gap:0 }
.rows li{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:0 12px; padding:12px 0; border-top:1.5px dashed rgba(20,24,58,.22) }
.rows span{ font-family:var(--hand); font-weight:700; font-variation-settings:"INFM" 60; font-size:21px }
.rows b{ font-family:var(--hand); font-weight:800; font-size:24px }
.rows i{ grid-column:1 / -1; font-style:normal; font-size:14.5px; color:#555A74 }
.js:not(.still):not(.noanim) .ceny:not(.in) .pc{ opacity:0 }
.js:not(.still) .ceny.in .pc{ animation:fallIn 1.15s cubic-bezier(.2,.75,.25,1) backwards }
.js:not(.still) .ceny.in .pc2{ animation-delay:.14s } .js:not(.still) .ceny.in .pc3{ animation-delay:.28s }
@media (min-width:900px){ .prices{ grid-template-columns:repeat(3,minmax(0,1fr)) } .pc{ padding:36px 30px 30px } }

/* ---------- 6. пробное занятие ---------- */
.pr-in{ display:grid; grid-template-columns:minmax(0,1fr); gap:34px; align-items:center }
.pr-copy{ display:flex; flex-direction:column; align-items:flex-start; gap:20px }
.pr-copy h2{ font-family:var(--hand); font-weight:800; font-variation-settings:"INFM" 45, "BNCE" 25; font-size:clamp(44px,11vw,108px); line-height:.92; letter-spacing:-.03em }
.pr-lead{ max-width:40ch; font-size:clamp(17px,1.4vw,20px); line-height:1.5; color:rgba(251,248,241,.9) }
.checks{ display:grid; gap:12px; max-width:46ch }
.checks li{ position:relative; padding-left:38px; font-size:17px; line-height:1.45 }
.checks li::before{ content:""; position:absolute; left:0; top:-1px; width:26px; height:26px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 14 C 7 16, 9 19, 11 21 C 14 14, 18 8, 23 4' fill='none' stroke='%23FFC72C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat }
.probnoe .btn{ --acc:var(--cad); --acc-fg:var(--ink); min-height:62px; padding:0 42px; font-size:18px; margin-top:6px }
.badge{ justify-self:center; display:grid; place-content:center; justify-items:center; width:clamp(170px,44vw,260px); aspect-ratio:1; border-radius:50%; background:var(--red); color:#FFFFFF; text-align:center;
  font-family:var(--hand); font-weight:800; font-variation-settings:"BNCE" 40, "INFM" 40; transform:rotate(12deg); box-shadow:0 26px 50px -20px rgba(5,8,40,.6) }
.badge span{ font-size:clamp(20px,4.6vw,28px); line-height:1 }
.badge b{ font-size:clamp(46px,11vw,72px); line-height:1; letter-spacing:-.02em }
@keyframes badgeIn{ from{ opacity:0; transform:scale(.2) rotate(200deg) } 70%{ opacity:1; transform:scale(1.08) rotate(4deg) } to{ transform:rotate(12deg) } }
.js:not(.still):not(.noanim) .probnoe:not(.in) .badge{ opacity:0 }
.js:not(.still) .probnoe.in .badge{ animation:badgeIn 1.1s cubic-bezier(.2,.8,.3,1.2) .25s backwards }
.js:not(.still) .probnoe .badge{ transition:transform .5s }
@media (min-width:900px){ .pr-in{ grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr) } .badge{ justify-self:end } }

/* ---------- 7. частые вопросы ---------- */
.qa{ display:grid; max-width:980px; border-top:1.5px solid rgba(20,24,58,.18) }
.qa details{ border-bottom:1.5px solid rgba(20,24,58,.18) }
.qa summary{ position:relative; display:flex; align-items:center; min-height:64px; padding:12px 54px 12px 0; cursor:pointer; list-style:none;
  font-family:var(--hand); font-weight:700; font-variation-settings:"INFM" 55; font-size:clamp(20px,2.2vw,26px); line-height:1.2; color:var(--ink) }
.qa summary::-webkit-details-marker{ display:none }
.qa summary::after{ content:""; position:absolute; right:4px; top:50%; width:34px; height:34px; margin-top:-17px; border-radius:46% 54% 60% 40% / 50% 40% 60% 50%; background:var(--cad);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 0 C 27 0 34 7 34 17 C 34 27 27 34 17 34 C 7 34 0 27 0 17 C 0 7 7 0 17 0 Z M16 9 C 16.5 13 16.5 20 16 25 L 18.6 25 C 18.3 20 18.3 13 18.6 9 Z M9 15.8 C 13 16.3 21 16.3 25 15.8 L 25 18.4 C 21 18 13 18 9 18.4 Z' fill-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 0 C 27 0 34 7 34 17 C 34 27 27 34 17 34 C 7 34 0 27 0 17 C 0 7 7 0 17 0 Z M16 9 C 16.5 13 16.5 20 16 25 L 18.6 25 C 18.3 20 18.3 13 18.6 9 Z M9 15.8 C 13 16.3 21 16.3 25 15.8 L 25 18.4 C 21 18 13 18 9 18.4 Z' fill-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .35s cubic-bezier(.3,1.5,.5,1), background-color .25s }
.qa details[open] summary::after{ transform:rotate(45deg); background:var(--terra) }
.qa summary:focus-visible{ outline-offset:2px }
.qa details p{ max-width:62ch; padding:0 0 20px; font-size:17px; line-height:1.55; color:var(--ink-2) }
.js:not(.still) .qa details[open] p{ animation:rise .45s ease-out both }
@media (min-width:1024px){
  .faq .wrap{ display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:0 clamp(32px,5vw,96px); align-items:start }
  .faq .sec-head{ position:sticky; top:calc(var(--bar-h) + 24px); flex-direction:column; align-items:flex-start }
  .faq .qa{ max-width:none }
}

/* ---------- подвал ---------- */
.foot{ position:relative; z-index:3; padding:56px 0 max(36px, env(safe-area-inset-bottom, 0px)); background:var(--ink); color:rgba(251,248,241,.82) }
.foot::before{ content:""; position:absolute; left:0; right:0; top:-26px; height:28px; background:var(--ink); -webkit-mask:url("edge.svg") 0 0/100% 100% no-repeat; mask:url("edge.svg") 0 0/100% 100% no-repeat }
.foot-in{ display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start }
.foot .logo{ color:var(--paper); font-size:34px; --logo-dab:var(--cad) }
.foot-nav{ display:flex; flex-wrap:wrap; gap:2px 6px; margin-left:-12px }
.foot-nav a{ display:inline-flex; align-items:center; min-height:44px; padding:0 12px; border-radius:999px; text-decoration:none; font-size:16px }
.foot-nav a:hover{ background:rgba(251,248,241,.1) }
.foot .btn{ --acc:var(--cad); --acc-fg:var(--ink); justify-self:start }
.foot-end{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; padding-top:20px; border-top:1px solid rgba(251,248,241,.14); font-size:15px }
.calm{ display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 18px; border:1.5px solid rgba(251,248,241,.3); border-radius:999px; background:transparent; color:inherit; font-size:15px }
.calm::before{ content:""; width:30px; height:18px; flex:none; border-radius:999px; background:rgba(251,248,241,.25); box-shadow:inset 3px 0 0 0 var(--paper); transition:background .2s }
.calm[aria-pressed="true"]::before{ background:var(--cad); box-shadow:inset -14px 0 0 -2px var(--ink) }
@media (min-width:900px){ .foot-in{ grid-template-columns:auto minmax(0,1fr) auto; align-items:center } .foot-nav{ justify-content:center; margin:0 } .foot-end{ grid-column:1 / -1 } }

.menu{ --sheet-bg:var(--ultra); --sheet-fg:var(--paper) }
.menu .x{ background:rgba(251,248,241,.14) }
.menu .btn{ --acc:var(--cad); --acc-fg:var(--ink) }

/* кисть-курсор (только мышь и только с анимацией): жёлтая капля следом за указателем */
.cur{ display:none }
@media (hover:hover) and (pointer:fine){
  .js:not(.still) .cur{ display:block; position:fixed; z-index:90; left:0; top:0; width:20px; height:20px; margin:-10px 0 0 -10px; pointer-events:none; border-radius:46% 54% 60% 40% / 50% 40% 60% 50%;
    background:var(--cad); opacity:0; transform:translate3d(-100px,-100px,0); transition:width .25s, height .25s, margin .25s, opacity .25s, background-color .25s }
  .js:not(.still) .cur.on{ opacity:.9 }
  .js:not(.still) .cur.big{ width:46px; height:46px; margin:-23px 0 0 -23px; opacity:.45 }
  .js:not(.still) .cur.paper{ mix-blend-mode:multiply; background:var(--ochre) }
}

/* ---------- ПК ---------- */
@media (min-width:900px){
  .hero-in{ grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr); grid-template-areas:"h h" "lead note" "hint hint"; column-gap:4vw; row-gap:clamp(18px,3.4vh,40px);
    padding-top:clamp(96px,15vh,170px); padding-bottom:clamp(56px,9vh,100px) }
  .h1{ font-size:clamp(80px,12.4vw,232px); line-height:.86 }
  .ln2 .w{ display:inline-block } .ln2{ padding-left:.86em } .ln2 .po{ margin-left:0; margin-right:.24em; font-size:1em; line-height:inherit }
  .note{ align-self:start; max-width:25ch; font-size:clamp(16px,1.3vw,20px); margin-left:0 }
  .note .arr{ left:-58px; right:auto; top:-62px; transform:rotate(8deg) }
  .lead{ flex-direction:row; flex-wrap:wrap; align-items:flex-end; gap:16px clamp(24px,3vw,48px) }
  .act{ align-items:flex-start }
  .hero .btn{ width:auto }
  .price{ padding-left:6px; text-align:left }
  .hint{ justify-self:start; font-size:15px }
}
@media (max-width:380px){ .hero-in{ row-gap:18px; padding-top:84px } .note{ font-size:16px } }
/* ---------- телефоны (13.11.2026, проверка копии на телефонах) ----------
   Телефон: последняя буква «мокрому» упиралась в правый край (на 320 — вылезала на 2 точки, на 360–430 — на 1) —
   заголовок мельче на 5 %, справа запас как слева.
   Телефон в повороте (высота окна до 520 точек): заголовок был по высоте экрана на букву (до 128 точек, три строки — почти
   три экрана листать до кнопки). Теперь — как на ПК, в две строки, размер от высоты экрана, записка рядом с текстом. */
@media (max-width:599px){ .h1{ font-size:clamp(52px,19.3vw,128px) } }
@media (min-width:600px) and (max-height:520px){
  .hero-in{ grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr); grid-template-areas:"h h" "lead note" "hint hint"; column-gap:4vw; row-gap:14px; padding-top:80px; padding-bottom:22px }
  .h1{ font-size:clamp(44px,22svh,104px); line-height:.86 }
  .ln2 .w{ display:inline-block } .ln2{ padding-left:.86em } .ln2 .po{ margin-left:0; margin-right:.24em; font-size:1em; line-height:inherit }
  .note{ align-self:start; max-width:25ch; font-size:16px; margin-left:0 }
  .note .arr{ display:none }
  .lead{ flex-direction:row; flex-wrap:wrap; align-items:flex-end; gap:12px 24px }
  .act{ align-items:flex-start }
  .hero .btn{ width:auto; min-height:52px }
  .price{ padding-left:6px; text-align:left }
  .hint{ justify-self:start }
}
/* телефон (13.11.2026): наведения нет — работа, что сейчас посередине ленты, сама выпрямляется и приподнимается, как под курсором на ПК */
@media (hover:none), (pointer:coarse){ .work.mid{ transform:rotate(0deg) translateY(-8px) scale(1.02) } }
