/* THEME AND BASE */
:root {
  --primary-color: #662b3a;
  --secondary-color: #eee9e1;
  --accent-color: #9a693e;
  --text-color: #302b2a;
  --muted-color: #6c625e;
  --bg-color: #faf8f3;
  --card-bg: #fffdf9;
  --line-color: #ddd5cb;
  --radius: 4px;
  --container: 1200px;
  --section-space: 48px;
  --body-font: Arial, Helvetica, sans-serif;
  --heading-font: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 16px/1.6 var(--body-font); color: var(--text-color); background: var(--bg-color); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
figure, blockquote { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--heading-font); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 24px; font-size: 36px; }
h3 { line-height: 1.3; }
em { color: var(--primary-color); font-weight: 400; }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 5px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { margin-bottom: 24px; font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 24px; padding: 13px 23px; color: #fffaf5; background: var(--primary-color); border: 1px solid var(--primary-color); border-radius: var(--radius); font-size: 14px; transition: background .3s, transform .3s; }
.button:hover { background: #4b1e2b; transform: translateY(-2px); }
.button.outline { color: var(--primary-color); background: transparent; }
.button.outline:hover { background: #eee1df; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-color); font-size: 14px; }
.text-link:hover { color: var(--primary-color); border-color: var(--primary-color); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 20px; color: white; background: var(--primary-color); }
.skip-link:focus { top: 12px; }
/* HEADER */
.header { position: relative; z-index: 5; border-bottom: 1px solid var(--line-color); background: var(--bg-color); }
.header-inner { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; flex-direction: column; font: 38px/.9 var(--heading-font); letter-spacing: -.06em; color: var(--primary-color); }
.brand span { margin-top: 10px; font: 9px/1.2 var(--body-font); letter-spacing: .23em; }
.header-phone { margin-left: auto; font-size: 13px; white-space: nowrap; }
.header-phone span { display: block; font-size: 10px; color: var(--muted-color); }
.header-cta { display: none; }
.menu-toggle { display: flex; order: 2; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; border: 1px solid var(--line-color); border-radius: var(--radius); color: var(--primary-color); background: transparent; }
.menu-toggle span { width: 22px; height: 1px; background: currentColor; }
.nav { display: none; order: 3; width: 100%; padding: 10px 0 20px; }
.nav.is-open { display: flex; flex-direction: column; }
.nav a { padding: 10px 0; font-size: 14px; }
.nav a:hover { color: var(--primary-color); }
/* HERO */
.hero { padding-top: 34px; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { animation: appear .75s ease both; }
.hero .eyebrow { font-size: 9px; letter-spacing: .09em; }
.tiny-star { margin-right: 8px; color: var(--primary-color); font-size: 22px; vertical-align: middle; }
h1 { margin-bottom: 24px; font-size: clamp(56px, 14vw, 80px); }
.hero-description { max-width: 440px; margin-bottom: 28px; color: var(--muted-color); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-rating { display: flex; align-items: center; gap: 16px; width: fit-content; margin-top: 28px; }
.hero-rating b { padding-right: 16px; border-right: 1px solid var(--line-color); font-size: 30px; font-weight: 400; }
.hero-rating b span { font-size: 22px; color: var(--accent-color); }
.hero-rating > span { font-size: 12px; }
.hero-rating small { color: var(--muted-color); font-size: 11px; }
.hero-visual { position: relative; min-width: 0; padding: 0 0 38px; }
.hero-image { width: 100%; height: 370px; object-position: 55% center; border-radius: 160px 160px 0 0; }
.hero-seal { position: absolute; right: -7px; bottom: 65px; display: flex; width: 104px; height: 104px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid #f8f4ed; border-radius: 50%; font: italic 49px/1 var(--heading-font); color: white; background: var(--primary-color); outline: 6px solid var(--bg-color); }
.hero-seal span { margin-top: 8px; font: 6px/1 var(--body-font); letter-spacing: .11em; }
.image-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 9px; color: var(--muted-color); }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-block: 18px; border-bottom: 1px solid var(--line-color); font-size: 9px; letter-spacing: .08em; }
.hero-bottom a { display: inline-flex; min-height: 44px; align-items: center; gap: 30px; }
/* BENEFITS */
.benefits { display: grid; padding-block: 30px; gap: 28px; }
.benefits article { display: flex; gap: 18px; }
.benefit-icon { min-width: 30px; font: 34px/1.3 var(--heading-font); color: var(--primary-color); }
.benefits h2 { margin: 0 0 8px; font: 500 17px/1.3 var(--body-font); letter-spacing: 0; }
.benefits p { margin: 0; color: var(--muted-color); font-size: 14px; }
/* SERVICES */
.services { background: var(--secondary-color); }
.section-heading { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.section-heading > p { color: var(--muted-color); font-size: 15px; }
.section-heading h2 { margin-bottom: 0; }
.service-grid { display: grid; gap: 24px; }
.service-card { overflow: hidden; min-width: 0; border-radius: var(--radius); background: var(--card-bg); box-shadow: 0 3px 12px #302b2a05; transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #302b2a12; }
.service-photo { position: relative; }
.service-photo img { height: 230px; }
.photo-number { position: absolute; left: 17px; top: 15px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--bg-color); color: var(--primary-color); font-size: 11px; }
.service-content { padding: 24px; }
.service-content h3 { margin-bottom: 6px; font: 28px/1.2 var(--heading-font); }
.service-content > p { color: var(--muted-color); font-size: 14px; }
dl { margin-bottom: 0; }
dl > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line-color); font-size: 14px; }
dt { max-width: 72%; }
dd { flex-shrink: 0; margin: 0; color: var(--primary-color); }
.price-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }
.price-cta p { margin: 0; font-size: 14px; color: var(--muted-color); }
/* ABOUT AND GALLERY */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-copy { order: 2; }
.about-copy > p:not(.eyebrow) { color: var(--muted-color); }
.about-photo img { height: 370px; border-radius: 180px 180px 0 0; }
.about-photo figcaption { padding-top: 14px; font-size: 12px; color: var(--muted-color); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.gallery img { height: 150px; border-radius: var(--radius); }
.gallery figcaption { padding-top: 10px; color: var(--muted-color); font-size: 12px; }
/* REVIEWS */
.reviews { border-top: 1px solid var(--line-color); }
.rating-link { display: flex; flex-direction: column; align-self: flex-start; }
.rating-link strong { font: 44px/1.3 var(--heading-font); color: var(--primary-color); }
.rating-link strong span { font-size: 26px; }
.rating-link > span { font-size: 12px; color: var(--muted-color); }
.review-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 20px; }
.review-card { padding: 24px; border: 1px solid var(--line-color); border-radius: var(--radius); scroll-snap-align: start; background: var(--card-bg); }
.stars { margin-bottom: 18px; color: var(--primary-color); letter-spacing: .18em; }
.review-card blockquote { margin-bottom: 24px; font-size: 16px; }
.review-author { font-size: 14px; font-weight: 600; }
.review-card time { font-size: 11px; color: var(--muted-color); }
.swipe-hint { margin-top: 12px; color: var(--muted-color); font-size: 12px; }
/* CONTACTS */
.contacts { background: var(--secondary-color); }
.contact-grid { display: grid; gap: 32px; }
address { font-style: normal; }
.contact-label { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .12em; color: var(--muted-color); }
.contact-phone { display: inline-block; margin-bottom: 25px; font: 28px/1.4 var(--heading-font); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links { display: flex; gap: 24px; margin-top: 16px; font-size: 13px; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; }
.map-panel { display: flex; min-width: 0; flex-direction: column; background: var(--card-bg); }
.map-panel iframe { width: 100%; height: 380px; border: 0; }
.map-link { display: flex; min-height: 60px; align-items: center; justify-content: space-between; padding: 14px 24px; font-size: 14px; }
/* FOOTER */
.footer { padding-block: 30px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer p { margin: 0; font-size: 11px; color: var(--muted-color); }
.footer a:not(.brand) { display: inline-flex; min-height: 44px; align-items: center; font-size: 11px; }
.footer .back-top { justify-content: center; width: 44px; margin-left: auto; border: 1px solid var(--line-color); border-radius: 50%; }
/* DIALOGS */
dialog { position: fixed; width: min(900px, calc(100% - 24px)); max-height: 88dvh; padding: 24px; color: var(--text-color); background: var(--bg-color); border: 1px solid var(--line-color); border-radius: 8px; }
dialog::backdrop { background: #211a1bcc; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-heading h2 { font-size: 32px; }
.dialog-heading .eyebrow { margin-bottom: 10px; }
.close-dialog { flex-shrink: 0; width: 44px; height: 44px; font-size: 30px; color: var(--primary-color); background: transparent; border: 1px solid var(--line-color); border-radius: 50%; }
.price-tools label { display: block; margin-bottom: 8px; font-size: 14px; }
.price-tools input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-color); border-radius: var(--radius); background: white; }
.price-tools p { margin-top: 12px; font-size: 13px; color: var(--muted-color); }
.price-tools a { text-decoration: underline; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
caption { padding: 12px 0; text-align: left; color: var(--muted-color); }
th, td { padding: 12px 6px; border-bottom: 1px solid var(--line-color); text-align: left; overflow-wrap: anywhere; vertical-align: top; }
th:first-child { width: 34px; }
th:last-child { width: 82px; }
td:last-child { color: var(--primary-color); }
.row-number { color: var(--muted-color); font-size: 10px; }
#privacy { width: min(600px, calc(100% - 24px)); }
/* RESPONSIVE LAYOUT */
@media (min-width: 768px) {
  :root { --section-space: 70px; }
  .container { width: min(100% - 64px, var(--container)); }
  h2 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
  .hero { padding-top: 45px; }
  h1 { font-size: 76px; }
  .hero-image { height: 550px; }
  .hero-visual { padding-left: 12px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-bottom { font-size: 10px; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 22px; padding-block: 40px; }
  .benefits article { gap: 12px; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; }
  .section-heading > p { margin-bottom: 4px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .price-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .about-copy { order: 0; }
  .about-photo img { height: 550px; }
  .gallery { gap: 24px; margin-top: 60px; }
  .gallery img { height: 300px; }
  .review-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .swipe-hint { display: none; }
  .rating-link { align-self: flex-end; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .map-panel iframe { height: 100%; min-height: 460px; }
  dialog { padding: 36px; }
  th:last-child { width: 120px; }
}
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { min-height: 100px; flex-wrap: nowrap; gap: 24px; }
  .nav { display: flex; order: 0; width: auto; gap: 22px; padding: 0; }
  .nav a { font-size: 12px; }
  .menu-toggle { display: none; }
  .header-phone { font-size: 14px; }
  .header-cta { display: inline-flex; }
  .small { min-height: 44px; padding: 10px 18px; font-size: 12px; gap: 15px; }
  .hero-grid { grid-template-columns: 1.03fr 1fr; gap: 65px; }
  .hero-copy { padding-block: 16px; }
  .hero .eyebrow { font-size: 10px; }
  h1 { font-size: 96px; }
  .hero-image { height: 590px; border-radius: 240px 240px 0 0; }
  .hero-seal { width: 124px; height: 124px; right: -16px; bottom: 76px; font-size: 56px; }
  .hero-seal span { font-size: 7px; }
  .hero-rating { margin-top: 40px; }
  .hero-bottom { padding-block: 12px; }
  .benefits { gap: 50px; }
  .benefits article { gap: 22px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-content { padding: 26px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .review-card:first-child { grid-row: span 2; }
  .about-grid { gap: 100px; }
  .about-copy { max-width: 440px; }
  .contact-grid { gap: 80px; }
  .footer p { margin-left: auto; }
  .footer .back-top { margin-left: 20px; }
}
@media (min-width: 1440px) {
  .hero { padding-top: 55px; }
  .hero-grid { gap: 85px; }
  h1 { font-size: 104px; }
  .hero-image { height: 610px; }
}
/* MOTION PREFERENCES */
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .button, .service-card { transition: none; }
  *, *::before, *::after { animation: none; transition: none; }
}
