/* Ariadna Russu Studio · дизайн-код «Профиль» (концепт 06). Светлая тема по умолчанию. */
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{color-scheme:light;
  --bg:#ffffff; --bg-2:#f6f6f7; --card:#ffffff; --ink:#141416; --ink-2:#4a4a52; --ink-3:#6c6c75;
  --line:#e8e8eb; --accent:#c8436e; --accent-ink:#ffffff; --accent-soft:#fbeef2; --ok:#1f8a5b;
  --ring:linear-gradient(135deg,#f4b6c6,#e7859f 40%,#c8436e 70%,#f0c9a6);
  --shadow:0 1px 2px rgba(20,20,22,.04),0 8px 24px rgba(20,20,22,.06);
  --r:16px; --ease:cubic-bezier(.2,.7,.2,1);
  --safe-b:env(safe-area-inset-bottom,0px);
}
html[data-theme="dark"]{
  --bg:#0f0f11; --bg-2:#18181b; --card:#1b1b1f; --ink:#f3f3f5; --ink-2:#c3c3ca; --ink-3:#9a9aa3;
  --line:#2a2a2f; --accent:#ec7a9c; --accent-ink:#1a0a10; --accent-soft:#2a1820; --ok:#5cc79a;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
em,i{font-style:normal}
h1,h2,h3,h4,p,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--bg);padding:8px 14px;border-radius:10px;z-index:99}
.skip:focus{left:8px}
.wrap{width:min(100% - 32px,960px);margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top bar */
.top{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:16px;height:60px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:600;letter-spacing:-.01em}
.brand{min-width:0}
.brand .mark,.brand img{flex:none}
.brand>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mark{width:28px;height:28px;border-radius:50%;background:var(--ring);display:grid;place-items:center;color:#fff;font-weight:700;font-size:13px}
.top nav{margin-left:auto;display:flex;gap:4px}
.top nav a{text-decoration:none;font-size:15px;color:var(--ink-2);padding:8px 12px;border-radius:10px}
.top nav a:hover{background:var(--bg-2);color:var(--ink)}
.tools{display:flex;align-items:center;gap:6px}
.lang{display:flex;background:var(--bg-2);border-radius:10px;padding:3px}
.lang button{border:0;background:none;font-size:13px;font-weight:600;color:var(--ink-3);padding:5px 9px;border-radius:8px;min-height:30px}
.lang button[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.icon-btn{width:40px;height:40px;border-radius:12px;border:0;background:none;display:grid;place-items:center;color:var(--ink)}
.icon-btn:hover{background:var(--bg-2)}
.icon-btn svg,.ico{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* profile header */
.profile{display:grid;grid-template-columns:auto 1fr;gap:0 56px;padding:40px 0 28px;align-items:start}.profile .avatar{grid-row:1/3}.p-rest{grid-column:2}
.avatar{width:150px;height:150px;border-radius:50%;padding:4px;background:var(--ring);display:block;border:0;position:relative}
.avatar span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;border:4px solid var(--bg);background:linear-gradient(160deg,#fbe9ee,#f3d3dc);color:#9a2f52;font-size:44px;font-weight:600;letter-spacing:-.03em}
html[data-theme="dark"] .avatar span{background:linear-gradient(160deg,#3a2028,#2a171e);color:#f6a9c0}
.avatar small{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;border:3px solid var(--bg);white-space:nowrap}
.p-name{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.p-name h1{font-size:24px;font-weight:600;letter-spacing:-.02em}
.verified{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-3)}
.open-now{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--ok);background:color-mix(in srgb,var(--ok) 12%,transparent);padding:4px 10px;border-radius:999px}
.open-now::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.stats{display:flex;gap:32px;margin:18px 0 16px}
.stats li{font-size:15px;color:var(--ink-2)}
.stats b{display:block;font-size:20px;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.bio{max-width:520px;color:var(--ink-2)}
.bio b{display:block;color:var(--ink);font-weight:600}
.bio a{color:var(--ink);font-weight:500;text-decoration:none}
.actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:12px;border:0;font-weight:600;font-size:15px;text-decoration:none;transition:transform .15s var(--ease),background-color .2s}
.btn:active{transform:scale(.97)}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-soft{background:var(--bg-2);color:var(--ink)}
.btn-soft:hover{background:var(--line)}
.btn .ico{width:18px;height:18px}

/* highlights */
.hl{display:flex;gap:22px;overflow-x:auto;padding:8px 0 24px;scrollbar-width:none;scroll-snap-type:x proximity}
.hl::-webkit-scrollbar{display:none}
.hl button{border:0;background:none;display:grid;justify-items:center;gap:8px;flex:0 0 auto;scroll-snap-align:start;padding:0}
.hl .c{width:72px;height:72px;border-radius:50%;padding:3px;border:1px solid var(--line);display:grid;place-items:center}
.hl .c i{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;background:var(--bg-2)}
.hl .c svg{width:28px;height:28px;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hl span{font-size:13px;color:var(--ink-2);max-width:80px;text-align:center}
.hl button:hover .c{border-color:var(--ink-3)}

/* tabs */
.tabs{position:sticky;top:60px;z-index:20;background:var(--bg);border-top:1px solid var(--line);display:flex;justify-content:center;gap:4px}
.tabs button{border:0;background:none;display:flex;align-items:center;gap:8px;padding:14px 16px;font-size:14px;font-weight:600;color:var(--ink-3);border-top:2px solid transparent;margin-top:-1px}
.tabs button[aria-selected="true"]{color:var(--ink);border-top-color:var(--ink)}
.tabs svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.panel{padding:4px 0 56px}
[hidden]{display:none!important}
.panel[hidden]{display:none}
.panel-head{display:flex;justify-content:space-between;align-items:end;gap:16px;padding:20px 0 16px}
.panel-head h2{font-size:20px;font-weight:600;letter-spacing:-.01em}
.panel-head p{color:var(--ink-3);font-size:15px;margin-top:4px;max-width:560px}

/* grid of works */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:14px}
.chips::-webkit-scrollbar{display:none}
.chip{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:7px 14px;font-size:14px;font-weight:500;white-space:nowrap;min-height:36px;color:var(--ink-2)}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.tile{position:relative;aspect-ratio:1;border:0;padding:0;overflow:hidden;background:var(--bg-2);border-radius:4px}
.tile svg{width:100%;height:100%;display:block;transition:transform .4s var(--ease)}
.tile:hover svg{transform:scale(1.04)}
.tile .ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;background:rgba(10,10,12,.38);color:#fff;font-weight:600;font-size:15px;opacity:0;transition:opacity .2s}
.tile:hover .ov,.tile:focus-visible .ov{opacity:1}
.tile .ov span{display:flex;align-items:center;gap:6px}
.tile .ov svg{width:18px;height:18px;fill:#fff;stroke:none}
.tile .who{position:absolute;left:8px;bottom:8px;display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.92);color:#141416;font-size:12px;font-weight:600;padding:3px 8px 3px 3px;border-radius:999px}
.tile .who i{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#fff}

/* services */
.svc{display:grid;gap:10px}
.svc-group h3{font-size:13px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em;margin:18px 0 8px}
.row{display:grid;grid-template-columns:1fr auto auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--card)}
.row h4{font-size:16px;font-weight:600}
.row p{font-size:14px;color:var(--ink-3);margin-top:2px}
.row .price{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.row .price small{display:block;font-weight:400;font-size:13px;color:var(--ink-3)}
.add{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);display:grid;place-items:center}
.add svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.add[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.note{font-size:14px;color:var(--ink-3);margin-top:16px;max-width:640px}

/* masters */
.masters{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.m-card{border:1px solid var(--line);border-radius:20px;padding:18px;background:var(--card);display:grid;grid-template-columns:auto 1fr;gap:14px 16px;align-items:center}
.m-ava{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;font-size:22px;position:relative}
.m-ava.online::after{content:"";position:absolute;right:2px;bottom:2px;width:14px;height:14px;border-radius:50%;background:var(--ok);border:3px solid var(--card)}
.m-card h3{font-size:17px;font-weight:600}
.m-card .role{font-size:14px;color:var(--ink-3)}
.m-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.m-meta span{font-size:13px;background:var(--bg-2);color:var(--ink-2);padding:4px 10px;border-radius:999px}
.m-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.m-strip svg{width:100%;aspect-ratio:1;display:block;border-radius:6px}
.m-foot{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.m-foot .next{font-size:14px;color:var(--ink-2)}
.m-foot .next b{color:var(--ink)}

/* reviews */
.rv-sum{display:flex;align-items:center;gap:24px;padding:20px;border-radius:20px;background:var(--bg-2);margin-bottom:12px;flex-wrap:wrap}
.rv-sum .big{font-size:44px;font-weight:600;letter-spacing:-.03em;line-height:1}
.stars{color:#e0a100;letter-spacing:2px}
.bars{flex:1;min-width:200px;display:grid;gap:4px}
.bars div{display:grid;grid-template-columns:24px 1fr 32px;gap:8px;align-items:center;font-size:13px;color:var(--ink-3)}
.bars i{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.bars i b{display:block;height:100%;background:var(--ink)}
.reviews{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.rv{border:1px solid var(--line);border-radius:20px;padding:18px;background:var(--card);display:grid;gap:10px;align-content:start}
.rv header{display:flex;gap:10px;align-items:center}
.rv .a{width:36px;height:36px;border-radius:50%;background:var(--bg-2);display:grid;place-items:center;font-weight:600;font-size:14px;color:var(--ink-2)}
.rv header b{display:block;font-size:15px}
.rv header small{color:var(--ink-3);font-size:13px}
.rv p{color:var(--ink-2)}
.rv .ph{display:flex;gap:6px}
.rv .ph svg{width:64px;height:64px;border-radius:10px}
.rv .reply{font-size:14px;color:var(--ink-2);background:var(--bg-2);padding:10px 12px;border-radius:12px}
.rv .reply b{color:var(--ink)}

/* courses & gifts */
.courses{display:grid;gap:12px}
.course{display:grid;grid-template-columns:88px 1fr auto;gap:18px;align-items:center;border:1px solid var(--line);border-radius:20px;padding:16px;background:var(--card)}
.date{border-radius:16px;background:var(--accent-soft);color:var(--accent);text-align:center;padding:12px 6px}
.date b{display:block;font-size:28px;line-height:1;font-weight:600}
.date span{font-size:13px;font-weight:500}
.course h3{font-size:17px;font-weight:600}
.course p{font-size:14px;color:var(--ink-3);margin-top:4px}
.seats{display:flex;gap:4px;margin-top:10px;align-items:center;font-size:13px;color:var(--ink-2)}
.seats i{width:18px;height:6px;border-radius:3px;background:var(--line)}
.seats i.f{background:var(--accent)}
.course .price{text-align:right;font-weight:600;white-space:nowrap}
.course .price small{display:block;font-weight:400;color:var(--ink-3);font-size:13px;margin-bottom:8px}
.gift{display:grid;grid-template-columns:1.1fr 1fr;gap:16px}
.g-card{aspect-ratio:1.6;border-radius:22px;padding:22px;background:linear-gradient(135deg,#fbe3ea,#f6c9d6 45%,#f3dccb);color:#3b1422;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow)}
.g-card .t{display:flex;justify-content:space-between;font-weight:600;font-size:14px}
.g-card .sum{font-size:44px;font-weight:600;letter-spacing:-.03em;line-height:1}
.g-card .sum small{font-size:18px;font-weight:500}
.g-form{display:grid;gap:14px;align-content:start}
.g-form h3{font-size:17px;font-weight:600}
.seg{display:grid;grid-template-columns:repeat(4,1fr);background:var(--bg-2);border-radius:12px;padding:3px}
.seg button{border:0;background:none;padding:10px 0;border-radius:10px;font-weight:600;font-size:15px;color:var(--ink-2)}
.seg button[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.shop{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}
.prod{border:1px solid var(--line);border-radius:18px;padding:14px;background:var(--card)}
.prod .pic{aspect-ratio:1.3;border-radius:12px;background:var(--bg-2);display:grid;place-items:center;margin-bottom:12px}
.prod .pic svg{width:56%;height:auto}
.prod h4{font-size:15px;font-weight:600}
.prod p{font-size:13px;color:var(--ink-3)}
.prod .pr{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-weight:600}

/* contacts */
.contact{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;padding:8px 0 48px}
.map{border-radius:22px;overflow:hidden;background:var(--bg-2);min-height:280px;position:relative;border:1px solid var(--line)}
.map svg{position:absolute;inset:0;width:100%;height:100%}
.c-list{display:grid;gap:10px;align-content:start}
.c-item{display:flex;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:16px;text-decoration:none;background:var(--card)}
.c-item .ci{width:40px;height:40px;border-radius:12px;background:var(--bg-2);display:grid;place-items:center;flex:0 0 auto}
.c-item b{display:block;font-weight:600;font-size:15px}
.c-item small{color:var(--ink-3);font-size:14px}
.hours{border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:var(--card);font-size:15px}
.hours div{display:flex;justify-content:space-between;padding:4px 0;color:var(--ink-2)}
.hours div.today{color:var(--ink);font-weight:600}

/* footer */
footer.site{border-top:1px solid var(--line);padding:32px 0 calc(32px + var(--safe-b));color:var(--ink-3);font-size:14px}
footer.site .cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
footer.site h4{color:var(--ink);font-size:14px;font-weight:600;margin-bottom:8px}
footer.site li{margin:6px 0}
footer.site a{text-decoration:none}
footer.site a:hover{color:var(--ink)}
footer.site .legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.sub{display:flex;gap:6px;margin-top:8px}
.sub input{flex:1;min-width:0;min-height:40px;border:1px solid var(--line);background:var(--card);border-radius:10px;padding:0 12px;font:inherit;color:var(--ink)}

/* tab bar (mobile) */

/* modal / sheet */
.scrim{position:fixed;inset:0;background:rgba(10,10,12,.45);z-index:60;opacity:0;pointer-events:none;transition:opacity .25s}
.scrim.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;z-index:61;left:50%;top:50%;width:min(560px,calc(100% - 32px));max-height:min(760px,calc(100% - 48px));transform:translate(-50%,-46%) scale(.98);opacity:0;pointer-events:none;background:var(--card);border-radius:24px;box-shadow:0 24px 80px rgba(0,0,0,.25);display:flex;flex-direction:column;transition:transform .3s var(--ease),opacity .25s}
.sheet.on{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
.sheet-h{display:flex;align-items:center;gap:12px;padding:16px 16px 12px 20px;border-bottom:1px solid var(--line)}
.sheet-h h2{font-size:17px;font-weight:600;flex:1}
.sheet-b{padding:16px 20px 20px;overflow:auto}
.grab{display:none}
.steps{display:flex;gap:4px;padding:0 20px 12px}
.steps i{flex:1;height:3px;border-radius:2px;background:var(--line)}
.steps i.on{background:var(--accent)}
.opt{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;width:100%;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);margin-bottom:8px}
.opt:hover{border-color:var(--ink-3)}
.opt[aria-pressed="true"]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}
.opt b{display:block;font-weight:600}
.opt small{color:var(--ink-3);font-size:14px}
.opt .pr{font-weight:600;white-space:nowrap}
.days{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;margin-bottom:14px}
.days::-webkit-scrollbar{display:none}
.day{flex:0 0 58px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:8px 0;text-align:center}
.day small{display:block;font-size:12px;color:var(--ink-3)}
.day b{font-size:18px;font-weight:600}
.day[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.day[aria-pressed="true"] small{color:inherit;opacity:.75}
.day:disabled{opacity:.4;cursor:not-allowed}
.times{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.time{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:10px 0;font-weight:600;font-variant-numeric:tabular-nums}
.time[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.lbl{font-size:13px;font-weight:600;color:var(--ink-3);margin:4px 0 8px;display:block}
.field{display:grid;gap:6px;margin-bottom:12px}
.field input{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font:inherit;background:var(--card);color:var(--ink)}
.field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.summary{background:var(--bg-2);border-radius:16px;padding:14px 16px;margin-bottom:14px;display:grid;gap:6px;font-size:15px}
.summary div{display:flex;justify-content:space-between;gap:12px}
.summary span{color:var(--ink-3)}
.sheet-f{padding:12px 20px calc(16px + var(--safe-b));border-top:1px solid var(--line);display:flex;gap:8px}
.sheet-f .btn{flex:1}
.btn:disabled{opacity:.45;cursor:not-allowed}
.done{text-align:center;padding:20px 0 8px}
.done .tick{width:72px;height:72px;border-radius:50%;background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ok);display:grid;place-items:center;margin:0 auto 16px}
.done .tick svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.done h3{font-size:22px;font-weight:600;letter-spacing:-.02em}
.done p{color:var(--ink-2);margin-top:6px}

/* post viewer */
.post{position:fixed;z-index:61;left:50%;top:50%;width:min(920px,calc(100% - 32px));transform:translate(-50%,-46%);opacity:0;pointer-events:none;background:var(--card);border-radius:20px;overflow:hidden;display:grid;grid-template-columns:1.15fr 1fr;box-shadow:0 24px 80px rgba(0,0,0,.3);transition:transform .3s var(--ease),opacity .25s}
.post.on{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
.post .pic{background:var(--bg-2);aspect-ratio:1}
.post .pic svg{width:100%;height:100%;display:block}
.post .side{display:flex;flex-direction:column}
.post .ph{display:flex;align-items:center;gap:10px;padding:14px 12px 14px 16px;border-bottom:1px solid var(--line)}
.post .ph .m-ava{width:36px;height:36px;font-size:14px}
.post .ph b{display:block;font-size:15px}
.post .ph small{color:var(--ink-3);font-size:13px}
.post .pb{padding:16px;flex:1;overflow:auto;display:grid;gap:12px;align-content:start}
.post .pb p{color:var(--ink-2)}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tags span{font-size:13px;background:var(--bg-2);padding:4px 10px;border-radius:999px;color:var(--ink-2)}
.post .pf{padding:12px 16px 16px;border-top:1px solid var(--line);display:grid;gap:12px}
.likes{display:flex;align-items:center;gap:10px}
.like{border:0;background:none;padding:6px;margin:-6px;display:grid;place-items:center}
.like svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:1.8;transition:transform .2s var(--ease)}
.like[aria-pressed="true"] svg{fill:#e5395b;stroke:#e5395b;transform:scale(1.08)}
.likes b{font-size:15px}
.toast{position:fixed;left:50%;bottom:calc(96px + var(--safe-b));transform:translate(-50%,20px);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:14px;font-size:15px;font-weight:500;opacity:0;pointer-events:none;transition:.25s var(--ease);z-index:80;max-width:calc(100% - 32px)}
.toast.on{opacity:1;transform:translate(-50%,0)}
.cartbar{position:fixed;left:50%;bottom:calc(24px + var(--safe-b));transform:translate(-50%,24px);opacity:0;visibility:hidden;z-index:40;background:var(--ink);color:var(--bg);border-radius:18px;padding:8px 8px 8px 18px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow);transition:transform .3s var(--ease),opacity .2s,visibility .2s;width:min(480px,calc(100% - 32px))}
.cartbar.on{transform:translate(-50%,0);opacity:1;visibility:visible}
.cartbar div{flex:1;font-size:15px}
.cartbar small{display:block;opacity:.7;font-size:13px}
.cartbar .btn{background:var(--accent);color:var(--accent-ink)}

@media (max-width:760px){
  .top nav{display:none}
  .top .wrap{height:56px}
  .tabs{top:56px}
  html{scroll-padding-top:110px}
  .profile{grid-template-columns:auto 1fr;gap:14px 20px;padding:20px 0 12px;align-items:center}
  .avatar{width:88px;height:88px;padding:3px}
  .avatar span{font-size:26px;border-width:3px}
  .avatar small{font-size:10px;padding:1px 6px}
  .p-name h1{font-size:19px}
  .stats{gap:18px;margin:10px 0 0}
  .stats li{font-size:13px}
  .stats b{font-size:17px}
  .profile .avatar{grid-row:auto}
  .p-rest{grid-column:1/-1}
  .p-name{gap:6px}
  .actions{display:flex;flex-wrap:nowrap}
  .actions>.btn{flex:1 1 0;min-width:0;padding:0 12px}
  .actions .call,.actions:has([data-book]) [data-open="write"]{flex:0 0 44px;width:44px;padding:0;font-size:0;gap:0}
  .actions .call .ico,.actions [data-open="write"] .ico{width:20px;height:20px}
  .hl{gap:16px;padding-bottom:16px}
  .hl .c{width:64px;height:64px}
  .tabs{justify-content:space-between;gap:0}
  .tabs button{flex:1;justify-content:center;padding:12px 4px;font-size:0;gap:0}
  .tabs svg{width:22px;height:22px}
  .grid{gap:2px}
  .tile{border-radius:0}
  .tile .who{display:none}
  .masters,.reviews,.gift,.contact{grid-template-columns:1fr}
  .row{grid-template-columns:1fr auto;padding:12px 14px}
  .row .add{grid-row:1/3;grid-column:2}
  .row .price{text-align:left;grid-column:1;display:flex;gap:8px;align-items:baseline}
  .row .price small{display:inline}
  .course{grid-template-columns:64px 1fr}
  .course .price{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;text-align:left}
  .course .price small{margin:0}
  .date b{font-size:22px}
  .shop{grid-template-columns:1fr 1fr}
  footer.site .cols{grid-template-columns:repeat(2,minmax(0,1fr))}footer.site .cols>div:last-child{grid-column:1/-1}
  .toast{bottom:calc(92px + var(--safe-b))}
  .sheet{left:0;right:0;top:auto;bottom:0;width:100%;max-height:92vh;transform:translateY(100%);border-radius:24px 24px 0 0;opacity:1}
  .sheet.on{transform:translateY(0)}
  .grab{display:block;width:40px;height:5px;border-radius:3px;background:var(--line);margin:8px auto 0}
  .post{grid-template-columns:1fr;top:auto;bottom:0;left:0;width:100%;transform:translateY(100%);border-radius:20px 20px 0 0;max-height:94vh;overflow:auto;opacity:1}
  .post.on{transform:translateY(0)}
  .post .ph{order:-1}
  .post .side{display:contents}
  .post .pf{padding-bottom:calc(16px + var(--safe-b))}
}
@media (max-width:380px){.times{grid-template-columns:repeat(3,1fr)}.lang{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* ---- дополнения к концепту: реальные фото, страницы, формы, запись, корзина, кабинет ---- */
img{max-width:100%;display:block}
.ico{display:inline-block;vertical-align:middle;flex:0 0 auto}
svg.ico use{pointer-events:none}
.tile img,.m-strip img,.post .pic img,.rv .ph img{width:100%;height:100%;object-fit:cover}
.tile picture,.post .pic picture{display:block;width:100%;height:100%}
.tile{display:block;cursor:zoom-in}
.tile .multi{position:absolute;right:8px;top:8px;width:18px;height:18px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.m-strip a{display:block;aspect-ratio:1;border-radius:6px;overflow:hidden;background:var(--bg-2)}
.m-ava{background:var(--accent);overflow:hidden}
.m-ava img{width:100%;height:100%;object-fit:cover}
.avatar img{width:100%;height:100%;border-radius:50%;border:4px solid var(--bg);object-fit:cover}
.avatar{cursor:pointer}
a.avatar{text-decoration:none}
.brand img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.brand .logo{height:28px;width:auto;border-radius:0}
.open-now.closed{color:var(--ink-3);background:var(--bg-2)}
.open-now.soon{color:#a66300;background:color-mix(in srgb,#e0a100 14%,transparent)}
.stats a{text-decoration:none}
.hl a{text-decoration:none;display:grid;justify-items:center;gap:8px;flex:0 0 auto;scroll-snap-align:start}
.hl a:hover .c{border-color:var(--ink-3)}
.tabs a{display:flex;align-items:center;gap:8px;padding:14px 16px;font-size:14px;font-weight:600;color:var(--ink-3);border-top:2px solid transparent;margin-top:-1px;text-decoration:none}
.tabs a[aria-selected="true"]{color:var(--ink);border-top-color:var(--ink)}
.tabs .ico{width:18px;height:18px}
.panel-head a.more{color:var(--ink);font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap}
.panel-head a.more:hover{text-decoration:underline}
.chip{text-decoration:none;display:inline-flex;align-items:center}
.empty{padding:28px;border:1px dashed var(--line);border-radius:var(--r);color:var(--ink-3);text-align:center}
.row h4 a{text-decoration:none}
.row h4 a:hover{text-decoration:underline}
.row .badge,.badge{display:inline-block;font-size:12px;font-weight:600;color:var(--accent);background:var(--accent-soft);padding:2px 8px;border-radius:999px;margin-left:6px;vertical-align:middle}
.add{color:var(--ink)}
.add .ico{width:18px;height:18px;stroke-width:2}
form.inline{display:inline}
.m-card h3 a{text-decoration:none}
.lvl{font-size:12px;font-weight:600;color:var(--accent);background:var(--accent-soft);padding:2px 8px;border-radius:999px;margin-left:6px}
.rv .stars{font-size:14px}
.rv-bars-fill{display:block;height:100%;background:var(--ink)}
.bars meter{width:100%;height:6px}
.bar{display:block;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.bar b{display:block;height:100%;background:var(--ink)}
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.prod{display:flex;flex-direction:column}
.prod .pic{overflow:hidden}
.prod .pic img{width:100%;height:100%;object-fit:cover}
.prod h4 a{text-decoration:none}
.prod .pr{margin-top:auto;padding-top:10px}
.gift-wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:16px}
.seg label{display:block}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{display:block;text-align:center;padding:10px 0;border-radius:10px;font-weight:600;font-size:15px;color:var(--ink-2);cursor:pointer}
.seg input:checked+span{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.seg input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.map .map-link{position:absolute;left:12px;bottom:12px}
.map-plain{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--ink-2)}
.map .map-plain svg{position:static;width:40px;height:40px;margin:0 auto}
.c-item:hover{border-color:var(--ink-3)}
.hours .note{color:var(--ink-3);font-size:13px}
.moved{background:var(--accent-soft);color:var(--ink);border-radius:var(--r);padding:14px 16px;margin:16px 0}
.banner{background:var(--bg-2);padding:10px 0;font-size:14px;text-align:center}
.banner a{font-weight:600}

/* страницы */
.page{padding:28px 0 64px}
.page-h{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.page-h h1{font-size:28px;font-weight:600;letter-spacing:-.02em}
.page-h p{color:var(--ink-3);margin-top:6px;max-width:640px}
.crumbs{font-size:14px;color:var(--ink-3);margin-bottom:12px;display:flex;flex-wrap:wrap;gap:6px}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--ink)}
.prose{max-width:720px;color:var(--ink-2)}
.prose h2{font-size:20px;font-weight:600;color:var(--ink);margin:28px 0 10px;letter-spacing:-.01em}
.prose h3{font-size:17px;font-weight:600;color:var(--ink);margin:22px 0 8px}
.prose p,.prose ul,.prose ol,.prose table,.prose blockquote{margin:0 0 14px}
.prose ul{list-style:disc;padding-left:22px}
.prose ol{list-style:decimal;padding-left:22px}
.prose li{margin:4px 0}
.prose a{color:var(--accent);font-weight:500}
.prose strong{color:var(--ink);font-weight:600}
.prose blockquote{border-left:3px solid var(--line);padding-left:14px}
.prose table{border-collapse:collapse;width:100%;font-size:15px}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:left;vertical-align:top}
.prose img{border-radius:12px;margin:12px 0}
.split{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:start}
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.gallery a{display:block;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--bg-2)}
.gallery a:first-child{grid-column:1/-1;aspect-ratio:4/5}
.gallery img{width:100%;height:100%;object-fit:cover}
.card{border:1px solid var(--line);border-radius:20px;background:var(--card);padding:18px}
.card h2,.card h3{font-size:17px;font-weight:600;margin-bottom:8px}
.facts{display:grid;gap:8px;margin:12px 0}
.facts div{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.facts span{color:var(--ink-3)}
.facts b{font-weight:600;text-align:right}
.stack{display:grid;gap:12px}
.stack-sm{display:grid;gap:8px}
.muted{color:var(--ink-3)}
.small{font-size:14px}
.center{text-align:center}
.mt{margin-top:16px}.mt2{margin-top:28px}.mb{margin-bottom:16px}
.price-big{font-size:24px;font-weight:600;letter-spacing:-.01em}
.price-big small{font-size:15px;font-weight:500;color:var(--ink-3)}
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.post-card{display:flex;flex-direction:column;gap:10px;text-decoration:none}
.post-card .pic{aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:var(--bg-2)}
.post-card .pic img{width:100%;height:100%;object-fit:cover}
.post-card h3{font-size:17px;font-weight:600}
.post-card p{font-size:14px;color:var(--ink-3)}
.post-cover{border-radius:20px;overflow:hidden;margin:12px 0 24px;aspect-ratio:16/9;background:var(--bg-2)}
.post-cover img{width:100%;height:100%;object-fit:cover}
.faq details{border:1px solid var(--line);border-radius:16px;background:var(--card);margin-bottom:8px}
.faq summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:600;display:flex;justify-content:space-between;gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:400;font-size:20px;line-height:1;color:var(--ink-3)}
.faq details[open] summary::after{content:"−"}
.faq .a{padding:0 18px 16px;color:var(--ink-2)}
.team-detail{display:grid;grid-template-columns:auto 1fr;gap:20px 28px;align-items:center;margin-bottom:24px}
.team-detail .m-ava{width:112px;height:112px;font-size:36px}
.err{padding:96px 0;text-align:center}
.err .err-code{font-size:72px;font-weight:600;color:var(--accent);letter-spacing:-.04em;line-height:1}
.err h1{font-size:20px;font-weight:500;margin:16px 0 28px;color:var(--ink-2)}
.err-page{padding:0}

/* формы */
.form{display:grid;gap:12px;max-width:520px}
.field{display:grid;gap:6px}
.field>span,.field>label{font-size:14px;font-weight:600;color:var(--ink-2)}
.field small{color:var(--ink-3);font-size:13px;font-weight:400}
.field input,.field select,.field textarea{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:0 14px;font:inherit;background:var(--card);color:var(--ink);width:100%}
.field textarea{min-height:96px;padding:12px 14px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink-2)}
.check input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent);flex:0 0 auto}
.check a{color:var(--ink);font-weight:500}
.alert{border-radius:14px;padding:12px 14px;font-size:15px;background:var(--bg-2)}
.alert.err{background:color-mix(in srgb,#d33 12%,transparent);color:var(--ink)}
.alert.ok{background:color-mix(in srgb,var(--ok) 12%,transparent)}
.btn-block{width:100%}
.btn-link{background:none;border:0;padding:0;color:var(--ink);font-weight:600;text-decoration:underline;min-height:0}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}

/* запись по шагам: и отдельная страница, и шторка */
.bk{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start}
.bk-main{min-width:0}
.bk-side{position:sticky;top:76px}
.bk h2{font-size:20px;font-weight:600;letter-spacing:-.01em;margin-bottom:4px}
.bk .sub{color:var(--ink-3);font-size:15px;margin-bottom:16px}
.bk .steps{padding:0 0 16px}
.bk-cat{font-size:13px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em;margin:18px 0 8px}
label.opt{cursor:pointer}
.opt input[type=checkbox],.opt input[type=radio]{width:22px;height:22px;accent-color:var(--accent);margin:0}
.opt:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}
.opt-sub{display:grid;gap:6px;margin:-2px 0 10px 36px}
.opt-sub label{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--ink-2)}
.opt-sub input{accent-color:var(--accent);width:18px;height:18px}
.opt .m-ava{width:44px;height:44px;font-size:16px}
a.opt{text-decoration:none}
a.day{text-decoration:none;display:block}
.day.has small::after{content:"";display:block;width:5px;height:5px;border-radius:50%;background:var(--ok);margin:3px auto 0}
.day[aria-disabled="true"]{opacity:.4;pointer-events:none}
.times form{display:contents}
.times .time{width:100%;font:inherit;font-weight:600;cursor:pointer;color:var(--ink)}
.times .time:hover{border-color:var(--ink-3)}
.no-slots{padding:20px;border-radius:16px;background:var(--bg-2);color:var(--ink-2);text-align:center}
.hold-note{font-size:14px;color:var(--ink-3);margin:-4px 0 12px}
.bk-actions{display:flex;gap:8px;margin-top:16px;position:sticky;bottom:0;background:var(--bg);padding:12px 0 calc(12px + var(--safe-b));border-top:1px solid var(--line)}
.bk-actions .btn{flex:1}
.sheet .bk{display:block}
.sheet .bk-side{display:none}
.sheet .bk-actions{background:var(--card);margin:16px -20px -20px;padding:12px 20px calc(16px + var(--safe-b))}
.sheet .page-h,.sheet .crumbs{display:none}
.cal-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:14px}

/* корзина и оформление */
.cart-row{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-row .pic{width:64px;height:64px;border-radius:12px;background:var(--bg-2);overflow:hidden;display:grid;place-items:center}
.cart-row .pic img{width:100%;height:100%;object-fit:cover}
.qty{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:12px;padding:2px}
.qty button{width:34px;height:34px;border:0;background:none;border-radius:10px;display:grid;place-items:center}
.qty button:hover{background:var(--bg-2)}
.qty b{min-width:24px;text-align:center}
.totals{display:grid;gap:6px;margin:16px 0}
.totals div{display:flex;justify-content:space-between}
.totals .grand{font-size:18px;font-weight:600;padding-top:8px;border-top:1px solid var(--line)}
.pay-opt{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer}
.pay-opt:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:var(--accent-soft)}
.pay-opt input{accent-color:var(--accent);width:20px;height:20px;margin:2px 0 0}
.pay-opt small{display:block;color:var(--ink-3);font-size:14px}

/* кабинет */
.acc-nav{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.visit{display:grid;grid-template-columns:72px 1fr auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.status{display:inline-block;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--bg-2);color:var(--ink-2)}
.status.confirmed,.status.paid,.status.published{background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ok)}
.status.cancelled,.status.no_show,.status.refunded{background:color-mix(in srgb,#d33 12%,transparent);color:#b3261e}
.status.pending,.status.new,.status.awaiting_payment{background:color-mix(in srgb,#e0a100 16%,transparent);color:#8a5a00}

/* cookie */
.cookie{position:fixed;z-index:70;left:16px;right:16px;bottom:calc(16px + var(--safe-b));max-width:560px;margin-inline:auto;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:18px}
.cookie[hidden]{display:none}
.cookie h2{font-size:16px;font-weight:600;margin-bottom:6px}
.cookie p{font-size:14px;color:var(--ink-2)}
.cookie .row-b{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.cookie .row-b .btn{flex:1;min-width:120px}
.cookie fieldset{border:0;padding:0;margin:12px 0 0;display:grid;gap:8px}
.cookie-table{width:100%;border-collapse:collapse;font-size:14px;margin-top:12px}
.cookie-table th,.cookie-table td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:left;vertical-align:top}

/* режим правки для персонала */
.edit-pill{position:fixed;z-index:65;right:24px;bottom:calc(24px + var(--safe-b))}
.edit-pill summary{list-style:none;width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--bg);display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);transition:transform .15s var(--ease),background-color .2s}
.edit-pill summary::-webkit-details-marker{display:none}
.edit-pill summary:active{transform:scale(.94)}
.edit-pill summary .ico{width:20px;height:20px}
.edit-pill:has([aria-pressed="true"]) summary{background:var(--accent);color:var(--accent-ink)}
.ep-menu{position:absolute;right:0;bottom:52px;display:grid;gap:2px;min-width:210px;padding:6px;background:var(--ink);border-radius:16px;box-shadow:var(--shadow)}
.ep-menu a,.ep-menu button{color:var(--bg);background:none;border:0;font:inherit;font-size:14px;font-weight:600;text-decoration:none;padding:8px 12px;border-radius:10px;min-height:40px;display:flex;align-items:center;gap:10px;white-space:nowrap;text-align:left;cursor:pointer}
.ep-menu .ico{width:18px;height:18px;flex:none}
.ep-menu a:hover,.ep-menu button:hover,.ep-menu [aria-pressed="true"]{background:color-mix(in srgb,var(--bg) 18%,transparent)}
.editing [data-edit]{outline:1px dashed color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:3px;border-radius:6px;cursor:text}
.editing [data-edit]:hover,.editing [data-edit]:focus{outline:2px solid var(--accent);background:var(--accent-soft)}

/* лайтбокс */
.lightbox{position:fixed;inset:0;z-index:90;background:rgba(8,8,10,.92);display:grid;place-items:center;padding:16px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:100%;max-height:calc(100vh - 32px);border-radius:8px;touch-action:pinch-zoom}
.lightbox button{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));right:12px;color:#fff}

@media (max-width:900px){
  .bk{grid-template-columns:1fr}
  .bk-side{position:static;order:-1}
  .posts{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .split,.gift-wrap{grid-template-columns:1fr}
  .page{padding:18px 0 48px}
  .page-h h1{font-size:23px}
  .posts{grid-template-columns:1fr}
  .team-detail{grid-template-columns:auto 1fr}
  .team-detail .m-ava{width:80px;height:80px;font-size:26px}
  .visit{grid-template-columns:56px 1fr}
  .visit .act{grid-column:1/-1}
  .edit-pill{right:14px;bottom:calc(14px + var(--safe-b))}
  .cookie{bottom:calc(12px + var(--safe-b))}
  .tabs a{flex:1;justify-content:center;padding:12px 4px;font-size:0;gap:0}
  .tabs a .ico{width:22px;height:22px}
}
@media print{.top,.cartbar,.cookie,footer.site,.edit-pill{display:none!important}body{background:#fff;color:#000}}
/* загрузка шагов в шторке и мелочи страниц кабинета */
.bk-load{height:240px;border-radius:16px;background:linear-gradient(90deg,var(--bg-2),color-mix(in srgb,var(--bg-2) 60%,var(--card)),var(--bg-2));background-size:200% 100%;animation:bkload 1.2s linear infinite}
@keyframes bkload{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.bk-load{animation:none}}
[aria-busy="true"]{opacity:.6;transition:opacity .2s}
.grow{flex:1;min-width:0}
.block{display:block}
.narrow{max-width:720px}
.mt-s{margin-top:8px}
.mb{margin-bottom:28px}
.end{text-align:right;display:grid;gap:4px;justify-items:end}
.row-b{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.cart-row.no-pic{grid-template-columns:1fr auto auto}
.more summary{cursor:pointer;font-weight:600;color:var(--ink-2);padding:6px 0}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}
.g-card.mini{aspect-ratio:auto;padding:16px;gap:8px}
.g-card.mini .sum{font-size:22px}
.status.st-confirmed,.status.st-paid,.status.st-completed{background:color-mix(in srgb,var(--ok) 14%,transparent);color:var(--ok)}
.status.st-pending,.status.st-awaiting_payment{background:var(--accent-soft);color:var(--accent)}
.status.st-cancelled,.status.st-no_show,.status.st-refunded{background:var(--bg-2);color:var(--ink-3)}
.muted-date{background:var(--bg-2);color:var(--ink-2)}
.acc-nav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.acc-nav a{font-size:14px;font-weight:600;color:var(--ink-2);text-decoration:none;padding:6px 12px;border-radius:999px;background:var(--bg-2)}
.post-page{position:static;transform:none;opacity:1;pointer-events:auto;width:100%;max-width:920px;margin:0 auto;box-shadow:none;border:1px solid var(--line)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.split{grid-template-columns:1fr}}
dl.facts{margin:8px 0 0}
dl.facts div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}
dl.facts dt{color:var(--ink-3)}
dl.facts dd{margin:0;text-align:right;word-break:break-all}
.lang a{font-size:13px;font-weight:600;color:var(--ink-3);padding:6px 9px;border-radius:8px;min-height:30px;text-decoration:none;display:inline-flex;align-items:center}
.lang a[aria-current="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.lang a:hover{color:var(--ink)}
.was{color:var(--ink-3, #8a8a8a);font-size:.85em;margin-right:4px}

/* ---- полировка 2: подвал внизу, язык из иконки, свои полосы прокрутки, мягкая анимация ---- */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
main{flex:1 0 auto}
footer.site{flex-shrink:0}

/* свои полосы прокрутки */
html{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--ink) 22%,transparent) transparent}
*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--ink) 22%,transparent) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ink) 22%,transparent);border-radius:10px;border:3px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--ink) 38%,transparent)}
::selection{background:var(--accent-soft);color:var(--ink)}

/* шапка: язык открывается из одной иконки, счётчик корзины */
.top .tools{margin-left:auto}
.top nav+.tools{margin-left:0}
.lang-menu{position:relative}
.lang-menu summary{list-style:none;cursor:pointer;width:auto;padding:0 10px;gap:6px;display:flex;align-items:center;font-size:13px;font-weight:600}
.lang-menu summary::-webkit-details-marker{display:none}
.lang-menu[open] summary{background:var(--bg-2)}
.menu-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:200px;padding:6px;border-radius:16px;background:var(--card);border:1px solid var(--line);box-shadow:0 16px 40px rgba(20,20,22,.14);display:grid;gap:2px;z-index:40;transform-origin:top right;animation:pop-in .18s var(--ease)}
.menu-pop a{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 10px;border-radius:10px;text-decoration:none;font-size:15px;color:var(--ink)}
.menu-pop a:hover{background:var(--bg-2)}
.menu-pop a[aria-current="true"]{background:var(--bg-2);font-weight:600}
.menu-pop .code{width:26px;font-size:12px;font-weight:700;color:var(--ink-3)}
.menu-pop .ico{width:18px;height:18px;color:var(--accent);stroke-width:2.2}
#cartIcon{position:relative}
#cartIcon .count{position:absolute;top:3px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--bg);animation:pop-in .25s var(--ease)}
@keyframes pop-in{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}

/* подвал: иконки контактов и знак moduloom */
footer.site a.ch{display:inline-flex;align-items:center;gap:10px}
footer.site a.ch .ico{width:18px;height:18px;color:var(--ink-2)}
footer.site .made{display:inline-flex;align-items:center;gap:8px;color:var(--ink-3)}
footer.site .made img{width:20px;height:20px;border-radius:5px;display:inline-block}
footer.site .made b{font-weight:600;color:var(--ink-2)}
footer.site .made:hover b{color:var(--ink)}

/* кружки: виды работ с фото */
.hl .c img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid var(--bg);display:block}
.hl a .c{transition:border-color .2s,background .2s,transform .15s var(--ease)}
.hl a[aria-pressed="true"] .c{background:var(--ring);border-color:transparent}
.hl a[aria-pressed="true"] span:last-child{color:var(--ink);font-weight:600}
.hl a:active .c{transform:scale(.95)}

/* фильтр работ */
nav.chips{display:flex}
.chip{transition:background-color .2s,border-color .2s,color .2s,transform .15s var(--ease)}
.chip:not([aria-pressed="true"]):hover{border-color:var(--ink-3);color:var(--ink)}
.chip:active{transform:scale(.97)}
[data-works-area]{transition:opacity .2s}

/* лайк сразу */
.like[aria-pressed="true"] svg{animation:like-pop .35s var(--ease)}
@keyframes like-pop{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1.08)}}

/* подарок: карточка не растягивает сетку, суммы в ряд */
.gift-wrap{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:24px}
.gift-wrap .g-card{width:100%;max-width:520px}
.gift-wrap .seg{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}
.g-form{max-width:440px}
.g-form .btn{width:100%}

/* запись: дни листаются стрелками и колесом, у мастера видно оценку и работы */
.days-row{display:flex;align-items:center;gap:6px;margin-bottom:14px}
.days-row .days{flex:1;min-width:0;margin:0;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px) / 7);gap:6px;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:2px 0}
.days-row .day{flex:none;scroll-snap-align:start;padding:6px 0;transition:background-color .2s,border-color .2s}
.days-row .day:not([aria-pressed="true"]):hover{border-color:var(--ink-3)}
.day .mo{font-size:11px;color:var(--ink-3)}
.day.has .mo::after,.day .mo::after{display:none}
.day.has small:first-child::after{display:none}
.day.has .mo{position:relative}
.day.has b{position:relative}
.day.has b::after{content:"";position:absolute;left:50%;bottom:-6px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--ok)}
.day[aria-pressed="true"] .mo{color:inherit;opacity:.75}
.days-nav{flex:none;width:36px;height:52px;border-radius:12px;border:1px solid var(--line);background:var(--card);display:grid;place-items:center;color:var(--ink);text-decoration:none;cursor:pointer;transition:background-color .2s,opacity .2s}
.days-nav:hover{background:var(--bg-2)}
.days-nav .ico{width:18px;height:18px}
.days-nav[aria-disabled="true"]{opacity:.35;pointer-events:none}
.m-facts{display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:6px}
.m-facts span{font-size:12px;font-weight:500;color:var(--ink-2);background:var(--bg-2);padding:2px 8px;border-radius:999px}
.opt[aria-pressed="true"] .m-facts span{background:var(--card)}
.opt{transition:border-color .2s,background-color .2s,box-shadow .2s,transform .15s var(--ease)}
.opt:active{transform:scale(.99)}
.sheet-b>.bk{padding-bottom:4px}
.bk-actions{margin-top:20px}

/* курсы: карточки с фото и фактами */
.c-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.c-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--card);text-decoration:none;color:inherit;transition:transform .2s var(--ease),box-shadow .2s,border-color .2s}
.c-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:transparent}
.c-pic{display:grid;place-items:center;aspect-ratio:4/5;background:var(--bg-2);overflow:hidden}
.c-pic img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.c-card:hover .c-pic img{transform:scale(1.03)}
.c-pic .ico{width:40px;height:40px;color:var(--ink-3)}
.c-body{display:flex;flex-direction:column;gap:10px;padding:14px 16px 16px;flex:1}
.c-body b{font-size:16px;font-weight:600;line-height:1.35}
.c-body small{font-size:14px;color:var(--ink-3)}
.c-facts{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0}
.c-facts span,.c-facts li{font-size:13px;color:var(--ink-2);background:var(--bg-2);padding:3px 10px;border-radius:999px}
.c-facts.big{margin:10px 0 4px}
.c-facts.big li{font-size:14px;padding:5px 12px}
.c-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:4px}
.c-price{font-weight:600}
.c-go{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:var(--accent)}
.c-go .ico{width:16px;height:16px}
.course-req .lbl{margin:0;font-size:15px;color:var(--ink)}
.course-req .field{margin-bottom:0}

