@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf5eb;
  --bg-alt: #f2ecde;
  --ink: #1e1a14;
  --ink-muted: #6b6050;
  --accent-green: #3a5a2a;
  --accent-green-dark: #2a421c;
  --accent-green-light: #5a7e44;
  --frame: #ffffff;
  --frame-shadow: rgba(30, 26, 20, 0.08);
  --gold: #c9974a;
  --gold-light: rgba(201, 151, 74, 0.15);
  --ph-bg: #efe7d3;
  --ph-border: #c4b894;
  --radius: 8px;
  --radius-lg: 16px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(30, 26, 20, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 26, 20, 0.1);
  --shadow-lg: 0 8px 30px rgba(30, 26, 20, 0.12);
  --transition: 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1713;
    --bg-alt: #221e19;
    --ink: #e0d5c8;
    --ink-muted: #9a8e7d;
    --frame: #2a2520;
    --frame-shadow: rgba(0, 0, 0, 0.3);
    --gold: #d4a85a;
    --gold-light: rgba(212, 168, 90, 0.12);
    --ph-bg: #2f2a24;
    --ph-border: #4a433a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--accent-green);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px calc(80px + env(safe-area-inset-bottom));
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 235, 0.92);
  border-bottom: 1px solid var(--gold-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-tap-highlight-color: transparent;
}
.no-scroll {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  header { background: rgba(26, 23, 19, 0.92); }
}
@supports not (backdrop-filter: blur(16px)) {
  header { background: var(--bg); }
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  gap: 24px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--frame);
  padding: 4px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}
.avatar:hover { transform: scale(1.03); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: calc(var(--radius) - 2px); }

.header-center {
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.625rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--gold-light); }

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}
nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--ink); }
nav a:hover::after { width: 100%; }

header h1 {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.header-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #e0d5c8;
  margin-top: -1px;
}

.book-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.header-phone {
  color: var(--accent-green);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.header-phone:hover {
  color: var(--accent-green-dark);
  text-decoration: underline;
}

.book-btn {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #f4edd3;
  border: none;
  border-radius: 100px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.book-btn:active { transform: translateY(0); }

.logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.03); }
.logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.master-photo {
  display: none;
  width: 100%;
  background: var(--frame);
  padding: 5px;
  border-radius: var(--radius);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}
.master-photo img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 3px);
}

/* ===== INTRO ===== */
.intro {
  font-size: 1.125rem;
  text-align: left;
  max-width: 820px;
  margin: 0 0 44px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-green);
  margin: 0 0 14px;
}
.section-title:not(:first-child) { margin-top: 44px; }

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px 0;
  opacity: 0.35;
}

/* ===== MAIN GRID ===== */
.content {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  column-gap: 32px;
  row-gap: 40px;
}

.col-label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  text-align: center;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 500;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.frame {
  background: var(--frame);
  padding: 5px;
  box-shadow: var(--frame-shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.frame-inner {
  width: 100%;
  height: 220px;
  background: var(--ph-bg);
  overflow: hidden;
}
.frame-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.text-col p { margin: 0 0 18px; font-size: 1rem; line-height: 1.7; }
.text-col ul { margin: 0 0 24px; padding-left: 22px; font-size: 1rem; }
.text-col ul li { margin-bottom: 10px; line-height: 1.6; }

.left-col, .right-col { display: flex; flex-direction: column; gap: 40px; }

/* ===== SUBPAGE ===== */
.page-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 36px;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-box {
  background: var(--frame);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
}
.content-box p { margin: 0 0 20px; font-size: 1rem; }
.content-box ul { margin: 20px 0; padding-left: 25px; }
.content-box ul li { margin-bottom: 10px; font-size: 1rem; }

.highlight {
  background: var(--gold-light);
  padding: 24px;
  border-left: 4px solid var(--accent-green);
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.price-block {
  background: var(--bg-alt);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.price-block strong {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--accent-green);
  display: block;
  margin-bottom: 8px;
}

.contact-info {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-light);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-green);
  margin: 32px 0 16px;
  text-align: center;
}

.zones-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}
.zones-list div {
  padding: 10px 16px;
  background: var(--frame);
  border: 1px solid var(--gold-light);
  text-align: center;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg);
  padding: 44px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  position: relative;
  text-align: center;
}
.modal h2 {
  font-family: var(--font-sans);
  margin: 0 0 6px;
  font-size: 1.375rem;
  color: var(--accent-green);
  font-weight: 600;
}
.modal p {
  margin: 0 0 28px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
}
.modal-links { display: flex; flex-direction: column; gap: 12px; }
.modal-link {
  display: block;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
}
.modal-link:hover { opacity: 0.9; transform: translateY(-1px); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-muted);
  border: none;
  background: none;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--gold-light); color: var(--ink); }

