:root {
  --cream: #f7f3e9;
  --cream-2: #eee8da;
  --white: #fffdf8;
  --ink: #183322;
  --text: #334239;
  --muted: #68746c;
  --green: #2f603b;
  --green-dark: #21482c;
  --sage: #dfe6cf;
  --sage-2: #cdd8b9;
  --line: rgba(34, 65, 43, 0.13);
  --shadow: 0 18px 48px rgba(47, 61, 39, 0.10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shell: min(1380px, calc(100% - 72px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.content-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34, 65, 43, 0.06);
}
.nav-shell {
  width: var(--shell);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; font-size: 14px; line-height: 1.25; }
.brand-mark { color: var(--green); font-family: Georgia, serif; font-size: 42px; line-height: 1; transform: rotate(-22deg); }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 46px); font-size: 14px; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: var(--green); }
.phone-chip { background: var(--white); padding: 13px 18px; border-radius: 14px; font-weight: 800; box-shadow: 0 8px 24px rgba(44, 66, 48, 0.08); }

.hero-section { position: relative; min-height: 650px; overflow: hidden; background: #d9d3c5; }
.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(239, 236, 224, .72) 0%, rgba(239, 236, 224, .18) 45%, rgba(27, 45, 30, .08) 100%),
    url('../assets/hero-center.jpg') center 47% / cover no-repeat;
  transform: scale(1.01);
}
.hero-copy-wrap { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; min-height: 650px; display: flex; align-items: center; }
.hero-copy {
  position: relative;
  width: min(690px, 58vw);
  padding: 58px 58px 54px 14px;
  isolation: isolate;
}
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24px -90px -24px -7vw;
  background: linear-gradient(90deg, rgba(248, 245, 237, .98) 0%, rgba(248, 245, 237, .88) 58%, rgba(248, 245, 237, .42) 82%, rgba(248, 245, 237, 0) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
}
.eyebrow, .section-label { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.hero-copy h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); font-weight: 500; }
.hero-copy h1 { margin: 0; max-width: 650px; font-size: clamp(48px, 5.2vw, 82px); line-height: .99; letter-spacing: -.035em; }
.hero-lead { max-width: 540px; margin: 26px 0 0; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn { border: 0; border-radius: 9px; min-height: 52px; padding: 14px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--green); box-shadow: 0 12px 28px rgba(38, 87, 50, .20); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { color: var(--green-dark); background: rgba(255,255,255,.42); border: 1px solid rgba(35, 78, 46, .55); backdrop-filter: blur(10px); }
.btn-ghost { background: #edf1e6; color: var(--green-dark); }
.btn.full { width: 100%; margin-top: 14px; }

.section { padding: 76px 0; }
.section-about { background: #fbf9f3; }
.split-layout { display: grid; grid-template-columns: .92fr 1.18fr; gap: 72px; align-items: center; }
.about-copy h2, .section-title-row h2, .instagram-panel h2, .contacts-panel h2 { margin: 0; font-size: clamp(35px, 4vw, 58px); line-height: 1.08; }
.about-copy > p:not(.section-label) { max-width: 610px; margin: 24px 0 0; font-size: 16px; line-height: 1.8; }
.photo-card { min-height: 410px; border-radius: 24px; box-shadow: var(--shadow); }
.about-photo { background: url('../assets/about-office.jpg') center/cover no-repeat; }
.mini-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.mini-benefits div { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 10px; }
.mini-benefits span { grid-row: 1 / 3; width: 48px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--green); font-size: 25px; box-shadow: 0 6px 18px rgba(39, 72, 47, .08); }
.mini-benefits b { color: var(--ink); font-size: 13px; }
.mini-benefits small { color: var(--muted); font-size: 12px; }

.advantages-section { padding: 24px 0 48px; background: #fff; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.info-card { display: grid; grid-template-columns: 78px 1fr; gap: 20px; align-items: center; min-height: 166px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(42, 55, 37, .07); }
.icon-bubble { width: 72px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--green-dark); font-size: 34px; }
.info-card h3 { margin: 0 0 10px; font-size: 25px; line-height: 1.1; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.gallery-section { background: linear-gradient(180deg, #f3efe4, #f9f6ee); }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.round-arrow { width: 46px; aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--green); color: white; cursor: pointer; font-size: 24px; }
.gallery-grid { display: grid; grid-template-columns: 1.05fr 1.12fr 1.18fr 1.1fr .94fr; gap: 16px; }
.gallery-photo { min-height: 220px; border: 0; border-radius: 16px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .25s ease; }
.gallery-photo:hover { transform: translateY(-5px); }
.gallery-photo-1 { background: url('../assets/gallery-1.jpg') center/cover; }
.gallery-photo-2 { background: url('../assets/gallery-2.jpg') center/cover; }
.gallery-photo-3 { background: url('../assets/gallery-3.jpg') center/cover; }
.gallery-photo-4 { background: url('../assets/gallery-4.jpg') center/cover; }
.gallery-photo-5 { background: url('../assets/gallery-5.jpg') center/cover; }

.reviews-section { background: #f8f2e8; }
.subtle-link { color: var(--muted); font-size: 13px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.review-photo { min-height: 285px; padding: 18px; border: 0; border-radius: 16px; cursor: pointer; background: linear-gradient(145deg, #fff, #f2ede4); box-shadow: var(--shadow); }
.review-photo span { height: 100%; min-height: 245px; display: grid; place-items: center; border: 1px dashed rgba(49, 84, 56, .26); border-radius: 11px; color: var(--muted); padding: 24px; }

.social-contact-section { padding-bottom: 0; background: #f3efe5; }
.social-contact-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 24px 24px 0 0; box-shadow: var(--shadow); }
.instagram-panel, .contacts-panel { min-height: 320px; padding: 48px; }
.instagram-panel { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 28px; background: linear-gradient(120deg, #dfe7d0, #f4f0e5); }
.instagram-icon { width: 118px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8ca878, #537b53); color: white; font-size: 72px; }
.instagram-panel p, .contacts-panel li { color: var(--muted); line-height: 1.65; }
.contacts-panel { background: #fbfaf6; }
.contacts-panel ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 13px; }
.map-placeholder { min-height: 260px; display: grid; place-items: center; background:
  linear-gradient(rgba(244,243,237,.32), rgba(244,243,237,.32)),
  repeating-linear-gradient(0deg, transparent 0 42px, rgba(81,110,81,.09) 43px 45px),
  repeating-linear-gradient(90deg, transparent 0 80px, rgba(81,110,81,.09) 81px 83px),
  #edf0e8;
}
.map-card { display: grid; gap: 5px; padding: 18px 26px; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.map-card span { color: var(--muted); font-size: 14px; }

.footer { padding: 40px 0; background: var(--green-dark); color: rgba(255,255,255,.86); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: 40px; }
.footer p { margin: 5px 0; font-size: 13px; }
.footer-brand { color: white; }
.footer-brand .brand-mark { color: #dce8d0; }
.mobile-booking-bar { display: none; }

.modal { display: none; position: fixed; inset: 0; z-index: 100; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(19, 34, 23, .52); backdrop-filter: blur(7px); }
.modal-panel { position: relative; z-index: 2; width: min(610px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow: auto; margin: 12px auto; background: #fffdf8; border-radius: 26px; padding: 34px; box-shadow: 0 30px 100px rgba(0,0,0,.24); }
.modal-close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; color: var(--muted); font-size: 36px; cursor: pointer; }
.booking-step { display: none; }
.booking-step.active { display: block; }
.booking-step h2 { margin: 0; font-size: 38px; }
.muted { color: var(--muted); line-height: 1.6; }
label { display: block; margin: 18px 0; color: var(--ink); font-weight: 800; }
input, textarea { width: 100%; margin-top: 8px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf5; outline: none; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(49,96,59,.11); }
.days-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 16px; margin-top: 16px; }
.day-pill { min-width: 74px; border: 1px solid var(--line); border-radius: 15px; padding: 12px 10px; background: #faf8f1; cursor: pointer; text-align: center; }
.day-pill.active { background: var(--green); color: #fff; border-color: var(--green); }
.day-pill strong { display: block; font-size: 22px; }
.day-pill span { font-size: 13px; opacity: .82; }
.slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.slot-btn { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--sage); cursor: pointer; font-weight: 900; }
.slot-btn.busy { background: #d7d7d2; color: #777; cursor: not-allowed; opacity: .72; }
.success-box { text-align: center; padding: 20px 0; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Админская часть */
.admin-body main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-top: 18px; }
.admin-login, .admin-panel { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); margin-top: 20px; }
.admin-top, .admin-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.month-controls, .admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 18px; }
.admin-day { min-height: 74px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf7; padding: 10px; cursor: pointer; text-align: left; }
.admin-day.has-new { background: #ffe5e5; border-color: #ee7777; }
.admin-day.has-items { background: #edf4ee; }
.day-details { margin-top: 20px; display: grid; gap: 10px; }
.admin-slot { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fbfaf7; }
.admin-slot.new { background: #fff0f0; border-color: #ee7777; }
.admin-slot.blocked { background: #ececec; }
.small-btn { border: 0; border-radius: 999px; padding: 9px 12px; cursor: pointer; background: #eef3ed; color: var(--green-dark); font-weight: 800; }
.small-btn.danger { background: #ffe1e1; color: #a33; }
.note-row textarea { min-height: 68px; resize: vertical; }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 40px, 1000px); }
  .desktop-nav { display: none; }
  .hero-section, .hero-copy-wrap { min-height: 590px; }
  .hero-copy { width: min(680px, 76vw); }
  .split-layout { grid-template-columns: 1fr 1fr; gap: 38px; }
  .mini-benefits { grid-template-columns: 1fr; }
  .cards-grid { gap: 16px; }
  .info-card { grid-template-columns: 60px 1fr; padding: 22px; }
  .icon-bubble { width: 58px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-photo-4, .gallery-photo-5 { display: none; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); }
  body { padding-bottom: 70px; }
  .site-header { position: relative; }
  .nav-shell { min-height: 66px; }
  .brand { font-size: 12px; }
  .brand-mark { font-size: 34px; }
  .phone-chip { display: none; }
  .hero-section, .hero-copy-wrap { min-height: 570px; }
  .hero-image { background-position: 63% center; }
  .hero-copy-wrap { align-items: end; }
  .hero-copy { width: 100%; padding: 34px 12px 52px; }
  .hero-copy::before { inset: -60px -14px -30px -14px; background: linear-gradient(0deg, rgba(248,245,237,.98) 0%, rgba(248,245,237,.88) 68%, rgba(248,245,237,0) 100%); mask-image: none; backdrop-filter: blur(14px); }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 54px 0; }
  .split-layout, .cards-grid, .social-contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-copy h2, .section-title-row h2, .instagram-panel h2, .contacts-panel h2 { font-size: 38px; }
  .about-photo { min-height: 310px; }
  .mini-benefits { grid-template-columns: 1fr; }
  .info-card { min-height: 140px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-photo { min-height: 170px; }
  .gallery-photo-3 { display: none; }
  .reviews-grid { grid-template-columns: 1fr; gap: 18px; }
  .review-photo { min-height: 220px; }
  .instagram-panel, .contacts-panel { padding: 30px 24px; }
  .instagram-panel { grid-template-columns: 78px 1fr; }
  .instagram-icon { width: 74px; font-size: 44px; }
  .social-contact-grid { border-radius: 18px 18px 0 0; }
  .footer-grid { text-align: left; }
  .mobile-booking-bar { display: block; position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 10px; border: 0; border-radius: 13px; min-height: 54px; color: white; background: var(--green); font-weight: 900; box-shadow: 0 16px 40px rgba(29,66,38,.32); }
  .slots-grid { grid-template-columns: 1fr; }
  .month-grid { gap: 5px; }
  .admin-day { min-height: 56px; padding: 7px; font-size: 12px; }
}
