/* ПарЗапись — визуальная система
   Хвоя, пар, мёд липы, лист веника, камень. Заголовки Yeseva One, текст Manrope. */
/* Шрифты лежат на нашем сервере: страницы не зависят от внешних сервисов */
@font-face { font-family: 'Yeseva One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/yeseva-one-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: 'Yeseva One'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/yeseva-one-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: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'); 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --fir: #1F3A33;
  --fir-2: #2B4D44;
  --fir-3: #3D6358;
  --mist: #E8EEEA;
  --paper: #F7F9F7;
  --honey: #D9A441;
  --honey-soft: #F3E3BD;
  --honey-ink: #6E4C10;
  --leaf: #6F8C4F;
  --stone: #25292A;
  --muted: #5B6863;
  --line: rgba(31, 58, 51, .14);
  --danger: #A63D2F;
  --ok: #3F7A4A;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --display: 'Yeseva One', 'Georgia', serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--stone);
  font: 16px/1.55 var(--text); font-feature-settings: 'tnum' 1;
}
img { max-width: 100%; display: block; }
a { color: var(--fir-2); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--fir); color: #fff; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--fir-2); }
.btn:active { transform: scale(.98); }
.btn.honey { background: var(--honey); color: var(--stone); }
.btn.honey:hover { background: #E2B358; }
.btn.ghost { background: transparent; color: var(--fir); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: rgba(31,58,51,.06); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(166,61,47,.35); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--stone); font: 16px/1.4 var(--text);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fir-3); box-shadow: 0 0 0 3px rgba(217,164,65,.35); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fir); flex: none; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.flash { padding: 12px 16px; border-radius: var(--r-sm); margin: 16px 0; font-weight: 600; }
.flash.err { background: #F6DEDA; color: #6B2117; }
.flash.ok { background: #DCEBDD; color: #1E4A27; }

/* ---------- публичная страница мастера ---------- */
.hero {
  position: relative; overflow: hidden; color: #F2F5F2;
  background: radial-gradient(120% 90% at 85% 0%, var(--fir-3) 0%, var(--fir) 55%, #173029 100%);
  padding: 28px 0 40px;
}
.hero .steam { position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; pointer-events: none; opacity: .5; }
.hero .steam span {
  position: absolute; bottom: 0; width: 46%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(255,255,255,0));
  filter: blur(18px); animation: rise 9s ease-out 1 both;
}
.hero .steam span:nth-child(2) { left: 30%; animation-delay: .6s; width: 38%; }
.hero .steam span:nth-child(3) { left: 55%; animation-delay: 1.2s; width: 30%; }
@keyframes rise { from { transform: translateY(40%) scale(.7); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-15%) scale(1.15); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hero .steam span { animation: none; opacity: .5; } }
.hero .brandline { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(242,245,242,.7); margin-bottom: 36px; }
.hero .brandline a { color: inherit; }
.hero h1 { color: #fff; margin-bottom: .15em; }
.hero .role { font-size: 1.05rem; color: var(--honey-soft); margin-bottom: 18px; }
.hero .bio { max-width: 34em; color: rgba(242,245,242,.86); }
.avatar { width: 84px; height: 84px; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; object-fit: cover; border: 3px solid var(--honey); margin-bottom: 18px; background: var(--fir-2); }
.avatar.letter { display: grid; place-items: center; font: 2.2rem var(--display); color: var(--honey); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 14px; color: rgba(242,245,242,.78); }
.facts b { color: #fff; font-weight: 700; }

.sheet { background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: -22px; position: relative; padding: 28px 0 48px; min-height: 50vh; }
.step { margin-bottom: 34px; }
.step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.step-head .n { font: 1.5rem var(--display); color: var(--honey); width: 1.2em; }
.step-head h2 { margin: 0; font-size: 1.45rem; }

.programs { display: grid; gap: 10px; }
.program { position: relative; display: block; cursor: pointer; }
.program input { position: absolute; opacity: 0; }
.program .body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.program .name { font-weight: 700; }
.program .price { font-weight: 700; text-align: right; }
.program .desc { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.program input:checked + .body { border-color: var(--fir); box-shadow: 0 0 0 3px rgba(31,58,51,.12); }
.program input:focus-visible + .body { outline: 3px solid var(--honey); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: grid; justify-items: center; min-width: 62px; padding: 10px 8px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.chip .wd { font-size: 12px; color: var(--muted); }
.chip .d { font-weight: 800; font-size: 18px; }
.chip.on { background: var(--fir); color: #fff; border-color: var(--fir); }
.chip.on .wd { color: var(--honey-soft); }
.chip.bath { display: inline-flex; min-width: 0; padding: 10px 16px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { position: relative; }
.time input { position: absolute; opacity: 0; }
.time span { display: block; text-align: center; padding: 12px 6px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; cursor: pointer; }
.time span small { display: block; font-weight: 500; font-size: 11px; }
.time input:checked + span { background: var(--honey); border-color: var(--honey); color: var(--stone); }
.time input:focus-visible + span { outline: 3px solid var(--fir-3); }
.empty { padding: 18px; border-radius: var(--r-md); background: #fff; border: 1.5px dashed var(--line); color: var(--muted); }

/* ---------- паспорт пара (главная фишка) ---------- */
.passport {
  position: relative; border-radius: var(--r-lg); padding: 22px 20px 20px; color: #F4F1E6;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #2E5348 0%, var(--fir) 70%);
  box-shadow: 0 18px 40px -22px rgba(23,48,41,.7);
}
.passport::after { content: ''; position: absolute; inset: 8px; border-radius: 20px; border: 1px dashed rgba(217,164,65,.45); pointer-events: none; }
.passport .ptitle { font: 1.35rem var(--display); color: var(--honey); margin: 0 0 2px; }
.passport .psub { font-size: 13px; color: rgba(244,241,230,.7); margin-bottom: 16px; }
.passport dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 12px; margin: 0; font-size: 15px; }
.passport dt { color: rgba(244,241,230,.65); }
.passport dd { margin: 0; font-weight: 600; }
.passport .limits { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(217,164,65,.16); font-size: 14px; }
.stones { display: inline-flex; gap: 5px; vertical-align: middle; }
.stones i { width: 16px; height: 12px; border-radius: 48% 52% 45% 55% / 60% 55% 45% 40%; background: rgba(244,241,230,.2); display: inline-block; }
.stones i.on { background: var(--honey); box-shadow: 0 0 10px rgba(217,164,65,.6); }
.passport.light { color: var(--stone); background: #fff; box-shadow: none; border: 1.5px solid var(--line); }
.passport.light::after { border-color: rgba(31,58,51,.18); }
.passport.light .ptitle { color: var(--fir); }
.passport.light .psub, .passport.light dt { color: var(--muted); }
.passport.light .stones i, .list .stones i { background: rgba(31,58,51,.15); }
.passport.light .stones i.on, .list .stones i.on { background: var(--honey); box-shadow: none; }
.passport.light .limits { background: var(--honey-soft); color: var(--honey-ink); }

.heatpick { display: flex; gap: 8px; }
.heatpick label { margin: 0; cursor: pointer; }
.heatpick input { position: absolute; opacity: 0; }
.heatpick span { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 48% 52% 45% 55% / 60% 55% 45% 40%; background: #fff; border: 1.5px solid var(--line); font-weight: 800; }
.heatpick input:checked + span { background: var(--honey); border-color: var(--honey); }
.heatpick input:focus-visible + span { outline: 3px solid var(--fir-3); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { position: relative; }
.tag input { position: absolute; opacity: 0; }
.tag span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.tag input:checked + span { background: var(--fir); color: #fff; border-color: var(--fir); }
.tag input:focus-visible + span { outline: 3px solid var(--honey); }
details.more { border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); padding: 4px 16px; margin-bottom: 16px; }
details.more summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: '+'; float: right; font-size: 20px; line-height: 1; color: var(--muted); }
details.more[open] summary::after { content: '–'; }

.sticky-pay { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 70%, rgba(247,249,247,0)); }
.total { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.total b { color: var(--stone); font-size: 16px; }

/* ---------- сертификат ---------- */
.cert {
  position: relative; aspect-ratio: 1.6; max-width: 560px; margin: 0 auto; border-radius: 22px; padding: 26px;
  color: #F4F1E6; overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(217,164,65,.35), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 8px),
    linear-gradient(150deg, #2E5348, #173029);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cert::after { content: ''; position: absolute; inset: 10px; border-radius: 16px; border: 1px solid rgba(217,164,65,.5); pointer-events: none; }
.cert .ct { font: clamp(1.6rem, 6vw, 2.4rem) var(--display); color: var(--honey); margin: 0; }
.cert .cfor { font-size: 15px; }
.cert .ccode { font: 700 15px/1 var(--text); letter-spacing: .12em; }
.cert .cbottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 13px; color: rgba(244,241,230,.8); }
.cert .camount { font: 1.6rem var(--display); color: #fff; }

/* ---------- кабинет мастера ---------- */
.app-top { background: var(--fir); color: #fff; }
.app-top .wrap-wide { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo { font: 1.35rem var(--display); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 26px; height: 26px; }
.app-top .who { font-size: 14px; color: rgba(255,255,255,.75); }
.app-top .who a { color: var(--honey-soft); }
.tabs { position: sticky; top: 0; z-index: 5; background: var(--fir); border-top: 1px solid rgba(255,255,255,.08); }
.tabs .wrap-wide { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; color: rgba(255,255,255,.72); text-decoration: none; padding: 12px 14px; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.tabs a.on { color: #fff; border-bottom-color: var(--honey); }
.page { padding: 24px 0 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 2rem; margin: 0; }

.panel { background: var(--paper); border-radius: var(--r-md); padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.panel h2 { font-size: 1.3rem; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1.35fr 1fr; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } .grid2 > .side-first { order: -1; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--paper); padding: 14px 16px; }
.kpi .v { font: 1.55rem var(--display); color: var(--fir); }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi.accent { background: var(--fir); }
.kpi.accent .v { color: var(--honey); }
.kpi.accent .l { color: rgba(255,255,255,.75); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; color: inherit; text-decoration: none; }
.item .when { font: 1.2rem var(--display); color: var(--fir); }
.item .when small { display: block; font: 12px var(--text); color: var(--muted); }
.item .title { font-weight: 700; }
.item .sub { font-size: 14px; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--mist); color: var(--fir); white-space: nowrap; }
.badge.pending { background: var(--honey-soft); color: var(--honey-ink); }
.badge.confirmed { background: #DCEBDD; color: #1E4A27; }
.badge.done { background: var(--fir); color: #fff; }
.badge.noshow, .badge.conflict { background: #F6DEDA; color: #6B2117; }
.badge.cancelled, .badge.expired { background: #ECEDEC; color: #6A706D; }
.day-label { font-weight: 800; font-size: 13px; color: var(--muted); padding: 14px 0 4px; }

table.slots { width: 100%; border-collapse: collapse; font-size: 14px; }
table.slots td, table.slots th { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; }
.weekdays { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(120% 80% at 80% 0%, var(--fir-3), var(--fir) 60%, #173029); }
.auth .card { width: 100%; max-width: 420px; background: var(--paper); border-radius: var(--r-lg); padding: 28px 22px; }
.auth .logo { color: var(--fir); margin-bottom: 14px; }

/* ---------- лендинг продукта ---------- */
.land-hero { background: radial-gradient(110% 90% at 90% 0%, var(--fir-3), var(--fir) 55%, #173029); color: #F2F5F2; padding: 22px 0 56px; position: relative; overflow: hidden; }
.land-hero nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.land-hero nav a { color: var(--honey-soft); font-weight: 600; }
.land-hero h1 { color: #fff; max-width: 14em; }
.land-hero .lead { font-size: 1.15rem; max-width: 32em; color: rgba(242,245,242,.86); margin-bottom: 26px; }
.land-sec { padding: 48px 0; }
.land-sec.alt { background: var(--paper); }
.feat { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .feat { grid-template-columns: 1fr; } }
.feat h3 { color: var(--fir); }
.price-card { max-width: 420px; background: var(--fir); color: #fff; border-radius: var(--r-lg); padding: 26px; }
.price-card .p { font: 2.6rem var(--display); color: var(--honey); }
.price-card ul { padding-left: 1.1em; }
footer.foot { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
}
