:root{
  --ink:#1B2735;
  --ink-soft:#425468;
  --ink-line:rgba(21,76,110,0.18);
  --paper:#FFFFFF;
  --surface:#FFFFFF;
  --alt-bg:#E4F1F9;
  --text:#1B2735;
  --text-soft:#425468;
  --line:#C9E2EF;
  --line-strong:#96C7DD;
  --sky:#3FA0D4;
  --sky-deep:#155E82;
  --sky-soft:#DCEFF9;
  --pink:#DF286E;
  --pink-deep:#AD1A53;
  --pink-soft:#FADBE7;
  --wine:#D45C8C;
  --wine-deep:#B84776;
  --wine-soft:#FBDCE9;
  --gold:#3FA0D4;
  --gold-soft:#DCEFF9;
  --good:#2E7D57;
  --radius:20px;
  --radius-sm:14px;
  --shadow-lg:0 30px 60px -24px rgba(21,60,82,0.35);
  --shadow-sm:0 2px 4px rgba(21,60,82,0.07), 0 14px 28px -14px rgba(21,60,82,0.22);
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:"Work Sans",system-ui,-apple-system,sans-serif;
  font-size:17px;
  line-height:1.65;
}
h1,h2,h3{
  font-family:"Prata","Work Sans",serif;
  text-wrap:balance;
  margin:0;
  line-height:1.15;
  font-weight:400;
  letter-spacing:0;
  color:var(--ink);
}
.accent{font-style:italic;}
p{margin:0;}
a{color:inherit;}
ul,ol{margin:0;padding:0;}
img,svg{display:block;max-width:100%;}
.tnum{font-variant-numeric:tabular-nums;font-family:"Work Sans",sans-serif;font-weight:700;}
button{font-family:inherit;cursor:pointer;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important;transition-duration:0.001ms !important;scroll-behavior:auto !important;}
}
:focus-visible{outline:3px solid var(--sky-deep);outline-offset:2px;}

.wrapper{max-width:1160px;margin:0 auto;padding:0 24px;}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

.icon{width:1.3em;height:1.3em;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

/* --- лаковые сферы --- */
.orb{
  display:inline-block;
  position:relative;
  border-radius:50%;
  aspect-ratio:1/1;
  filter:drop-shadow(0 6px 14px rgba(29,110,150,0.22));
}
.orb::before{
  content:"";
  position:absolute;
  inset:10% 12% 46% 14%;
  border-radius:50%;
  background:radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0) 72%);
}
.orb::after{
  content:"";
  position:absolute;
  inset:52% 8% 6% 8%;
  border-radius:50%;
  background:radial-gradient(circle at 50% 100%, rgba(29,60,80,0.18), rgba(0,0,0,0) 70%);
}
.orb.c1{background:#3FA0D4;}
.orb.c2{background:#F6BBD6;}
.orb.c3{background:#A9D9F0;}
.orb.c4{background:#EC7FA9;}
.orb.c5{background:#FDEFF5;}

.orb-row{display:flex;align-items:center;}
.orb-row .orb{width:20px;margin-left:-4px;}
.orb-row .orb:first-child{margin-left:0;}

/* --- topbar --- */
/* max-height анимируется до значения, которое JS измеряет в topbar.js
   (--topbar-h) — а не до отвлечённого запаса типа 60px. Раньше высота "про-
   матывала" пустой запас, прежде чем реально начать скрывать содержимое,
   и это выглядело рваным; а grid-template-rows 1fr->0fr скрывал плавно, но
   при обратном раскрытии (0fr->1fr) дёргался — расширение из нулевой высоты
   пересчитывает внутреннюю раскладку негладко. Точный пиксельный max-height
   анимируется одинаково гладко в обе стороны. */
.topbar{background:var(--sky-deep);overflow:hidden;max-height:var(--topbar-h, 60px);transition:max-height 0.22s ease, opacity 0.18s ease;opacity:1;}
.topbar.is-resyncing{transition:none !important;}
.topbar-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:9px 0;flex-wrap:wrap;min-height:0;}
.topbar-info{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.topbar-item{display:flex;align-items:center;gap:6px;font-size:12.5px;color:rgba(255,255,255,0.9);}
.topbar-item .icon{width:13px;height:13px;color:rgba(255,255,255,0.65);flex-shrink:0;}
.topbar-links{display:flex;align-items:center;gap:20px;font-size:12.5px;}
.topbar-links a{color:rgba(255,255,255,0.82);text-decoration:none;}
.topbar-links a:hover{color:#fff;}
body.is-scrolled .topbar{max-height:0;opacity:0;}
@media (max-width:760px){.topbar-links{display:none;}}
@media (max-width:520px){.topbar-row{justify-content:center;}.topbar-info{justify-content:center;text-align:center;}}

/* --- header --- */
.site-header-sticky{position:sticky;top:0;z-index:40;}
header.site-header{
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:10px;padding-bottom:10px;}
.brand{display:flex;align-items:center;gap:8px;font-family:"Prata",serif;font-weight:400;font-size:22px;color:var(--sky-deep);text-decoration:none;}
.brand-logo{height:84px;width:auto;display:block;}
.brand-logo-lg{height:96px;width:auto;display:block;margin:0 auto;}
nav.main-nav{display:flex;gap:30px;font-size:14.5px;}
nav.main-nav a{text-decoration:none;color:var(--ink-soft);}
nav.main-nav a:hover{color:var(--sky-deep);}
.nav-dropdown{position:relative;}
.nav-dropdown > a{display:inline-flex;align-items:center;gap:4px;}
.nav-dropdown-arrow{width:10px;height:10px;color:var(--text-soft);transform:rotate(90deg);transition:transform 0.15s ease;}
.nav-dropdown:hover .nav-dropdown-arrow,.nav-dropdown:focus-within .nav-dropdown-arrow{transform:rotate(-90deg);}
.nav-dropdown-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:8px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);padding:6px;min-width:180px;display:flex;flex-direction:column;gap:2px;opacity:0;visibility:hidden;transition:opacity 0.15s ease;z-index:20;}
.nav-dropdown-menu::before{content:"";position:absolute;top:-8px;left:0;right:0;height:8px;}
.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown:focus-within .nav-dropdown-menu{opacity:1;visibility:visible;}
.nav-dropdown-menu a{padding:10px 14px;border-radius:8px;white-space:nowrap;}
.nav-dropdown-menu a:hover{background:var(--sky-soft);}
.main-nav-extra{display:none;}
.btn{display:inline-flex;align-items:center;gap:9px;padding:13px 24px;border-radius:100px;font-weight:700;font-size:14.5px;border:1px solid transparent;text-decoration:none;white-space:nowrap;transition:transform 0.15s ease, box-shadow 0.15s ease;}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--pink);color:#fff;box-shadow:0 10px 22px -10px rgba(206,87,134,0.55);}
.btn-primary:hover{background:var(--pink-deep);color:#fff;}
.btn-secondary{background:#fff;border-color:var(--line-strong);color:var(--sky-deep);}
.btn-secondary:hover{border-color:var(--sky);background:var(--sky-soft);}
.btn-outline-light{background:transparent;border-color:var(--line-strong);color:var(--text);}
.btn-outline-light:hover{border-color:var(--sky);color:var(--sky-deep);}
.btn-table{padding:8px 18px;font-size:13px;}
.table-cta-wrap{max-width:760px;margin-top:16px;text-align:center;}

/* --- breadcrumbs --- */
.breadcrumbs{padding:12px 0;}
.breadcrumbs ol{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0;font-size:13px;}
.breadcrumbs li{display:flex;align-items:center;color:var(--text-soft);}
.breadcrumbs li+li::before{content:"/";margin:0 8px;color:var(--line-strong);}
.breadcrumbs a{color:var(--text-soft);text-decoration:none;}
.breadcrumbs a:hover{color:var(--sky-deep);text-decoration:underline;}
.breadcrumbs li[aria-current="page"]{color:var(--text);font-weight:600;}

/* --- hero --- */
.hero-dark{
  background:radial-gradient(120% 140% at 82% -10%, var(--sky-soft) 0%, #fff 55%), radial-gradient(90% 120% at 4% 110%, var(--pink-soft) 0%, rgba(252,231,239,0) 60%);
  color:var(--ink);
  padding:56px 0;
}
.hero-grid{display:flex;gap:56px;align-items:center;flex-wrap:wrap;position:relative;}
.hero-copy{flex:1.4 1 460px;}
.eyebrow{font-family:"Work Sans",sans-serif;font-weight:700;font-size:12.5px;letter-spacing:0.08em;text-transform:uppercase;color:var(--pink-deep);margin-bottom:20px;}
h1.hero-title{font-size:clamp(36px,4.2vw,52px);color:var(--sky-deep);}
.hero-sub{margin-top:20px;font-size:18px;color:var(--ink-soft);max-width:50ch;}
.hero-actions{display:flex;gap:14px;margin-top:32px;flex-wrap:wrap;}
.hero-visual{flex:0.6 1 320px;display:flex;justify-content:center;}
.hero-visual img{width:clamp(220px,28vw,380px);height:auto;}
@media (max-width:900px){.hero-visual{display:none;}}
.section-divider{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:38px 0;
  background:var(--paper);
}
.section-divider .orb{width:11px;margin-left:8px;}
.section-divider .orb:first-child{margin-left:0;}

/* --- stat band --- */
.stat-band{background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;background:var(--line);}
.stat-tile{background:var(--alt-bg);padding:32px 28px;}
.stat-num{font-family:"Prata",serif;font-size:clamp(30px,3.4vw,42px);color:var(--sky-deep);font-weight:400;}
.stat-label{margin-top:8px;font-size:13.5px;color:var(--ink-soft);max-width:22ch;}

/* --- sections (light) --- */
section{padding:56px 0;}
.section-head{max-width:60ch;margin-bottom:44px;}
.section-head.is-wide{max-width:none;}
.section-head .eyebrow{color:var(--pink-deep);}
h1.section-title,h2.section-title{font-size:clamp(28px,3.2vw,38px);color:var(--ink);}
.section-lede{margin-top:14px;color:var(--text-soft);font-size:16px;max-width:56ch;}

.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:40px;box-shadow:var(--shadow-sm);}
/* /pedikyur/ (ровно 3 карточки) — на десктопе без модификатора 4-я
   колонка сетки остаётся пустой и видна как пустой голубой блок рядом
   с карточками; 3 колонки убирают пустую ячейку целиком. На мобильных
   не трогаем — там уже своя раскладка в 2 колонки с растяжкой 3-й карточки. */
@media (min-width:761px){
  .service-grid.is-triple{grid-template-columns:repeat(3,1fr);}
}
/* /manikyur/ (5 карточек на сетке в 4 колонки) — 5-я карточка одна
   в своём ряду, а оставшиеся 3 ячейки ряда видны как пустой голубой
   блок. Растягиваем её на всю ширину ряда и на десктопе тоже (раньше
   это работало только в мобильном медиа-запросе ниже). */
.service-grid .service-card:nth-child(5):last-child{grid-column:1 / -1;}
.service-card{background:var(--surface);padding:28px;position:relative;overflow:hidden;}
.service-card::after{
  font-family:"Prata",serif;font-size:64px;line-height:1;color:var(--sky-soft);
  position:absolute;top:6px;right:14px;z-index:0;pointer-events:none;
}
.service-card:nth-child(1)::after{content:"01";}
.service-card:nth-child(2)::after{content:"02";color:var(--pink-soft);}
.service-card:nth-child(3)::after{content:"03";}
.service-card:nth-child(4)::after{content:"04";color:var(--pink-soft);}
.service-card:nth-child(5)::after{content:"05";}
.service-card:nth-child(6)::after{content:"06";color:var(--pink-soft);}
.service-card:nth-child(7)::after{content:"07";}
.service-card:nth-child(8)::after{content:"08";color:var(--pink-soft);}
.service-card .orb{width:32px;margin-bottom:18px;position:relative;z-index:1;}
.service-card h3{font-size:18px;margin-bottom:10px;color:var(--text);position:relative;z-index:1;}
.service-card p{font-size:14.5px;color:var(--text-soft);position:relative;z-index:1;}

.table-wrap{overflow-x:auto;max-width:760px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);}
table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px;}
th,td{text-align:left;padding:16px 22px;border-bottom:1px solid var(--line);vertical-align:middle;}
th:not(:first-child),td:not(:first-child){text-align:right;}
th{font-family:"Work Sans",sans-serif;font-size:11.5px;letter-spacing:0.06em;text-transform:uppercase;color:#fff;font-weight:700;background:var(--ink);}
tr:last-child td{border-bottom:none;}
tbody tr{transition:background 0.12s ease;}
tbody tr:nth-child(even){background:var(--alt-bg);}
tbody tr:hover{background:var(--sky-soft);}
td:nth-child(2){color:var(--text-soft);font-size:14px;}
td.price{font-family:"Work Sans",sans-serif;color:var(--ink);font-weight:700;font-size:16px;}

.price-group-title{font-family:"Prata",serif;font-weight:400;font-size:clamp(24px,2.6vw,30px);color:var(--ink);margin:0 0 22px;}
.price-group-title.is-second{margin-top:44px;}

.factor-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-top:28px;}
.factor-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:22px;box-shadow:var(--shadow-sm);}
.factor-tile .icon{color:var(--sky-deep);width:1.7em;height:1.7em;margin-bottom:12px;}
.factor-tile h4{font-family:"Work Sans",sans-serif;font-weight:700;font-size:15px;margin-bottom:6px;color:var(--ink);}
.factor-tile p{font-size:14px;color:var(--text-soft);}

/* --- flow diagram (booking / sterilization) --- */
.flow{display:flex;gap:0;align-items:flex-start;flex-wrap:wrap;margin-top:12px;}
.flow-step{flex:1 1 180px;position:relative;padding:0 18px 0 0;}
.flow-step .flow-icon{
  width:56px;height:56px;border-radius:50%;background:var(--sky-deep);color:#fff;
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
  font-family:"Prata",serif;font-size:16px;position:relative;z-index:1;
}
.flow-step:nth-child(even) .flow-icon{background:var(--pink-deep);}
.flow-step h3{font-size:16px;margin-bottom:6px;}
.flow-step p{font-size:14px;color:var(--text-soft);}
.flow-step:not(:last-child)::after{
  content:"→";
  position:absolute;
  top:10px;left:60px;right:-6px;
  text-align:center;
  font-size:20px;
  color:var(--line-strong);
}

.master-grid{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:32px;}
.master-criteria{flex:1 1 260px;background:var(--pink-soft);border-radius:var(--radius-sm);padding:24px;}
.master-criteria .icon{color:var(--pink-deep);}
.master-criteria h3{font-size:16px;margin-bottom:12px;font-family:"Work Sans",sans-serif;font-weight:700;display:flex;align-items:center;gap:10px;}
.master-criteria p{font-size:14.5px;color:var(--text-soft);}


.specialist-grid{display:flex;flex-wrap:wrap;gap:20px;}
.specialist-card{flex:0 1 280px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow-sm);text-align:center;}
.specialist-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;margin:0 auto 16px;}
.specialist-card h3{font-family:"Prata",serif;font-weight:400;font-size:19px;margin-bottom:8px;color:var(--ink);}
.specialist-name{display:block;font-family:"Prata",serif;font-weight:400;font-size:19px;margin-bottom:8px;color:var(--ink);}
.specialist-card p{font-size:14.5px;color:var(--text-soft);margin-bottom:18px;}
.specialist-card.is-wide{flex:1 1 100%;display:flex;align-items:center;gap:32px;text-align:left;padding:32px 40px;}
.specialist-card.is-wide .specialist-photo{width:140px;height:140px;margin-bottom:0;flex-shrink:0;}
.specialist-card.is-wide h3{font-size:22px;}
.specialist-card.is-wide p{margin-bottom:20px;max-width:52ch;}
@media (max-width:560px){.specialist-card.is-wide{flex-direction:column;text-align:center;padding:28px;}}

