/* DESIGN TOKENS */
:root {
  --primary-color: #234439;
  --secondary-color: #edf1e8;
  --accent-color: #e0ebac;
  --text-color: #253a32;
  --muted-color: #56635c;
  --bg-color: #fafbf7;
  --card-bg: #ffffff;
  --line-color: #d6ded3;
  --container: 1200px;
  --radius: 12px;
  --space-section: 48px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-accent: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text-color); background: var(--bg-color); }
body.dialog-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
section { padding-block: var(--space-section); scroll-margin-top: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: 32px; }
h2 { margin-bottom: 22px; font-size: 30px; }
h3 { font-size: 22px; }
p { margin-bottom: 20px; }
em { font-family: var(--font-accent); font-weight: 400; }
.eyebrow { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted-color); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; padding: 13px 24px; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; color: white; background: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 6px; transition: transform .3s ease, background .3s ease, box-shadow .3s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 7px 16px #23443920; }
.button-light { color: var(--primary-color); background: var(--accent-color); border-color: var(--accent-color); }
.button-outline { color: var(--primary-color); background: transparent; border-color: #718476; }
.button svg { width: 19px; height: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
:focus-visible { outline: 3px solid #9a5b12; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px; color: white; background: var(--primary-color); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
/* HEADER */
.topbar { display: none; font-size: 14px; color: var(--muted-color); border-bottom: 1px solid var(--line-color); }
.header { position: sticky; top: 0; z-index: 10; background: var(--bg-color); border-bottom: 1px solid var(--line-color); }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 100px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 42px; }
.brand strong { display: block; font-size: 23px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .1em; }
.header-phone { display: block; order: 4; flex-basis: 100%; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-cta { min-height: 44px; width: 44px; padding: 10px; margin-left: auto; }
.header-cta span { display: none; }
.menu-toggle { display: grid; place-content: center; gap: 5px; width: 46px; height: 46px; padding: 10px; background: none; border: 1px solid var(--line-color); border-radius: 6px; }
.menu-toggle span { width: 23px; height: 2px; background: var(--primary-color); }
.navigation { position: absolute; top: 100%; left: -20px; right: -20px; display: none; max-height: calc(100dvh - 78px); overflow-y: auto; padding: 20px; background: var(--bg-color); border-bottom: 1px solid var(--line-color); box-shadow: 0 18px 24px #23443914; }
.navigation.is-open { display: flex; flex-direction: column; }
.navigation a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.navigation a:hover { text-decoration: underline; }
.nav-phone { font-weight: 600; }
/* HERO SECTION */
.hero { padding: 32px 0 0; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { animation: enter .7s ease both; }
.hero-copy > p { max-width: 430px; color: var(--muted-color); }
.hero .eyebrow { font-size: 12px; letter-spacing: .09em; }
.hero .actions { margin-top: 28px; }
.hero .actions .button { flex-grow: 1; }
.rating-line { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; }
.rating-number { font-size: 28px; line-height: 1; font-weight: 500; }
.stars { color: var(--primary-color); letter-spacing: .14em; }
.rating-line small { display: block; font-size: 13px; color: var(--muted-color); }
.hero-photo { position: relative; min-width: 0; }
.hero-photo > img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 63%; border-radius: 120px 12px 12px 12px; }
.photo-caption { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; color: white; background: var(--primary-color); border-radius: 6px; }
.photo-caption span { display: block; font-size: 13px; color: var(--accent-color); }
.photo-caption strong { font-size: 17px; font-weight: 400; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
/* BENEFITS */
.benefits { padding-block: 40px; }
.benefit-grid { display: grid; gap: 26px; }
.benefit { display: flex; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line-color); }
.benefit svg { width: 32px; height: 32px; }
.benefit h3 { margin-bottom: 8px; font-size: 20px; }
.benefit p { margin: 0; color: var(--muted-color); }
/* SERVICES */
.services { background: var(--secondary-color); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 36px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted-color); }
.service-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px; background: var(--card-bg); border: 1px solid var(--line-color); border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px #23443910; }
.service-card svg { width: 38px; height: 38px; margin-bottom: 26px; }
.service-card h3 { margin-bottom: 16px; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.service-card p { color: var(--muted-color); }
.service-card .price { margin: auto 0 0; padding-top: 10px; font-size: 24px; font-weight: 500; color: var(--primary-color); }
.service-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; }
.service-footer p { max-width: 570px; margin: 0; font-size: 14px; color: var(--muted-color); }
/* ABOUT */
.about-grid { display: flex; flex-direction: column-reverse; gap: 32px; }
.about-copy p { color: var(--muted-color); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted-color); }
.about-note { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--line-color); border-bottom: 1px solid var(--line-color); }
.about-note p { margin: 0; color: var(--text-color); }
/* REVIEWS */
.reviews { background: var(--secondary-color); }
.review-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; overflow-x: auto; padding: 4px 4px 20px; scroll-snap-type: x mandatory; }
.review-card { align-self: start; min-width: 0; padding: 26px; background: white; border: 1px solid var(--line-color); border-radius: var(--radius); scroll-snap-align: start; overflow-wrap: anywhere; }
.review-card blockquote { margin: 22px 0; font-size: 16px; }
.review-card blockquote p { margin-bottom: 0; }
.review-card cite { font-style: normal; font-weight: 600; }
.review-card time { display: block; margin-top: 3px; font-size: 14px; color: var(--muted-color); }
.review-card details summary { min-height: 44px; padding-top: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.review-card details blockquote { margin-top: 12px; }
.reviews-hint { margin: 16px 0 0; font-size: 14px; color: var(--muted-color); }
/* CONTACTS */
.contacts-grid { display: grid; gap: 32px; }
.contact-list { display: grid; gap: 22px; margin: 26px 0 32px; }
.contact-row { display: flex; align-items: flex-start; gap: 16px; }
.contact-row svg { margin-top: 3px; }
.contact-row dt { margin-bottom: 3px; font-size: 14px; color: var(--muted-color); }
.contact-row dd { margin: 0; }
.contact-row dd a { font-size: 20px; text-decoration: none; }
.location-card { overflow: hidden; align-self: start; border: 1px solid var(--line-color); border-radius: var(--radius); }
.location-card img { width: 100%; height: 280px; object-fit: cover; object-position: 65% 60%; }
.location-info { padding: 26px; background: var(--secondary-color); }
.location-info h3 { margin-bottom: 12px; }
.location-info p { color: var(--muted-color); }
/* FOOTER */
.footer { padding: 34px 0; color: white; background: var(--primary-color); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.footer p { margin: 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer a, .footer button { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.text-button { padding: 0; color: inherit; background: none; border: 0; text-decoration: underline; text-underline-offset: 5px; }
/* MODAL PRICE LIST AND PRIVACY */
.dialog { width: min(860px, calc(100% - 24px)); max-height: 88dvh; padding: 24px; color: var(--text-color); background: var(--bg-color); border: 0; border-radius: var(--radius); }
.dialog::backdrop { background: #14291fd9; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-header h2 { margin: 0; font-size: 26px; }
.close-button { flex-shrink: 0; width: 44px; height: 44px; padding: 8px; color: var(--primary-color); background: var(--secondary-color); border: 1px solid var(--line-color); border-radius: 50%; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th { font-size: 14px; font-weight: 400; text-align: left; color: var(--muted-color); }
.price-table th, .price-table td { padding: 16px 0; border-bottom: 1px solid var(--line-color); vertical-align: top; }
.price-table td:first-child { padding-right: 16px; }
.price-table td:first-child { overflow-wrap: anywhere; }
.price-table th:last-child, .price-table td:last-child { text-align: right; white-space: nowrap; }
.dialog-note { margin-top: 24px; font-size: 14px; color: var(--muted-color); }
/* TABLET */
@media (min-width: 768px) {
  :root { --space-section: 64px; }
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  .topbar { display: block; }
  .topbar .container { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; }
  .header-inner { flex-wrap: nowrap; min-height: 78px; }
  .header-phone { order: 0; flex-basis: auto; margin-left: auto; font-size: 16px; }
  .header-cta { width: auto; margin-left: 0; padding: 13px 20px; }
  .header-cta span { display: inline; }
  .header-cta svg { display: none; }
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; }
  .hero-photo > img { height: 550px; }
  .hero .actions .button { flex-grow: 0; }
  .hero .eyebrow { font-size: 13px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .about-photo img { height: 520px; }
  .contacts-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .dialog { padding: 36px; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --space-section: 80px; }
  h1 { font-size: 48px; }
  h2 { font-size: 40px; }
  .header-inner { min-height: 90px; gap: 28px; }
  .menu-toggle, .nav-phone { display: none; }
  .navigation .nav-phone { display: none; }
  .navigation { position: static; display: flex; gap: 24px; margin-left: auto; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; }
  .navigation a { font-size: 14px; }
  .header-phone { margin-left: 0; }
  .hero-grid { grid-template-columns: 1.12fr 1fr; gap: 64px; }
  .hero-copy > p { font-size: 18px; }
  .hero .eyebrow { margin-bottom: 28px; }
  .hero-photo > img { height: 580px; border-top-left-radius: 180px; }
  .rating-line { margin-top: 38px; }
  .benefits { padding-block: 48px; }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .benefit p { font-size: 16px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 310px; padding: 30px; }
  .about-grid, .contacts-grid { gap: 90px; }
  .review-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .review-card:last-child { grid-column: 1 / -1; }
  .reviews-hint { display: none; }
}
@media (min-width: 1440px) {
  .hero { padding-top: 54px; }
  .hero-photo > img { height: 600px; }
}
/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  *, *::before, *::after { animation: none; transition: none; }
}
