/* Стиль по визитке: графитовый фон, золотые линии, белые заголовки, жёлто-оранжевое имя */
:root {
  --bg: #131417;
  --bg-2: #1a1b1f;
  --card: #202227;
  --card-2: #26282e;
  --line: #34363d;
  --text: #f1f1f1;
  --text-2: #c9cbd0;
  --muted: #9a9da5;
  --gold: #f2b632;
  --gold-2: #d9a441;
  --gold-soft: rgba(242, 182, 50, .14);
  --ok: #5cc98a;
  --danger: #ff7a6b;
  --radius: 10px;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--text); background: var(--bg); }
a { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: #fff; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-transform: none; }
h2 { font-size: 2rem; text-transform: uppercase; letter-spacing: .03em; }
h4 { font: 600 1.05rem/1.3 var(--sans); margin: 0 0 .25em; color: #fff; }
.h-page { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.h-small { font: 600 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 .75em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 36em; }
.eyebrow { font: 600 .8rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 .75em; }
.eyebrow.ok { color: var(--ok); }
code { background: var(--card-2); padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* header */
.site-header { background: rgba(19, 20, 23, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--gold-2); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-name { display: block; font: 700 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.brand-sub { display: block; font-size: .85rem; color: var(--gold); font-weight: 600; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-2); font-size: .95rem; }
.nav a:hover { color: var(--gold); }
.nav .tel { font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.tel-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #131417; display: inline-grid; place-items: center; font-size: .85rem; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang-switch a { padding: 4px 9px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.lang-switch a.active { background: var(--gold); color: #131417; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--gold);
  background: var(--gold); color: #131417 !important; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s, color .15s; }
.btn:hover { background: #ffc94d; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-wide { width: 100%; margin-top: 18px; }
.btn-ghost, .btn-outline { background: transparent; color: #fff !important; border-color: var(--gold-2); }
.btn-ghost:hover, .btn-outline:hover { background: var(--gold-soft); }
.btn-ghost .tel-ico { width: 22px; height: 22px; }
.danger { color: var(--danger) !important; border-color: var(--danger) !important; }
.link { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* hero — диагональные золотые линии, как на визитке */
.hero { position: relative; overflow: hidden; padding: 64px 0 60px; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(242,182,50,.0) 46%),
    radial-gradient(1200px 500px at 20% -10%, #24262c 0%, var(--bg) 60%); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; height: 2px; width: 70%;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); opacity: .7; }
.hero::before { top: 38px; left: -10%; transform: rotate(-3deg); }
.hero::after { bottom: 34px; right: -12%; transform: rotate(-3deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.hero-word { font: 700 clamp(3rem, 8vw, 5.4rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 0;
  color: #fff; text-shadow: 0 2px 0 #000, 0 0 24px rgba(255,255,255,.08); }
.hero-name { font: 600 clamp(1.15rem, 2.4vw, 1.6rem)/1.25 var(--sans); color: var(--gold); margin: 10px 0 26px; text-shadow: 0 1px 0 #000; }
.hero h1 { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hours-card { position: relative; border-color: var(--gold-2); background: linear-gradient(180deg, var(--card-2), var(--card)); padding-top: 54px; }
.hero-emblem { position: absolute; top: -1px; right: 20px; transform: translateY(-40%); width: 84px; height: 84px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours div.off { color: var(--muted); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.addr { color: var(--text-2); margin-bottom: 0; }

/* sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { margin-top: -.25em; margin-bottom: 30px; max-width: 46em; }
.cat-title { font: 600 .85rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 32px 0 12px; }
.services { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.service { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 22px; }
.service + .service { border-top: 1px solid var(--line); }
.service p { margin: 0; }
.service-side { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.price { font-weight: 600; color: var(--gold); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 700 1.8rem var(--display); color: var(--gold); }
.steps span { color: var(--text-2); font-size: .95rem; }

.contacts-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-line { display: grid; grid-template-columns: 110px 1fr; margin: 0 0 10px; }
.cta-card { border-color: var(--gold-2); background: linear-gradient(135deg, #2a2a2e, #1d1e22); }

/* booking */
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 20px 24px 24px; margin: 0 0 16px; transition: opacity .2s; min-width: 0; }
.step:disabled { opacity: .45; }
.step legend { font: 600 1.2rem var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 0 8px; margin-left: -8px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #131417; display: inline-grid; place-items: center; font: 700 .9rem var(--sans); }
.step:disabled .step-num { background: var(--muted); }
select, input, textarea { width: 100%; padding: 11px 12px; border: 1px solid #44464e; border-radius: 8px; font: inherit; background: #15161a; color: var(--text); }
select option, select optgroup { background: #15161a; color: var(--text); }
input::placeholder, textarea::placeholder { color: #6f727a; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
input[type="date"] { color-scheme: dark; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 500; }
.fields .full { grid-column: 1 / -1; }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.field-error, .form-error { color: var(--danger); font-size: .85rem; margin: 4px 0 0; }
.field-error:empty, .form-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 480px; }
.cal-head { text-align: center; font-size: .78rem; color: var(--muted); padding-bottom: 4px; }
.cal-day { height: 52px; border: 1px solid #44464e; border-radius: 8px; background: #17181c; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text); }
.cal-day .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-day .m { font-size: .66rem; color: var(--muted); line-height: 1; }
.cal-day.free:hover { border-color: var(--gold); background: var(--gold-soft); }
.cal-day.busy { background: transparent; color: #55585f; cursor: default; border-style: dashed; border-color: #34363d; }
.cal-day.out { visibility: hidden; }
.cal-day.selected { background: var(--gold); border-color: var(--gold); color: #131417; }
.cal-day.selected .m { color: #3b2e0c; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 9px 14px; border: 1px solid #44464e; border-radius: 8px; background: #17181c; font: 700 .95rem var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; color: var(--text); }
.slot:hover { border-color: var(--gold); background: var(--gold-soft); }
.slot.selected { background: var(--gold); border-color: var(--gold); color: #131417; }

.summary { position: sticky; top: 96px; border-color: var(--gold-2); }
.summary dl, .details { margin: 0 0 16px; }
.summary dl div, .details div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary dt, .details dt { color: var(--muted); }
.summary dd, .details dd { margin: 0; text-align: right; font-weight: 600; }
.docs { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); }
.docs li { margin: 2px 0; }
.docs li::marker { color: var(--gold); }
.after-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.flashes { padding-top: 16px; }
.flash { background: var(--gold-soft); border: 1px solid var(--gold-2); padding: 10px 14px; border-radius: 8px; margin: 0 0 8px; }

/* admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.add-booking { margin-bottom: 24px; padding: 16px 20px; border-color: var(--gold-2); }
.add-booking summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 14px; }
.add-form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; }
.add-form .wide { grid-column: 1 / -1; }
.add-form .check { flex-direction: row; align-items: center; gap: 8px; color: var(--text-2); }
.add-form .check input { width: 16px; height: 16px; accent-color: var(--gold); }
.add-form .btn { justify-self: start; }
.edit-card { max-width: 640px; }
.edit-card .add-form input:not([type=checkbox]), .edit-card .add-form select { width: 100%; box-sizing: border-box; }
.bookings .status a.link { display: inline-block; margin: 4px 10px 0 0; }
.run-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.tg-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; margin-top: 16px; }
.tg-list { list-style: none; padding: 0; margin: 12px 0 0; }
.tg-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tg-list li > div { min-width: 0; overflow-wrap: anywhere; }
.tg-how { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.tg-how ol { padding-left: 20px; margin: 8px 0; }
.tg-how li { margin-bottom: 4px; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .75rem; text-align: center; }
.seen-title { margin-top: 16px; }
.seen { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.seen li { padding: 6px 0; border-top: 1px solid var(--line); }
.stats { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stats th, .stats td { padding: 5px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.stats th:first-child, .stats td:first-child { text-align: left; color: var(--muted); }
.stats th { font-weight: 600; font-size: .8rem; color: var(--gold); }
.admin-grid > * { min-width: 0; }
@media (max-width: 600px) {
  .add-form { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tabs a { white-space: nowrap; padding: 10px 12px; }
  .bookings, .bookings tbody, .bookings tr, .bookings td { display: block; width: auto !important; }
  .bookings tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .bookings tr:first-child { border-top: 0; }
  .bookings td { padding: 2px 0; border: 0; }
  .bookings .status { text-align: left; margin-top: 6px; }
  .bookings .status .inline { justify-content: flex-start; }
  .admin-head .h-page { margin-bottom: 0; }
}

/* плавающая кнопка WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .15s, background .15s; }
.wa-float:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-float svg { flex: none; }
@media (max-width: 600px) {
  .wa-float { padding: 14px; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--gold); border-color: var(--gold); font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.admin-side { display: grid; gap: 16px; }
.day-title { font-size: 1.25rem; margin: 24px 0 10px; text-transform: none; }
.day-title:first-child { margin-top: 0; }
.bookings { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bookings td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.bookings tr:first-child td { border-top: 0; }
.bookings .time { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; color: var(--gold); }
.bookings .status { text-align: right; white-space: nowrap; width: 1%; }
.bookings .status .inline { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.badge { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); }
.st-done .badge { background: rgba(92, 201, 138, .14); color: var(--ok); }
.st-cancelled { opacity: .55; }
.st-cancelled .badge { background: rgba(255, 122, 107, .14); color: var(--danger); }
.comment { margin: 6px 0 0; font-size: .9rem; color: var(--text-2); background: var(--bg-2); padding: 6px 10px; border-radius: 6px; }
.on { color: var(--ok); }
.off { color: var(--muted); }
.dayoff-form { display: grid; gap: 8px; margin-bottom: 16px; }
.daysoff { list-style: none; padding: 0; margin: 0; }
.daysoff li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.login { display: grid; gap: 16px; }
.login label { display: grid; gap: 6px; }

.site-footer { border-top: 1px solid var(--gold-2); background: #0e0f11; padding: 28px 0; font-size: .9rem; color: var(--text-2); }
.foot-title { font: 700 1.1rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .contacts-grid, .book-layout, .admin-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .summary { position: static; order: -1; }
  .nav a:not(.btn):not(.tel) { display: none; }
  .lang-switch a { display: inline-block !important; }
  .hours-card { margin-top: 30px; }
}
@media (max-width: 600px) {
  .service { flex-direction: column; align-items: flex-start; }
  .service-side { flex-wrap: wrap; }
  .fields { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .step { padding: 16px; }
  .cal-grid { gap: 4px; }
  .nav { gap: 10px; }
  .nav .tel { display: none; }
}