/* ===== GALLERY ===== */
.gallery-block { margin-bottom: 44px; }
.gallery-block:last-child { margin-bottom: 0; }
.gallery-subtitle {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.4;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ph-bg);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn::before {
  content: '';
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.25s ease, transform 0.25s ease;
}
.play-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
}
.gallery-video:hover .play-btn::before {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.06);
}
.gallery-video.playing .play-btn { display: none; }

/* ===== VIDEO OVERLAY ===== */
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.video-overlay.show { display: flex; }
.video-modal {
  position: relative;
  max-width: 900px;
  width: 100%;
}
.video-modal video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
  outline: none;
}
.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  border: none;
  background: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.video-close:hover { background: rgba(255, 255, 255, 0.15); }

/* ===== FOOTER ===== */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 32px calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gold-light);
  text-align: center;
  font-family: var(--font-sans);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.site-footer p { margin: 4px 0; }
.footer-name {
  font-weight: 600;
  color: var(--accent-green);
  font-size: 1.0625rem;
  margin-bottom: 6px !important;
}
.footer-contacts a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
}
.footer-contacts a:hover { text-decoration: underline; }
.footer-note {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-top: 10px !important;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

header {
  animation: slideDown 0.5s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 44px 1fr;
    grid-template-areas: 'logo center';
    padding: 10px 16px;
    gap: 10px;
  }
  .header-inner > div:nth-child(2) { grid-area: center; }
  .avatar { display: none; }
  .logo {
    display: block;
    grid-area: logo;
    width: 44px;
    height: 44px;
  }
  .master-photo {
    display: block;
    margin: 0 auto 24px;
    max-width: 300px;
  }
  .book-btn-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
  }
  .book-btn { display: none; }
  .header-phone { font-size: 0.9375rem; }
  .nav-toggle { display: block; }

  .header-center {
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
  .nav-wrap { display: contents; }

  header h1 {
    font-size: 1.125rem;
    margin: 0;
    text-align: left;
  }
  .header-subtitle {
    font-size: 0.75rem;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 28px calc(28px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    z-index: 99;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.open {
    display: flex;
    animation: navIn 0.35s ease;
  }
  @keyframes navIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  nav a {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.04em;
    padding: 16px 0;
    border-bottom: 1px solid var(--gold-light);
  }
  nav a::after { display: none; }
  nav a:hover { color: var(--accent-green); }

  header {
    animation: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .wrap { padding: 24px 20px 60px; }

  .content { grid-template-columns: 1fr; }
  .left-col, .right-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .left-col > div, .right-col > div { flex: 1 1 200px; max-width: 280px; }

  .page-title { font-size: 1.625rem; }
  .content-box { padding: 28px; }
  .zones-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
  .intro { font-size: 1rem; }
  .page-title { font-size: 1.375rem; margin-bottom: 24px; }
  .content-box { padding: 20px; }
  .modal { padding: 32px 24px; }
  .col-label { min-height: 44px; font-size: 0.875rem; }
  .frame-inner { height: 180px; }
  .video-overlay { padding: 12px; }
  .video-close { top: -40px; right: 0; }
  .play-btn::before { width: 48px; height: 48px; }
  .play-btn::after {
    border-left: 13px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
  }
  .header-inner { grid-template-columns: 40px 1fr; gap: 8px; padding: 8px 12px; }
  .logo { width: 40px; height: 40px; }
  .master-photo { max-width: 240px; margin-bottom: 16px; }
}