.specialist-hero{display:flex;gap:40px;align-items:flex-start;flex-wrap:wrap;}
.specialist-hero-photo{width:200px;height:200px;border-radius:24px;object-fit:cover;flex-shrink:0;}
.specialist-facts{margin-top:20px;display:flex;flex-direction:column;gap:12px;}
.specialist-facts .fact{display:flex;gap:12px;align-items:flex-start;font-size:15px;color:var(--ink-soft);}
.specialist-facts .fact .icon{flex:0 0 auto;margin-top:2px;color:var(--sky-deep);}
.specialist-quote{margin-top:28px;padding:22px 26px;background:var(--alt-bg);border-radius:var(--radius-sm);border-left:4px solid var(--sky-deep);}
.specialist-quote p{font-style:italic;color:var(--ink-soft);font-size:15.5px;}

.advantage-list{display:grid;grid-template-columns:1fr 1fr;gap:0 48px;border-top:1px solid var(--line);}
.advantage-row{display:flex;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line);}
.advantage-num{flex:0 0 auto;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:"Prata",serif;font-size:16px;color:#fff;}
.advantage-num.n-sky{background:var(--sky-deep);}
.advantage-num.n-pink{background:var(--pink-deep);}
.advantage-row p{font-size:16px;color:var(--text);font-weight:600;}
@media (max-width:640px){.advantage-list{grid-template-columns:1fr;}}

.materials-head{margin-top:44px;margin-bottom:56px;}
@media (max-width:760px){.materials-head{margin-bottom:40px;}}
.brand-row{display:flex;flex-wrap:wrap;gap:20px 44px;align-items:center;justify-content:center;padding:8px 0 4px;}
.brand-row span{font-family:"Prata",serif;font-size:21px;color:var(--text-soft);letter-spacing:0.02em;}
.brand-row img{height:30px;width:auto;flex-shrink:0;filter:grayscale(1) opacity(0.72);transition:filter 0.2s ease;}
.brand-row img:hover{filter:grayscale(0) opacity(1);}

.reviews-slider{position:relative;}
.reviews-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px;}
.reviews-track::-webkit-scrollbar{display:none;}
.review-card{flex:0 0 300px;scroll-snap-align:start;display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:22px;box-shadow:var(--shadow-sm);}
.review-head{display:flex;align-items:center;gap:12px;}
.review-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:0 0 auto;}
.review-avatar-initial{width:48px;height:48px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#fff;font-family:"Work Sans",sans-serif;font-weight:700;font-size:18px;}
.review-name{font-size:15px;font-weight:700;color:var(--ink);}
.review-date{font-size:12.5px;color:var(--text-soft);}
.review-stars{display:inline-flex;gap:2px;}
.review-stars .icon{width:14px;height:14px;color:#F5A623;}
.review-text{font-size:14.5px;color:var(--text);line-height:1.6;}
.review-master{margin-top:auto;padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;color:var(--text-soft);}
.review-master a{color:var(--sky-deep);font-weight:600;text-decoration:none;}
.review-master a:hover{text-decoration:underline;}
.review-photo{border-radius:var(--radius-sm);overflow:hidden;aspect-ratio:4/3;border:none;padding:0;background:none;cursor:pointer;display:block;width:100%;}
.review-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.review-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;}
.review-photo-grid .review-photo{aspect-ratio:1/1;}

.work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;}
.work-photo{border-radius:var(--radius-sm);overflow:hidden;aspect-ratio:3/4;box-shadow:var(--shadow-sm);border:none;padding:0;cursor:pointer;display:block;width:100%;}
.work-photo img{width:100%;height:100%;object-fit:cover;display:block;}
/* Блок-заполнитель в конце сетки работ закрывает неполный последний ряд.
   Колонок в сетке столько, сколько влезает по auto-fit (minmax 210px, gap 14px), поэтому
   число колонок берём из ширины самой сетки (container query), а число фото задаёт
   --n на .work-grid. Блок занимает (колонки - остаток от n / колонки) ячеек; если ряд
   полный, остаток 0 и блок идёт отдельным рядом как баннер. Без поддержки mod() остаётся
   баннер на весь ряд. */
