@font-face { font-family: 'Forum'; src: url('/fonts/forum-cyrillic-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Forum'; src: url('/fonts/forum-latin-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-cyrillic-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122; }

:root {
  color-scheme: light;
  --green-950: #0f241f;
  --green-900: #15332c;
  --green-800: #1f463d;
  --green-100: #dfe7dc;
  --paper: #f7f5ec;
  --card: #fffefa;
  --ink: #17261f;
  --muted: #5b6a62;
  --line: #d9d8c8;
  --saffron: #e39236;
  --saffron-deep: #a85a12;
  --danger: #a4322a;
  --ok: #2c6e49;
  --radius: 18px;
  --hair: rgba(15, 36, 31, .09);
  --shadow: 0 1px 2px rgba(15, 36, 31, .05), 0 18px 40px -24px rgba(15, 36, 31, .35);
  --shadow-up: 0 2px 4px rgba(15, 36, 31, .06), 0 26px 50px -24px rgba(15, 36, 31, .45);
  --display: 'Forum', Georgia, serif;
  --body: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* У Forum одно начертание: жирность в заголовках не подделываем, они остаются тонкими. */
html { scroll-behavior: smooth; font-synthesis-weight: none; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--saffron-deep); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(15, 36, 31, .94); color: #f4f1e2; border-bottom: 1px solid rgba(255, 255, 255, .07); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
#site-header { display: contents; }
[id] { scroll-margin-top: 84px; }
.site-header-in { max-width: 1160px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.7rem/1 var(--display); }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a:not(.btn), .nav button.link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: #d5dccd; text-decoration: none; font-size: .94rem; font-weight: 500; letter-spacing: .01em; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav button.link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, .12); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }
.mobile-bar { display: none; }
.admin-notice { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--saffron); border-radius: 8px; background: #fdf3e4; font-size: .94rem; }
.admin-notice a { color: var(--saffron-deep); font-weight: 700; white-space: nowrap; text-decoration: none; }
.admin-notice a:hover { color: var(--green-900); }
main > .admin-notice { margin: 0; border-radius: 0; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--saffron); color: var(--green-950); font-size: .78rem; font-weight: 700; text-align: center; }

/* Кнопки и поля */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border: 1px solid var(--green-800); border-radius: 999px; background: transparent; color: var(--green-900); font: 600 .94rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, translate .2s ease, box-shadow .2s ease; }
.btn:hover { background: var(--green-100); }
.btn:disabled { opacity: .55; cursor: default; }
/* Отклик на наведение: кнопка чуть приподнимается и отбрасывает мягкую тень, по главной проходит блик.
   Только для мыши: на телефоне «наведение» залипает после касания. */
@media (hover: hover) {
  .btn:not(:disabled):hover { translate: 0 -2px; box-shadow: 0 8px 18px -8px rgba(15, 36, 31, .45); }
  .btn:not(:disabled):active { translate: 0; box-shadow: none; }
  .btn-primary:not(:disabled):hover { box-shadow: 0 10px 22px -8px rgba(227, 146, 54, .6); }
  .btn-primary::after { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent); translate: 0; pointer-events: none; opacity: 0; }
  .btn-primary:not(:disabled):hover::after { animation: btn-shine .8s ease-out; }
}
@keyframes btn-shine {
  from { translate: 0; opacity: 1; }
  to { translate: 380%; opacity: 1; }
}
.btn-primary { background: var(--saffron); border-color: var(--saffron); color: var(--green-950); }
.btn-primary:hover { background: #eea549; border-color: #eea549; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: #f7e3e0; }
.btn-sm { min-height: 36px; padding: 5px 14px; font-size: .86rem; }
button.link { background: none; border: 0; padding: 0; color: var(--saffron-deep); font: inherit; font-weight: 600; cursor: pointer; transition: color .2s; }
button.link:hover { color: var(--green-900); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: .86rem; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfcfbf; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-800); box-shadow: 0 0 0 4px rgba(31, 70, 61, .12); }
textarea { min-height: 84px; resize: vertical; }
input[type='checkbox'] { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--green-800); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-error { color: var(--danger); font-size: .92rem; font-weight: 600; margin: 0 0 12px; }
.checks-list { max-height: 220px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.checks-list .check { margin-bottom: 8px; }
.days { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.days .check { margin: 0; }

/* Главная: первый экран */
.hero { position: relative; overflow: hidden; background: var(--green-950); color: #f7f4e4; }
.hero-in { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) 24px clamp(64px, 10vw, 130px); }
.hero-kicker { margin: 0; font-size: .86rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron); }
.hero h1 { margin: 6px 0 14px -.03em; font-size: clamp(5rem, 17vw, 12rem); font-weight: 400; line-height: .95; letter-spacing: -.015em; }
.hero p.lead { max-width: 30em; margin-bottom: 28px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #d7dccb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn:not(.btn-primary) { border-color: #7f958a; color: #f4f1e2; }
.hero .btn:not(.btn-primary):hover { background: var(--green-800); }
.hero-lily { position: absolute; top: 50%; right: -9%; display: block; width: min(62vw, 680px); height: auto; aspect-ratio: 1; transform: translateY(-50%); }

/* Лилия нарисована тонкой линией и всё время рисуется заново.
   При «уменьшить движение» в системе всё останавливает общее правило prefers-reduced-motion выше,
   и цветок показывается нарисованным целиком. */
.hero-lily path { stroke-linecap: round; stroke-linejoin: round; }
.hero-lily .lp-edge { fill: #15302a; stroke: #efe8cf; stroke-width: 1.4; }
.hero-lily .petal-back .lp-edge { fill: #122a24; stroke: #a9a88d; }
.hero-lily .lp-vein { fill: none; stroke: #efe8cf; stroke-width: .9; opacity: .55; }
.hero-lily .lp-thin { stroke-width: .6; opacity: .3; }
.hero-lily .petal-back .lp-vein { opacity: .35; }
.hero-lily .lp-dots { fill: var(--saffron); opacity: .85; }
.hero-lily .st-filament, .hero-lily .st-pistil, .hero-lily .st-stigma { fill: none; stroke: #efe8cf; stroke-width: 1.1; }
.hero-lily .anther ellipse, .hero-lily .st-heart { fill: var(--saffron); }

/* Цикл 14 с: контур прорисовывается, проявляются заливка и оранжевые акценты, цветок стоит готовым,
   затем линии стираются в том же направлении, в каком рисовались, и всё начинается заново.
   Передние лепестки и прожилки идут с небольшим отставанием, поэтому рисунок складывается слоями. */
.hero-lily [pathLength] { stroke-dasharray: 1; animation: line-draw 14s cubic-bezier(.45, .05, .3, 1) infinite both; }
.hero-lily .lp-edge { animation-name: line-draw, petal-fill; }
.hero-lily .petal-front [pathLength] { animation-delay: .5s; }
.hero-lily .petal .lp-vein, .hero-lily .st-filament, .hero-lily .st-pistil { animation-delay: 1.2s; }
.hero-lily .lp-dots, .hero-lily .anther, .hero-lily .st-stigma, .hero-lily .st-heart { animation: accent-fade 14s ease infinite both; }
@keyframes line-draw {
  0% { stroke-dashoffset: 1; }
  22%, 78% { stroke-dashoffset: 0; }
  96%, 100% { stroke-dashoffset: -1; }
}
@keyframes petal-fill {
  0%, 14% { fill-opacity: 0; }
  30%, 76% { fill-opacity: 1; }
  90%, 100% { fill-opacity: 0; }
}
@keyframes accent-fade {
  0%, 22% { opacity: 0; }
  32%, 74% { opacity: 1; }
  84%, 100% { opacity: 0; }
}

/* Разделы */
.section { max-width: 1160px; margin: 0 auto; padding: clamp(52px, 8vw, 96px) 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.eyebrow { display: block; margin: 0 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--saffron-deep); }
.section-head .hint { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(31, 70, 61, .07); color: var(--muted); font-size: .85rem; }
.page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 40px 24px 72px; }
.page.narrow { max-width: 520px; }
.page.policy { max-width: 780px; }
.policy h2 { margin-top: 1.4em; font-size: 1.8rem; }
.policy ul { margin: 0 0 1em; padding-left: 1.3em; }
.policy li { margin-bottom: .35em; overflow-wrap: anywhere; }

/* Прайс: каждая категория — карточка; строка услуги целиком ведёт к записи. */
.price-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.price-group { padding: 26px 18px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.price-group h3 { display: flex; align-items: center; gap: 14px; margin: 0 10px 10px; color: var(--green-900); font-size: 1.7rem; }
.price-group h3::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 5px rgba(227, 146, 54, .18); }
.price-row { display: block; position: relative; padding: 14px 10px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.price-row + .price-row::before { content: ''; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid var(--hair); transition: opacity .2s; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.price-name { font-weight: 600; transition: color .2s; }
.price-sum { flex: none; padding: 5px 12px; border-radius: 999px; background: rgba(31, 70, 61, .07); color: var(--green-900); font: 400 1.2rem/1 var(--display); white-space: nowrap; transition: background .2s, color .2s; }
.price-meta { display: block; margin-top: 2px; font-size: .85rem; color: var(--muted); }
a.price-row:hover { background: #f6f3e6; }
a.price-row:hover::before, a.price-row:hover + .price-row::before { opacity: 0; }
a.price-row:hover .price-name { color: var(--saffron-deep); }
a.price-row:hover .price-sum { background: var(--saffron); color: var(--green-950); }

/* Мастера */
.band { background: linear-gradient(180deg, #e6ece1, #dfe7dc); }
.masters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.master-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: translate .3s ease, box-shadow .3s ease; }
@media (hover: hover) { .master-card:hover { translate: 0 -4px; box-shadow: var(--shadow-up); } }
.master-photo { aspect-ratio: 4 / 3.4; width: 100%; object-fit: cover; }
.monogram { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 30% 15%, #2a5a4d, var(--green-950) 70%); color: #f3efdc; font-family: var(--display); }
.master-photo.monogram { font-size: 5.5rem; }
.master-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.master-body h3 { margin-bottom: 2px; }
.master-spec { align-self: flex-start; margin-bottom: 12px; padding: 3px 12px; border-radius: 999px; background: #fbeedc; color: var(--saffron-deep); font-size: .82rem; font-weight: 600; }
.master-body .btn { margin-top: auto; align-self: flex-start; }

/* Контакты и подвал */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; }
.contacts > div { padding: 22px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.contacts dt { color: var(--muted); font-size: .85rem; }
.contacts dd { margin: 0; font: 500 1.5rem/1.25 var(--display); }
.contacts dd > a:not(.map-link) { color: inherit; font: 700 1.3rem/1.25 var(--body); white-space: nowrap; }
.map-link { display: inline-block; margin-top: 8px; color: var(--saffron-deep); font: 600 .94rem/1.3 var(--body); text-decoration: none; }
.map-link:hover { color: var(--green-900); }
.hero-phone { margin: 22px 0 0; color: #d7dccb; }
.hero-phone a { color: #fff; font-size: 1.3rem; font-weight: 700; white-space: nowrap; }
.nav .nav-phone, .nav .nav-phone a { color: #fff; font-weight: 700; white-space: nowrap; }
.site-footer { background: var(--green-950); color: #b9c2b3; font-size: .875rem; }
.site-footer-in { max-width: 1160px; margin: 0 auto; padding: 26px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: #dfe3d3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }

/* Запись */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 820px; }
.step { padding: 24px 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.step-title { display: flex; align-items: center; gap: 12px; font: 600 1.5rem/1.2 var(--display); margin: 0 0 14px; }
.step-num { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-900); color: #fff; font: 700 .86rem/1 var(--body); }
.step.done { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; }
.step.done .step-title { margin: 0; font: 600 1rem/1.3 var(--body); }
.step.done .step-num { background: var(--saffron); color: var(--green-950); }
.step.locked { opacity: .55; padding: 14px 24px; }
.step.locked .step-title { margin: 0; }
.choice-group h4 { margin: 18px 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.choice { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; margin-bottom: 8px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: rgba(31, 70, 61, .35); background: #fbfaf4; box-shadow: 0 8px 20px -14px rgba(15, 36, 31, .4); }
.choice-sub { display: block; font-size: .85rem; color: var(--muted); }
.choice-price { font: 600 1.25rem/1 var(--display); white-space: nowrap; }
.mini-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; font-size: 1.5rem; }
.choice-master { justify-content: flex-start; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.date-btn { flex: none; width: 62px; padding: 8px 4px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.date-btn b { display: block; font: 600 1.45rem/1.1 var(--display); }
.date-btn span { display: block; font-size: .74rem; color: var(--muted); }
.date-btn:hover:not(:disabled) { border-color: var(--green-800); }
.date-btn:disabled { opacity: .4; cursor: default; background: transparent; }
.date-btn[aria-pressed='true'] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.date-btn[aria-pressed='true'] span { color: #cfd8c9; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { min-height: 44px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; color: inherit; font: 600 .95rem var(--body); cursor: pointer; }
.slot:hover { border-color: var(--saffron-deep); background: #fdf3e4; }
.summary { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--green-100); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { text-align: right; font-weight: 600; }
.success { text-align: center; padding: 32px 24px; }
.success img { width: 96px; margin: 0 auto 12px; }

/* Вход */
.auth-card { padding: 30px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.auth-switch { margin: 14px 0 0; font-size: .92rem; }
.forgot-help { margin-top: 10px; padding: 12px 14px; border-radius: 8px; background: var(--green-100); font-size: .92rem; }
.forgot-help p:last-child { margin-bottom: 0; }
.forgot-help a { font-weight: 700; white-space: nowrap; }
.field > .password-wrap { position: relative; display: block; margin: 0; font-size: 1rem; font-weight: 400; }
.password-wrap input { padding-right: 48px; }
.password-wrap input::-ms-reveal { display: none; }
.password-toggle { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 46px; padding: 0; border: 0; border-radius: 0 8px 8px 0; background: none; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--ink); }
.password-toggle[aria-pressed="false"] .eye-slash { display: none; }

/* Кабинеты */
.tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; overflow-x: auto; margin-bottom: 26px; padding: 5px; border-radius: 999px; background: rgba(31, 70, 61, .07); }
.tab { flex: none; padding: 9px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .95rem var(--body); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--green-900); background: var(--card); box-shadow: 0 2px 8px -2px rgba(15, 36, 31, .25); }
.list { display: grid; gap: 10px; }
.list-after { margin-top: 18px; }
.item { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--card); }
.item-main { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.item-title { font-weight: 700; }
.item-when { font: 600 1.3rem/1.2 var(--display); margin-bottom: 2px; }
.item-note { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--saffron); background: #fbf6ea; font-size: .92rem; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item.muted-item { opacity: .68; }
.status { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--green-100); color: var(--green-800); }
.status-cancelled, .status-no_show { background: #f4e2df; color: var(--danger); }
.status-hidden { background: #e9e7da; color: var(--muted); }
.day-title { margin: 22px 0 8px; font: 600 1.35rem/1.2 var(--display); }
.day-title::first-letter { text-transform: uppercase; }
.day-title:first-child { margin-top: 0; }
.empty { padding: 28px; border: 1px dashed #b8b9a7; border-radius: var(--radius); color: var(--muted); text-align: center; }
.panel { max-width: 520px; margin-bottom: 32px; padding: 24px 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.panel h3 { font-size: 1.4rem; }
.notif-new { border-left: 4px solid var(--saffron); }
.pre-line { white-space: pre-line; }
.price-input { display: inline-flex; align-items: center; gap: 6px; }
.price-input input { width: 96px; min-height: 36px; padding: 4px 8px; font-size: 16px; text-align: right; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.temp-password { font: 700 1.15rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; user-select: all; }

/* Диалог и всплывающее сообщение */
dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px; border: 0; border-radius: 22px; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgb(15 36 31 / .6); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.photo-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 10px; background: var(--green-950); color: #fff; font-size: .94rem; white-space: pre-line; transform: translateX(-50%); box-shadow: 0 8px 28px rgb(0 0 0 / .28); }
.toast-error { background: var(--danger); }

/* Планшет: цветок не должен заходить на текст первого экрана */
@media (max-width: 1180px) {
  .hero-lily { right: -12%; width: 46vw; }
  .hero p.lead { max-width: 60%; }
}

@media (max-width: 760px) {
  .hero p.lead { max-width: none; }
  form > .btn[type='submit'], #confirm { width: 100%; }

  /* Шапка: логотип и кнопка меню в одну строку, ссылки раскрываются по нажатию */
  .site-header-in { justify-content: space-between; padding: 7px 8px 7px 16px; gap: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: #f4f1e2; cursor: pointer; }
  .nav { display: none; width: 100%; margin: 6px 0 0; padding: 8px 8px 12px 0; gap: 2px; flex-direction: column; align-items: stretch; border-top: 1px solid rgba(255, 255, 255, .08); }
  .nav.open { display: flex; }
  .nav a:not(.btn), .nav button.link { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 1rem; text-align: left; }
  .nav .nav-phone { padding: 10px 14px; }
  .nav .btn { margin: 8px 0 0; }

  /* Главная: панель действий всегда под рукой */
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -4px 18px rgb(15 36 31 / .16); }
  .mobile-bar .btn { flex: 1; }
  .with-mobile-bar { padding-bottom: 66px; }

  .hero-in, .section, .page, .site-footer-in { padding-left: 16px; padding-right: 16px; }
  .hero-in { padding-top: 140px; padding-bottom: 40px; }
  .hero-lily { width: 190px; height: 190px; top: -40px; right: -40px; transform: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .price-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .price-group { padding: 20px 8px 8px; }
  .section-head { margin-bottom: 18px; }

  /* Запись */
  .step { padding: 18px 16px; }
  .step.done, .step.locked { padding: 12px 16px; }
  .step.done button.link, .auth-switch button.link { min-height: 44px; padding: 0 4px; }
  .auth-card { padding: 20px 16px; }

  /* Кабинеты: все вкладки на виду, кнопки удобны для пальца */
  .tabs { width: auto; flex-wrap: wrap; overflow-x: visible; border-radius: 18px; }
  .tab { min-height: 44px; padding: 8px 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .item { padding: 14px; }
  .item-actions { width: 100%; }
  .item-actions .btn { flex: 1 1 auto; min-height: 42px; }
  .item-actions .price-input { flex: 1 1 100%; }
  .item-actions .price-input input { flex: 1; width: auto; min-height: 42px; }
  .item a[href^='tel:'] { display: inline-block; padding: 11px 0; }
  .btn-sm { min-height: 44px; }
  .days .check, .checks-list .check { min-height: 44px; align-items: center; margin: 0; }
  dialog .check { min-height: 44px; align-items: center; }
  .days { gap: 0 18px; }

  /* Длинное слово вроде «конфиденциальности» не должно раздвигать страницу на узком экране. */
  h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .logo { min-height: 44px; }
  .site-footer a { display: inline-block; padding: 11px 0; }
  .site-footer-in { padding-top: 12px; padding-bottom: 12px; }
  .date-btn span { font-size: .8rem; }
  .toolbar > .btn { flex: 1 1 auto; min-height: 42px; }
  .panel { padding: 18px 16px; }

  /* Контакты */
  .contacts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contacts dd > a:not(.map-link) { display: inline-block; padding: 6px 0; }
  .map-link { margin-top: 0; padding: 11px 0; }
  .hero-phone a { display: inline-block; padding: 8px 0; }

  dialog { width: calc(100vw - 16px); padding: 20px 16px; }
  .dialog-actions .btn { flex: 1; }
}

/* На телефонах адресная строка меняет высоту окна: так кнопки диалога не уходят за край. */
@supports (height: 100dvh) {
  dialog { max-height: calc(100dvh - 16px); }
}

/* Бабочки, пролетающие через экран (их запускает common.js). Крылья — две половинки фотографии;
   взмах — поворот каждой половинки в объёме вокруг тельца, с неровным ритмом и коротким планированием. */
.bfly-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.bfly { position: absolute; top: 0; left: 0; display: flex; width: 60px; perspective: 160px; will-change: transform; filter: drop-shadow(0 6px 5px rgba(15, 36, 31, .25)); }
.bfly-wing { display: block; width: 50%; height: auto; user-select: none; animation: 1.1s ease-in-out infinite; }
.bfly-l { transform-origin: 100% 50%; animation-name: bfly-flap-l; }
.bfly-r { transform-origin: 0 50%; animation-name: bfly-flap-r; }
@keyframes bfly-flap-l {
  0%, 36%, 72%, 100% { transform: rotateY(0deg); }
  18%, 54% { transform: rotateY(-72deg); }
  86% { transform: rotateY(-18deg); }
}
@keyframes bfly-flap-r {
  0%, 36%, 72%, 100% { transform: rotateY(0deg); }
  18%, 54% { transform: rotateY(72deg); }
  86% { transform: rotateY(18deg); }
}
