:root {
  --ink: #20211d;
  --paper: #f4f0e9;
  --paper-2: #e9e2d8;
  --white: #fffdf9;
  --sage: #aab39a;
  --sage-dark: #707b64;
  --rose: #b96f60;
  --line: rgba(32, 33, 29, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; width: 100%; }
a { color: inherit; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }

.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;
}

.section-pad { padding: 120px max(5vw, 28px); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 max(5vw, 28px);
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 233, 0.88);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease;
}

.site-header.scrolled { border-color: var(--line); }

.brand {
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span { margin-left: 5px; color: var(--rose); font-size: 0.5em; vertical-align: top; }

.main-nav { display: flex; gap: clamp(22px, 2.4vw, 42px); }

.main-nav a,
.site-footer nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.header-cta:hover { color: var(--paper); background: var(--ink); }
.menu-button { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  grid-template-rows: 1fr auto;
  gap: 40px clamp(40px, 7vw, 120px);
  min-height: calc(100vh - 82px);
  padding-top: 64px;
  padding-bottom: 54px;
}

.hero-copy { align-self: center; }

.eyebrow {
  margin: 0 0 28px;
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 { max-width: 850px; font-size: clamp(58px, 7.2vw, 122px); }
h2 { font-size: clamp(54px, 6.4vw, 104px); }
h1 em, h2 em { color: var(--rose); font-weight: 400; }

.hero-lead {
  max-width: 590px;
  margin: 34px 0 0;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 42px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button > span { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 400; line-height: 1; letter-spacing: 0; }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { background: var(--rose); }
.button-light { color: var(--ink); background: var(--paper); }
.button-light:hover { color: var(--paper); background: var(--ink); }
.button-outline { border-color: var(--ink); }
.button-outline:hover { color: var(--paper); background: var(--ink); }

.text-link { font-size: 13px; text-underline-offset: 5px; }

.hero-visual { position: relative; grid-row: span 2; margin: 0; overflow: hidden; }
.hero-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(20, 20, 18, 0.34)); content: ""; }
.hero-visual img { height: 100%; min-height: 660px; object-fit: cover; }
.hero-visual figcaption { position: absolute; z-index: 1; right: 22px; bottom: 18px; color: white; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-stamp { position: absolute; z-index: 2; top: 22px; right: 22px; width: 74px; height: 74px; padding-top: 18px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: white; font-size: 9px; line-height: 1.4; letter-spacing: .15em; text-align: center; }

.hero-promise {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: center;
  max-width: 610px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-promise-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--paper); background: var(--rose); }
.hero-promise strong { display: block; margin-bottom: 5px; color: var(--sage-dark); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.hero-promise p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.55vw, 24px); line-height: 1.35; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px max(5vw, 28px);
  color: var(--paper);
  background: var(--ink);
}

.trust-strip div { padding: 6px clamp(10px, 3vw, 52px); border-left: 1px solid rgba(255,255,255,.18); }
.trust-strip div:first-child { padding-left: 0; border-left: 0; }
.trust-strip strong { display: block; font-family: var(--serif); font-size: clamp(23px, 2.3vw, 37px); font-weight: 400; }
.trust-strip span { color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}

.section-heading p:last-child { max-width: 460px; margin: 0 0 8px; }