.work-grid{container-type:inline-size;}
.work-grid-cta{--cols:1;grid-column:1 / -1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;padding:24px 28px;border-radius:var(--radius-sm);background:var(--alt-bg);border:1px solid var(--line);}
@container (1106px <= width){.work-grid-cta{--cols:5;}}
@container (882px <= width < 1106px){.work-grid-cta{--cols:4;}}
@container (658px <= width < 882px){.work-grid-cta{--cols:3;}}
@container (434px <= width < 658px){.work-grid-cta{--cols:2;}}
@supports (grid-column: span calc(mod(5, 3))){.work-grid-cta{grid-column:span calc(var(--cols) - mod(var(--n, 1), var(--cols)));}}
.work-grid-cta-title{font-family:"Prata",serif;font-weight:400;font-size:clamp(20px,2.2vw,26px);color:var(--sky-deep);margin:0;}
.work-grid-cta p{margin:0;color:var(--ink-soft);font-size:15px;max-width:46ch;}
.work-grid-cta .btn{margin-top:6px;}

/* Слайдер "Примеры работ" на страницах услуг — тот же паттерн прокрутки,
   что .reviews-track (scroll-snap + .reviews-nav), только карточки — фото
   работ фиксированной ширины вместо карточек отзывов. */
.work-slider{position:relative;}
.work-slider-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px;}
.work-slider-track::-webkit-scrollbar{display:none;}
.work-slider-track .work-photo{flex:0 0 220px;width:220px;scroll-snap-align:start;}
@media (max-width:560px){.work-slider-track .work-photo{flex-basis:62vw;width:62vw;}}
/* На мобильных превью "Наши работы" (5 фото) — горизонтальный слайдер
   со scroll-snap, тот же паттерн, что уже используется для отзывов
   (.reviews-track), вместо сетки, схлопывающейся в одну колонку и
   прятавшей часть фото через nth-child. */
@media (max-width:760px){
  .work-grid.is-compact{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:14px;padding-bottom:4px;}
  .work-grid.is-compact::-webkit-scrollbar{display:none;}
  .work-grid.is-compact .work-photo{flex:0 0 62vw;scroll-snap-align:start;}
  /* 8 карточек (5 маникюр + 3 педикюр) — на мобильных плотная сетка
     2 колонки на 4 ряда, вместо схлопывания в одну широкую колонку. */
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .service-card{padding:20px;}
  .service-card::after{font-size:40px;}
  /* Отдельные страницы /manikyur/ (5 карточек) и /pedikyur/ (3 карточки) —
     последняя карточка остаётся одна в своём ряду, растягиваем её на
     всю ширину вместо пустого места рядом. */
  .service-grid .service-card:nth-child(3):last-child,
  .service-grid .service-card:nth-child(5):last-child{grid-column:1 / -1;}
  /* "Все статьи" в блоге — плотная сетка 2x2+ с укороченными карточками,
     вместо одной широкой колонки с полноразмерными карточками. */
  .blog-posts-grid.is-all{grid-template-columns:repeat(2,1fr);gap:12px;}
  .blog-posts-grid.is-all .blog-post-card img{height:96px;}
  .blog-posts-grid.is-all .blog-post-card-body{padding:10px;}
  .blog-posts-grid.is-all .blog-post-card-tags,
  .blog-posts-grid.is-all .blog-post-card-body p{display:none;}
  .blog-posts-grid.is-all .blog-post-card-body h3{font-size:13px;margin-bottom:0;}
  .blog-posts-grid.is-all .blog-post-card-meta{font-size:10.5px;flex-direction:column;align-items:flex-start;gap:2px;}
  .blog-posts-grid.is-all .blog-post-card-meta span+span::before{content:none;margin-right:0;}
  .blog-posts-grid.is-all .blog-post-card-stats{font-size:10.5px;gap:10px;margin-top:4px;padding-top:4px;}
}

dialog.lightbox{border:none;border-radius:24px;padding:24px;max-width:min(92vw,720px);width:100%;max-height:calc(100vh - 40px);box-shadow:var(--shadow-lg);overflow-y:auto;background:var(--surface);}
dialog.lightbox::backdrop{background:rgba(21,60,82,0.8);}
.lightbox-img{width:100%;max-height:70vh;object-fit:contain;border-radius:var(--radius-sm);display:block;background:var(--alt-bg);}
.lightbox-nav{justify-content:center;margin-top:16px;}
.reviews-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;flex-wrap:wrap;}
.reviews-nav{display:flex;gap:10px;}
.reviews-nav button{width:42px;height:42px;border-radius:50%;border:1px solid var(--line-strong);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--sky-deep);cursor:pointer;transition:border-color 0.15s ease, background 0.15s ease;}
.reviews-nav button:hover{border-color:var(--sky);background:var(--sky-soft);}
.reviews-nav .is-prev .icon{transform:rotate(180deg);}
@media (max-width:640px){.review-card{flex-basis:82vw;}}

.reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;}
.reviews-grid .review-card{flex-basis:auto;}

.reviews-filters{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-bottom:28px;}

.filter-select-wrap{position:relative;display:inline-flex;}
.filter-select-wrap summary{list-style:none;display:flex;align-items:center;gap:10px;padding:11px 16px;border-radius:100px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font-family:"Work Sans",sans-serif;font-weight:600;font-size:13.5px;cursor:pointer;transition:border-color 0.15s ease;}
.filter-select-wrap summary::-webkit-details-marker{display:none;}
.filter-select-wrap summary:hover,.filter-select-wrap summary:focus-visible{border-color:var(--sky);}
.filter-select-wrap .icon{width:14px;height:14px;color:var(--text-soft);transform:rotate(90deg);transition:transform 0.15s ease;}
.filter-select-wrap[open] summary .icon{transform:rotate(-90deg);}
.filter-dropdown-menu{position:absolute;top:calc(100% + 8px);left:0;min-width:190px;margin:0;padding:6px;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);z-index:20;}
.filter-dropdown-menu li{padding:10px 14px;border-radius:10px;font-family:"Work Sans",sans-serif;font-weight:600;font-size:13.5px;color:var(--ink-soft);cursor:pointer;transition:background 0.12s ease, color 0.12s ease;}
.filter-dropdown-menu li:hover{background:var(--sky-soft);color:var(--sky-deep);}
.filter-dropdown-menu li.is-selected{background:var(--sky-soft);color:var(--sky-deep);}

.filter-checkbox{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-family:"Work Sans",sans-serif;font-weight:600;font-size:13.5px;color:var(--text);user-select:none;}
.filter-checkbox input{position:absolute;opacity:0;width:1px;height:1px;}
.filter-checkbox-box{width:21px;height:21px;min-width:21px;min-height:21px;flex-shrink:0;border-radius:6px;border:1.5px solid var(--line-strong);display:flex;align-items:center;justify-content:center;background:var(--surface);transition:background 0.15s ease, border-color 0.15s ease;}
.filter-checkbox-box .icon{width:14px;height:14px;color:#fff;opacity:0;transition:opacity 0.15s ease;}
.filter-checkbox input:checked ~ .filter-checkbox-box{background:var(--sky);border-color:var(--sky);}
.filter-checkbox input:checked ~ .filter-checkbox-box .icon{opacity:1;}
.filter-checkbox input:focus-visible ~ .filter-checkbox-box{outline:3px solid var(--sky-deep);outline-offset:2px;}
.filter-checkbox:hover .filter-checkbox-box{border-color:var(--sky);}

.consent-check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-family:"Work Sans",sans-serif;font-weight:400;font-size:13px;line-height:1.45;color:var(--text-soft);user-select:none;margin-top:14px;}
.consent-check input{position:absolute;opacity:0;width:1px;height:1px;}
.consent-check-box{width:19px;height:19px;min-width:19px;min-height:19px;margin-top:1px;flex-shrink:0;border-radius:5px;border:1.5px solid var(--line-strong);display:flex;align-items:center;justify-content:center;background:var(--surface);transition:background 0.15s ease, border-color 0.15s ease;}
.consent-check-box .icon{width:12px;height:12px;color:#fff;opacity:0;transition:opacity 0.15s ease;}
.consent-check input:checked ~ .consent-check-box{background:var(--sky);border-color:var(--sky);}
.consent-check input:checked ~ .consent-check-box .icon{opacity:1;}
.consent-check input:focus-visible ~ .consent-check-box{outline:3px solid var(--sky-deep);outline-offset:2px;}
.consent-check input[aria-invalid="true"] ~ .consent-check-box{border-color:var(--wine);}
.consent-check:hover .consent-check-box{border-color:var(--sky);}
.consent-check a{color:var(--sky-deep);text-decoration:underline;}

.trust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;}
.promo-offer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:18px;}
.trust-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:24px;box-shadow:var(--shadow-sm);}
.trust-card .icon{color:var(--sky-deep);width:1.8em;height:1.8em;margin-bottom:14px;}
.trust-card h3{font-size:16px;margin-bottom:8px;font-family:"Work Sans",sans-serif;font-weight:700;}
.trust-card p{font-size:14.5px;color:var(--text-soft);}
a.trust-card{display:block;text-decoration:none;color:inherit;transition:transform 0.15s ease, box-shadow 0.15s ease;}
a.trust-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);}
a.trust-card .btn-secondary{margin-top:14px;}

