/* Шрифты лежат на своём сервере (лицензия OFL, см. /assets/fonts/LICENSE-*.txt): запросов к Google нет. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-latin-600-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: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-latin-700-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: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/montserrat-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/montserrat-latin-800-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: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/golos-text-latin-400-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: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/golos-text-latin-500-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: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/golos-text-latin-600-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; }
:root {
  --navy: #1d3c57; --navy-deep: #14293c; --paper: #f4f6f7; --white: #fff;
  --ink: #17232e; --muted: #56677a; --soft: #45566a; --line: #d6dde3; --line2: #c3cdd6; --tint: #e9eef2;
  --accent: #a8632c; --gold: #f2b84b; --danger: #a8322b; --ok: #2c6e49;
  --r: 20px; --r-lg: 28px; --wrap: 1240px;
  --head: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-top: 1.7em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.small, small { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 58ch; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 99; }
.eyebrow { display: block; font: 600 .8rem/1.4 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #c9d6e0; margin: 0; }
.eyebrow--gold { color: var(--gold); } .eyebrow--accent { color: var(--accent); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--navy); color: var(--white); font: 600 1rem var(--font); text-decoration: none; border: 1.5px solid var(--navy); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--full { width: 100%; }
.btn--light { background: var(--paper); color: var(--navy-deep); border-color: var(--paper); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); box-shadow: 0 8px 24px rgba(20,41,60,.18); }
.btn--white:hover { background: var(--paper); border-color: var(--paper); color: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(244,246,247,.5); }
.btn--ghost:hover { background: rgba(244,246,247,.12); border-color: var(--paper); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--green { background: var(--ok); border-color: var(--ok); } .btn--green:hover { background: #235a3b; border-color: #235a3b; }

/* шапка */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { max-width: 1560px; }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.top .nav { margin-inline: auto; }
.brand img { border-radius: 50%; }
.brand span { display: grid; line-height: 1.2; white-space: nowrap; } .brand b { font: 800 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--paper); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--tint); color: var(--ink); } .nav a[aria-current] { background: var(--white); box-shadow: 0 1px 4px rgba(20,41,60,.12); font-weight: 600; }
.top__phone { display: grid; line-height: 1.2; text-decoration: none; color: var(--ink); white-space: nowrap; } .top__phone b { font: 700 1.05rem var(--head); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 22px; } .crumbs a { color: var(--muted); }

