:root {
  --ink: #2b3238;
  --muted: #6b737a;
  --mint: #2f9e8f;
  --mint-soft: #e4f5f1;
  --peach: #e07a5f;
  --peach-soft: #fdeee8;
  --cream: #f6f1ea;
  --paper: #ffffff;
  --line: #eadfd3;
  --shadow: 0 10px 30px rgba(43, 50, 56, 0.08);
  --pad-x: 18px;
  font-family: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
html, body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
}
button, a { font: inherit; cursor: pointer; touch-action: manipulation; }
.site {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
}
.rail { display: none; }
.page {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--cream);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hero {
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--pad-x) 20px;
  background: linear-gradient(180deg, #d8f0ea 0%, var(--cream) 78%);
}
.hero-photos {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px;
}
.hero-photos .main {
  width: min(240px, 68vw);
  height: min(280px, 52vw);
  max-width: 280px;
  max-height: 320px;
  object-fit: cover;
  object-position: 48% 12%;
  border-radius: 32px;
  display: block;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 16px 32px rgba(43, 50, 56, 0.14);
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 38%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 50% 38%, #000 62%, transparent 100%);
}
.kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.kicker {
  font-weight: 800;
  color: var(--mint);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
  min-width: 0;
}
.doc-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
h1 { font-size: clamp(26px, 8vw, 34px); line-height: 1.08; margin: 10px 0 6px; overflow-wrap: anywhere; }
.name { margin: 0 0 8px; font-weight: 800; font-size: 16px; }
.lead { color: var(--muted); font-weight: 600; margin: 0 0 16px; line-height: 1.45; }
.lead.tight { margin: 4px 0 0; }
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hero .cta { grid-template-columns: 1fr 1fr; }
.hero .cta .btn.primary { grid-column: 1 / -1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 14px; border-radius: 14px; font-weight: 800; text-decoration: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero .btn { padding: 12px 10px; font-size: 14px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--paper); color: var(--ink); }
section { padding: 4px var(--pad-x) 28px; min-width: 0; }
h2 { font-size: 22px; margin: 0 0 12px; }
.cards { display: grid; gap: 10px; }
.card {
  background: var(--paper); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.card b { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; font-weight: 600; }
.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; }
.n {
  width: 36px; height: 36px; border-radius: 12px; background: var(--mint-soft); color: #1f7a6f;
  display: grid; place-items: center; font-weight: 800;
}
.contacts .phones { margin: 8px 0; font-weight: 800; }
.contacts .social { font-weight: 700; font-size: 14px; }
.contacts a { color: var(--mint); text-decoration: none; }
.svc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.svc li {
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

@media (min-width: 390px) {
  :root { --pad-x: 20px; }
  .hero-photos .main {
    width: min(280px, 72%);
    height: 320px;
  }
}

@media (min-width: 768px) {
  html {
    background-color: #d8cfc4;
  }
  body {
    background-color: #d8cfc4;
    background-image:
      radial-gradient(ellipse 46% 38% at 4% 12%, rgba(47, 158, 143, 0.22), transparent 62%),
      radial-gradient(ellipse 42% 36% at 98% 6%, rgba(224, 122, 95, 0.16), transparent 60%),
      radial-gradient(ellipse 40% 34% at 92% 88%, rgba(47, 158, 143, 0.14), transparent 64%),
      radial-gradient(ellipse 36% 30% at 6% 90%, rgba(246, 241, 234, 0.5), transparent 58%),
      radial-gradient(ellipse 28% 22% at 50% 48%, rgba(255, 255, 255, 0.18), transparent 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='3' cy='3' r='1.1' fill='%232b3238' fill-opacity='0.045'/%3E%3C/svg%3E");
    background-attachment: fixed;
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.28;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  }
  .site {
    position: relative;
    z-index: 1;
    padding: 28px 20px 40px;
    min-height: 100dvh;
  }
  :root { --pad-x: 32px; }
  .page {
    width: min(980px, 100%);
    min-height: auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
      0 24px 70px rgba(43, 50, 56, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.28);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  .hero { padding: 28px var(--pad-x) 24px; }
  .hero-photos .main {
    width: 280px;
    height: 320px;
  }
  h1 { font-size: 36px; }
  .hero .btn { font-size: 15px; padding: 13px 14px; }
  .cta { gap: 10px; }
}

@media (min-width: 1100px) {
  .site { padding: 36px 28px 48px; }
  .page { width: min(1080px, 92vw); }
  .hero {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "kicker kicker"
      "photo copy";
    gap: 8px 40px;
    align-items: center;
    padding: 32px 40px 36px;
  }
  .kicker-row { grid-area: kicker; }
  .hero-photos {
    grid-area: photo;
    margin: 8px 0 0;
    justify-content: flex-start;
  }
  .hero-photos .main {
    width: 320px;
    height: 380px;
    max-width: 100%;
    max-height: none;
  }
  .hero-copy { grid-area: copy; min-width: 0; }
  h1 { font-size: 40px; margin-top: 0; }
  .svc { grid-template-columns: 1fr 1fr; }
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
  }
  .step { grid-template-columns: 36px minmax(0, 1fr); }
}

@media (min-width: 1360px) {
  .site {
    display: grid;
    grid-template-columns: 210px minmax(0, 1080px) 210px;
    justify-content: center;
    align-items: start;
    gap: 22px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 28px 56px;
  }
  .page { width: 100%; }
  .rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 36px;
  }
  .rail-card {
    background: rgba(246, 241, 234, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 10px 28px rgba(43, 50, 56, 0.06);
  }
  .rail-card small {
    display: block;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--mint);
    margin-bottom: 6px;
  }
  .rail-card b {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 4px;
  }
  .rail-card p,
  .rail-hours {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
  }
}