.location-grid{display:flex;gap:36px;flex-wrap:wrap;align-items:stretch;}
.location-info{flex:0 1 340px;}
.location-info address{font-style:normal;font-size:17px;line-height:1.6;}
.location-map{flex:1 1 380px;max-width:640px;min-height:340px;border-radius:var(--radius);border:1px solid var(--line);display:block;width:100%;height:auto;box-shadow:var(--shadow-sm);}
@media (max-width:820px){.location-map{aspect-ratio:4/3;min-height:0;}}

.contact-map{width:100%;aspect-ratio:16/7;border-radius:var(--radius);border:1px solid var(--line);display:block;box-shadow:var(--shadow-sm);}
@media (max-width:640px){.contact-map{aspect-ratio:4/3;}}

.faq-list{display:grid;gap:1px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--line);box-shadow:var(--shadow-sm);}
.faq-item{background:var(--surface);}
.faq-item summary{padding:22px 24px;cursor:pointer;font-weight:700;font-size:16px;display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary .icon{transition:transform 0.15s ease;flex:0 0 auto;color:var(--sky-deep);}
.faq-item[open] summary .icon{transform:rotate(45deg);}
.faq-item p{padding:0 24px 22px;color:var(--text-soft);font-size:15px;max-width:66ch;}

.cta-panel{
  position:relative;
  background:
    radial-gradient(90% 130% at 85% 0%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, var(--sky-deep), #2B87B4);
  border-radius:28px;padding:48px;display:grid;grid-template-columns:1.1fr 1fr;gap:44px;align-items:start;
}
.cta-panel-watermark-clip{position:absolute;inset:0;border-radius:28px;overflow:hidden;pointer-events:none;z-index:0;}
.cta-panel-watermark{position:absolute;left:38%;bottom:-110px;width:420px;height:456px;opacity:0.15;}
.cta-panel-info,.cta-panel-card{position:relative;z-index:1;min-width:0;}
.cta-panel-info .eyebrow{color:var(--pink-soft);margin-bottom:14px;}
.cta-panel-info h2{color:#fff;font-size:clamp(24px,2.8vw,30px);max-width:24ch;margin-bottom:22px;}
.cta-panel-title{display:block;font-family:"Prata","Work Sans",serif;font-weight:400;line-height:1.15;color:#fff;font-size:clamp(24px,2.8vw,30px);max-width:24ch;margin-bottom:22px;}
.cta-phone{display:block;font-family:"Prata",serif;font-size:clamp(24px,2.8vw,30px);color:#fff;text-decoration:none;margin-bottom:6px;}
.cta-phone:hover{color:var(--pink-soft);}
.cta-panel-note{font-size:13px;color:rgba(255,255,255,0.72);margin-bottom:26px;}
.cta-panel-facts{border-top:1px solid rgba(255,255,255,0.25);padding-top:18px;display:flex;flex-direction:column;gap:10px;}
.cta-panel-facts p{display:flex;justify-content:space-between;gap:16px;margin:0;font-size:13.5px;color:rgba(255,255,255,0.78);}
.cta-panel-facts p span:first-child{display:inline-flex;align-items:center;gap:8px;}
.cta-panel-facts .icon{width:14px;height:14px;flex:0 0 auto;}
.cta-panel-facts img{width:14px;height:14px;flex:0 0 auto;display:block;}
.cta-panel-facts p span:last-child{font-weight:700;color:#fff;text-align:right;}
.cta-panel-social{border-top:1px solid rgba(255,255,255,0.25);margin-top:10px;padding-top:14px;}
.cta-panel-social-label{font-size:13px;color:rgba(255,255,255,0.72);margin:0 0 8px;}
.cta-panel-social-link{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:#fff;text-decoration:none;}
.cta-panel-social-link:hover{text-decoration:underline;}
.cta-panel-social-link img{width:14px;height:14px;flex:0 0 auto;}

.cta-panel-card{background:#fff;border-radius:20px;padding:32px;box-shadow:var(--shadow-lg);position:relative;overflow:hidden;}
.cta-panel-card.is-hero{flex:1 1 480px;max-width:560px;width:100%;border:1px solid var(--line);}
.cta-panel-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg, var(--pink), var(--sky));}
.cta-panel-card .form-block-title{font-family:"Prata","Work Sans",serif;font-weight:400;line-height:1.15;font-size:19px;margin-bottom:10px;color:var(--ink);}
.cta-panel-card > p{font-size:14px;color:var(--text-soft);margin-bottom:18px;}
.cta-panel-card .form-field{margin-top:14px;}
.cta-panel-card .form-field:first-of-type{margin-top:0;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px;}
.form-row:first-child{margin-top:0;}
.form-row .form-field{margin-top:0;}
.form-row + .form-field{margin-top:14px;}
@media (max-width:560px){.form-row{grid-template-columns:1fr;}}
.cta-panel-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;}
.cta-panel-actions .btn{flex:1 1 150px;justify-content:center;}
.cta-panel-success{text-align:center;padding:12px 0;}
.cta-panel-success .icon{width:2.4em;height:2.4em;color:var(--good);margin:0 auto 14px;display:block;}
.cta-panel-success p{font-size:14px;color:var(--text-soft);margin-bottom:16px;}

.telegram-promo{background:var(--sky-soft);border-radius:var(--radius-sm);padding:14px 16px;margin:14px 0;text-align:left;}
.telegram-promo-title{font-weight:700;color:var(--sky-deep);margin:0 0 6px;font-size:14.5px;}
.telegram-promo p{margin:0 0 8px;font-size:13.5px;color:var(--ink-soft);}
.telegram-promo ol{margin:0;padding-left:18px;font-size:13.5px;color:var(--ink-soft);}
.telegram-promo ol li{margin-bottom:2px;}

.services-teaser{background:var(--alt-bg);border-radius:28px;padding:40px 44px;display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap;}
.services-teaser-title{font-family:"Prata",serif;font-weight:400;font-size:clamp(20px,2.4vw,26px);color:var(--sky-deep);max-width:26ch;}
.services-teaser p{margin-top:8px;color:var(--ink-soft);max-width:46ch;}
.services-teaser .btn{flex-shrink:0;}
.services-teaser.is-compact{padding:26px 30px;border-radius:20px;}
.services-teaser.is-compact .services-teaser-title{font-size:19px;}
.services-teaser.is-compact p{font-size:14px;}

footer.site-footer{background:var(--alt-bg);color:var(--ink-soft);padding:48px 0 32px;font-size:14px;border-top:1px solid var(--line);}
.footer-brand-mark{display:block;text-align:center;margin-bottom:32px;}
.footer-grid{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:28px;}
.footer-heading{font-family:"Work Sans",sans-serif;font-weight:700;font-size:12.5px;letter-spacing:0.08em;text-transform:uppercase;color:var(--pink-deep);margin-bottom:12px;}
.avito-badge{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:100px;background:var(--surface);border:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:700;font-size:14px;transition:border-color 0.15s ease, box-shadow 0.15s ease;}
.avito-badge:hover{border-color:var(--sky);box-shadow:var(--shadow-sm);}
.avito-badge .avito-rating{display:inline-flex;align-items:center;gap:4px;color:var(--text-soft);font-weight:500;font-size:13px;}
.avito-badge .avito-rating .icon{width:14px;height:14px;color:#F5A623;}
.footer-nav-group{display:flex;gap:32px;flex-wrap:wrap;}
.footer-col{min-width:140px;}
.footer-links{display:flex;flex-direction:column;gap:10px;}
.footer-links a{text-decoration:none;}
.footer-links a:hover{color:var(--sky-deep);}
.footer-links a.is-sub{padding-left:14px;font-size:13px;color:var(--text-soft);margin-top:-4px;}
.footer-links a.is-sub::before{content:"\2013\0020";}
.footer-bottom{border-top:1px solid var(--line);padding-top:22px;font-size:13px;}

dialog#booking-dialog{border:none;border-radius:24px;padding:0;max-width:420px;width:calc(100% - 40px);max-height:calc(100vh - 40px);box-shadow:var(--shadow-lg);overflow-y:auto;}
dialog#booking-dialog::backdrop{background:rgba(29,110,150,0.35);}
.dialog-inner{padding:30px;}
.dialog-inner .dialog-title{font-family:"Prata","Work Sans",serif;font-weight:400;line-height:1.15;font-size:24px;margin-bottom:8px;color:var(--text);}
.dialog-inner p.hint{color:var(--text-soft);font-size:14px;margin-bottom:22px;}
.form-field{display:grid;gap:6px;margin-bottom:16px;}
.form-field label{font-size:13.5px;color:var(--text-soft);}
.form-field input,.form-field select{padding:12px 14px;border-radius:10px;border:1px solid var(--line-strong);font-family:inherit;font-size:16px;background:#fff;}
.form-field input:focus,.form-field select:focus{border-color:var(--sky);}
.form-field input[aria-invalid="true"]{border-color:var(--wine);}
.select-custom summary[aria-invalid="true"]{border-color:var(--wine);}

.select-custom{position:relative;}
.select-custom summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-radius:10px;border:1px solid var(--line-strong);font-family:inherit;font-size:15px;color:var(--text);background:#fff;cursor:pointer;}
.select-custom-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.select-custom summary::-webkit-details-marker{display:none;}
.select-custom summary:hover,.select-custom summary:focus-visible{border-color:var(--sky);}
.select-custom summary .icon{width:14px;height:14px;color:var(--text-soft);flex-shrink:0;transform:rotate(90deg);transition:transform 0.15s ease;}
.select-custom[open] summary .icon{transform:rotate(-90deg);}
.select-custom-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);z-index:20;overflow:hidden;}
.select-custom-menu{margin:0;padding:6px;list-style:none;max-height:min(260px, 50vh);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;}
.select-custom-menu::-webkit-scrollbar{width:6px;}
.select-custom-menu::-webkit-scrollbar-track{background:transparent;}
.select-custom-menu::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:3px;}
.select-custom-menu li{padding:0;border-radius:8px;font-size:14.5px;color:var(--ink-soft);cursor:pointer;}
.select-custom-menu li:hover{background:var(--sky-soft);color:var(--sky-deep);}
.select-custom-menu li.is-selected{background:var(--sky-soft);color:var(--sky-deep);font-weight:600;}
.select-custom-menu li.select-search-wrap{padding:4px 6px 8px;cursor:default;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px;}
.select-custom-menu li.select-search-wrap:hover{background:none;color:inherit;}
.select-search-input{width:100%;padding:9px 12px;border:1px solid var(--line-strong);border-radius:8px;font-family:inherit;font-size:16px;box-sizing:border-box;}
.select-custom-menu li .filter-checkbox{display:flex;padding:10px 12px;font-size:14.5px;font-weight:400;color:inherit;}
.select-custom-menu li.select-category-wrap{padding:4px 6px 8px;cursor:default;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px;}
.select-confirm-bar{padding:8px;border-top:1px solid var(--line);}
.select-confirm-bar .btn{width:100%;padding:10px;font-size:14px;}
.mobile-picker-topbar{display:none;}
.select-custom-menu li.select-category-wrap:hover{background:none;}
.select-category-toggle{display:flex;background:var(--sky-soft);border-radius:100px;padding:3px;gap:3px;}
.select-category-toggle button{flex:1;border:none;background:transparent;padding:7px 0;border-radius:100px;font-family:inherit;font-size:13px;font-weight:600;color:var(--sky-deep);cursor:pointer;transition:background 0.15s ease, color 0.15s ease;}
.select-category-toggle button.is-active{background:#fff;color:var(--ink);box-shadow:var(--shadow-sm);}

.slot-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px;}
.slot-pill{padding:8px 14px;border-radius:100px;border:1px solid var(--line-strong);background:#fff;font-size:13.5px;font-family:inherit;color:var(--text);cursor:pointer;}
.slot-pill:hover{border-color:var(--sky);}
.slot-pill.is-selected{background:var(--sky);color:#fff;border-color:var(--sky);}
.slot-pill:disabled{opacity:0.35;cursor:not-allowed;text-decoration:line-through;}

.manual-entry summary{list-style:none;}
.manual-entry summary::-webkit-details-marker{display:none;}

.calendar-popup{position:absolute;bottom:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);padding:14px;z-index:20;}
.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.calendar-nav{width:28px;height:28px;border-radius:50%;border:none;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--sky-deep);padding:0;}
.calendar-nav:hover:not(:disabled){background:var(--sky-soft);}
.calendar-nav .icon{width:16px;height:16px;}
.calendar-nav.is-prev .icon{transform:rotate(180deg);}
.calendar-nav:disabled{opacity:0.3;cursor:not-allowed;}
.calendar-title{font-weight:700;font-size:14px;color:var(--ink);}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px;}
.calendar-weekdays span{text-align:center;font-size:11px;color:var(--text-soft);font-weight:700;}
.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;}
.calendar-day{aspect-ratio:1;border:none;background:transparent;border-radius:8px;font-size:13.5px;font-family:inherit;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center;}
.calendar-day:hover:not(:disabled){background:var(--sky-soft);}
.calendar-day.is-selected{background:var(--sky);color:#fff;font-weight:700;}
.calendar-day:disabled{opacity:0.3;cursor:not-allowed;}
.calendar-day.is-empty{visibility:hidden;pointer-events:none;}
.month-picker-months{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:6px;}
.month-picker-cell{padding:12px 6px;border:none;background:transparent;border-radius:8px;font-size:13.5px;font-family:inherit;color:var(--text);cursor:pointer;text-align:center;}
.month-picker-cell:hover:not(:disabled){background:var(--sky-soft);}
.month-picker-cell.is-selected{background:var(--sky);color:#fff;font-weight:700;}
.month-picker-cell:disabled{opacity:0.3;cursor:not-allowed;}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px;}
.dialog-close{position:absolute;top:18px;right:18px;background:none;border:none;color:var(--text-soft);width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;}
.dialog-close:hover{background:var(--alt-bg);}

.header-actions{display:flex;align-items:center;gap:16px;}
.header-phone{display:none;font-family:"Work Sans",sans-serif;font-weight:700;font-size:14.5px;color:var(--sky-deep);text-decoration:none;white-space:nowrap;}
.header-telegram{display:none;align-items:center;opacity:0.85;transition:opacity 0.15s ease;}
.header-telegram img{display:block;}
.header-telegram:hover{opacity:1;}
.nav-toggle{display:none;background:none;border:none;padding:6px;color:var(--sky-deep);cursor:pointer;}
.nav-toggle .icon{width:1.7em;height:1.7em;}
@media (min-width:1100px){.header-phone{display:inline-flex;}.header-telegram{display:inline-flex;}}

.footer-contact{margin-top:14px;font-style:normal;font-size:14px;}
.footer-contact p{display:flex;align-items:center;gap:10px;margin-bottom:12px;}
.footer-contact p:last-child{margin-bottom:0;}
.footer-contact a{display:inline-flex;align-items:center;gap:10px;text-decoration:none;}
.footer-contact a:hover{color:var(--sky-deep);}
.footer-contact .icon{width:15px;height:15px;flex:0 0 auto;color:var(--text-soft);}
.footer-contact img{flex:0 0 auto;display:block;}

@media (max-width:899px){
  .header-row{position:relative;padding-top:12px;padding-bottom:12px;}
  .header-actions{gap:10px;}
  .nav-toggle{display:flex;}
  nav.main-nav{
    display:none;
    position:absolute;
    top:100%;left:0;right:0;
    flex-direction:column;
    gap:2px;
    background:#fff;
    padding:8px 24px 16px;
    border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-sm);
  }
  nav.main-nav.is-open{display:flex;}
  nav.main-nav a{padding:12px 0;border-bottom:1px solid var(--line);}
  nav.main-nav > a:last-child{border-bottom:none;}
  .main-nav-extra{display:block;}
  .nav-dropdown > a{display:flex;justify-content:space-between;align-items:center;width:100%;}
  .nav-dropdown-arrow{padding:16px;margin:-16px;box-sizing:content-box;}
  .nav-dropdown-menu{position:static;transform:none;margin-top:0;opacity:1;visibility:visible;background:none;border:none;box-shadow:none;padding:0 0 0 16px;display:none;}
  .nav-dropdown-menu::before{display:none;}
  .nav-dropdown-menu a:last-child{border-bottom:none;}
  .nav-dropdown.is-open .nav-dropdown-menu{display:flex;}
  .nav-dropdown.is-open .nav-dropdown-arrow{transform:rotate(-90deg);}
}

/* Выбор услуги и даты в форме записи — на любом размере экрана и во всех
   трёх формах (модалка в хедере, инлайн-форма в CTA-блоке, инлайн-форма на
   /o-nas/): раньше это был маленький поп-ап поверх поля (position:absolute,
   не входит в scrollHeight диалога/страницы), из-за чего кнопка "Готово"/дни
   календаря могли уезжать за пределы видимой области без возможности
   докрутить, а на десктопе было просто неудобно скроллить то поп-ап, то саму
   форму. Вместо поп-апа — отдельный экран по центру, с крестиком, чтобы
   вернуться к форме. Внутри модалки он размером с саму модалку (см.
   dialog#booking-dialog), в CTA/hero-формах — такая же карточка поверх
   страницы (см. бэкдроп ниже, в самой модалке отдельный бэкдроп не нужен —
   у неё уже есть родной ::backdrop). */
/* Поднимать z-index карточки выше хедера (z-index:40), пока попап открыт,
   осознанно НЕ делаем: открытие само докручивает попап под хедер (см.
   scroll-margin-top в booking.js), но если пользователь потом сам
   проскроллит страницу вверх, попап — обычный контент страницы (не
   fixed) и должен уходить под липкий хедер, как и всё остальное на
   сайте, а не перекрывать его собой. Так и было при z-index:50 — баг,
   хедер пропадал под открытым попапом. */
/* .select-custom у себя тоже position:relative (нужно для десктопного
   поп-апа по умолчанию) — но тут мы сами разворачиваем список/календарь
   через position:absolute ОТНОСИТЕЛЬНО самой карточки (.cta-panel-card),
   а не узкого поля-триггера, поэтому промежуточный positioning снимаем. */
#cta-booking-form details.select-custom,
#hero-booking-form details.select-custom{position:static;}
dialog#booking-dialog .select-custom-panel,
dialog#booking-dialog .calendar-popup{
  position:fixed;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:calc(100% - 40px);
  max-width:420px;
  max-height:calc(100vh - 40px);
  border-radius:24px;
  padding:20px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  z-index:50;
  /* height:auto не считается корректно для fixed-блока в этой структуре
     (известная особенность shrink-to-fit в обоих движках — проверено и в
     WebKit, и в Chromium), а fit-content — считается правильно и сам
     сжимается под контент, не оставляя пустых полей, когда контенту не
     нужна вся высота модалки (так было с календарём). */
  height:fit-content;
}
/* CTA/hero-формы — попап разворачивается не по центру экрана, а прямо
   на месте самой карточки формы (абсолютно, относительно .cta-panel-card
   — см. снятие position:relative с .select-custom выше), будто поле на
   карточке само превращается в список/календарь. Это именно
   position:absolute, а не fixed: карточка — обычный блок на странице
   (не <dialog>), и попап должен скроллиться вместе со страницей, а не
   зависать там, где карточка была в момент открытия. */
#cta-booking-form .select-custom-panel,
#cta-booking-form .calendar-popup,
#hero-booking-form .select-custom-panel,
#hero-booking-form .calendar-popup{
  position:absolute;
  top:0;left:0;right:0;
  max-height:100%;
  border-radius:20px;
  padding:20px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  z-index:2;
  /* Как и в модалке — сам сжимается под контент (список услуг короче
     карточки, календарь ещё короче), вместо растягивания на всю высоту
     карточки формы с пустыми полями внизу. */
  height:fit-content;
}
/* Календарь — в отличие от списка услуг, у него нет смысла растягиваться
   на всю ширину/высоту карточки (ширина/высота всегда одна и та же,
   независимо от контента) — центрируем его в карточке по обеим осям и
   тем же способом, что и в модалке, чтобы календарь выглядел и вёл себя
   одинаково во всех трёх формах, а не "от ширины карточки на странице". */
