:root {
  --ink: #122033;
  --muted: #5a6b80;
  --paper: #f3f6fb;
  --card: #ffffff;
  --line: #d5e2f2;
  --teal: #1a5fd0;
  --teal-d: #1248a8;
  --navy: #0c2d6b;
  --gold: #c5922a;
  --shadow: 0 18px 40px rgba(12, 45, 107, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.55 "Segoe UI", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-d); }
a:hover { color: var(--teal); }

.topbar {
  background: var(--navy);
  color: #e7eef2;
  font-size: 14px;
}
.topbar .wrap, .wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 40px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 650; }
.phone small, .hours-note {
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  opacity: 0.8;
  white-space: nowrap;
}
.btn.phone small { color: inherit; }
.topbar span { opacity: 0.85; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 48px; width: 48px; }
.logo-name { font-weight: 750; font-size: 14px; line-height: 1.15; }
.menu { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.menu a.active { color: var(--teal); }
.menu .call {
  background: var(--teal);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}
.menu .call:hover { background: var(--teal-d); color: #fff; }
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.burger { display: none; }

.hero {
  position: relative;
  min-height: 520px;
  color: #fff;
  display: grid;
  align-items: end;
  background: #1c2833 center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.15), rgba(18, 27, 38, 0.78));
}
.hero .wrap { position: relative; z-index: 1; padding: 72px 0 42px; }
.kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #d6e6ff;
}
h1, h2, h3 { font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; margin: 10px 0 12px; max-width: 14ch; }
.lede { max-width: 46ch; font-size: 18px; color: #e8eef1; margin: 0 0 18px; }
.rating {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}
.stars { color: #f0c14a; letter-spacing: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover, .btn-light:hover { filter: brightness(0.96); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 18px 20px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.facts b { display: block; margin-top: 4px; font-size: 16px; }

section { padding: 56px 0; }
h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
.section-lead { color: var(--muted); max-width: 62ch; margin-top: 0; }

.price-table { width: 100%; border-collapse: collapse; background: var(--card); box-shadow: var(--shadow); }
.price-table th, .price-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-table tr:last-child td { border-bottom: 0; }
.price { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; color: var(--teal-d); }
.price-table a { font-weight: 700; text-decoration: none; }

.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.2fr 0.8fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 24px; }
.card p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review { background: var(--card); border-left: 4px solid var(--teal); padding: 16px 18px; border-radius: 0 14px 14px 0; }
.review p { margin: 0 0 10px; }
.review b { display: block; }
.review span { color: var(--muted); font-size: 14px; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.team-shot { display: block; margin: 0 0 18px; }
.team-shot img { width: 100%; height: auto; display: block; border-radius: 16px; }
.portraits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.portraits a { display: block; }
.portraits img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 14px;
  display: block;
}

.news-list { display: grid; gap: 12px; }
.news-list a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.news-list time { color: var(--teal-d); font-weight: 700; font-size: 14px; }

.contact-band { background: var(--navy); color: #e8eef1; }
.contact-band a { color: #fff; }
.map { border: 0; width: 100%; height: 360px; border-radius: 16px; background: #d7e2e6; }

footer { background: #07152e; color: #c5d4e8; padding: 28px 0 110px; font-size: 14px; }
footer a { color: #fff; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(34px, 4vw, 52px); max-width: 18ch; }
.note {
  background: #e8f1fc;
  border: 1px solid #c5d7f2;
  border-radius: 12px;
  padding: 12px 14px;
  color: #16315f;
}
.page-hero { padding: 36px 0 0; }
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }

.mobile-call {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 30;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: #1a5fd0;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  padding: 12px 18px 10px;
  border-radius: 16px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px #1a5fd0, 0 14px 28px rgba(18, 72, 168, 0.45);
}
.mobile-call small {
  font-size: 12px;
  font-weight: 650;
  opacity: 0.95;
  margin-left: 0;
}

@media (max-width: 860px) {
  .facts, .grid-3, .reviews, .gallery { grid-template-columns: 1fr; }
  .portraits { grid-template-columns: 1fr 1fr; }
  .grid-2, .news-list a { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 220px; }
  .gallery a:first-child { grid-row: auto; }
  .burger { display: inline-flex; cursor: pointer; padding: 0 16px; }
  .menu {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 78px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-toggle:checked ~ .menu { display: flex; }
  .nav { position: relative; }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #b9cceb;
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
  }
  .mobile-call { display: flex; }
  .topbar .hours { display: none; }
  h1 { max-width: none; }
}