/* отзывы: оставить отзыв */
.page-act{display:flex;gap:8px;flex-wrap:wrap}
.head-act{display:flex;align-items:center;gap:14px}
.btn-sm{min-height:36px;padding:0 14px;font-size:14px;border-radius:10px}
.rv-leave>summary{display:none}
.rv-leave[open]{animation:fade-up .3s var(--ease)}
.rv-leave .card{margin:0 0 16px}

/* корзина */
.n-pill{display:inline-block;vertical-align:middle;margin-left:6px;font-size:13px;font-weight:600;color:var(--ink-2);background:var(--bg-2);padding:2px 10px;border-radius:999px}
.card.login{max-width:520px}
.card.login .form{max-width:none}
.login-box{display:grid;gap:4px;padding:14px 16px;border-radius:14px;background:var(--bg-2)}
.login-act{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.login-act .btn{flex:1 1 140px;white-space:nowrap;gap:8px}
.login-back{display:inline-flex;align-items:center;gap:4px;margin-bottom:12px;color:var(--ink-2);font-weight:600;text-decoration:none}

/* мягкая анимация */
.faq summary::after{transition:transform .25s var(--ease)}
.faq details[open] summary::after{content:"+";transform:rotate(45deg)}
.faq details{transition:border-color .2s,box-shadow .2s}
.faq details:hover{border-color:var(--ink-3)}
.faq details[open]{box-shadow:var(--shadow);border-color:transparent}
.faq details[open] .a{animation:fade-up .28s var(--ease)}
.panel:not([hidden]){animation:fade-in .25s var(--ease)}
.btn,.icon-btn,.c-item,.m-card,.rv,.row,.time,.day,.tile{transition:transform .15s var(--ease),background-color .2s,border-color .2s,box-shadow .2s,filter .2s}
.icon-btn:active,.c-item:active,.time:active,.day:active{transform:scale(.96)}
.c-item:hover,.m-card:hover,.row:hover{border-color:var(--ink-3)}
.time:not([aria-pressed="true"]):hover{background:var(--bg-2)}
.tabs a{transition:color .2s,border-color .2s}
.tabs a:hover{color:var(--ink)}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes fade-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.menu-pop,#cartIcon .count,.like[aria-pressed="true"] svg,.faq details[open] .a,.panel:not([hidden]),.rv-leave[open]{animation:none}}

@media (max-width:760px){
  .gift-wrap{grid-template-columns:1fr}
  .g-form{max-width:none}
  .days-row .days{grid-auto-columns:calc((100% - 30px) / 6)}
  .days-nav{width:32px}
  .c-grid{grid-template-columns:1fr 1fr;gap:10px}
  .c-body{padding:12px}
  .c-body b{font-size:15px}
  .panel-head:has(.head-act){flex-wrap:wrap;align-items:start}
  .panel-head .head-act{width:100%;justify-content:space-between}
}
@media (max-width:420px){
  .c-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .top nav+.tools{margin-left:auto}
  .lang-menu summary span{display:none}
  .lang-menu summary{padding:0;width:40px;justify-content:center}
}

/* свои чекбоксы, радио и селекты */
:root{--chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6c75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
html[data-theme="dark"]{--chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.field select:not([multiple]){appearance:none;-webkit-appearance:none;background-image:var(--chev);background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;padding-right:40px;cursor:pointer}
:is(.check,.opt,.opt-sub,.pay-opt) input:is([type=checkbox],[type=radio]){appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:1px 0 0;flex:none;display:inline-grid;place-content:center;border:1.5px solid color-mix(in srgb,var(--ink-3) 65%,var(--line));border-radius:7px;background:var(--card);cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
:is(.check,.opt,.opt-sub,.pay-opt) input[type=radio]{border-radius:50%}
:is(.check,.opt,.opt-sub,.pay-opt) input[type=checkbox]::before{content:"";width:15px;height:15px;background:var(--accent-ink);-webkit-mask:var(--tick) center/contain no-repeat;mask:var(--tick) center/contain no-repeat;transform:scale(.4);opacity:0;transition:transform .15s var(--ease),opacity .15s}
:is(.check,.opt,.opt-sub,.pay-opt) input[type=radio]::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--accent-ink);transform:scale(.4);opacity:0;transition:transform .15s var(--ease),opacity .15s}
:is(.check,.opt,.opt-sub,.pay-opt) input:checked{background:var(--accent);border-color:var(--accent)}
:is(.check,.opt,.opt-sub,.pay-opt) input:checked::before{transform:none;opacity:1}
:is(.check,.opt,.opt-sub,.pay-opt) input:hover:not(:disabled){border-color:var(--accent)}
:is(.check,.opt,.opt-sub,.pay-opt) input:focus-visible{outline:none;box-shadow:0 0 0 3px var(--accent-soft),0 0 0 1px var(--accent)}
:is(.check,.opt,.opt-sub,.pay-opt) input:disabled{opacity:.55;cursor:default}
.opt-sub input:is([type=checkbox],[type=radio]){width:18px;height:18px;margin:0}
.opt-sub input[type=checkbox]::before{width:12px;height:12px}
.opt input:is([type=checkbox],[type=radio]){margin:0}
.pay-opt input:is([type=checkbox],[type=radio]){margin:2px 0 0}
.hl a .c{display:block}
.panel-head:has(h2.sr)>div>p{margin-top:0}
@media (min-width:761px){footer.site{padding-bottom:40px}}
.sheet-b:has(.bk-actions){padding-bottom:0}
.sheet .bk-actions{margin:16px -20px 0;z-index:2}
.sheet .bk-actions{border-radius:0 0 24px 24px}
@media (max-width:760px){.sheet .bk-actions{border-radius:0}}
@media (max-width:760px){.lang-menu{position:static}.lang-menu .menu-pop{right:16px;top:calc(100% + 4px)}}
/* главная «Колонка»: профиль и разделы слева, содержимое раздела справа; на узком экране — одна лента */
.t-n{color:var(--ink-3);font-weight:500}
.side-link{display:none}
.panel-head a.rate{color:var(--ink-3);font-size:14px;text-decoration:none;white-space:nowrap}
.panel-head a.rate:hover{color:var(--ink)}
@media (max-width:1023px){
  .cols-main .panel{scroll-margin-top:48px}
  .side-nav{position:sticky;top:60px;z-index:20;background:var(--bg)}
  .side-nav .tabs{position:static}
  .side-nav .tabs a{padding-inline:12px}
  .cols-main .panel-head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .cols-main #works>.panel-head{display:none}
}
@media (max-width:760px){
  .side-nav{top:56px;margin-inline:-16px}
  .cols-main .panel{scroll-margin-top:0}
}
@media (min-width:1024px){
  .top .wrap,footer.site .wrap,.is-home .wrap{width:min(100% - 48px,1120px)}
  .cols{display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:48px;padding-top:32px;align-items:start}
  .side-p{grid-column:1;grid-row:1}
  .side-nav{grid-column:1;grid-row:2;position:sticky;top:84px;margin-top:24px;padding:8px 0 32px;border-top:1px solid var(--line)}
  .cols-main{grid-column:2;grid-row:1/3;min-width:0}
  .cols-main .panel{scroll-margin-top:16px}
  .cols-main .c-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cols-main .panel>.panel-head:first-child{padding-top:0;align-items:baseline}
  .cols .profile{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:0}
  .cols .avatar{width:112px;height:112px;padding:3px}
  .cols .avatar img,.cols .avatar span{border-width:3px}
  .cols .avatar span{font-size:34px}
  .cols .avatar small{font-size:10px;padding:1px 7px}
  .cols .p-name{flex-direction:column;align-items:flex-start;gap:6px}
  .cols .p-name h1{font-size:22px}
  .cols .stats{display:none}
  .cols .p-rest{width:100%}
  .cols .bio{font-size:15px}
  .cols .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
  .cols .actions .btn{width:100%;padding:0 12px}
  .cols .actions [data-book],.cols .actions [data-book]+:last-child,.cols .actions>:only-child{grid-column:1/-1}
  .cols .tabs{position:static;flex-direction:column;justify-content:flex-start;gap:2px;border-top:0;background:none}
  .cols .tabs a,.side-link{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;margin:0;border:0;border-radius:12px;font-size:15px;font-weight:500;color:var(--ink-2);text-decoration:none;transition:background-color .2s,color .2s}
  .cols .tabs a .ico,.side-link .ico{width:20px;height:20px;flex:none}
  .cols .tabs .t-l{flex:1}
  .cols .tabs .t-n{font-size:13px}
  .cols .tabs a:hover,.side-link:hover{background:var(--bg-2);color:var(--ink)}
  .cols .tabs a[aria-selected="true"]{background:var(--bg-2);color:var(--ink);font-weight:600}
  .cols .tabs a[aria-selected="true"] .t-n{color:var(--ink-2)}
}
/* корзина внизу экрана едет вместе с содержимым и останавливается над подвалом: подвал не сдвигается */
.cartbar{position:sticky;left:auto;bottom:calc(16px + var(--safe-b));transform:none;opacity:1;visibility:visible;display:none;margin:24px auto}
.cartbar.on{display:flex;transform:none;animation:fade-up .3s var(--ease)}
@media (max-width:760px){.cartbar{margin:16px auto}}
/* карточка курса стоит на месте, приближается только фото; цена в одну строку */
.c-card:hover{transform:none;box-shadow:none;border-color:var(--line)}
.c-card:hover .c-pic img{transform:scale(1.06)}
.c-foot{flex-wrap:wrap;row-gap:6px}
.c-price{white-space:nowrap}
@media (prefers-reduced-motion:reduce){.cartbar.on{animation:none}.c-card:hover .c-pic img{transform:none}}
/* без прокрутки вбок, что бы ни вылезло за край */
html,body{overflow-x:clip}
/* кнопки в одну строку, кнопки в шапке раздела не сжимаются */
.btn{white-space:nowrap}
.head-act,.page-act{flex-shrink:0}
/* радио и чекбоксы внутри полей не растягиваются на ширину поля */
.field input[type=radio],.field input[type=checkbox]{width:auto;min-height:0}
.seg label{position:relative}
.seg input{width:1px;height:1px}
/* оценка в форме отзыва: пять звёзд в ряд, без рамки */
fieldset.field{border:0;padding:0;margin:0 0 12px;min-width:0;display:block}
fieldset.field>legend{padding:0;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--ink-2)}
.stars-pick{display:inline-flex;flex-direction:row-reverse;gap:2px}
.stars-pick input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.stars-pick label{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;cursor:pointer;color:color-mix(in srgb,var(--ink) 16%,transparent);transition:color .15s,transform .15s var(--ease)}
.stars-pick svg{width:32px;height:32px;fill:currentColor}
.stars-pick input:checked~label{color:#e0a100}
.stars-pick:hover input~label{color:color-mix(in srgb,var(--ink) 16%,transparent)}
.stars-pick:hover label:hover,.stars-pick:hover label:hover~label{color:#e0a100}
.stars-pick label:active{transform:scale(.9)}
.stars-pick input:focus-visible+label{outline:2px solid var(--accent);outline-offset:0}
/* телефон: разделы — значок, подпись и число; одна полоска вместо нижнего меню */
@media (max-width:760px){
  .side-nav .tabs a{flex:1 1 0;min-width:0;display:grid;justify-items:center;align-content:center;gap:2px;padding:10px 2px 8px;font-size:11px;font-weight:500;line-height:1.2;position:relative}
  .side-nav .tabs a[aria-selected="true"]{font-weight:600}
  .side-nav .tabs a .ico{width:22px;height:22px}
  .side-nav .tabs .t-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .side-nav .tabs .t-n{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:700;line-height:18px;text-align:center}
}
/* окно работы: назад и вперёд по работам, как в Instagram */
.post .pic{position:relative}
.post .pic .post-nav{position:absolute;top:50%;z-index:2;width:40px;height:40px;margin-top:-20px;border:0;border-radius:50%;background:color-mix(in srgb,var(--card) 88%,transparent);color:var(--ink);display:grid;place-items:center;box-shadow:0 2px 12px rgba(0,0,0,.18);cursor:pointer;transition:background-color .2s,transform .15s var(--ease)}
.post .pic .post-nav[hidden]{display:none}
.post .pic .post-nav:hover{background:var(--card)}
.post .pic .post-nav:active{transform:scale(.92)}
.post .pic .post-nav.prev{left:10px}
.post .pic .post-nav.next{right:10px}
.post .pic .post-nav .ico{width:20px;height:20px;stroke-width:2.2}
.post .pic{touch-action:pan-y pinch-zoom}

/* панель сотрудника поднимается над плашкой корзины, чтобы не перекрывать её */
body:has(.cartbar.on) .edit-pill{bottom:calc(92px + var(--safe-b))}
.edit-pill [hidden]{display:none}
/* открытое окно поста или шторка закрывают панель сотрудника, иначе она перекрывает их кнопки */
body:has(#post.on) .edit-pill,body:has(.sheet.on) .edit-pill{display:none}
/* пока открыто окно, страница под ним не прокручивается (iOS игнорирует overflow у body) */
html:has(.scrim.on){overflow:hidden}
#post,#post .pb,.sheet{overscroll-behavior:contain}
.scrim{touch-action:none}
#post .side{height:0;min-height:100%}
.post>.grab{display:none}
.post .pb.empty{padding:0;gap:0}
/* окно работы на телефоне: высота по содержимому, полоска сверху — потянуть вниз, чтобы закрыть */
@media (max-width:760px){
  #post{height:auto;max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}
  #post>.grab{display:block;order:-2;flex:none}
  #post .side{height:auto;min-height:0}
  #post .ph{flex:none;padding-top:8px}
  #post .pic{flex:none;max-height:55dvh;aspect-ratio:auto;height:min(100vw,55dvh)}
  #post .pb{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
  #post .pb.empty{display:none}
  #post .pf{flex:none}
  .sheet .sheet-b{overscroll-behavior:contain}
  .grab{position:relative;cursor:grab;touch-action:none}
  .grab::after{content:"";position:absolute;inset:-14px -60px}
  .sheet .sheet-h,#post .ph{touch-action:none}
  .sheet.drag,.post.drag{transition:none}
}
/* пока открыто окно, страница под ним не прокручивается */
html.lock,html.lock body{overflow:hidden}
html.lock body{position:fixed;left:0;right:0;width:100%}
@media (min-width:761px){.split>aside{position:sticky;top:76px}}
.ico.play{fill:currentColor;stroke:none}
.tile video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.post .pic video{width:100%;height:100%;display:block;object-fit:contain;background:#000}
.gallery a{position:relative}
.gallery a video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.gallery a .play{position:absolute;inset:0;margin:auto;width:34px;height:34px;color:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.lightbox video{max-width:100%;max-height:calc(100vh - 32px);border-radius:8px;background:#000}
.lightbox video[hidden],.lightbox img[hidden]{display:none}

/* ---- корзина по макету: удаление иконкой, цена под корзиной, ровные радиокнопки ---- */
.cart{display:grid;gap:16px;align-items:start}
.cart-l{display:grid;gap:16px;min-width:0}
@media (min-width:900px){
  .cart-2{grid-template-columns:minmax(0,1fr) 400px;gap:24px}
  .cart-2 .cart-r{position:sticky;top:84px}
}
.cart h2{display:flex;align-items:center;gap:8px}
.cart .n-pill{margin-left:0}
.cart .cart-row{grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"pic main del" "pic foot foot";column-gap:12px;row-gap:8px;align-items:start;padding:14px 0}
.cart .cart-row.last{border-bottom:0;padding-bottom:4px}
.cart .cart-row .pic{grid-area:pic;width:56px;height:56px;border-radius:14px;color:var(--accent)}
.cart .cart-row .pic .ico{width:24px;height:24px}
.cr-main{grid-area:main;min-width:0;padding-top:2px}
.cr-main a{display:block;color:var(--ink);font-weight:600;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
.cr-main a:hover{color:var(--accent)}
.cr-main small{display:block;color:var(--ink-3);font-size:14px;margin-top:2px}
.cr-del{grid-area:del}
.cr-del button{width:36px;height:36px;border:0;border-radius:50%;background:var(--bg-2);color:var(--ink-3);display:grid;place-items:center;transition:background-color .15s,color .15s}
.cr-del button:hover{background:var(--accent-soft);color:var(--accent)}
.cr-del .ico{width:18px;height:18px}
.cr-foot{grid-area:foot;display:flex;align-items:center;gap:12px;min-height:36px}
.cr-price{margin-left:auto;font-size:16px;white-space:nowrap}
.cart .qty{padding:1px}
.cart .qty button{width:34px;height:32px}
.cart .qty button:disabled{opacity:.35;cursor:default}
.cart .qty span{min-width:22px;text-align:center;font-weight:600}
.cart .totals{margin:10px 0 0;padding-top:12px;border-top:1px solid var(--line)}
.cart .totals .grand{border-top:0;padding-top:0}
.cart .totals div>span:first-child{color:var(--ink-3)}
.cart .totals .grand>span:first-child{color:var(--ink)}
.cart-r .form{gap:16px}
/* радиокнопка внутри .field: поле ввода давало ей ширину auto и отступы 14px, отсюда овал */
.field :is(.check,.opt,.opt-sub,.pay-opt) input:is([type=checkbox],[type=radio]){width:22px;height:22px;min-height:0;padding:0}
.pay-opt{grid-template-columns:22px 1fr}
.pay-opt b{display:block;line-height:1.35}

/* запись: без повторов — сводка сбоку на компьютере, внутри шага на телефоне и в шторке */
.bk{grid-template-columns:minmax(0,1fr) 320px}
.bk-main>.bk{display:block}
.picked{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.picked a{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:36px;padding:6px 12px 6px 10px;border-radius:999px;background:var(--bg-2);color:var(--ink);font-size:14px;font-weight:500;text-decoration:none;transition:background-color .2s}
.picked a:hover{background:color-mix(in srgb,var(--bg-2) 85%,var(--ink))}
.picked a span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picked .ico{width:16px;height:16px;flex:none;color:var(--accent)}
.picked .ico.ed{width:14px;height:14px;color:var(--ink-3)}
.summary .sum-total{border-top:1px solid var(--line);padding-top:8px;margin-top:2px;font-size:16px}
.summary .sum-total span{color:var(--ink);font-weight:600}
.sheet .bk-back{display:none}
@media (min-width:901px){.bk-main .picked,.bk-main .summary{display:none}}
@media (max-width:900px){.bk{grid-template-columns:minmax(0,1fr)}.bk-side,.bk-back{display:none}}
/* в шторке заголовок шага уже в шапке — второй раз не повторяем */
.sheet .bk>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* карточки услуг: чекбокс и цена — на уровне названия, даже если описание в несколько строк */
label.opt{align-items:start}
label.opt>input{margin-top:0}
label.opt .pr{line-height:22px}
/* варианты и дополнения — в колонку с названием услуги */
.opt-sub{margin:-2px 0 10px 51px}
.opt-sub label{min-height:32px}
@media (max-width:480px){
  .opt-any{grid-template-columns:auto minmax(0,1fr)}
  .opt-any .pr{grid-column:2;margin-top:-6px}
}
/* звёзды отзыва: скрытые радио не растягиваются общим правилом полей */
.field .stars-pick input[type=radio]{width:1px;height:1px;min-height:0;padding:0;border:0}
/* ссылка-кнопка: удобная цель для пальца */
.btn-link{position:relative}
.btn-link::after{content:"";position:absolute;inset:-11px -6px}
.ep-menu .ep-on,.ep-menu [aria-pressed="true"] .ep-off{display:none}
.ep-menu [aria-pressed="true"] .ep-on{display:inline}

/* удобный редактор текста: кнопки вместо разметки */
.rte-bar{display:flex;align-items:center;gap:2px;flex-wrap:nowrap;position:relative}
.rte-b{width:40px;height:40px;flex:none;display:grid;place-items:center;border:0;border-radius:10px;background:none;color:var(--ink);cursor:pointer;transition:background-color .15s,color .15s}
.rte-b .ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.rte-b:hover:not(:disabled){background:var(--bg-2,var(--soft))}
.rte-b[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
.rte-b:disabled{color:color-mix(in srgb,var(--ink-3) 45%,transparent);cursor:default}
.rte-sep{width:1px;height:24px;background:var(--line);margin:0 4px;flex:none}
.rte-done{margin-left:auto;flex:none;height:40px;padding:0 16px;border:0;border-radius:12px;background:var(--accent);color:var(--accent-ink,#fff);font:inherit;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
.rte-done .ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.rte-pop{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:5;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 12px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(20,20,22,.14)}
.rte-pop[hidden]{display:none}
.rte-pop>.ico{width:18px;height:18px;flex:none;fill:none;stroke:var(--ink-3);stroke-width:1.9;stroke-linecap:round}
.rte-pop input{flex:1;min-width:0;height:42px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;font-size:16px;background:var(--card);color:var(--ink)}
.rte-ok{flex:none;height:42px;padding:0 14px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink,#fff);font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.rte{border:1px solid var(--line);border-radius:14px;background:var(--card);transition:border-color .15s,box-shadow .15s}
.rte:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.rte>.rte-bar{padding:6px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg-2,var(--soft)) 60%,var(--card));border-radius:14px 14px 0 0}
.rte-body{padding:14px 16px;outline:0;font-size:15.5px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere;cursor:text}
.rte-body>:first-child{margin-top:0}
.rte-body p,.rte-body ul,.rte-body ol,.rte-body blockquote{margin:0 0 12px}
.rte-body h2,.rte-body h3,.rte-body h4{font-size:17px;font-weight:700;margin:16px 0 8px;color:var(--ink)}
.rte-body ul{list-style:disc;padding-left:22px}
.rte-body ol{list-style:decimal;padding-left:22px}
.rte-body li{margin:3px 0}
.rte-body a{color:var(--accent);text-decoration:underline}
.rte-body strong,.rte-body b{font-weight:700;color:var(--ink)}
.rte-body blockquote{border-left:3px solid var(--line);padding-left:14px;color:var(--ink-2)}
.rte-body:empty::before{content:attr(aria-label);color:var(--ink-3)}
/* правка текста на сайте: панель под шапкой вместо плавающей кнопки */
.edit-bar{position:fixed;left:0;right:0;top:61px;z-index:31;height:56px;padding:0 max(10px,calc((100vw - 1120px) / 2));background:var(--card);border-bottom:1px solid var(--line);box-shadow:0 6px 18px rgba(20,20,22,.06)}
.edit-bar[hidden]{display:none}
.edit-bar .rte-pop{left:max(10px,calc((100vw - 1120px) / 2));right:max(10px,calc((100vw - 1120px) / 2))}
body.editing #main{padding-top:56px}
body.editing .edit-pill{display:none}
.editing [data-edit]{outline:1.5px dashed color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:6px;border-radius:6px;cursor:text;transition:outline-color .15s,background-color .15s}
.editing [data-edit]:hover{outline-color:color-mix(in srgb,var(--accent) 75%,transparent);background:none}
.editing [data-edit]:focus{outline:2px solid var(--accent);outline-offset:6px;background:color-mix(in srgb,var(--accent-soft) 45%,transparent)}
@media (max-width:420px){.edit-bar .rte-b{width:38px}.edit-bar .rte-sep{margin:0 2px}.edit-bar .rte-done{padding:0 12px}}

/* --- Движение: листание работ, шаги записи, проявление фото -------------------------- */
@keyframes slide-in-r{from{opacity:0;transform:translateX(28%)}to{opacity:1;transform:none}}
@keyframes slide-in-l{from{opacity:0;transform:translateX(-28%)}to{opacity:1;transform:none}}
@keyframes step-in-r{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes step-in-l{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
@keyframes zoom-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
#post .pic{overflow:hidden}
#post .pic>a,#post .pic>video{display:block;width:100%;height:100%;transition:transform .28s var(--ease),opacity .2s;will-change:transform}
#post.in-next .pic>a,#post.in-next .pic>video{animation:slide-in-r .3s var(--ease) both}
#post.in-prev .pic>a,#post.in-prev .pic>video{animation:slide-in-l .3s var(--ease) both}
#post:is(.in-next,.in-prev) :is(.ph .grow,.pb,.pf){animation:fade-up .3s var(--ease) both}
#sheetBody{overflow-x:hidden}
#sheetBody.st-f>.bk>:not(.steps):not(.bk-actions){animation:step-in-r .26s var(--ease) both}
#sheetBody.st-b>.bk>:not(.steps):not(.bk-actions){animation:step-in-l .26s var(--ease) both}
.steps i{transition:background-color .3s}
.lightbox:not([hidden]){animation:fade-in .2s ease-out}
.lightbox:not([hidden]) :is(img,video):not([hidden]){animation:zoom-in .28s var(--ease)}
:is(.tile,.c-pic,.m-card,.post-card .pic,.prod .pic) img{transition:opacity .4s ease-out,transform .4s var(--ease)}
:is(.tile,.c-pic,.m-card,.post-card .pic,.prod .pic) img.pre{opacity:0}
.grid>.new{animation:fade-up .35s var(--ease) both}
[data-works-area].swap{animation:fade-in .25s ease-out}
@media (prefers-reduced-motion:reduce){
  #post .pic>a,#post .pic>video,#post :is(.ph .grow,.pb,.pf),#sheetBody .bk>*,.lightbox,.lightbox :is(img,video),.grid>.new,[data-works-area].swap{animation:none!important;transition:none!important}
  :is(.tile,.c-pic,.m-card,.post-card .pic,.prod .pic) img.pre{opacity:1}
}

/* --- Мелочи после проверки на телефоне ----------------------------------------------- */
.picked a{position:relative}
.picked a::after{content:"";position:absolute;inset:-4px 0}
a.opt{align-items:start}
a.opt>.pr{line-height:25px}
a.opt>.ico:last-child{align-self:center}
/* Полоса про cookie — ниже открытых окон: окно работы и шторка записи не перекрываются */
.cookie{z-index:59}
.cookie .row-b .btn{flex:1 1 auto;min-width:0;padding:0 16px}