#cta-booking-form .calendar-popup,
#hero-booking-form .calendar-popup{
  left:50%;right:auto;top:50%;
  transform:translate(-50%,-50%);
  width:calc(100% - 40px);
  max-width:420px;
}
/* Список услуг может быть длиннее доступной высоты — сам список тогда
   сжимается и прокручивается (min-height:0 снимает дефолтный флексовый
   запрет сжиматься ниже контента), а кнопка "Готово" остаётся закреплена
   и видна всегда. Если список короткий — и flex:1 нечем заполнять, вся
   панель просто сжимается под контент благодаря height:fit-content выше. */
dialog#booking-dialog .select-custom-menu,
#cta-booking-form .select-custom-menu,
#hero-booking-form .select-custom-menu{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;}
dialog#booking-dialog .select-confirm-bar,
#cta-booking-form .select-confirm-bar,
#hero-booking-form .select-confirm-bar{flex:0 0 auto;}
dialog#booking-dialog .calendar-popup .calendar-header,
#cta-booking-form .calendar-popup .calendar-header,
#hero-booking-form .calendar-popup .calendar-header{margin-bottom:16px;}
dialog#booking-dialog .calendar-popup .calendar-nav,
#cta-booking-form .calendar-popup .calendar-nav,
#hero-booking-form .calendar-popup .calendar-nav{width:40px;height:40px;}
dialog#booking-dialog .calendar-popup .calendar-nav .icon,
#cta-booking-form .calendar-popup .calendar-nav .icon,
#hero-booking-form .calendar-popup .calendar-nav .icon{width:20px;height:20px;}
dialog#booking-dialog .calendar-popup .calendar-title,
#cta-booking-form .calendar-popup .calendar-title,
#hero-booking-form .calendar-popup .calendar-title{font-size:18px;}
dialog#booking-dialog .calendar-popup .calendar-weekdays span,
#cta-booking-form .calendar-popup .calendar-weekdays span,
#hero-booking-form .calendar-popup .calendar-weekdays span{font-size:13px;}
dialog#booking-dialog .calendar-popup .calendar-days,
#cta-booking-form .calendar-popup .calendar-days,
#hero-booking-form .calendar-popup .calendar-days{gap:6px;}
dialog#booking-dialog .calendar-popup .calendar-day,
#cta-booking-form .calendar-popup .calendar-day,
#hero-booking-form .calendar-popup .calendar-day{font-size:16px;border-radius:10px;}
dialog#booking-dialog .mobile-picker-topbar,
#cta-booking-form .mobile-picker-topbar,
#hero-booking-form .mobile-picker-topbar{display:flex;justify-content:flex-end;flex:0 0 auto;}
/* На десктопе та же ширина, что у самой модалки (420px), для одного
   месячного календаря выглядит несуразно широкой — сужаем карточку и
   возвращаем контролам исходный (не увеличенный под палец) размер. */