.portfolio { background: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 18vw; gap: 14px; }
.portfolio-item { margin: 0; overflow: hidden; background: var(--paper-2); }
.portfolio-item img { height: 100%; object-fit: cover; filter: saturate(.82); transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.portfolio-item:hover img { transform: scale(1.025); filter: saturate(1); }
.portfolio-item.portrait { grid-column: span 4; grid-row: span 2; }
.portfolio-item.wide { grid-column: span 5; }
.portfolio-item.square { grid-column: span 3; }
.portfolio-item.tall { grid-column: span 3; grid-row: span 2; }
.portfolio-item:nth-child(5) { grid-column: span 5; }
.portfolio-item:nth-child(6) { grid-column: span 4; }

.process { background: var(--paper-2); }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { min-height: 275px; padding: 34px 26px 38px; border-left: 1px solid var(--line); }
.process-list li:first-child { border-left: 0; padding-left: 0; }
.process-list span { color: var(--rose); font-family: var(--serif); font-size: 18px; }
.process-list h3 { margin: 76px 0 12px; font-family: var(--serif); font-size: clamp(24px, 2.1vw, 34px); font-weight: 400; }
.process-list p { max-width: 270px; margin: 0; font-size: 14px; }

.prices { background: var(--white); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1200px; margin-left: auto; }
.price-card { padding: 38px; border: 1px solid var(--line); background: var(--paper); }
.price-card.featured { color: var(--paper); background: var(--ink); }
.price-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 70px; }
.price-top p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.price-top span { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.price-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(41px, 4vw, 65px); font-weight: 400; }
.price { margin: 8px 0 28px; font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); }
.price small { font-size: .55em; }
.price-card ul { margin: 0 0 38px; padding: 24px 0 0; border-top: 1px solid currentColor; list-style: none; }
.price-card li { position: relative; padding: 7px 0 7px 21px; font-size: 14px; }
.price-card li::before { position: absolute; left: 0; color: var(--rose); content: "✦"; font-size: 9px; }
.price-card .button { width: 100%; }
.price-note { max-width: 760px; margin: 30px 0 0 auto; color: #6f6e68; font-size: 13px; }

.schedule { display: grid; grid-template-columns: minmax(260px, .45fr) minmax(600px, 1fr); gap: clamp(50px, 7vw, 130px); background: var(--sage); }
.schedule-intro { align-self: start; position: sticky; top: 120px; }
.schedule-intro h2 { font-size: clamp(50px, 5.8vw, 92px); }
.schedule-intro > p:not(.eyebrow) { max-width: 460px; margin: 34px 0; }

.booking-card { overflow: hidden; background: var(--white); box-shadow: 0 28px 70px rgba(36, 37, 31, .12); }
.calendar-panel { padding: clamp(24px, 4vw, 52px); }
.calendar-toolbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 34px; }
.calendar-toolbar h3 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 2.5vw, 39px); font-weight: 400; text-align: center; }
.icon-button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: color .2s, background .2s; }
.icon-button:hover:not(:disabled) { color: var(--white); background: var(--ink); }
.icon-button:disabled { cursor: not-allowed; opacity: .25; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { margin-bottom: 8px; color: #86857e; font-size: 10px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.calendar-day { position: relative; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.calendar-day span { font-size: 13px; }
.calendar-day:hover:not(:disabled), .calendar-day.selected { color: var(--white); background: var(--ink); }
.calendar-day.outside, .calendar-day.past { color: #b9b7b0; }
.calendar-day.closed { color: #aaa7a0; text-decoration: line-through; cursor: not-allowed; }

.slots-panel { min-height: 184px; padding: 28px clamp(24px, 4vw, 52px) 38px; border-top: 1px solid var(--line); background: #f7f4ee; }
.slots-kicker { margin: 0 0 5px; color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.slots-panel h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; }
.slots-help { margin: 7px 0 18px; color: #77756e; font-size: 13px; }
.time-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.time-slot { min-height: 46px; border: 1px solid var(--line); background: var(--white); font-size: 13px; }
.time-slot:hover:not(:disabled), .time-slot.selected { color: var(--white); border-color: var(--ink); background: var(--ink); }
.time-slot:disabled { color: #aaa7a0; background: transparent; cursor: not-allowed; text-decoration: line-through; }
.time-slot.booked { color: var(--white); border-color: var(--rose); background: var(--rose); text-decoration: none; }

.booking-form { padding: clamp(26px, 4vw, 52px); border-top: 1px solid var(--line); }
.booking-summary { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.booking-summary span { color: #77756e; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.booking-summary strong { font-family: var(--serif); font-size: 20px; font-weight: 400; text-align: right; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.form-grid label { display: grid; gap: 8px; }
.form-grid label > span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.form-wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; }
input, select { height: 46px; }
textarea { padding: 12px 0; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: #66645e; font-size: 12px; }
.consent input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }
.form-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 30px; }
.form-footer p { max-width: 280px; margin: 0; color: #77756e; font-size: 12px; }
.form-message { min-height: 22px; margin: 18px 0 0; font-size: 13px; }
.form-message.error { color: #9d382c; }
.form-message.success { color: #46633f; }

.about { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1fr); gap: clamp(55px, 10vw, 160px); background: var(--paper); }
.about-photo { min-height: 730px; margin: 0; }
.about-photo img { height: 100%; object-fit: cover; filter: saturate(.7); }
.about-copy { align-self: center; max-width: 720px; }
.about-lead { margin: 40px 0 22px; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 34px); line-height: 1.35; }
.about-copy > p:not(.eyebrow, .about-lead) { max-width: 620px; }
.about-copy blockquote { margin: 40px 0; padding: 28px 0 28px 34px; border-left: 1px solid var(--rose); font-family: var(--serif); font-size: clamp(21px, 2vw, 31px); font-style: italic; line-height: 1.35; }

.education { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 160px); color: var(--paper); background: var(--ink); }
.education-heading { align-self: start; position: sticky; top: 120px; }
.education-heading h2 { font-size: clamp(48px, 5.5vw, 88px); }
.education-heading > p:last-child { max-width: 470px; margin-top: 34px; color: rgba(255,255,255,.65); }
.education-list article { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 31px 0; border-top: 1px solid rgba(255,255,255,.18); }
.education-list article > span { color: var(--rose); font-family: var(--serif); font-size: 17px; }
.education-list h3 { margin: 0 0 9px; font-family: var(--serif); font-size: clamp(25px, 2.4vw, 38px); font-weight: 400; }
.education-list p { max-width: 560px; margin: 0; color: rgba(255,255,255,.6); }
.education-price { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-top: 30px; padding: 30px; color: var(--ink); background: var(--sage); }
.education-price span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.education-price strong { grid-row: span 2; font-family: var(--serif); font-size: clamp(30px, 3vw, 46px); font-weight: 400; }
.education-price a { align-self: end; font-size: 13px; }

.final-cta { text-align: center; background: var(--paper-2); }
.final-cta h2 { margin-bottom: 48px; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: end; padding: 60px max(5vw, 28px); color: var(--paper); background: var(--ink); }
.site-footer p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; text-align: center; }
.site-footer nav { display: grid; gap: 8px; justify-items: end; }
.brand-light { color: var(--paper); }

.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; max-width: 380px; padding: 16px 20px; color: var(--paper); background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: none; }

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header .brand, .menu-button { position: relative; z-index: 2; }
  .main-nav {
    position: fixed;
    z-index: 1;
    top: 82px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: calc(100dvh - 82px);
    padding: 6vh max(8vw, 32px);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    color: var(--paper);
    background: var(--ink);
    box-shadow: 0 28px 70px rgba(24, 25, 21, .24);
    counter-reset: menu;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .main-nav a {
    display: flex;
    width: min(680px, 100%);
    align-items: baseline;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    font-family: var(--serif);
    font-size: clamp(34px, 6vw, 62px);
    letter-spacing: -.03em;
    text-transform: none;
    counter-increment: menu;
  }
  .main-nav a::before { color: var(--rose); font-family: var(--sans); font-size: 10px; letter-spacing: .12em; content: "0" counter(menu); }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }
  .menu-button { position: relative; display: block; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; }
  .menu-button > span:not(.sr-only) { position: absolute; right: 5px; left: 5px; height: 1px; background: var(--ink); transition: transform .24s ease, opacity .18s ease; }
  .menu-button > span:nth-child(1) { top: 13px; }
  .menu-button > span:nth-child(2) { top: 20px; }
  .menu-button > span:nth-child(3) { top: 27px; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr .7fr; gap: 34px; }
  .hero-visual img { min-height: 560px; }
  .schedule { grid-template-columns: 1fr; }
  .schedule-intro, .education-heading { position: static; }
  .schedule-intro h2 { max-width: 800px; }
  .booking-card { width: min(840px, 100%); margin-left: auto; }
}

@media (max-width: 760px) {
  .section-pad { padding: 82px 20px; }
  .site-header { min-height: 68px; padding: 0 20px; }
  .main-nav { top: 68px; height: calc(100dvh - 68px); padding: 5vh 24px; justify-content: flex-start; }
  .hero { display: flex; min-height: auto; padding-top: 42px; flex-direction: column; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 0; }
  .hero-copy h1 { order: 1; font-size: clamp(48px, 13.4vw, 64px); }
  .hero-visual { order: 2; height: 116vw; max-height: 720px; }
  .hero-visual img { min-height: 0; }
  .hero-lead { order: 3; margin-top: 0; }
  .hero-actions { order: 4; align-items: stretch; flex-direction: column; margin-top: 0; }
  .hero-promise { order: 5; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .trust-strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; margin-bottom: 42px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 62vw; gap: 7px; }
  .portfolio-item.portrait, .portfolio-item.wide, .portfolio-item.square, .portfolio-item.tall, .portfolio-item:nth-child(5), .portfolio-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
  .portfolio-item:first-child, .portfolio-item:nth-child(4) { grid-row: span 2; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li { min-height: 230px; border-top: 1px solid var(--line); }
  .process-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .process-list h3 { margin-top: 46px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 28px 22px; }
  .price-top { margin-bottom: 46px; }
  .schedule { gap: 42px; }
  .calendar-panel { padding: 25px 15px; }
  .calendar-day { aspect-ratio: 1 / 1.08; }
  .time-slots { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .booking-summary { flex-direction: column; }
  .booking-summary strong { text-align: left; }
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: auto; height: 125vw; max-height: 720px; }
  .education { grid-template-columns: 1fr; }
  .education-price { grid-template-columns: 1fr; }
  .education-price strong { grid-row: auto; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer p { text-align: left; }
  .site-footer nav { justify-items: start; }
}

@media (max-width: 430px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div, .trust-strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { padding-left: 0; border-left: 0; }
  .calendar-day { font-size: 12px; }
}

/* Админка */
.admin-body { min-height: 100vh; background: #eeeae3; }
.admin-header { position: sticky; z-index: 10; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 max(4vw, 20px); border-bottom: 1px solid var(--line); background: rgba(238,234,227,.92); backdrop-filter: blur(14px); }
.admin-header nav { display: flex; gap: 10px; align-items: center; }
.admin-header a { font-size: 13px; text-underline-offset: 4px; }
.admin-shell { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 90px; }
.login-panel { width: min(480px, 100%); margin: 8vh auto; padding: clamp(30px, 5vw, 58px); background: var(--white); box-shadow: 0 24px 60px rgba(30,30,25,.1); }
.login-panel h1 { font-size: clamp(44px, 6vw, 72px); }
.login-panel > p { color: #6e6c66; }
.login-panel form { display: grid; gap: 18px; margin-top: 32px; }
.login-panel label { display: grid; gap: 8px; }
.login-panel button { width: 100%; }
.login-message { min-height: 22px; margin: 0; color: #9d382c !important; font-size: 13px; }
.admin-dashboard[hidden], .login-panel[hidden] { display: none; }
.admin-dashboard-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 40px; }
.admin-dashboard-head h1 { font-size: clamp(48px, 6vw, 92px); }
.admin-dashboard-head p { max-width: 400px; margin: 0 0 8px; }
.admin-grid { display: grid; grid-template-columns: minmax(560px, 1.15fr) minmax(350px, .85fr); gap: 20px; align-items: start; }
.admin-card { padding: clamp(24px, 3vw, 42px); background: var(--white); }
.admin-card h2 { font-size: clamp(34px, 3.2vw, 52px); }
.admin-calendar .calendar-panel { padding: 0; }
.admin-calendar .calendar-day.closed { color: var(--white); background: var(--rose); text-decoration: none; }
.admin-calendar .calendar-day.booked::before { position: absolute; inset: 7px; border: 1px solid var(--sage-dark); border-radius: 50%; content: ""; }
.admin-day-tools { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.admin-day-tools[hidden] { display: none; }
.admin-day-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.admin-day-head h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.small-button { padding: 10px 14px; border: 1px solid var(--ink); background: transparent; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.small-button.danger { color: var(--white); border-color: var(--rose); background: var(--rose); }
.admin-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.admin-slot { min-height: 58px; padding: 7px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.admin-slot strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; }
.admin-slot.closed { color: var(--white); background: var(--rose); }
.admin-slot.booked { color: var(--white); background: var(--sage-dark); cursor: default; }
.admin-slot.booked.buffer { background: #89947d; }
.bookings-card { position: sticky; top: 92px; max-height: calc(100vh - 115px); overflow: auto; }
.bookings-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.booking-count { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 12px; }
.admin-bookings { display: grid; gap: 10px; }
.empty-state { padding: 40px 0; color: #77756e; text-align: center; }
.admin-booking { padding: 19px; border: 1px solid var(--line); }
.admin-booking.new { border-left: 4px solid var(--rose); }
.admin-booking.confirmed { border-left: 4px solid var(--sage-dark); }
.admin-booking.cancelled { opacity: .52; }
.admin-booking-head { display: flex; justify-content: space-between; gap: 15px; }
.admin-booking-head strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.status-badge { align-self: start; padding: 3px 7px; color: var(--white); background: var(--rose); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.confirmed .status-badge { background: var(--sage-dark); }
.cancelled .status-badge { background: #777; }
.admin-booking-time { margin: 6px 0 12px; font-weight: 700; }
.admin-booking-details { display: grid; gap: 3px; color: #66645e; font-size: 13px; }
.admin-booking-comment { margin: 11px 0 0; padding-top: 11px; border-top: 1px solid var(--line); font-size: 13px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.booking-actions button { padding: 7px 10px; border: 1px solid var(--line); background: transparent; font-size: 10px; text-transform: uppercase; }
.booking-actions button:hover { border-color: var(--ink); }
.telegram-card { margin-top: 20px; }
.telegram-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.telegram-head .eyebrow { margin-bottom: 8px; }
.telegram-badge { flex: 0 0 auto; padding: 7px 10px; color: var(--white); background: #777; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.telegram-badge.connected { background: var(--sage-dark); }
.telegram-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-top: 22px; }
.telegram-setup[hidden], .telegram-connected[hidden] { display: none; }
.telegram-setup ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: #66645e; }
.telegram-setup a { text-underline-offset: 4px; }
.telegram-form { display: grid; gap: 18px; }
.telegram-form label { display: grid; gap: 5px; }
.telegram-form label span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.telegram-form .button { width: 100%; }
.telegram-connected { margin-top: 20px; }
.telegram-connected p { margin: 0; color: #66645e; }
.telegram-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.telegram-message { margin-bottom: 0; }

@media (max-width: 960px) {
  .admin-grid { grid-template-columns: 1fr; }
  .bookings-card { position: static; max-height: none; }
  .telegram-setup { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-shell { width: min(100% - 24px, 1380px); padding-top: 35px; }
  .admin-dashboard-head { align-items: flex-start; flex-direction: column; }
  .admin-day-head { align-items: stretch; flex-direction: column; }
  .admin-slots { grid-template-columns: 1fr 1fr; }
  .admin-header .brand { font-size: 21px; }
  .telegram-head { flex-direction: column; }
}
