:root {
  --ink: #121a2b;
  --muted: #5f6878;
  --navy: #0d1830;
  --navy-2: #14264a;
  --gold: #b98a3d;
  --gold-light: #ead8b9;
  --paper: #faf8f3;
  --white: #ffffff;
  --line: #ded9cf;
  --danger: #9d3434;
  --shadow: 0 18px 50px rgba(13,24,48,.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
a { color: #604516; text-underline-offset: 3px; }
.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 36px)); padding-block: 54px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.topbar, .admin-top { background: var(--navy); color: var(--white); }
.brand-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 52px; border: 1px solid rgba(234,216,185,.8); border-radius: 6px 6px 18px 18px; color: var(--gold-light); font-family: Georgia, serif; letter-spacing: .08em; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: .03em; }
.brand small { display: block; color: #d9dfec; font-size: .78rem; letter-spacing: .05em; }
.age-badge { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 12px; font-weight: 700; }
.intro { display: grid; grid-template-columns: 1.55fr .75fr; gap: 60px; align-items: end; padding-block: 70px 52px; }
.eyebrow, .step { margin: 0 0 8px; color: #7c5921; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; font-weight: 600; }
h1 { margin: 0; max-width: 820px; font-size: clamp(2.35rem, 6vw, 5.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 0; }
.lead { max-width: 760px; font-size: 1.18rem; color: var(--muted); margin: 24px 0 0; }
.intro-note { border-left: 2px solid var(--gold); padding-left: 22px; color: var(--muted); }
.intro-note strong { color: var(--ink); }
.intro-note p { margin: 6px 0 0; }
.booking { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; padding: clamp(24px, 5vw, 58px); }
.section-heading { margin-bottom: 28px; }
.notice { margin: 0 0 26px; padding: 16px 18px; border: 1px solid #d6b978; background: #fff8e8; border-radius: 10px; }
.tariffs { border: 0; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tariff-card { cursor: pointer; }
.tariff-card input { position: absolute; opacity: 0; pointer-events: none; }
.tariff-content { display: flex; flex-direction: column; min-height: 112px; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .18s ease; }
.tariff-content strong { font-size: 1.1rem; }
.tariff-content span { font-family: Georgia, serif; font-size: 1.5rem; }
.tariff-card input:checked + .tariff-content { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #fffcf6; }
.tariff-card input:focus-visible + .tariff-content { outline: 3px solid #6c8fd5; outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #cfc9be; border-radius: 9px; padding: 13px 14px; color: var(--ink); background: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(58,99,181,.18); border-color: #3a63b5; }
textarea { resize: vertical; min-height: 150px; }
.question-label { margin-top: 20px; }
.field-help, .small-note { color: var(--muted); font-size: .88rem; font-weight: 400; }
.field-help { text-align: right; }
.privacy-note { margin: 22px 0; padding: 16px 18px; background: #f4f2ed; border-radius: 10px; }
.privacy-note p { margin: 4px 0 0; color: var(--muted); }
.consents { display: grid; gap: 13px; margin: 24px 0; }
.check-row { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-weight: 450; }
.check-row input { width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--navy-2); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 9px; padding: 12px 20px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; }
.primary-button { width: 100%; border: 0; color: #fff; background: var(--navy-2); }
.primary-button:hover { background: #1d3769; }
.primary-button:disabled { opacity: .55; cursor: not-allowed; }
.secondary-button { border: 1px solid #b9b2a7; background: #fff; color: var(--ink); }
.inline-button { width: auto; margin-top: 12px; }
.submit-help { margin: 10px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.about-service { padding-block: 70px; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 28px; }
.facts p { margin: 0; border-top: 1px solid var(--line); padding-top: 17px; }
.facts strong, .facts span { display: block; }
.facts span { color: var(--muted); margin-top: 6px; }
.site-footer { border-top: 1px solid var(--line); background: #f1eee7; }
.footer-inner { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px,5vw,50px); box-shadow: var(--shadow); }
.result-card h1 { font-size: clamp(2rem,5vw,3.4rem); }
.result-card.error { border-color: #d8aaaa; }
.back-link { display: inline-block; margin-bottom: 18px; }
.order-summary, .detail-list { margin: 28px 0; display: grid; }
.order-summary div, .detail-list div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; }
.stack-form { display: grid; gap: 17px; }
.stack-form details { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stack-form details label { margin-top: 14px; }
.form-error { color: var(--danger); font-weight: 700; }
.admin-top a { color: #fff; }
.admin-nav { display: flex; gap: 20px; }
.admin-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); gap: 30px; padding-block: 42px 70px; align-items: start; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.admin-tabs { display: flex; gap: 8px; margin: -8px 0 20px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-tabs a { flex: 1; display: flex; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 750; }
.admin-tabs a.active { background: var(--navy); color: #fff; }
.admin-tabs span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: rgba(135,113,69,.16); text-align: center; }
.admin-tabs a.active span { background: rgba(255,255,255,.18); }
.order-list { display: grid; gap: 9px; }
.order-row { display: flex; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; }
.order-row.selected { border-color: var(--gold); box-shadow: inset 3px 0 var(--gold); }
.order-row small { display: block; color: var(--muted); }
.status { align-self: center; border-radius: 999px; padding: 4px 9px; background: #edf0f5; font-size: .78rem; }
.status-paid, .status-completed { background: #dff1e6; }
.status-cancelled { background: #f4dddd; }
.status-payment_ready { background: #fff0bd; }
.order-detail { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 28px; }
.question-text { white-space: normal; }
.public-link { display: inline-block; margin-top: 18px; }
.empty { color: var(--muted); }
.schedule-layout { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(0,1.2fr); gap: 36px; padding-block: 42px 70px; align-items: start; }
.schedule-layout .result-card h1 { font-size: clamp(2rem,4vw,3.2rem); }
.time-block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.schedule-list { display: grid; gap: 10px; }
.schedule-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.schedule-row small { display: block; margin-top: 3px; color: var(--muted); }
.compact-button { min-height: 40px; padding: 8px 13px; }
@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1120px); }
  .intro { grid-template-columns: 1fr; gap: 28px; padding-block: 46px 34px; }
  h1 { font-size: clamp(2.3rem, 12vw, 4rem); }
  .booking { border-radius: 14px; padding: 22px 17px; }
  .tariffs, .form-grid, .facts, .admin-layout, .schedule-layout { grid-template-columns: 1fr; }
  .tariff-content { min-height: 86px; }
  .footer-inner, .admin-title { align-items: flex-start; flex-direction: column; padding-block: 28px; }
  .order-summary div, .detail-list div { grid-template-columns: 1fr; gap: 2px; }
  .order-detail { position: static; }
  .brand small { font-size: .7rem; }
  .admin-nav { flex-wrap: wrap; gap: 10px 16px; }
  .schedule-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