@media (min-width:900px){
  /* Календарь теперь везде центрирован и одного с модалкой происхождения
     (см. правило центрирования выше) — сужаем одинаково во всех трёх
     формах, чтобы он выглядел и вёл себя идентично независимо от того,
     откуда открыт. */
  dialog#booking-dialog .calendar-popup,
  #cta-booking-form .calendar-popup,
  #hero-booking-form .calendar-popup{max-width:320px;}
  dialog#booking-dialog .calendar-popup .calendar-nav,
  #cta-booking-form .calendar-popup .calendar-nav,
  #hero-booking-form .calendar-popup .calendar-nav{width:28px;height:28px;}
  dialog#booking-dialog .calendar-popup .calendar-nav .icon,
  #cta-booking-form .calendar-popup .calendar-nav .icon,
  #hero-booking-form .calendar-popup .calendar-nav .icon{width:16px;height:16px;}
  dialog#booking-dialog .calendar-popup .calendar-title,
  #cta-booking-form .calendar-popup .calendar-title,
  #hero-booking-form .calendar-popup .calendar-title{font-size:14px;}
  dialog#booking-dialog .calendar-popup .calendar-weekdays span,
  #cta-booking-form .calendar-popup .calendar-weekdays span,
  #hero-booking-form .calendar-popup .calendar-weekdays span{font-size:11px;}
  dialog#booking-dialog .calendar-popup .calendar-days,
  #cta-booking-form .calendar-popup .calendar-days,
  #hero-booking-form .calendar-popup .calendar-days{gap:2px;}
  dialog#booking-dialog .calendar-popup .calendar-day,
  #cta-booking-form .calendar-popup .calendar-day,
  #hero-booking-form .calendar-popup .calendar-day{font-size:13.5px;border-radius:8px;}
}
dialog#booking-dialog .mobile-picker-topbar .dialog-close,
#cta-booking-form .mobile-picker-topbar .dialog-close,
#hero-booking-form .mobile-picker-topbar .dialog-close{position:static;}
@media (max-width:760px){
  section{padding:40px 0;}
  .cta-panel{padding:32px;grid-template-columns:1fr;}
  .cta-panel-watermark{width:260px;height:282px;left:auto;right:-70px;bottom:-70px;}
  .flow{flex-direction:row;gap:22px 16px;}
  .flow-step{flex:1 1 calc(50% - 8px);padding-right:0;}
  .flow-step .flow-icon{width:40px;height:40px;font-size:13px;margin-bottom:8px;}
  .flow-step:not(:last-child)::after{display:none;}
  .trust-card{padding:18px;}
  .trust-card .icon{margin-bottom:8px;}
  table{min-width:0;font-size:13.5px;table-layout:fixed;}
  th,td{padding:10px;overflow-wrap:break-word;}
  .price-table th:last-child,.price-table td:last-child{display:none;}
}
@media (max-width:480px){
  .brand-logo{height:52px;}
  .btn{padding:11px 18px;font-size:13.5px;}
  .hero-title{font-size:clamp(30px,9vw,40px);}
}

.stat-cards{display:flex;gap:12px;flex-wrap:wrap;}
.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 20px;min-width:130px;}
.stat-card .stat-num{display:block;font-family:"Prata",serif;font-size:30px;color:var(--sky-deep);line-height:1.1;}
.stat-card .stat-label{font-size:13px;color:var(--text-soft);}

