/* THEME AND BASE */
:root {
  --primary-color: #24483e;
  --secondary-color: #e8eee7;
  --accent-color: #a94335;
  --text-color: #203b33;
  --muted-color: #526259;
  --bg-color: #fff;
  --card-bg: #f5f7f3;
  --line-color: #d6dfd6;
  --radius: 20px;
  --container: 1200px;
  --section-space: 44px;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text-color); background: var(--bg-color); font: 16px/1.6 var(--font-body); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 500; }
h1, h2 { letter-spacing: -.035em; }
h2 { font-size: 32px; }
em { font-family: var(--font-display); font-weight: 400; }
p { color: var(--muted-color); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 5px; }
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: var(--section-space); scroll-margin-top: 24px; }
.eyebrow { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.icon { flex-shrink: 0; width: 32px; height: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 13px 22px; border: 1px solid var(--primary-color); border-radius: 6px; font-size: 16px; font-weight: 600; text-align: center; transition: background .3s ease, transform .3s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: white; background: var(--primary-color); }
.primary:hover { background: #16352c; }
.secondary { background: transparent; }
.secondary:hover { background: #d8e2d8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid currentColor; font-weight: 600; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 12px; color: white; background: var(--primary-color); }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line-color); background: #fff; }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.13; letter-spacing: -.04em; }
.brand b { font-weight: 500; }
.brand .icon { width: 38px; height: 38px; }
.menu-toggle { display: none; align-items: center; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--line-color); border-radius: 6px; background: white; }
.menu-toggle span { width: 22px; height: 2px; background: var(--primary-color); }
nav { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; }
nav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.js .menu-toggle { display: flex; }
.js nav { display: none; }
.js nav.is-open { display: flex; }
.header-phone { width: 100%; font-size: 17px; font-weight: 600; }
.header-phone span { display: none; font-size: 12px; font-weight: 400; color: var(--muted-color); }
/* HERO SECTION */
.hero { display: grid; padding-block: 24px 0; }
.hero-copy { padding: 32px 24px; background: var(--secondary-color); border-radius: var(--radius) var(--radius) 0 0; animation: appear .65s ease both; }
.hero .eyebrow { font-size: 12px; }
h1 { margin-bottom: 24px; font-size: 32px; }
.hero h1 em { display: inline-block; padding-top: 8px; }
.hero-copy > p { max-width: 425px; margin-bottom: 28px; }
.hero-rating { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 13px; }
.rating-number { font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.stars { color: #9b442d; letter-spacing: 3px; }
.hero-photo { position: relative; min-width: 0; height: 380px; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); }
.hero-photo img { height: 100%; object-position: center 45%; }
.photo-label { position: absolute; bottom: 18px; left: 18px; right: 18px; padding: 12px 16px; border-radius: 4px; color: white; background: var(--primary-color); font-size: 14px; text-align: center; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* BENEFITS */
.benefits { display: grid; gap: 24px; padding-block: 36px 48px; }
.benefits article { display: flex; gap: 16px; }
.benefits h2 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.benefits p { font-size: 15px; line-height: 1.6; }
/* SERVICES */
.services { background: var(--card-bg); }
.section-heading { display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading > p { max-width: 340px; }
.service-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 28px; border: 1px solid var(--line-color); border-radius: 10px; background: white; transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #24483e12; }
.service-card .icon { margin-bottom: 24px; }
.service-card h3 { margin-bottom: 12px; font-size: 21px; line-height: 1.3; }
.service-card p { margin-bottom: 24px; font-size: 16px; }
.service-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-color); }
.service-bottom strong { font-size: 20px; font-weight: 500; }
.service-bottom a { display: flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.full-price { margin-top: 30px; }
.full-price summary { width: fit-content; margin-inline: auto; list-style: none; }
.full-price summary::-webkit-details-marker { display: none; }
.price-intro { margin-block: 20px; }
.price-row { display: grid; gap: 8px; padding-block: 16px; border-bottom: 1px solid var(--line-color); }
.price-row dt { overflow-wrap: anywhere; }
.price-row dd { margin: 0; font-weight: 600; }
/* ABOUT */
.about { display: grid; gap: 32px; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy p { margin-bottom: 18px; }
.about-photos { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 12px; order: -1; }
.about-photos img { height: 280px; border-radius: 100px 100px 8px 8px; }
.about-small { margin-top: 65px; }
.about-small img { height: 230px; border-radius: 8px; }
figcaption { margin-top: 10px; color: var(--muted-color); font-size: 13px; }
/* REVIEWS */
.reviews { background: var(--secondary-color); }
.review-rating { display: flex; align-items: center; gap: 15px; font-size: 13px; }
.review-rating strong { font-size: 48px; font-weight: 500; letter-spacing: -.05em; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: 16px; overflow-x: auto; padding: 6px 4px 20px; scroll-snap-type: x mandatory; }
.review-card { display: flex; flex-direction: column; padding: 26px; border-radius: 8px; background: white; scroll-snap-align: start; }
.review-card .stars { margin-bottom: 20px; }
blockquote { margin: 0 0 24px; font-size: 16px; }
.review-author { margin-top: auto; overflow-wrap: anywhere; font-weight: 600; }
time { color: var(--muted-color); font-size: 14px; }
.swipe-hint { margin-bottom: 15px; font-size: 14px; }
/* CONTACTS */
.contacts { display: grid; gap: 32px; }
.contact-copy > p { margin-block: 20px; }
.contact-phone { display: inline-block; margin: 4px 0 24px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
address { font-style: normal; }
.socials { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.socials a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line-color); }
.map-panel { display: flex; flex-direction: column; min-height: 390px; overflow: hidden; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--secondary-color); }
.map-panel iframe { flex: 1; width: 100%; min-height: 330px; border: 0; }
.map-link { display: block; padding: 16px; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
/* FOOTER AND PRIVACY */
.footer { padding-block: 35px 24px; color: white; background: var(--primary-color); }
.footer-top, .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top { padding-bottom: 30px; border-bottom: 1px solid #ffffff40; }
.footer-top > span { max-width: 230px; font-family: var(--font-display); font-style: italic; font-size: 20px; }
.footer-bottom { justify-content: start; gap: 12px 30px; margin-top: 20px; font-size: 14px; }
.footer-bottom a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.medical-note { margin-top: 20px; color: #e0e9e2; font-size: 14px; }
.privacy { max-width: 800px; padding-block: 60px; }
.privacy h1 { margin-top: 35px; }
.privacy p { margin-top: 20px; }
.privacy p a { text-decoration: underline; }
/* DIALOG */
dialog { width: min(900px, calc(100% - 24px)); max-height: 90dvh; padding: 0; color: var(--text-color); border: none; border-radius: 12px; }
dialog::backdrop { background: #10271fcc; }
.dialog-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line-color); background: white; }
.dialog-header h2 { font-size: 27px; }
.dialog-close { flex-shrink: 0; width: 44px; height: 44px; font-size: 30px; border: 1px solid var(--line-color); border-radius: 50%; background: white; }
.dialog-body { padding: 0 20px 28px; }
/* TABLET */
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .header-phone { width: auto; margin-left: auto; }
  .header-phone span { display: block; }
  .menu-toggle { order: 3; }
  nav { order: 4; }
  .hero { grid-template-columns: 1.1fr 1fr; padding-top: 28px; }
  .hero-copy { padding: 42px 30px; border-radius: var(--radius) 0 0 var(--radius); }
  h1 { font-size: 38px; }
  .hero-photo { height: auto; min-height: 570px; border-radius: 0 var(--radius) var(--radius) 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 42px; }
  .benefits article { flex-direction: column; }
  .price-row { grid-template-columns: 1fr auto; gap: 28px; }
  .price-row dd { text-align: right; white-space: nowrap; }
  .about-photos { max-width: 650px; margin-inline: auto; }
  .about-photos img { height: 420px; }
  .about-small img { height: 340px; }
  .reviews-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; }
  .swipe-hint { display: none; }
  .contacts { grid-template-columns: 1fr 1fr; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  h2 { font-size: 42px; }
  .header-inner { flex-wrap: nowrap; padding-block: 20px; }
  .js .menu-toggle { display: none; }
  .js nav, nav { display: flex; order: initial; width: auto; gap: 22px; margin-inline: auto; }
  .header-phone { margin-left: 0; }
  .hero-copy { padding: 55px 42px; }
  h1 { font-size: 48px; }
  .hero-photo { min-height: 630px; }
  .hero-copy .eyebrow { font-size: 13px; }
  .hero-rating { margin-top: 42px; }
  .benefits article { flex-direction: row; gap: 18px; }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 40px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 30px; }
  .about { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .about-photos { order: initial; }
  .about-photos img { height: 410px; }
  .about-small img { height: 310px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-copy { padding-right: 30px; }
}
@media (min-width: 1440px) {
  .hero-copy { padding: 60px 48px; }
  .hero-photo { min-height: 650px; }
}
/* MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .button, .service-card { transition: none; }
}