/* первый экран */
.hero { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.hero__rings { position: absolute; right: -180px; top: 50%; width: 900px; height: 900px; margin-top: -450px; border-radius: 50%; border: 1px solid rgba(244,246,247,.12); }
.hero__rings::after { content: ""; position: absolute; inset: 140px; border-radius: 50%; border: 1px solid rgba(244,246,247,.16); }
.hero__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: clamp(48px, 7vw, 92px); }
.hero__text { flex: 1 1 540px; min-width: 0; display: grid; gap: 24px; justify-items: start; }
.hero h1 { color: var(--white); margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.hero__lead { font-size: 1.2rem; color: #dbe4eb; max-width: 54ch; margin: 0; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { flex: 0 1 420px; min-width: 260px; margin: 0 auto; display: grid; justify-items: center; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 32px; }
.slotcard { margin-top: -64px; position: relative; width: calc(100% - 40px); background: var(--white); color: var(--ink); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 24px 60px rgba(10,24,36,.35); display: grid; gap: 12px; }
.slotcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .slotcard__head b { font-family: var(--head); } .slotcard__head span { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.slotcard__slots, .buy__slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.slotcard__slots a { text-align: center; padding: 11px 0; border-radius: 10px; background: var(--tint); color: var(--ink); font-weight: 600; text-decoration: none; }
.slotcard__slots a:hover { background: var(--navy); color: var(--white); }
.rating { display: inline-grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.rating b { font: 800 2.4rem/1 var(--head); grid-row: span 2; } .rating span { color: var(--gold); letter-spacing: 3px; line-height: 1; }
.rating small { color: inherit; opacity: .85; } .rating:hover { color: inherit; } .rating:hover small { text-decoration: underline; }
.hero--404 .big404 { flex: 0 1 420px; min-width: 240px; margin: 0 auto; text-align: center; font: 800 clamp(7rem, 17vw, 15rem)/.9 var(--head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(244,246,247,.55); }
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; padding-block: 36px; }
.facts b { display: block; font: 800 2.4rem/1.1 var(--head); color: var(--navy); } .facts span { font-size: .92rem; color: var(--muted); }
.pagehero { background: var(--white); border-bottom: 1px solid var(--line); }
.pagehero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-block: 44px 64px; }
.pagehero__text { flex: 1 1 520px; min-width: 0; display: grid; gap: 20px; justify-items: start; } .pagehero h1, .pagehero .lead { margin: 0; }
.pagehero__img { flex: 0 1 460px; min-width: 260px; width: 100%; max-width: 460px; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; border-radius: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; } .chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--tint); font-weight: 600; }

/* секции */
.sec { padding-block: clamp(40px, 6vw, 80px); }
.sec > h2:first-child, .sec > h1:first-child, .sec__head h2 { margin-top: 0; }
.sec--tint { background: var(--tint); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 32px; } .sec__head h2 { margin-bottom: 0; } .sec__head p { margin: 0; color: var(--muted); max-width: 44ch; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } .grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); } .grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--start { align-items: start; }
h2 + .grid, .lead + .grid, p + .grid { margin-top: 24px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); min-height: 170px; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--ink); }
.card h3 { margin: 0; } .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card__meta { margin-top: auto; padding-top: 10px; font: 700 1rem var(--head); color: var(--navy); }
.card--num > span { font: 700 .85rem var(--head); color: var(--accent); } .card--num h3 { font-size: 1.35rem; } .card--num { min-height: 190px; }
.card--dark { background: var(--navy); border-color: var(--navy); color: var(--white); } .card--dark p { color: #dbe4eb; } .card--dark > span { color: var(--gold); } a.card--dark:hover { color: var(--white); border-color: var(--navy-deep); }
.panel { background: var(--tint); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); } .panel h2 { margin-top: 0; }
.panel--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 28px 32px; margin-top: 36px; } .panel--row h3 { margin-bottom: 4px; } .panel--row p { margin: 0; color: var(--soft); }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tile h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.16; } .tile p { margin: 0; color: var(--soft); } .tile .btn { margin-top: auto; }
.tile--dark { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--paper); } .tile--dark h2 { color: var(--white); } .tile--dark p { color: #dbe4eb; }
.tile--sm { padding: 24px; gap: 6px; border-radius: 24px; } .tile--sm b { font: 700 1.1rem/1.35 var(--head); } .tile--sm span:not(.eyebrow) { color: var(--muted); } .tile--sm a { font-weight: 600; }
.tile--map { gap: 0; padding: 28px; border-radius: 24px; align-items: stretch; } .tile--map h2 { font-size: 1.5rem; margin: 6px 0 14px; } .tile--map h2 a { color: var(--ink); text-decoration: none; }
.tile--map > a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-top: 1px solid #e2e8ed; }
.num { font: 700 .85rem var(--head); color: var(--accent); } .num--gold { color: var(--gold); }
.person { display: flex; align-items: center; gap: 16px; } .person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.person span { display: grid; line-height: 1.3; } .person b { font: 700 1.15rem var(--head); }
.split { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; } .split > * { flex: 1 1 380px; min-width: 0; }
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.note h3 { margin-top: 0; } .note p:last-child { margin: 0; }
.note--warn { background: #fbefee; border-color: #e8c6c3; } .note--warn ul { margin: 8px 0 0; padding-left: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 5px; top: .5em; width: 13px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plain { margin: 0 0 1.4em; padding-left: 22px; display: grid; gap: 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.checks div { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 20px 54px; position: relative; }
.checks div::before { content: ""; position: absolute; left: 22px; top: 27px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 36px; }
.steps li { counter-increment: s; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 800 3.4rem/1 var(--head); color: var(--navy); margin-bottom: 10px; }
.steps b { font: 700 1.25rem var(--head); } .steps p { margin: 6px 0 0; color: var(--soft); }
.steps--col { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.steps--col li { display: grid; grid-template-columns: 64px 1fr; align-items: start; padding: 22px 0; border-top: 1px solid var(--line2); } .steps--col li:first-child { border-top: 2px solid var(--navy); } .steps--col li:last-child { border-bottom: 1px solid var(--line2); }
.steps--col li::before { font-size: 2.6rem; margin: 0; grid-row: span 2; } .steps--col p { color: var(--ink); margin: 0; } .steps--col b + p { color: var(--soft); margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } .gallery img { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery--2 img { height: 380px; object-position: 50% 20%; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.videos a { position: relative; display: block; border-radius: 24px; overflow: hidden; background: var(--navy-deep); color: var(--white); text-decoration: none; }
.videos img { width: 100%; height: 270px; object-fit: cover; opacity: .8; transition: opacity .15s; } .videos a:hover img { opacity: 1; }
.videos span { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.videos i { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--paper); color: var(--navy-deep); display: grid; place-items: center; }
.svclist { display: flex; flex-wrap: wrap; gap: 32px 64px; } .svclist__intro { flex: 1 1 300px; min-width: 0; } .svclist__intro h2 { margin-top: 0; } .svclist__intro a { font-weight: 600; }
.svclist__rows { flex: 999 1 540px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.svclist__rows a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 24px 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.svclist__rows b { flex: 1 1 240px; font: 700 1.3rem var(--head); } .svclist__rows span { color: var(--muted); min-width: 130px; transition: color .2s; } .svclist__rows strong { font: 800 1.45rem var(--head); min-width: 140px; text-align: right; }
.svclist__rows i { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.svclist__rows a:hover, .svclist__rows a:focus-visible { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateX(6px); }
.svclist__rows a:hover span, .svclist__rows a:focus-visible span { color: #c9d6e0; }
.svclist__rows a:hover i, .svclist__rows a:focus-visible i { background: var(--paper); color: var(--navy-deep); transform: translateX(3px); }
.seotext h2 { margin-top: 0; max-width: 26ch; } .seotext__cols { columns: 2 380px; column-gap: 56px; margin: 24px 0 8px; } .seotext__cols p { break-inside: avoid; color: var(--soft); }

.cta { padding-bottom: clamp(56px, 7vw, 104px); }
.cta__in { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 28px 56px; flex-wrap: wrap; }
.cta__text { flex: 1 1 360px; min-width: 0; } .cta h2 { margin: 0 0 8px; } .cta p { margin: 0; color: var(--soft); font-size: 1.1rem; }
.cta__slots { flex: 0 1 460px; min-width: 0; background: var(--navy); color: var(--paper); border-radius: 24px; padding: 24px; display: grid; gap: 14px; }
.cta__slots div { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.cta__slots div a { text-align: center; padding: 11px 0; border-radius: 12px; background: rgba(244,246,247,.12); color: var(--white); font-weight: 600; text-decoration: none; transition: background .15s; }
.cta__slots div a:hover { background: rgba(244,246,247,.26); }

/* страница услуги */
.svc { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; } .svc__main, .svc > div:first-child { flex: 999 1 540px; min-width: 0; } .svc h2:first-child { margin-top: 0; }
.buy { flex: 1 1 320px; max-width: 420px; position: sticky; top: 104px; background: var(--navy); color: var(--paper); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 16px; }
.buy h2 { margin: 0; font-size: 1.3rem; color: var(--white); } .buy p { margin: 0; color: #dbe4eb; font-size: .95rem; } .buy small { color: #c9d6e0; text-align: center; }
.buy__list { list-style: none; margin: 0; padding: 0; } .buy__list li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(244,246,247,.18); }
.buy__list b { font: 800 1.9rem var(--head); color: var(--white); } .buy__label { color: var(--white); font-weight: 600; }
.buy__slots a { text-align: center; padding: 12px 0; border-radius: 12px; background: rgba(244,246,247,.12); color: var(--white); font-weight: 600; text-decoration: none; } .buy__slots a:hover { background: rgba(244,246,247,.24); }
.buy__links { list-style: none; margin: 0; padding: 0; } .buy__links li { padding: 10px 0; border-bottom: 1px solid rgba(244,246,247,.18); } .buy__links a { font-weight: 600; text-decoration: none; color: var(--white); }
.buy__phone { text-align: center; font: 700 1.1rem var(--head); text-decoration: none; color: var(--white); }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 10px; } .faq summary { cursor: pointer; font: 700 1.05rem var(--head); } .faq p { margin: 12px 0 0; color: var(--soft); }
.price { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; margin: 20px 0 12px; }
.price th, .price td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); } .price th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price tr:last-child td { border: 0; } .price td b { font-family: var(--head); font-size: 1.1rem; }
.reviews iframe { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.contactgrid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.contactcards { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-content: start; } .contactcards__phone { grid-column: 1 / -1; border-radius: 24px; background: var(--navy); border-color: var(--navy); padding: 30px; gap: 8px; }
.map { flex: 1.3 1 460px; min-width: 0; min-height: 520px; position: relative; border-radius: 24px; overflow: hidden; background: var(--tint); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } .map .btn { position: absolute; left: 20px; bottom: 20px; }
.about__img { border-radius: var(--r-lg); margin: 0 0 20px; width: 100%; max-width: 380px; aspect-ratio: 3 / 4; object-fit: cover; }
aside .rating { color: var(--ink); }
.prose { max-width: 820px; } .prose .note { margin: 28px 0; }

/* подвал */
.foot { background: var(--navy-deep); color: #c9d6e0; font-size: .94rem; border-radius: 40px 40px 0 0; overflow: hidden; padding-top: 72px; }
.foot a { color: #c9d6e0; text-decoration: none; } .foot a:hover { color: var(--white); text-decoration: underline; }
.foot__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(244,246,247,.14); }
.foot__top p { margin: 6px 0 0; } .foot__btns { display: flex; flex-wrap: wrap; gap: 12px; } .foot .btn--light { color: var(--navy-deep); } .foot .btn--light:hover { text-decoration: none; color: var(--navy-deep); } .foot .btn--ghost { color: var(--paper); } .foot .btn--ghost:hover { text-decoration: none; }
.foot__phone { display: block; font: 800 clamp(1.9rem, 4.6vw, 3.6rem)/1.05 var(--head); letter-spacing: -.02em; color: var(--white) !important; text-decoration: none !important; margin-top: 8px; }
.foot__phone--sm { font-size: 1.3rem; margin: 0; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px 32px; padding: 48px 0; }
.foot__cols div { display: grid; gap: 11px; align-content: start; } .foot__cols b { font: 700 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.foot__more { color: var(--white) !important; font-weight: 600; text-decoration: underline !important; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 24px 0; border-top: 1px solid rgba(244,246,247,.14); font-size: .88rem; }
.foot__bottom img { border-radius: 50%; } .foot__bottom span { margin-right: auto; }
.foot__note { font-size: .8rem; color: #9fb0bf; margin: 0; padding-bottom: 8px; }
.foot__word { font: 800 clamp(3rem, 12.4vw, 11rem)/.82 var(--head); letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; text-align: center; color: rgba(244,246,247,.07); margin-bottom: -.12em; user-select: none; }
.sticky-cta { display: none; }

/* онлайн-запись */
.booking { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.bk-col { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.bk-col--svc { flex: 1 1 300px; } .bk-col--time { flex: 1.4 1 380px; } .bk-side { flex: 1 1 320px; min-width: 0; display: grid; gap: 16px; }
.bk-step { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 0 0 4px; letter-spacing: 0; }
.bk-step span { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: .92rem; }
.bk-services { display: grid; gap: 10px; }
.bk-svc, .bk-day, .bk-slot { font: inherit; background: var(--paper); border: 2px solid transparent; border-radius: 14px; cursor: pointer; color: var(--ink); transition: border-color .12s, background .12s; }
.bk-svc { text-align: left; padding: 16px 18px; display: grid; gap: 4px; min-height: 76px; } .bk-svc b { font-weight: 600; line-height: 1.3; } .bk-svc span { color: var(--muted); font-size: .92rem; }
.bk-svc:hover, .bk-day:not(:disabled):hover, .bk-slot:hover { border-color: var(--navy); }
[aria-pressed="true"].bk-svc, [aria-pressed="true"].bk-day, [aria-pressed="true"].bk-slot { background: var(--navy); color: var(--white); border-color: var(--navy); }
[aria-pressed="true"].bk-svc span, [aria-pressed="true"].bk-day small { color: #c9d6e0; }
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.bk-day { padding: 8px 0; min-height: 64px; display: grid; justify-items: center; line-height: 1.2; } .bk-day b { font: 700 1.2rem var(--head); }
.bk-day:disabled { opacity: .38; cursor: default; background: transparent; }
.bk-date { margin: 6px 0 0; font-weight: 600; } .bk-date::first-letter { text-transform: uppercase; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } .bk-slot { min-height: 48px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-sum { background: var(--navy); color: var(--paper); border-radius: 24px; padding: 28px; display: grid; gap: 6px; }
.bk-sum b { font: 700 1.35rem/1.25 var(--head); color: var(--white); } .bk-sum strong { font: 800 2rem/1 var(--head); color: var(--white); margin-top: 10px; } .bk-sum span { color: #dbe4eb; } .bk-sum span::first-letter { text-transform: uppercase; } .bk-sum small { color: #c9d6e0; }
.bk-form { display: grid; gap: 14px; }
.bk-form label, .adm label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
.bk-form input:not([type=checkbox]), .bk-form textarea, .adm input:not([type=checkbox]), .adm select, .adm textarea {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
.bk-form input:focus, .bk-form textarea:focus, .adm input:focus, .adm select:focus, .adm textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(29,60,87,.15); }
.bk-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted); } .bk-consent input { margin-top: 4px; width: 20px; height: 20px; }
.bk-trap { position: absolute !important; left: -9999px; }
.bk-err, .adm-err { color: var(--danger); font-weight: 600; margin: 0; } .bk-msg { color: var(--muted); margin: 0; }
.bk-done { flex: 1 1 100%; background: var(--white); border: 1px solid var(--line); border-radius: 24px; text-align: center; padding: 48px 24px; } .bk-done h2 { margin-top: 0; color: var(--ok); } .bk-done__when { font: 700 1.4rem var(--head); } .bk-done__when::first-letter { text-transform: uppercase; }

/* ---------- кабинет мастера ---------- */
.adm { background: #eef2f5; font-size: 15px; line-height: 1.5; }
.adm h1 { font-size: 1.75rem; margin: 0; } .adm h2 { font-size: 1.2rem; margin: 0 0 12px; letter-spacing: 0; } .adm h3 { font-size: 1rem; }
.adm-shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.adm-side { flex: 1 1 220px; max-width: 248px; background: var(--navy-deep); color: #c9d6e0; padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; }
.adm-side__brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; } .adm-side__brand img { border-radius: 50%; } .adm-side__brand span { display: grid; line-height: 1.25; font-size: .85rem; } .adm-side__brand b { font: 700 1rem var(--head); color: var(--white); }
.adm-side nav { display: grid; gap: 6px; }
.adm-side nav a, .adm-side__site { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: #dbe4eb; font-weight: 500; text-decoration: none; }
.adm-side nav a:hover { background: rgba(244,246,247,.1); color: var(--white); } .adm-side nav a[aria-current] { background: var(--paper); color: var(--navy-deep); font-weight: 600; }
.adm-side nav i { margin-left: auto; font-style: normal; min-width: 24px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: .82rem; }
.adm-side__site { margin-top: auto; border: 1px solid rgba(244,246,247,.22); } .adm-side form { padding: 6px 14px; } .adm-side .link { color: #c9d6e0; }
.adm-main { flex: 999 1 640px; min-width: 0; padding: 24px 28px 48px; display: grid; gap: 18px; align-content: start; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; } .adm-head h1 { margin-right: auto; }
.adm-card { background: var(--white); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); min-width: 0; }
.adm-card h2 small { background: var(--tint); border-radius: 999px; padding: 2px 10px; font-family: var(--font); }
.adm-card summary { cursor: pointer; font-weight: 600; }
.adm-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; } .adm-row label { flex: 1 1 150px; } .adm-row--svc label:first-of-type { flex: 3 1 240px; }
.adm-check { flex: 0 0 auto !important; display: flex !important; align-items: center; gap: 8px; min-height: 48px; }
.adm-list { list-style: none; margin: 0; padding: 0; } .adm-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.adm-table { border-collapse: collapse; margin-bottom: 8px; } .adm-table th, .adm-table td { padding: 8px 14px 8px 0; text-align: left; } .adm-table th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.adm-table input[type=checkbox] { width: 20px; height: 20px; }
.adm-flash { background: #e3f1e8; border: 1px solid #b7d8c3; color: #1d4a31; padding: 12px 16px; border-radius: 12px; margin: 0; font-weight: 500; }
.adm-auth { max-width: 380px; margin: 10vh auto; background: var(--white); border-radius: var(--r); padding: 32px; display: grid; gap: 16px; border: 1px solid var(--line); }
.adm-auth img { border-radius: 50%; margin: 0 auto; } .adm-auth h1 { font-size: 1.4rem; text-align: center; margin: 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; } .link--danger { color: var(--danger); }
.tag { display: inline-block; font-size: .82rem; font-weight: 600; white-space: nowrap; padding: 3px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.tag--new { background: #fdecc8; } .tag--ok { background: #dce7f0; } .tag--done { background: #dcefe3; } .tag--lost { background: #e6e9ec; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; } .chip[aria-current] { background: var(--navy); color: var(--white); }
/* журнал */
.jr-week { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; }
.jr-days { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jr-days a { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; min-height: 60px; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.25; }
.jr-days small { font-size: .78rem; } .jr-days b { font: 700 1.15rem var(--head); } .jr-days a[aria-current] { background: var(--navy); color: var(--white); } .jr-days a[aria-current] small { color: #c9d6e0; } .jr-days a.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.jr-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; text-decoration: none; font-size: 1.2rem; }
.jr-layout { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; } .jr-day { flex: 999 1 460px; } .jr-side { flex: 1 1 320px; max-width: 420px; display: grid; gap: 16px; align-content: start; }
.jr-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 16px; color: var(--soft); } .jr-sum h2 { margin: 0 auto 0 0; color: var(--ink); } .jr-sum h2::first-letter { text-transform: uppercase; } .jr-sum b { color: var(--ink); }
.jr-grid { position: relative; margin-top: 10px; }
.jr-hour { position: absolute; left: 0; right: 0; display: flex; align-items: flex-start; gap: 12px; } .jr-hour span { width: 46px; flex: none; margin-top: -10px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; } .jr-hour::after { content: ""; flex: 1; height: 1px; background: #e2e8ed; }
.jr-block { position: absolute; left: 58px; right: 0; border-radius: 12px; background: repeating-linear-gradient(135deg, #f1f4f6 0 8px, #e6ebef 8px 16px); display: flex; align-items: center; padding: 0 16px; color: var(--soft); font-size: .88rem; overflow: hidden; }
.jr-item { position: absolute; left: 58px; right: 0; border-radius: 12px; padding: 0 14px; display: flex; align-items: center; gap: 12px; overflow: hidden; text-decoration: none; color: var(--ink); border-left: 5px solid var(--navy); background: #dce7f0; white-space: nowrap; }
.jr-item:hover { color: var(--ink); filter: brightness(.97); } .jr-item b { font-variant-numeric: tabular-nums; } .jr-item span { overflow: hidden; text-overflow: ellipsis; } .jr-item span + span { color: var(--soft); } .jr-item .tag { margin-left: auto; background: var(--white); }
.jr-item--new { background: #fdecc8; border-left-color: var(--accent); } .jr-item--done { background: #dcefe3; border-left-color: var(--ok); }
.jr-item[aria-current] { box-shadow: 0 0 0 2px var(--navy); z-index: 2; } .jr-item--new[aria-current] { box-shadow: 0 0 0 2px var(--accent); } .jr-item--done[aria-current] { box-shadow: 0 0 0 2px var(--ok); }
.jr-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .82rem; color: var(--soft); } .jr-legend span { display: inline-flex; align-items: center; gap: 8px; } .jr-legend i { width: 14px; height: 14px; border-radius: 4px; border-left: 4px solid var(--navy); background: #dce7f0; }
.jr-legend .n { background: #fdecc8; border-left-color: var(--accent); } .jr-legend .d { background: #dcefe3; border-left-color: var(--ok); }
.jr-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; } .jr-dl dt { color: var(--muted); } .jr-dl dd { margin: 0; font-weight: 600; }
.jr-name { font: 800 1.5rem/1.2 var(--head); display: block; } .jr-comment { background: var(--paper); border-radius: 14px; padding: 12px 16px; color: var(--soft); }
.jr-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .jr-actions .btn { width: 100%; min-height: 48px; border-radius: 12px; padding: 0 10px; } .jr-actions form { display: contents; }
.jr-card { display: grid; gap: 16px; } .jr-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* клиенты */
.cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; } .cl-stats div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; } .cl-stats span { display: block; font-size: .82rem; color: var(--muted); } .cl-stats b { font: 800 1.6rem var(--head); }
.cl-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; } .cl-tools form { flex: 1 1 240px; display: flex; gap: 8px; } .cl-tools input { border-radius: 999px !important; background: var(--paper) !important; border-color: transparent !important; }
.cl-scroll { overflow-x: auto; } .cl-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.cl-table th { text-align: left; padding: 10px 12px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.cl-table td { padding: 8px 12px; border-bottom: 1px solid #e2e8ed; white-space: nowrap; font-variant-numeric: tabular-nums; } .cl-table tr.is-on { background: #f1f5f8; }
.cl-table td:first-child a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); } .cl-table td:first-child span { display: grid; line-height: 1.3; } .cl-table td:first-child small { font-size: .82rem; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: #dce7f0; color: var(--navy); display: grid !important; place-items: center; font: 700 .85rem var(--head); } .avatar--lg { width: 60px; height: 60px; background: var(--navy); color: var(--white); font-size: 1.2rem; }
.cl-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .cl-mini div { background: var(--paper); border-radius: 12px; padding: 10px 12px; } .cl-mini span { display: block; font-size: .75rem; color: var(--muted); } .cl-mini b { font: 700 1.05rem var(--head); white-space: nowrap; }
.cl-hist { list-style: none; margin: 0; padding: 0; } .cl-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2e8ed; } .cl-hist span { display: grid; line-height: 1.3; } .cl-hist small { font-size: .82rem; }
.cl-label { display: block; font: 600 .75rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

@media (max-width: 1359px) { .brand { margin-right: auto; } .top .nav { order: 5; width: 100%; margin: 0; justify-content: space-between; overflow-x: auto; } }
@media (max-width: 1180px) { .buy { position: static; } }
@media (max-width: 720px) {
  body { font-size: 16px; } .wrap { padding-inline: 20px; }
  .top__phone, .top .btn { display: none; }
  .hero__media { display: none; } .hero__rings { display: none; }
  .bk-days { display: flex; overflow-x: auto; padding-bottom: 8px; } .bk-day { flex: 0 0 58px; }
  .gallery img { height: 300px; } .gallery--2 img { height: 240px; }
  .price th:nth-child(2), .price td:nth-child(2) { display: none; } .price th, .price td { padding: 12px 10px; }
  .svclist__rows strong { text-align: left; min-width: 0; } .svclist__rows span { min-width: 0; } .svclist__rows i { display: none; } .svclist__rows a { padding: 20px; }
  .foot { border-radius: 28px 28px 0 0; padding: 48px 0 84px; } .foot__word { display: none; }
  .sticky-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; min-height: 56px; align-items: center; justify-content: center;
    background: var(--accent); color: var(--white); font-weight: 600; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 28px rgba(20,41,60,.35); }
  .adm-main { padding: 18px 16px 40px; }
  .adm-list li { grid-template-columns: 1fr; gap: 4px; } .jr-item span + span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.booking > .bk-err, .booking > .bk-msg { flex: 1 1 100%; }

/* журнал: переключатель видов, неделя, список */
.jr-views { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #dfe6eb; justify-self: start; }
.jr-views .chip { min-height: 40px; background: transparent; font-weight: 500; } .jr-views .chip[aria-current] { background: var(--white); color: var(--ink); font-weight: 600; }
.jr-wg { display: grid; grid-template-columns: 46px repeat(7, minmax(92px, 1fr)); column-gap: 6px; min-width: 760px; }
.jr-wg__day { text-align: center; padding: 6px 0 12px; text-decoration: none; color: var(--ink); } .jr-wg__day b { font: 700 1.05rem var(--head); } .jr-wg__day.is-today b { color: var(--accent); }
.jr-wg__time { position: relative; } .jr-wg__time span { position: absolute; left: 0; margin-top: -9px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.jr-wg__col { position: relative; border-radius: 10px; background-color: var(--white); background-image: linear-gradient(#e2e8ed 1px, transparent 1px); background-size: 100% 60px; box-shadow: inset 0 0 0 1px #e2e8ed; }
.jr-wg__col.is-off { background-color: #f1f4f6; }
.jr-witem { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 1px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8rem; line-height: 1.5; text-decoration: none; color: var(--ink); background: #dce7f0; border-left: 4px solid var(--navy); }
.jr-witem:hover { color: var(--ink); filter: brightness(.96); z-index: 2; }
.jr-wblock { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f1f4f6 0 8px, #e6ebef 8px 16px); border-radius: 8px; }
.jr-listday { margin: 22px 0 6px; color: var(--ink); } .jr-listday::first-letter { text-transform: uppercase; } .jr-listday small { font-family: var(--font); font-weight: 400; margin-left: 8px; }
.jr-list li { grid-template-columns: 120px 1fr auto; align-items: center; } .jr-list li > span:last-child { display: flex; align-items: center; gap: 12px; }

/* хлебные крошки на белом фоне, если под ними белый первый экран */
main:has(> .pagehero) .crumbsbar { background: var(--white); }
.pagehero__in { padding-top: 32px; }
/* тёмная карточка записи: кнопка и рейтинг должны читаться на синем */
.buy .btn { background: var(--paper); border-color: var(--paper); color: var(--navy-deep); }
.buy .btn:hover { background: var(--white); border-color: var(--white); color: var(--navy-deep); }
.buy .rating { color: var(--white); justify-content: start; margin-top: 4px; }
.buy .rating small { text-align: left; color: #c9d6e0; opacity: 1; }
.buy__phone { margin-top: -4px; }

/* журнал: пустое время кликабельно — открывает форму новой записи */
.jr-free { position: absolute; left: 58px; right: 0; border-radius: 10px; display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--navy); }
.jr-free span { opacity: 0; } .jr-free:hover, .jr-free:focus-visible { background: var(--tint); color: var(--navy); } .jr-free:hover span, .jr-free:focus-visible span { opacity: 1; }
.jr-wfree { position: absolute; left: 0; right: 0; height: 60px; display: grid; place-items: center; text-decoration: none; font-weight: 700; color: transparent; border-radius: 8px; }
.jr-wfree:hover, .jr-wfree:focus-visible { background: var(--tint); color: var(--navy); }
details#new[open] { box-shadow: 0 0 0 2px var(--navy); }

/* всплывающее окно новой записи */
.adm-dlg { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(10,24,36,.35); }
.adm-dlg::backdrop { background: rgba(20,41,60,.55); }
.adm-dlg__in { padding: 26px 28px 28px; display: grid; gap: 12px; }
.adm-dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .adm-dlg__head h2 { margin: 0; font-size: 1.45rem; }
.adm-dlg__x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; } .adm-dlg__x:hover { background: var(--tint); }
.adm-dlg .adm-row { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .adm-dlg .adm-row label:nth-of-type(n+3) { grid-column: 1 / -1; } .adm-dlg .adm-row .btn { grid-column: 1 / -1; min-height: 54px; }
.adm-dlg .small, .adm-dlg .adm-flash { margin: 0; }

/* всплывающий просмотр фото и видео */
.gallery a.zoom { display: block; border-radius: 24px; overflow: hidden; cursor: zoom-in; } .gallery a.zoom img { transition: transform .3s; } .gallery a.zoom:hover img { transform: scale(1.03); }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: var(--white); overflow: hidden; }
.lb::backdrop { background: rgba(10,20,30,.92); }
.lb__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 72px 72px; }
.lb__stage img, .lb__stage video { width: auto; height: auto; max-width: calc(100vw - 144px); max-height: calc(100vh - 136px); border-radius: 16px; object-fit: contain; background: #000; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: .95rem; color: #dbe4eb; pointer-events: none; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(244,246,247,.16); color: var(--white); font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb__btn:hover { background: rgba(244,246,247,.3); } .lb__btn[hidden] { display: none; }
.lb__x { top: 16px; right: 16px; } .lb__prev { left: 14px; top: 50%; margin-top: -26px; } .lb__next { right: 14px; top: 50%; margin-top: -26px; }
@media (max-width: 720px) { .lb__stage { padding: 72px 12px 64px; } .lb__stage img, .lb__stage video { max-width: calc(100vw - 24px); } .lb__prev, .lb__next { top: auto; bottom: 12px; margin: 0; } }

/* карточка мастера на страницах услуг, проблем и статей */
.author { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin: 36px 0 20px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.author img { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.author__text { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; } .author__text b { font: 800 1.35rem/1.2 var(--head); } .author__text > span:last-child { color: var(--soft); font-size: .95rem; }
.author__rate { white-space: nowrap; font-weight: 600; color: var(--ink); } .author__rate i { font-style: normal; color: #d99a1c; }
.author__links { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.author__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.author__links a:hover { background: var(--navy); color: var(--white); }

/* дипломы и сертификаты */
.certs { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 60px); display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; }
.certs__text { flex: 1 1 300px; min-width: 0; display: grid; gap: 14px; justify-items: start; } .certs__text h2, .certs__text p, .certs__text .ticks { margin: 0; } .certs__text p { color: var(--soft); } .certs__text a { font-weight: 600; }
.certs__grid { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cert { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); font-size: .88rem; line-height: 1.35; text-align: center; }
a.cert { cursor: zoom-in; } a.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); transition: transform .2s, box-shadow .2s; }
a.cert:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,41,60,.16); }
.cert--empty { aspect-ratio: 3 / 4; align-items: center; justify-content: center; padding: 16px; border-radius: 14px; border: 2px dashed var(--line2); background: var(--paper); color: var(--muted); } .cert--empty i { color: var(--navy); } .cert--empty span { color: var(--ink); font-weight: 600; }

/* страница статьи на всю ширину: текст + боковая колонка с содержанием и записью */
.article { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.article__main { flex: 999 1 560px; min-width: 0; font-size: 1.08rem; line-height: 1.7; } .article__main h2:first-child { margin-top: 0; } .article__main h2 { scroll-margin-top: 110px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); } .article__main .note { margin: 32px 0; }
.article__side { flex: 1 1 300px; max-width: 400px; position: sticky; top: 104px; display: grid; gap: 16px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; display: grid; gap: 2px; } .toc b { font: 700 .8rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { padding: 9px 0; border-top: 1px solid #e2e8ed; text-decoration: none; color: var(--ink); font-size: .95rem; line-height: 1.35; } .toc a:hover { color: var(--accent); }
.buy--static { position: static; max-width: none; }
.pagehero__text .small { margin: 0; }
@media (max-width: 1180px) { .article__side { position: static; max-width: none; } }

/* страница 404 — как на макете */
.hero--404 .hero__rings { right: -160px; width: 760px; height: 760px; margin-top: -380px; } .hero--404 .hero__rings::after { inset: 140px; }
.hero--404 .hero__in { padding-block: clamp(56px, 7vw, 96px); } .hero--404 h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.hero--404 .big404 { flex: 0 1 480px; margin: 0 20px 0 auto; }
.after-grid { margin: 32px 0 0; color: var(--muted); } .after-grid a { font-weight: 600; white-space: nowrap; }

/* ---------- мобильная шапка и меню ---------- */
.top__icon, .nav__m { display: none; }
@media (max-width: 720px) {
  .top__in { flex-wrap: nowrap; gap: 8px; padding-block: 10px; }
  .brand { min-width: 0; margin-right: auto; }
  .top__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--tint); color: var(--navy); cursor: pointer; }
  .top__burger { background: var(--navy); color: var(--white); }
  .top .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; order: 0; width: auto; margin: 0; padding: 8px 20px 20px; border-radius: 0 0 24px 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20,41,60,.18); flex-direction: column; gap: 0; overflow: visible; max-height: calc(100vh - 70px); overflow-y: auto; }
  .top.is-open .nav { display: flex; }
  .top .nav a, .nav__m { display: flex; min-height: 52px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 600; white-space: normal; }
  .top .nav a[aria-current] { background: transparent; box-shadow: none; color: var(--accent); }
  .top .nav .nav__cta { margin-top: 16px; justify-content: center; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); min-height: 54px; }
  /* отступы между блоками */
  .sec { padding-block: 44px; } .hero__in { padding-block: 40px 44px; gap: 24px; } .hero__text { gap: 20px; }
  .hero h1 { font-size: 2rem; } .hero__lead { font-size: 1.05rem; }
  .hero__btns { width: 100%; } .hero__btns .btn { flex: 1 1 100%; }
  .facts__in { padding-block: 28px; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts b { font-size: 1.8rem; }
  .pagehero__in { padding-block: 20px 40px; gap: 28px; } .pagehero__img { max-width: none; aspect-ratio: 4 / 3; }
  .sec__head { margin-bottom: 22px; } h2 { margin-top: 1.4em; }
  .card, .card--num { min-height: 0; padding: 22px; } .panel { padding: 28px 22px; } .tile { padding: 26px 22px; } .certs { padding: 26px 22px; }
  .steps { gap: 24px; } .cta { padding-bottom: 48px; } .cta__in { padding: 26px 22px; } .cta__slots { padding: 20px; }
  .author { padding: 20px; } .svc { gap: 32px; } .buy { max-width: none; padding: 24px; }
  .foot { padding-top: 44px; } .foot__top { padding-bottom: 32px; } .foot__cols { padding: 32px 0; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__btns .btn { flex: 1 1 100%; }
  .crumbs { padding-top: 16px; }
}
@media (max-width: 720px) { .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex-basis: 100%; } .cert--empty { padding: 10px; font-size: .8rem; } }

/* На компьютере мобильные пункты меню скрыты (правило сильнее, чем .nav a). */
.top .nav a.nav__m { display: none; }
@media (max-width: 720px) {
  .top .nav { padding: 10px 12px 16px; gap: 4px; }
  .top .nav a, .top .nav a.nav__m { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; border: 0; border-radius: 16px; font-size: 1.05rem; font-weight: 600; color: var(--ink); background: transparent; transition: background .15s, color .15s, transform .1s; }
  .top .nav a::after { content: ""; width: 9px; height: 9px; flex: none; border-top: 2px solid var(--line2); border-right: 2px solid var(--line2); transform: rotate(45deg); transition: border-color .15s, transform .15s; }
  .top .nav a:hover, .top .nav a:focus-visible { background: var(--paper); color: var(--ink); }
  .top .nav a:active { background: var(--tint); transform: scale(.985); }
  .top .nav a:active::after { border-color: var(--navy); transform: translateX(3px) rotate(45deg); }
  /* текущий раздел: простая светлая плашка, без обводок и цветных меток */
  .top .nav a[aria-current] { background: var(--tint); color: var(--navy); box-shadow: none; }
  .top .nav a[aria-current]::after { border-color: var(--navy); }
  .top .nav a.nav__cta { margin-top: 12px; justify-content: center; background: var(--navy); color: var(--white); border-radius: 999px; box-shadow: none; }
  .top .nav a.nav__cta::after { display: none; } .top .nav a.nav__cta:active { background: var(--navy-deep); }
}

/* юридические документы */
.legal { font-size: 1rem; line-height: 1.7; } .legal h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); } .legal .plain { gap: 8px; }
.bk-form label small { font-weight: 400; }

/* кабинет: ошибки заметны и стоят рядом с полем */
.adm-flash--err { background: #fbeceb; border-color: #e8c6c3; color: #7d241f; }
.adm-row__err { flex: 1 1 100%; margin: -4px 0 0; color: var(--danger); font-weight: 600; font-size: .9rem; }
.adm-row--svc { scroll-margin-top: 24px; }
.adm-row--svc.is-err input[name=price] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(168,50,43,.14); }

/* «ещё N» в блоках ближайшего времени: отличается заливкой, без обводок */
.slot-more { font-weight: 600; white-space: nowrap; }
.slotcard__slots .slot-more { background: var(--navy) !important; color: var(--white) !important; }
.slotcard__slots .slot-more:hover { background: var(--navy-deep) !important; }
.buy__slots .slot-more, .cta__slots div .slot-more { background: rgba(244,246,247,.3); }
.buy__slots .slot-more:hover, .cta__slots div .slot-more:hover { background: rgba(244,246,247,.42); }

.slotcard__slots, .buy__slots, .cta__slots div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slotcard__slots a, .buy__slots a, .cta__slots div a { padding-inline: 4px; }

/* логотип в шапке: горизонтальный знак «ЛА» с названием */
.top .brand .brand__logo { display: block; height: 42px; width: auto; max-width: none; border-radius: 0; }
@media (max-width: 720px) { .top .brand .brand__logo { height: 34px; } }
@media (max-width: 360px) { .top .brand .brand__logo { height: 28px; } }

/* кабинет: «Открыть сайт» и «Выйти» */
.adm-side__tools { margin-top: auto; display: grid; gap: 6px; } .adm-side__tools form { padding: 0; }
.adm-tool { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: #dbe4eb; font: 500 1rem var(--font); text-decoration: none; cursor: pointer; }
.adm-tool:hover { background: rgba(244,246,247,.1); color: var(--white); }

/* кабинет на телефоне: шапка в одну строку + меню лентой с прокруткой */
@media (max-width: 720px) {
  .adm-shell { flex-direction: column; }
  .adm-side { position: sticky; top: 0; z-index: 10; max-width: none; flex: none; padding: 10px 0 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0; }
  .adm-side__brand { padding: 0 16px; gap: 10px; } .adm-side__brand img { width: 36px; height: 36px; } .adm-side__brand span { font-size: .78rem; } .adm-side__brand b { font-size: .95rem; }
  .adm-side__brand { grid-row: 1; grid-column: 1; }
  .adm-side__tools { grid-row: 1; grid-column: 2; margin: 0; padding-right: 12px; display: flex; gap: 6px; }
  .adm-tool { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; background: rgba(244,246,247,.1); }
  .adm-tool span { display: none; }
  .adm-side nav { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .adm-side nav::-webkit-scrollbar { display: none; }
  .adm-side nav a { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap; scroll-snap-align: start; background: rgba(244,246,247,.08); }
  .adm-side nav a[aria-current] { background: var(--paper); }
}
@media (min-width: 721px) { .adm-side { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; } }

/* кабинет: белая эмблема на тёмной колонке, без круглой подложки */
.adm-side__brand img { border-radius: 0; width: 52px; height: 52px; }
@media (max-width: 720px) { .adm-side__brand img { width: 40px; height: 40px; } }

/* кабинет на телефоне: рабочие часы карточками вместо таблицы, поля в один столбец */
@media (max-width: 720px) {
  .adm-table, .adm-table tbody { display: block; width: 100%; }
  .adm-table thead { display: none; }
  .adm-table tr { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  .adm-table td { padding: 0; }
  .adm-table td:nth-child(1) { font-weight: 600; }
  .adm-table td:nth-child(2) { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--soft); }
  .adm-table td:nth-child(2)::after { content: "работаю"; }
  .adm-table td:nth-child(3)::before { content: "С"; } .adm-table td:nth-child(4)::before { content: "До"; }
  .adm-table td:nth-child(3)::before, .adm-table td:nth-child(4)::before { display: block; margin-bottom: 4px; font-size: .78rem; color: var(--muted); }
  .adm-table input[type=time] { width: 100%; }
  .adm-row { flex-direction: column; align-items: stretch; } .adm-row label { flex: none; } .adm-row .btn { width: 100%; }
  .adm-check { min-height: 44px; }
  .adm-card { padding: 18px 16px; }
}

/* кабинет на телефоне: журнал и клиенты по ширине экрана */
@media (max-width: 720px) {
  .jr-layout { flex-direction: column; } .jr-layout > * { flex: 1 1 auto; width: 100%; max-width: none; min-width: 0; }
  .cl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cl-stats div { padding: 12px 14px; } .cl-stats span { font-size: .75rem; line-height: 1.3; } .cl-stats b { font-size: 1.35rem; }
  .cl-tools { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 4px; scrollbar-width: none; } .cl-tools::-webkit-scrollbar { display: none; }
  .cl-tools form { flex: 0 0 100%; } .cl-tools .chip { flex: none; }
  .cl-tools { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0; } .cl-tools form { flex-basis: 100%; }
  .cl-scroll { overflow: visible; }
  .cl-table { min-width: 0; } .cl-table thead { display: none; } .cl-table, .cl-table tbody { display: block; }
  .cl-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: end; gap: 6px 10px; padding: 12px 6px; border-top: 1px solid #e2e8ed; border-radius: 12px; }
  .cl-table td { border: 0; padding: 0; white-space: normal; font-size: .9rem; }
  .cl-table td:first-child { grid-column: 1 / -1; } .cl-table td:first-child a { min-height: 44px; }
  .cl-table td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; color: var(--muted); }
  .cl-table td:last-child { justify-self: end; }
}
@media (max-width: 720px) { .cl-table td[data-l] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cl-table td:nth-child(3) { white-space: normal; } }
.price .price__cat th { padding: 22px 20px 8px; font-family: var(--head); font-size: .82rem; color: var(--navy); border-bottom: 1px solid var(--line); background: var(--white); }
@media (max-width: 720px) { .price .price__cat th { padding: 16px 10px 6px; display: table-cell; } }

.foot__phone { white-space: nowrap; font-size: clamp(1.45rem, 7vw, 3rem); }
.contactcards__phone .foot__phone { font-size: clamp(1.35rem, 6.2vw, 2.4rem); }

.adm-row label small { display: block; margin-top: 4px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.adm-row .adm-check { display: flex; flex-direction: row; align-items: center; gap: 10px; flex: 1 1 100%; }
.adm-row .adm-check input { width: auto; }
.phone { display: flex; gap: 8px; align-items: stretch; width: 100%; }
.phone__cc { flex: 0 0 auto; width: auto !important; min-width: 96px; padding-inline: 10px; }
.phone input[type=tel] { flex: 1 1 auto; min-width: 0; }
.adm-row .adm-full { flex: 1 1 100%; position: relative; } .adm-dlg .adm-row .adm-full { grid-column: 1 / -1; }
.adm-dlg .adm-row label.adm-half { grid-column: auto; }

/* поиск клиента в форме записи */
.cl-field { position: relative; display: grid; gap: 6px; }
.cl-field > label { font-weight: 600; }
.cl-box { position: relative; }
.cl-box__ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.adm input.cl-pick:not([type=checkbox]) { padding-left: 46px; padding-right: 46px; }
.cl-pick__x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cl-pick__x:hover { background: #dfe6eb; } .cl-pick__x[hidden] { display: none; }
.cl-pick__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 6px; background: var(--white); border-radius: 18px; box-shadow: 0 18px 44px rgba(20,41,60,.22); max-height: 320px; overflow: auto; }
.cl-pick__list[hidden] { display: none; }
.cl-pick__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.cl-pick__item:hover, .cl-pick__item.is-on { background: var(--paper); }
.cl-pick__item i { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #dce7f0; color: var(--navy); font: 700 .85rem var(--head); font-style: normal; }
.cl-pick__item span { display: grid; gap: 1px; min-width: 0; } .cl-pick__item b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-pick__item small { color: var(--muted); font-size: .86rem; } .cl-pick__item mark { background: #fdecc8; color: inherit; border-radius: 3px; padding: 0 1px; }
.cl-pick__item--new { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; padding-top: 12px; }
.cl-pick__item--new i { background: var(--navy); color: var(--white); font-size: 1.2rem; }

/* выбор страны в телефоне: стрелка рядом с текстом */
.phone__cc { appearance: none; -webkit-appearance: none; width: auto !important; min-width: 0; padding: 0 30px 0 14px !important; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2314293c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; }

/* перетаскивание записей */
.jr-item, .jr-witem { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.jr-item.is-drag, .jr-witem.is-drag { cursor: grabbing; z-index: 60; pointer-events: none; opacity: .92; box-shadow: 0 14px 34px rgba(20,41,60,.3); transition: none; }
body.is-dragging { cursor: grabbing; user-select: none; }
.jr-days a.is-drop { background: var(--navy); color: var(--white); } .jr-days a.is-drop small { color: #c9d6e0; }
.jr-tip { position: fixed; z-index: 100; pointer-events: none; padding: 7px 12px; border-radius: 10px; background: var(--navy-deep); color: var(--white); font: 600 .88rem var(--font); white-space: nowrap; box-shadow: 0 8px 22px rgba(20,41,60,.3); }

/* поиск записей */
.jr-search { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.jr-search input[type=search] { flex: 1 1 auto; min-width: 0; }
@media (max-width: 720px) { .jr-search { flex-wrap: wrap; } .jr-search .btn { flex: 1 1 auto; } }

/* перетаскивание на телефоне */
.jr-item, .jr-witem { -webkit-touch-callout: none; }
.jr-item.is-drag, .jr-witem.is-drag { transform-origin: 30% 50%; }
.jr-dropbar { position: fixed; z-index: 90; left: 8px; right: 8px; top: 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px; border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(20,41,60,.28); }
.jr-dropbar a { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.2; }
.jr-dropbar small { font-size: .7rem; } .jr-dropbar b { font: 700 1rem var(--head); }
.jr-dropbar a.is-drop { background: var(--navy); color: var(--white); } .jr-dropbar a.is-drop small { color: #c9d6e0; }
@media (pointer: coarse) { .jr-item, .jr-witem { touch-action: pan-y; } }

/* всплывающие уведомления */
.adm-toast { position: fixed; z-index: 200; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; width: max-content; transform: translate(-50%, 160%); opacity: 0; transition: transform .28s ease, opacity .28s ease;
  display: flex; align-items: center; gap: 14px; max-width: min(92vw, 520px); padding: 14px 14px 14px 20px; border-radius: 16px;
  background: var(--navy-deep); color: var(--white); font-weight: 500; box-shadow: 0 16px 40px rgba(20,41,60,.35); cursor: pointer; }
.adm-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.adm-toast--err { background: #8f2d27; }
.adm-toast button { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .adm-toast { transition: none; } }
.adm-dlg--card .adm-dlg__in { padding: 22px; } .adm-dlg--card .jr-card { box-shadow: none; border: 0; padding: 0; margin: 0; }
.adm-dlg--card .adm-dlg__x { position: absolute; right: 14px; top: 14px; z-index: 2; }
.adm-dlg--card .adm-dlg__in { position: relative; } .adm-dlg--card .jr-card__top { padding-right: 54px; min-height: 40px; }

/* карточка записи на телефоне: нижняя шторка, без дубля под сеткой */
@media (max-width: 720px) {
  .jr-side > .jr-card { display: none; }
  .adm-dlg--card { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
  .adm-dlg--card .adm-dlg__in { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
  .adm-dlg--card .adm-dlg__x { right: 10px; top: 10px; width: 40px; height: 40px; }
  .adm-dlg--card .jr-card { gap: 14px; }
  .adm-dlg--card .jr-card .btn, .adm-dlg--card .jr-card button { min-height: 48px; }
  .adm-dlg--card .jr-card a[href^="tel:"] { white-space: nowrap; }
}

/* оплата в карточке записи */
.tag--paid { background: #dcefe3; } .tag--unpaid { background: #fdecc8; }
.jr-pay { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--paper, #f3f6f8); }
.jr-pay__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .jr-pay__btns form { display: contents; }
.jr-pay__btns .btn { min-height: 46px; padding: 0 8px; font-size: .95rem; }

/* вид «Месяц» */
.jr-month__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; text-align: center; }
.jr-month__head h2 { margin: 0; } .jr-month__head h2::first-letter { text-transform: uppercase; }
.jr-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jr-month__wd { text-align: center; color: var(--muted, #5b6b78); padding: 2px 0; text-transform: uppercase; }
.jr-month__day { display: grid; align-content: start; gap: 2px; min-height: 76px; padding: 8px 6px; border-radius: 12px; background: var(--paper, #f3f6f8); color: inherit; text-decoration: none; overflow: hidden; }
.jr-month__day.has { background: #dce7f0; } .jr-month__day.is-off { opacity: .55; }
.jr-month__day.is-today { outline: 2px solid var(--navy, #263d56); outline-offset: -2px; }
.jr-month__day span { font-weight: 700; font-size: .82rem; } .jr-month__day small { font-size: .74rem; white-space: nowrap; }
@media (max-width: 720px) { .jr-month__grid { gap: 4px; } .jr-month__day { min-height: 62px; padding: 6px 3px; text-align: center; } .jr-month__day span { font-size: .72rem; } .jr-month__day small { font-size: .66rem; } }
@media (max-width: 420px) { .jr-views { max-width: 100%; } .jr-views .chip { padding-inline: 12px; min-width: 0; } }

/* выходные и перерывы: календарь выбора дней */
.bk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 16px; font-size: .85rem; color: var(--muted, #5b6b78); } .bk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-style: normal; font-size: .72rem; font-weight: 700; }
.bk-i--rec { background: var(--navy, #263d56); color: #fff; border-radius: 50%; } .bk-i--closed { background: #e3c9c6; } .bk-i--part { background: #fdecc8; }
.bk-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px 28px; padding-bottom: 80px; }
.bk-month h3 { margin: 0 0 8px; } .bk-month h3::first-letter { text-transform: uppercase; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; } .bk-grid small { text-align: center; text-transform: uppercase; color: var(--muted, #5b6b78); }
.bk-day { position: relative; display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 52px; padding: 4px 2px; border: 2px solid transparent; border-radius: 12px; background: var(--paper, #f3f6f8); color: inherit; font: inherit; cursor: pointer; }
.bk-day b { font-size: 1rem; } .bk-day em { font-style: normal; font-size: .62rem; line-height: 1; color: #7a2f29; }
.bk-day i { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--navy, #263d56); color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.bk-day.is-off { opacity: .55; } .bk-day.is-today { outline: 2px dotted var(--navy, #263d56); outline-offset: -4px; }
.bk-day.is-closed { background: #e3c9c6; } .bk-day.is-part { background: #fdecc8; } .bk-day:disabled { opacity: .3; cursor: default; }
.bk-day.is-picked { border-color: var(--navy, #263d56); background: #dce7f0; box-shadow: inset 0 0 0 2px #fff; }
.bk-bar { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--navy-deep, #14293c); color: #fff; box-shadow: 0 14px 34px rgba(20,41,60,.35); }
.bk-bar[hidden] { display: none; } .bk-bar span { margin-right: auto; } .bk-bar .btn { min-height: 44px; } .bk-bar .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.bk-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fdecc8; font-size: .92rem; } .bk-warn ul { margin: 6px 0 0; padding-left: 18px; }
.bk-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .bk-check input { width: 22px; height: 22px; } .bk-check small { flex-basis: 100%; padding-left: 32px; color: var(--muted, #5b6b78); }
@media (max-width: 720px) { .bk-cal { grid-template-columns: 1fr; } .bk-bar .btn { padding-inline: 14px; } }

/* карточка записи не должна быть шире своей колонки */
.jr-card { grid-template-columns: minmax(0, 1fr); } .jr-card > * { min-width: 0; }
.jr-pay__btns .btn { min-width: 0; padding: 0 4px; font-size: .88rem; white-space: nowrap; }
.jr-dl dd { min-width: 0; overflow-wrap: anywhere; }

/* телефон: «Неделя» прокручивается вбок внутри карточки, «Список» и поиск в одну колонку */
@media (max-width: 720px) {
  .cl-scroll:has(.jr-wg) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .jr-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .jr-list li > span { min-width: 0; overflow-wrap: anywhere; } .jr-list li > span:last-child { flex-wrap: wrap; gap: 8px 12px; }
}
@media (max-width: 720px) { .jr-days a small { font-size: .66rem; white-space: nowrap; letter-spacing: -.01em; } .jr-days a { min-width: 0; padding-inline: 2px; } }
.bk-day.is-picked, .bk-day.is-picked b { color: var(--ink, #14293c); } .bk-day.is-picked { background: #c9dcec; }
.bk-day em { max-width: 100%; white-space: nowrap; }
@media (max-width: 720px) { .bk-day { min-height: 56px; padding: 4px 0; } .bk-day em { font-size: .55rem; letter-spacing: -.02em; } }
@media (max-width: 720px) { .bk-day i { top: 1px; right: 1px; min-width: 15px; height: 15px; font-size: .6rem; padding: 0 3px; } .bk-day b { margin-top: 4px; } }

/* способ оплаты: список строк вместо трёх кнопок в ряд */
.jr-pay__btns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.jr-pay__btns .btn { width: 100%; min-height: 50px; padding: 0 18px; font-size: 1rem; justify-content: space-between; text-align: left; }
.jr-pay__btns .btn:not(.btn--outline)::after { content: "✓"; font-weight: 700; }

/* нижние действия карточки записи */
.jr-card > form > .btn, .jr-card > a.btn { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn--danger { color: #9a2f28; border-color: #c9807a; } .btn--danger:hover { background: #f8e6e4; }
.jr-move { border-radius: 16px; background: var(--paper, #f3f6f8); }
.jr-move summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 18px; cursor: pointer; font-weight: 600; }
.jr-move summary::-webkit-details-marker { display: none; }
.jr-move summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.jr-move[open] summary::after { transform: rotate(-135deg); }
.jr-move > form { padding: 0 16px 16px; }

/* переключатель */
.sw { position: relative; display: inline-block; flex: none; width: 48px; height: 28px; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: #c5ced6; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sw input:checked + i { background: var(--navy, #263d56); } .sw input:checked + i::after { transform: translateX(20px); }
.sw input:focus-visible + i { outline: 3px solid rgba(38,61,86,.35); outline-offset: 2px; }

/* расписание */
.sd-list { display: grid; gap: 8px; margin: 14px 0 16px; }
.sd { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--paper, #f3f6f8); }
.sd__day { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; margin: 0; cursor: pointer; } .sd__day b { font-size: 1.02rem; }
.sd__off { display: none; color: var(--muted, #5b6b78); } .sd.is-off .sd__off { display: inline; }
.sd__time { display: flex; align-items: center; gap: 8px; } .sd__time input { width: 118px; min-height: 46px; } .sd.is-off .sd__time { opacity: .35; pointer-events: none; }
.sr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.sr { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 16px; background: var(--paper, #f3f6f8); }
.sr__t { font-weight: 600; } .sr small { color: var(--muted, #5b6b78); line-height: 1.4; }
.sr__f { display: flex; align-items: center; gap: 10px; } .sr__f input { flex: 1 1 auto; min-width: 0; } .sr__f em { font-style: normal; color: var(--muted, #5b6b78); min-width: 36px; }
.sch__save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; padding-top: 4px; } .sch__save .btn { box-shadow: 0 10px 26px rgba(20,41,60,.28); }

/* услуги и цены */
.sv-list { display: grid; gap: 8px; margin: 14px 0; }
.sv { border-radius: 16px; background: var(--paper, #f3f6f8); }
.sv > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; cursor: pointer; }
.sv > summary::-webkit-details-marker { display: none; }
.sv > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.sv[open] > summary::after { transform: rotate(-135deg); }
.sv__name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; } .sv__meta { color: var(--muted, #5b6b78); white-space: nowrap; }
.sv--new { background: transparent; border: 2px dashed var(--line, #d5dde3); } .sv--new .sv__name { color: var(--navy, #263d56); }
.sv__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 16px 18px; } .sv__wide { grid-column: 1 / -1; } .sv__form label { margin: 0; }
.sv__form.is-err input[name=price] { border-color: var(--danger, #a8322b); box-shadow: 0 0 0 3px rgba(168,50,43,.14); }
.sw-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
@media (max-width: 720px) {
  .sd { flex-wrap: wrap; } .sd__time { width: 100%; } .sd__time input { flex: 1 1 0; width: auto; min-width: 0; }
  .sv > summary { flex-wrap: wrap; row-gap: 2px; } .sv__name { flex-basis: calc(100% - 30px); } .sv__meta { order: 3; }
  .sv__form { grid-template-columns: 1fr; } .sch__save .btn { width: 100%; }
}
/* «Отменить запись» всегда последней */
.jr-card > form[action="/admin/booking-cancel"] { order: 99; }
.sch { display: grid; gap: 18px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.sd__day { display: flex; width: auto; min-width: 0; } .sd__time { min-width: 0; }
.sd__time input[type=time] { min-width: 0; }
.adm .sd__day { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.adm .sw-row { display: flex; align-items: center; gap: 14px; }
.adm .sr { display: grid; } #sd-copy { width: 100%; white-space: normal; min-height: 50px; height: auto; padding-block: 10px; line-height: 1.25; }
.sv__sub { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .sv > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 14px 16px; gap: 8px 12px; align-items: center; }
  .sv__name { grid-column: 1; } .sv > summary::after { grid-column: 2; grid-row: 1; margin: 0; }
  .sv__sub { grid-column: 1 / -1; justify-content: flex-start; }
  .sv__form { padding-top: 0; }
}
.sv:not([open]) > .sv__form { display: none; } .sv[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (min-width: 721px) { #sd-copy { width: auto; } }

/* несколько страниц сайта у услуги */
.sv__pages { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; min-width: 0; }
.sv__pages legend { padding: 0; margin-bottom: 8px; font-weight: 500; font-size: .92rem; } .sv__pages small { grid-column: 1 / -1; color: var(--muted, #5b6b78); }
.adm .chk { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #d5dde3); cursor: pointer; font-weight: 500; }
.chk input { width: 20px; height: 20px; flex: none; margin: 0; } .chk:has(input:checked) { border-color: var(--navy, #263d56); background: #eaf0f6; }
.bk-done__max { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #d5dde3); display: grid; gap: 12px; justify-items: start; } .bk-done__max p { margin: 0; }

/* Галереи фото из студии: 3 и 4 колонки, на телефоне две */
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.gallery--4 img { height: 300px; border-radius: 18px; } .gallery--4 a.zoom { border-radius: 18px; }
@media (max-width: 720px) {
  .gallery--3, .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery--3 img, .gallery--4 img { height: 240px; }
}

.gallery--3 a.zoom--wide { grid-column: span 2; } .gallery--3 a.zoom--wide img { object-position: 50% 40%; }

/* Галерея на главной: показываем первые 8, остальные — по кнопке */
.gallery--more.is-collapsed a.zoom:nth-child(n+9) { display: none; }
.gallery__more { text-align: center; margin: 24px 0 0; }

/* Кнопка «Выбрать время» на страницах услуг — акцентный цвет */
.pagehero .hero__btns .btn:not(.btn--outline) { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pagehero .hero__btns .btn:not(.btn--outline):hover { background: #8f5324; border-color: #8f5324; color: var(--white); }

/* Видео-блок «Сеанс изнутри»: вертикальные ролики, 4 в ряд, на телефоне 2 */
.videos--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.videos--grid a { aspect-ratio: 9 / 14; border-radius: 20px; }
.videos--grid img { height: 100%; opacity: .9; }
.videos--grid span { left: 14px; right: 14px; bottom: 14px; font-size: .95rem; }
.videos--grid i { width: 44px; height: 44px; }
@media (max-width: 720px) { .videos--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .videos--grid a { aspect-ratio: 9 / 13; } .videos--grid span { font-size: .85rem; gap: 8px; } .videos--grid i { width: 36px; height: 36px; } }
.videos--grid.gallery--more.is-collapsed a.zoom:nth-child(n+9) { display: none; }

/* Сканы документов: целиком, без обрезки, у горизонтальных и вертикальных разный формат */
a.cert img { object-fit: contain; aspect-ratio: 4 / 3; padding: 6px; }
.certs__grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 720px) { .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot__bottom .foot__dev { margin: 0 0 0 auto; font-size: .85rem; opacity: .75; } .foot__dev a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .foot__bottom .foot__dev { margin-left: 0; flex-basis: 100%; } }

/* ---------- настройки кабинета ---------- */
.st { display: grid; gap: 16px; max-width: 860px; }
.st__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st__tile { display: grid; gap: 2px; padding: 16px 16px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); position: relative; transition: border-color .15s, transform .15s; }
.st__tile:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--ink); }
.st__tile b { font: 700 1rem var(--head); } .st__tile small { color: var(--muted); font-size: .82rem; }
.st__dot { width: 10px; height: 10px; border-radius: 50%; background: #c5ced6; margin-bottom: 10px; }
.st__tile.is-on .st__dot { background: #2f8a55; box-shadow: 0 0 0 5px rgba(47,138,85,.16); } .st__tile.is-on small { color: #1d4a31; }
.st__card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 20px; overflow: hidden; }
.st__head { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; }
.st__head::-webkit-details-marker { display: none; } .st__head:hover { background: var(--paper); }
.st__card[open] > .st__head { border-bottom: 1px solid var(--line); background: var(--paper); }
.st__head h2 { margin: 0; font-size: 1.12rem; } .st__head p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); } .st__head > div { flex: 1; min-width: 0; }
.st__ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; }
.st__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st__chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.st__card[open] > .st__head .st__chev { transform: rotate(-135deg); }
.st__pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #eceff2; color: var(--muted); font: 600 .78rem var(--font); white-space: nowrap; }
.st__pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aeb8c2; }
.st__pill.is-on { background: #e3f1e8; color: #1d4a31; } .st__pill.is-on::before { background: #2f8a55; }
.st__form { display: grid; gap: 18px; padding: 22px 22px 8px; }
.st__group { margin: 0; padding: 4px 0 0; border: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; min-width: 0; }
.st__group legend { padding: 0 12px 0 0; font: 700 1rem var(--head); display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 8px; }
.st__group > * { clear: both; }
.st__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st__form label, .st__one { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.st__form input, .st__form select { width: 100%; }
.st__form small, .st__switch small { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.st__hint { margin: 0; font-size: .86rem; color: var(--muted); } .st__hint--lead { padding: 20px 22px 0; font-size: .92rem; line-height: 1.55; }
.st__switch { flex-direction: row !important; align-items: center; gap: 14px !important; padding: 14px 16px; background: var(--paper); border-radius: 14px; cursor: pointer; }
.st__switch > span:last-child { display: grid; gap: 2px; }
.st__one { max-width: 360px; }
.st__actions { display: flex; justify-content: flex-end; padding: 4px 0 16px; }
.st__test { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 22px; padding: 16px 0; border-top: 1px dashed var(--line2); }
.st__test form { margin: 0; } .st__test p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1 1 220px; }
.st__help { margin: 0 22px 20px; padding: 12px 16px; background: var(--paper); border-radius: 14px; font-size: .9rem; } .st__help p { margin: 8px 0 0; line-height: 1.5; }
.st__note { margin: 8px 0 0; padding: 14px 22px 22px; font-size: .84rem; color: var(--muted); border-top: 1px dashed var(--line2); }
@media (max-width: 860px) { .st__tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .st__grid { grid-template-columns: 1fr; } .st__head { padding: 14px 16px; } .st__form { padding: 18px 16px 4px; } .st__pill { display: none; }
  .st__test, .st__help { margin-left: 16px; margin-right: 16px; } .st__hint--lead { padding: 16px 16px 0; } .st__note { padding: 14px 16px 20px; }
  .st__actions .btn { width: 100%; } .st__one { max-width: none; }
}

/* ---------- новая запись: дата, время, ФИО ---------- */
.nd { display: grid; gap: 10px; min-width: 0; }
.nd__lab { font-weight: 700; font-size: .95rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nd__lab span { font-weight: 400; color: var(--muted); font-size: .85rem; text-transform: none; }
.nd__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.nd__d { flex: none; width: 62px; scroll-snap-align: start; display: grid; justify-items: center; gap: 0; padding: 8px 4px 7px; border-radius: 16px; background: var(--paper); border: 1.5px solid transparent; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.nd__d:hover { border-color: var(--navy); color: var(--ink); }
.nd__d b { font: 800 1.3rem/1.15 var(--head); } .nd__d small { font-size: .7rem; color: var(--muted); line-height: 1.25; }
.nd__d.is-off { opacity: .55; }
.nd__d.is-on { background: var(--navy); border-color: var(--navy); color: #fff; opacity: 1; } .nd__d.is-on small { color: #cfdbe6; }
.nd__other, .nd__manual { flex: none; display: grid; align-content: center; gap: 4px; padding: 8px 12px; border-radius: 16px; background: var(--paper); border: 1.5px dashed var(--line2); font-weight: 600; font-size: .78rem; color: var(--muted); }
.nd__other input, .nd__manual input { min-height: 36px; padding: 4px 8px; font-size: .95rem; border-radius: 10px; width: auto; }
.nd__other.is-on, .nd__manual.is-on { border-style: solid; border-color: var(--navy); background: var(--tint); color: var(--navy); }
.nd__times { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; margin: -4px; border-radius: 16px; }
.nd__times.is-err { outline: 2px solid var(--danger, #a8322b); outline-offset: 2px; }
.nd__t { min-width: 68px; min-height: 42px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--white); font: 700 .95rem var(--font); color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.nd__t:hover { border-color: var(--navy); background: var(--tint); }
.nd__t.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.fio { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-width: 0; }
.fio legend { grid-column: 1 / -1; padding: 0; margin-bottom: 4px; font-weight: 700; font-size: .95rem; }
.fio label { flex: none !important; min-width: 0; }
@media (max-width: 720px) { .fio { grid-template-columns: 1fr; } .nd__d { width: 56px; } }
.adm-dlg .adm-row .fio label:nth-of-type(n+3) { grid-column: auto; }
.nd__times { align-items: flex-start; } .nd__times .nd__t { align-self: flex-start; }

/* компактнее: дата сеткой в две строки, время по частям дня */
.nd__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; overflow: visible; padding: 0; }
.nd__d { width: auto; padding: 6px 2px 5px; border-radius: 12px; }
.nd__d b { font-size: 1.05rem; } .nd__d small { font-size: .66rem; }
.nd__days .nd__other { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 12px; }
.nd__times { display: grid; gap: 10px; padding: 0; margin: 0; }
.nd__part { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 8px; }
.nd__part > small { font-weight: 700; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.nd__part > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.nd__t { min-width: 0; min-height: 34px; padding: 0 6px; border-radius: 10px; font-size: .88rem; }
.nd__times .nd__manual { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 12px; }
@media (max-width: 720px) { .nd__part { grid-template-columns: 1fr; gap: 4px; } .nd__d { width: auto; } }
.nd__other span, .nd__manual span { white-space: nowrap; } .nd__other input, .nd__manual input { flex: 1; min-width: 0; }