.source-tag{display:inline-flex;align-items:center;padding:3px 10px;border-radius:100px;font-size:12px;font-weight:600;margin-left:8px;vertical-align:middle;}
.source-tag.is-site{background:var(--sky-soft);color:var(--sky-deep);}
.source-tag.is-personal{background:var(--pink-soft);color:var(--pink-deep);}
.source-tag.is-confirmed{background:var(--sky-soft);color:var(--sky-deep);}
.source-tag.is-first-visit{background:#E3F3EA;color:var(--good);}
.source-tag.is-no-show{background:var(--wine-soft);color:var(--wine-deep);}

.promo-note{background:var(--pink-soft);color:var(--pink-deep);border-radius:10px;padding:10px 14px;font-size:13.5px;font-weight:600;margin-top:10px;}

.article-toc,.article-takeaways{border-radius:var(--radius-sm);padding:20px 24px;margin-top:24px;max-width:640px;}
.article-toc{background:var(--surface);border:1px solid var(--line);}
.article-takeaways{background:var(--sky-soft);}
.article-toc h2,.article-takeaways h2{margin-bottom:12px;}
.article-toc ol,.article-takeaways ul{margin:0;padding-left:20px;}
.article-toc li,.article-takeaways li{margin-bottom:6px;color:var(--text);font-size:15px;}
/* Плеер нейроозвучки статьи (вставляется scripts/generate-article-audio.py выше обложки; интерфейс: js/article-audio.js).
   Без JS остаётся обычный <audio controls>. */
.article-audio{--aa-pad:18px;display:flex;align-items:center;gap:16px;max-width:760px;margin-top:24px;padding:var(--aa-pad) 22px;border-radius:var(--radius);color:#fff;background:linear-gradient(135deg,var(--sky-deep),#2B87B4);box-shadow:var(--shadow-sm);}
.article-audio-body{flex:1;min-width:0;}
.article-audio-title{display:flex;align-items:center;gap:10px;margin:0;font-weight:700;font-size:17px;line-height:1.25;color:#fff;}
.article-audio-badge{font-weight:600;font-size:12px;line-height:1;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,0.18);color:#fff;white-space:nowrap;}
.article-audio audio{display:block;width:100%;height:44px;margin-top:10px;}
.article-audio-play{flex:none;display:none;align-items:center;justify-content:center;width:56px;height:56px;border:0;border-radius:50%;background:var(--pink);color:#fff;cursor:pointer;box-shadow:0 8px 18px -6px rgba(173,26,83,0.65);transition:transform 0.15s ease, background 0.15s ease;}
.article-audio-play:hover{background:var(--pink-deep);transform:scale(1.05);}
.article-audio-play:focus-visible,.article-audio-speed:focus-visible,.article-audio-mute:focus-visible,.article-audio-dl:focus-visible,.article-audio-seek:focus-visible,.article-audio-volume:focus-visible{outline:3px solid #fff;outline-offset:3px;}
.article-audio-ico{width:24px;height:24px;fill:currentColor;}
.article-audio-ico.is-play{margin-left:2px;}
.article-audio-ico.is-pause{display:none;}
.article-audio.is-playing .article-audio-ico.is-play{display:none;}
.article-audio.is-playing .article-audio-ico.is-pause{display:block;}
.article-audio-track{display:none;align-items:center;gap:12px;margin-top:10px;}
.article-audio-time{flex:none;min-width:96px;text-align:right;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:#fff;}
.article-audio-seek{--p:0%;flex:1;min-width:0;height:22px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;}
.article-audio-seek::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(to right,#fff var(--p),rgba(255,255,255,0.28) var(--p));}
.article-audio-seek::-moz-range-track{height:6px;border-radius:999px;background:rgba(255,255,255,0.28);}
.article-audio-seek::-moz-range-progress{height:6px;border-radius:999px;background:#fff;}
.article-audio-seek::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-5px;border-radius:50%;border:0;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);}
.article-audio-seek::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:0;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);}
.article-audio-tools{display:none;align-items:center;flex-wrap:wrap;gap:6px 8px;margin-top:10px;}
.article-audio-speed,.article-audio-mute,.article-audio-dl,.article-audio-skip{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:36px;margin:0;padding:0;border:1.5px solid rgba(255,255,255,0.5);border-radius:999px;background:transparent;color:#fff;font:inherit;font-weight:700;font-size:13px;line-height:1;text-decoration:none;cursor:pointer;transition:background 0.15s ease;}
.article-audio-speed{min-width:56px;padding:0 12px;}
.article-audio-mute,.article-audio-dl,.article-audio-skip{width:36px;border-color:transparent;}
.article-audio-dl{margin-left:auto;border-color:rgba(255,255,255,0.5);}
.article-audio-speed:hover,.article-audio-mute:hover,.article-audio-dl:hover,.article-audio-skip:hover{background:rgba(255,255,255,0.18);}
.article-audio-dl .article-audio-ico,.article-audio-mute .article-audio-ico{width:20px;height:20px;}
.article-audio-skip .article-audio-ico{width:26px;height:26px;}
.article-audio-vol{display:flex;align-items:center;gap:4px;min-width:0;}
.article-audio-mute .is-muted{display:none;}
.article-audio.is-muted .article-audio-mute .is-vol{display:none;}
.article-audio.is-muted .article-audio-mute .is-muted{display:block;}
.article-audio-volume{--p:100%;width:84px;height:22px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;}
.article-audio-volume::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,#fff var(--p),rgba(255,255,255,0.28) var(--p));}
.article-audio-volume::-moz-range-track{height:4px;border-radius:999px;background:rgba(255,255,255,0.28);}
.article-audio-volume::-moz-range-progress{height:4px;border-radius:999px;background:#fff;}
.article-audio-volume::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;border:0;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);}
.article-audio-volume::-moz-range-thumb{width:14px;height:14px;border-radius:50%;border:0;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);}
.article-audio-vol.is-hidden{display:none;}
/* JS включил свой интерфейс: прячем нативный элемент, показываем кнопки */
.article-audio.is-enhanced .article-audio audio,.article-audio.is-enhanced audio{display:none;}
.article-audio.is-enhanced .article-audio-play{display:inline-flex;}
.article-audio.is-enhanced .article-audio-tools{display:flex;}
.article-audio.is-enhanced .article-audio-track{display:flex;}
@media (max-width:560px){
  .article-audio{--aa-pad:14px;gap:12px;padding:var(--aa-pad) 14px;}
  .article-audio-play{width:52px;height:52px;}
  .article-audio-title{font-size:16px;white-space:nowrap;}
  .article-audio-badge{display:none;}
  .article-audio-volume{display:none;}
  .article-audio-time{min-width:80px;font-size:13px;}
  .article-audio-time{min-width:74px;font-size:12px;}
}
@media (prefers-reduced-motion:reduce){.article-audio-play{transition:none;}.article-audio-play:hover{transform:none;}}
.article-toc a{color:var(--sky-deep);text-decoration:none;}
.article-toc a:hover{text-decoration:underline;}
.article-body h2,.article-body .section-head{scroll-margin-top:110px;}
@media (min-width:900px){.article-body h2,.article-body .section-head{scroll-margin-top:140px;}}
.article-body .section-head{max-width:760px;}
.article-body .section-lede{max-width:760px;}
.article-body>ul,.article-body>ol{max-width:760px;}
.article-source-list{margin:0;padding-left:20px;color:var(--text-soft);font-size:14px;}
.article-source-list li{margin-bottom:6px;}

.legal-doc h2{font-size:24px;margin:40px 0 14px;}
.legal-doc h2:first-of-type{margin-top:36px;}
.legal-doc p{margin-bottom:14px;line-height:1.7;}
.legal-doc ul{margin:0 0 14px;padding-left:20px;}
.legal-doc li{margin-bottom:6px;line-height:1.6;}
.legal-doc strong{font-weight:600;}
.legal-doc a{color:var(--sky-deep);}
.legal-doc a:hover{text-decoration:none;}
.legal-doc p.hint{margin-top:28px;margin-bottom:0;color:var(--text-soft);font-size:14px;}
.article-meta{color:var(--text-soft);font-size:13.5px;margin-top:10px;}
.article-stats{display:flex;align-items:center;gap:16px;margin-top:12px;}
.like-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:1px solid var(--line-strong);border-radius:100px;padding:6px 14px;font-size:13.5px;font-weight:600;color:var(--text-soft);cursor:pointer;transition:border-color 0.15s ease, color 0.15s ease;}
.like-btn:hover{border-color:var(--pink);color:var(--pink-deep);}
.like-btn .icon{width:1.1em;height:1.1em;}
.like-btn[aria-pressed="true"]{border-color:var(--pink);color:var(--pink-deep);background:var(--pink-soft);}
.like-btn[aria-pressed="true"] .icon{fill:currentColor;}
.view-stat{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:var(--text-soft);}
.view-stat .icon{width:1.1em;height:1.1em;}
.article-hero{margin-bottom:32px;align-items:flex-start;}
.hero-author{flex:0.6 1 280px;display:flex;justify-content:center;}
.hero-author .specialist-card{padding:20px;}
.hero-author .specialist-photo{width:84px;height:84px;margin-bottom:12px;}
.hero-author .specialist-card h3,.hero-author .specialist-name{font-size:17px;margin-bottom:4px;}
.hero-author .specialist-card p{font-size:13.5px;margin-bottom:14px;}
.article-cover{max-width:760px;margin:24px 0 0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);}
.article-cover img{width:100%;height:auto;aspect-ratio:48/35;object-fit:cover;}
.article-figure{max-width:760px;margin:28px 0;}
.article-figure img{width:100%;height:auto;border-radius:var(--radius);box-shadow:var(--shadow-sm);object-fit:cover;aspect-ratio:48/35;}
.article-figure figcaption{margin-top:10px;font-size:13.5px;color:var(--text-soft);text-align:center;}

.article-figure-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;max-width:760px;margin:28px 0;}
.article-figure-grid .article-figure{margin:0;max-width:none;}
.article-figure-grid .article-figure figcaption{font-size:12.5px;}
@media(max-width:480px){.article-figure-grid{grid-template-columns:1fr;}}

.figure-zoom-wrap{position:relative;overflow:hidden;border-radius:var(--radius);box-shadow:var(--shadow-sm);cursor:zoom-in;}
.figure-zoom-wrap img{display:block;border-radius:0;box-shadow:none;transition:transform 0.45s cubic-bezier(.2,.7,.3,1);}
.figure-zoom-wrap:hover img{transform:scale(1.06);}
.figure-zoom-icon{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:rgba(10,15,20,0.55);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(-4px);transition:opacity 0.25s ease, transform 0.25s ease;pointer-events:none;}
.figure-zoom-icon .icon{width:17px;height:17px;color:#fff;}
.figure-zoom-wrap:hover .figure-zoom-icon{opacity:1;transform:translateY(0);}

.image-lightbox-overlay{position:fixed;inset:0;background:rgba(8,12,18,0.9);display:flex;align-items:center;justify-content:center;z-index:1000;cursor:zoom-out;padding:28px;animation:lightboxIn 0.2s ease;}
.image-lightbox-overlay img{max-width:100%;max-height:100%;border-radius:var(--radius);box-shadow:0 24px 70px rgba(0,0,0,0.5);cursor:default;}
@keyframes lightboxIn{from{opacity:0}to{opacity:1}}
.image-lightbox-nav{position:fixed;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:none;background:rgba(255,255,255,0.12);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;transition:background 0.2s ease;}
.image-lightbox-nav:hover{background:rgba(255,255,255,0.24);}
.image-lightbox-nav .icon{width:22px;height:22px;}
.image-lightbox-nav.is-prev{left:24px;}
.image-lightbox-nav.is-prev .icon{transform:rotate(180deg);}
.image-lightbox-nav.is-next{right:24px;}
@media(max-width:600px){.image-lightbox-nav{width:38px;height:38px;}.image-lightbox-nav.is-prev{left:8px;}.image-lightbox-nav.is-next{right:8px;}}

.blog-posts-grid{container-type:inline-size;display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px;}
/* 4-я карточка нужна только когда сетка складывается в 2 колонки (ширина сетки 700-1059px):
   иначе 3 карточки оставляют пустой слот в нижнем ряду. В 1 и 3 колонках она скрыта. */
.blog-post-card.is-extra{display:none;}
@container (700px <= width < 1060px){.blog-post-card.is-extra{display:flex;}}
.blog-post-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);text-decoration:none;color:inherit;transition:transform 0.15s ease, box-shadow 0.15s ease;}
.blog-post-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);}
.blog-post-card img{width:100%;height:210px;object-fit:cover;}
.blog-post-card-body{display:flex;flex-direction:column;flex:1;padding:12px 16px;}
.blog-post-card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;}
.blog-tag{background:var(--sky-soft);color:var(--sky-deep);font-size:11px;font-weight:700;padding:3px 9px;border-radius:100px;text-transform:uppercase;letter-spacing:0.03em;}
.blog-post-card-body h3{font-size:15.5px;margin-bottom:4px;font-family:"Work Sans",sans-serif;font-weight:700;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.blog-post-card-body p{font-size:14px;color:var(--text-soft);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.blog-post-card-body .btn-secondary{margin-top:14px;}
.blog-post-card-meta{display:flex;flex-wrap:nowrap;overflow:hidden;gap:4px 10px;font-size:12.5px;color:var(--text-soft);margin-top:auto;padding-top:6px;}
.blog-post-card-meta span{white-space:nowrap;}
.blog-post-card-meta span+span::before{content:"·";margin-right:10px;color:var(--line-strong);}
.blog-post-card-stats{display:flex;gap:16px;margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-size:12.5px;color:var(--text-soft);}
.blog-post-card-stats span{display:inline-flex;align-items:center;gap:5px;}
.blog-post-card-stats .icon{width:1.05em;height:1.05em;}
.blog-post-card.is-placeholder{border-style:dashed;background:var(--surface-soft, #faf7f5);}
.blog-post-card.is-placeholder:hover{transform:none;box-shadow:var(--shadow-sm);}

/* Упрощённые карточки "Статьи автора" на странице мастера — вместо
   полноразмерного .blog-post-card (слишком широкий для узкой колонки
   рядом с фото мастера): только картинка, заголовок, дата, статистика. */
.author-articles{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
.author-article-card{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);text-decoration:none;transition:border-color 0.15s ease, box-shadow 0.15s ease;}
.author-article-card:hover{border-color:var(--sky);box-shadow:var(--shadow-sm);}
.author-article-card img{width:96px;height:72px;object-fit:cover;border-radius:var(--radius-sm);flex:0 0 auto;}
.author-article-body h3{font-family:"Work Sans",sans-serif;font-weight:700;font-size:14.5px;color:var(--ink);line-height:1.3;}
.author-article-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;color:var(--text-soft);margin-top:6px;}
.author-article-meta span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
.author-article-meta .icon{width:1em;height:1em;}
.blog-post-card-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;flex:1;min-height:200px;padding:20px;text-align:center;color:var(--text-soft);}
.blog-post-card-placeholder .icon{width:26px;height:26px;opacity:0.45;}
.blog-post-card-placeholder p{margin:0;font-size:14px;font-weight:600;}
.blog-topics-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:28px 24px;}
.blog-topic-item{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit;}
.blog-topic-icon{width:68px;height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:linear-gradient(135deg,var(--sky-deep),var(--sky));box-shadow:0 6px 18px rgba(21,94,130,0.28);transition:transform 0.25s ease, box-shadow 0.25s ease;}
.blog-topic-icon .icon{width:34px;height:34px;color:#fff;}
.blog-topic-item:nth-child(2n) .blog-topic-icon{background:linear-gradient(135deg,var(--pink-deep),var(--pink));box-shadow:0 6px 18px rgba(173,26,83,0.28);}
.blog-topic-item:hover .blog-topic-icon{transform:scale(1.08) rotate(-4deg);box-shadow:0 8px 22px rgba(21,94,130,0.34);}
.blog-topic-item-text h3{font-size:17px;font-family:"Work Sans",sans-serif;font-weight:500;margin-bottom:2px;}
.blog-topic-item-text p{font-size:13.5px;color:var(--text-soft);}
.blog-topic-item:hover .blog-topic-item-text h3{color:var(--sky-deep);}
.blog-topic-item.is-placeholder{opacity:0.5;}
.blog-topic-item.is-placeholder .blog-topic-icon{background:var(--alt-bg);border-color:var(--line);box-shadow:none;}
.blog-topic-item.is-placeholder .blog-topic-icon .icon{color:var(--text-soft);}

.income-chart-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:24px 24px 14px;margin-top:16px;position:relative;}
.income-chart-card h3{font-size:15px;font-weight:700;font-family:"Work Sans",sans-serif;margin-bottom:18px;color:var(--ink);}
.income-chart-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.income-chart-hero-label{font-size:12.5px;color:var(--text-soft);margin-bottom:6px;}
.income-chart-hero-value{font-family:"Prata",serif;font-size:clamp(28px,4vw,34px);color:var(--ink);line-height:1;}
.income-chart-delta{display:inline-flex;align-items:center;gap:5px;padding:6px 13px;border-radius:100px;font-size:13px;font-weight:700;font-family:"Work Sans",sans-serif;white-space:nowrap;}
.income-chart-delta.is-up{background:#E3F3EA;color:var(--good);}
.income-chart-delta.is-down{background:var(--wine-soft);color:var(--wine-deep);}
.income-chart-delta.is-flat{background:var(--alt-bg);color:var(--text-soft);}
.income-chart-svg{width:100%;height:auto;display:block;overflow:visible;}
.income-chart-svg .chart-grid-line{stroke:var(--line);stroke-width:1;}
.income-chart-svg .chart-axis-label{fill:var(--text-soft);font-size:11px;font-family:"Work Sans",sans-serif;}
.income-chart-svg .chart-area{fill:url(#income-area-fill);}
.income-chart-svg .chart-line{fill:none;stroke:var(--sky-deep);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.income-chart-svg .chart-dot{fill:var(--sky-deep);stroke:var(--surface);stroke-width:2;}
.income-chart-svg .chart-hit{fill:transparent;cursor:pointer;}
.income-chart-svg .chart-hit:focus{outline:none;}
.income-chart-svg .income-chart-crosshair{stroke:var(--line-strong);stroke-width:1;pointer-events:none;opacity:0;}
.income-chart-tooltip{position:absolute;background:var(--ink);color:#fff;padding:8px 12px;border-radius:10px;font-size:13px;pointer-events:none;opacity:0;transform:translate(-50%,-100%);white-space:nowrap;transition:opacity .12s;z-index:5;}
.income-chart-tooltip .tt-value{font-weight:700;font-size:14px;display:block;}
.income-chart-tooltip .tt-month{color:rgba(255,255,255,0.7);font-size:11.5px;}

.price-toggle-row{display:flex;justify-content:center;margin-top:40px;}
.price-cta-row{display:flex;justify-content:center;margin-top:28px;}

.price-toggle{display:inline-flex;background:var(--sky-soft);border-radius:100px;padding:4px;gap:4px;}
.price-toggle-btn{border:none;background:transparent;padding:10px 24px;border-radius:100px;font-family:inherit;font-size:14.5px;font-weight:600;color:var(--sky-deep);cursor:pointer;transition:background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;}
.price-toggle-btn.is-active{background:#fff;color:var(--ink);box-shadow:var(--shadow-sm);}

.price-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,220px));justify-content:center;gap:20px;margin-top:28px;}
.price-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:22px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;text-align:left;}
.price-card .icon{width:1.8em;height:1.8em;color:var(--sky-deep);margin-bottom:14px;}
.price-card h3{font-family:"Work Sans",sans-serif;font-size:15px;font-weight:700;color:var(--ink);margin:0 0 6px;line-height:1.3;}
.price-card-meta{font-size:13px;color:var(--text-soft);margin:0 0 14px;}
.price-card-price{font-family:"Prata",serif;font-weight:400;font-size:23px;color:var(--sky-deep);margin:auto 0 0;}
/* Карточки прайса (вкладки Маникюр/Педикюр) — на мобильных 2 колонки
   вместо одной широкой. У маникюра 4 карточки (ровно 2x2), у педикюра
   3 — последняя растянута на всю ширину, т.к. четвёртой настоящей
   услуги для пары в прайсе пока нет. */
@media (max-width:760px){
  .price-card-grid{grid-template-columns:repeat(2,1fr);gap:14px;}
  #price-table-pedi .price-card:last-child{grid-column:1 / -1;}
}

.promo-offer-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);padding:36px;display:flex;gap:28px;max-width:680px;}
.promo-offer-content{display:flex;flex-direction:column;flex:1 1 auto;}
.promo-offer-badge{flex:0 0 auto;width:72px;height:72px;border-radius:50%;background:var(--pink-soft);color:var(--pink-deep);display:flex;align-items:center;justify-content:center;font-family:"Prata",serif;font-weight:400;font-size:19px;}
.promo-offer-card h2{font-size:22px;color:var(--ink);margin-bottom:10px;}
.promo-offer-card p{color:var(--text-soft);font-size:15px;line-height:1.6;}
.promo-offer-terms{margin-top:auto;padding-top:14px;font-size:13px;color:var(--text-soft);font-style:italic;}
.promo-offer-actions{margin-top:24px;display:flex;gap:12px;flex-wrap:wrap;}
@media (max-width:560px){.promo-offer-card{flex-direction:column;padding:26px;}}

/* Блок «Другие услуги» на страницах услуг: _includes/other-services.html, данные _data/services.json */
.other-services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;}
.other-service-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);text-decoration:none;color:inherit;transition:transform 0.15s ease, box-shadow 0.15s ease;}
.other-service-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);}
.other-service-card img{width:100%;aspect-ratio:16/10;height:auto;object-fit:cover;}
.other-service-body{display:flex;flex-direction:column;flex:1;padding:16px 18px 18px;}
.other-service-body h3{font-family:"Work Sans",sans-serif;font-weight:700;font-size:17px;line-height:1.3;color:var(--ink);margin:0 0 6px;}
.other-service-body p{font-size:14px;color:var(--text-soft);margin:0 0 14px;}
.other-service-price{margin-top:auto;display:inline-flex;align-items:center;align-self:flex-start;gap:6px;padding:6px 12px;border-radius:999px;background:var(--sky-soft);color:var(--sky-deep);font-weight:700;font-size:14px;}
.other-service-card:hover .other-service-price{background:var(--pink);color:#fff;}
@media (max-width:560px){
  .other-services-grid{grid-template-columns:1fr;gap:12px;}
  .other-service-card{flex-direction:row;}
  .other-service-card img{width:120px;aspect-ratio:auto;height:auto;min-height:100%;flex:none;}
  .other-service-body{padding:12px 14px;}
  .other-service-body h3{font-size:15.5px;}
  .other-service-body p{font-size:13px;margin-bottom:10px;}
}
@media (prefers-reduced-motion:reduce){.other-service-card{transition:none;}.other-service-card:hover{transform:none;}}
