/* FOUNDATION */
:root {
  --primary-color: #491e2b;
  --secondary-color: #f4c4ba;
  --accent-color: #9b3d4d;
  --text-color: #30272a;
  --bg-color: #fcf9f7;
  --card-bg: #fff;
  --muted-color: #6d5b60;
  --line-color: #e5d9d7;
  --container: 1200px;
  --radius: 8px;
  --space-section: 48px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--text-color); background: var(--bg-color); font: 16px/1.65 var(--font-body); }
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b54f17; outline-offset: 5px; }
p { margin: 0 0 20px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-heading); line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h2 em { color: var(--accent-color); font-weight: 400; }
h3 { font-size: 20px; line-height: 1.35; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.eyebrow { margin-bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 23px; border: 1px solid transparent; border-radius: 3px; font-weight: 600; font-size: 15px; text-align: center; transition: background .3s ease, transform .3s ease; }
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--primary-color); color: white; }
.button-light { background: var(--secondary-color); color: var(--primary-color); }
.button-outline { border-color: #d2bcbf; color: white; background: transparent; }
.button-dark:hover { background: #69283c; }
.button-light:hover { background: #ffdbd3; }
.skip-link { position: fixed; top: -100px; left: 10px; z-index: 10; padding: 14px; background: white; }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 5; background: var(--bg-color); border-bottom: 1px solid var(--line-color); }
.header-inner { position: relative; display: flex; min-height: 88px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
.brand { color: var(--primary-color); font: 700 28px/1.1 var(--font-heading); letter-spacing: -.05em; white-space: nowrap; }
.brand > span { color: var(--accent-color); font-style: italic; }
.brand small { display: block; margin-top: 9px; font: 9px/1.3 var(--font-body); letter-spacing: .14em; }
.header-phone { flex-basis: 100%; color: var(--primary-color); font-size: 16px; font-weight: 600; }
.header-phone small { margin-left: 10px; font-size: 12px; font-weight: 400; }
.menu-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; border: 1px solid var(--line-color); background: transparent; }
.menu-toggle span { width: 22px; height: 2px; background: var(--primary-color); }
nav { position: absolute; top: 100%; left: -20px; right: -20px; display: none; padding: 16px 20px; background: var(--bg-color); border-bottom: 1px solid var(--line-color); }
nav.is-open { display: grid; }
nav a { padding: 10px 8px; font-size: 14px; }
nav a:hover { color: var(--accent-color); text-decoration: underline; text-underline-offset: 6px; }
/* HERO */
.hero { position: relative; overflow: hidden; min-height: 610px; background: var(--primary-color); color: white; }
.hero-image, .hero-shade { position: absolute; width: 100%; height: 100%; inset: 0; }
.hero-image { object-position: 65% center; }
.hero-shade { background: linear-gradient(90deg,rgba(45,14,25,.96),rgba(45,14,25,.80) 45%,rgba(45,14,25,.28)); }
.hero-content { position: relative; padding-block: 62px 42px; animation: appear .7s ease-out; }
.hero .eyebrow { color: #f4c4ba; }
h1 { max-width: 760px; font-size: clamp(39px, 5.7vw, 78px); }
h1 em { color: var(--secondary-color); font-weight: 400; }
.hero-intro { max-width: 500px; margin-top: 26px; color: #f5e8e9; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: grid; gap: 12px; margin-top: 42px; font-size: 13px; color: #f1dce1; }
.hero-meta b { color: var(--secondary-color); }
.hero-sign { display: none; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* BENEFITS */
.benefits { display: grid; gap: 26px; padding-block: 38px; border-bottom: 1px solid var(--line-color); }
.benefits article { display: flex; gap: 18px; }
.benefit-icon { flex-shrink: 0; color: var(--accent-color); font-size: 35px; line-height: 1.15; }
.benefits h2 { margin-bottom: 10px; font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.benefits p { margin: 0; color: var(--muted-color); font-size: 14px; line-height: 1.6; }
/* SERVICES */
.section-heading { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.section-heading > p { margin: 0; color: var(--muted-color); }
.services-grid { display: grid; gap: 24px; }
.service-card { overflow: hidden; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--card-bg); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #491e2b15; }
.service-card > img { width: 100%; height: 240px; }
.service-card:nth-child(1) img { object-position: center 40%; }
.service-card:nth-child(5) img { object-position: center 30%; }
.service-body { padding: 24px; }
.service-body h3 { min-height: 54px; }
.service-body p { margin-top: 12px; color: var(--muted-color); font-size: 14px; min-height: 46px; }
.service-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-color); padding-top: 14px; }
.service-bottom strong { font: 25px var(--font-heading); }
.service-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-color); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.price-action { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; text-align: center; }
.price-action p { margin: 0; color: var(--muted-color); font-size: 13px; }
/* ABOUT */
.about { background: #f1e6e2; }
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p:not(.eyebrow) { color: var(--muted-color); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 6px; color: var(--primary-color); }
.about-detail { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid #cdbab6; color: var(--accent-color); font: italic 25px var(--font-heading); }
.about-detail span { font-size: 42px; }
.about-photo { order: -1; position: relative; margin: 0; }
.about-photo img { width: 100%; height: 380px; object-position: center 42%; border-radius: 160px 160px 6px 6px; }
.about-photo figcaption { margin-top: 15px; color: var(--muted-color); font-size: 12px; text-align: center; }
/* REVIEWS */
.rating-link { display: flex; flex-direction: column; }
.rating-link b { color: var(--primary-color); font: 30px var(--font-heading); }
.rating-link b span { color: var(--accent-color); font: 17px var(--font-body); letter-spacing: .08em; }
.rating-link > span { margin-top: 6px; color: var(--muted-color); font-size: 13px; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.review-card { padding: 25px; border: 1px solid var(--line-color); border-radius: var(--radius); scroll-snap-align: start; }
.stars { color: var(--accent-color); letter-spacing: .16em; }
blockquote { margin: 20px 0 24px; font-size: 16px; }
.review-author { font-size: 14px; font-weight: 600; }
.review-card time { color: var(--muted-color); font-size: 12px; }
.swipe-hint { margin: 12px 0 0; color: var(--muted-color); font-size: 13px; }
/* CONTACTS */
.contacts { color: white; background: var(--primary-color); }
.contacts .eyebrow, .contacts h2 em { color: var(--secondary-color); }
.contact-grid { display: grid; gap: 36px; }
.contact-intro { margin-top: 24px; color: #ecd5db; }
address { font-style: normal; margin-block: 28px; }
address p { margin-bottom: 18px; }
address span { display: block; margin-bottom: 4px; color: #e4b5be; font-size: 11px; letter-spacing: .13em; }
address a { font-size: 24px; }
.map-panel { overflow: hidden; align-self: center; border-radius: var(--radius); background: var(--bg-color); color: var(--primary-color); }
.map-panel iframe { display: block; width: 100%; height: 370px; border: 0; background: #eee5e2; }
.map-panel > a { display: flex; min-height: 58px; padding: 15px; align-items: center; justify-content: center; text-decoration: underline; text-underline-offset: 5px; font-size: 14px; }
/* FOOTER */
.footer-inner { display: flex; align-items: center; flex-direction: column; gap: 18px; padding-block: 30px; }
footer p { margin: 0; font-size: 12px; color: var(--muted-color); }
.privacy-button { min-height: 44px; padding: 5px; border: 0; background: transparent; color: var(--muted-color); font-size: 12px; text-decoration: underline; }
/* DIALOGS */
dialog { width: min(780px, calc(100% - 28px)); max-height: 86dvh; padding: 24px; border: 1px solid var(--line-color); border-radius: var(--radius); background: var(--bg-color); color: var(--text-color); }
dialog::backdrop { background: #200b17c7; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.dialog-top .eyebrow { margin-bottom: 10px; }
.dialog-top h2 { font-size: 30px; }
.close-dialog { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line-color); border-radius: 50%; background: white; color: var(--primary-color); font-size: 28px; }
.price-list { margin: 0 0 24px; padding: 0; list-style: none; }
.price-list li { display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid var(--line-color); }
.price-list strong { white-space: nowrap; color: var(--primary-color); }
/* RESPONSIVE LAYOUT */
@media (min-width: 768px) {
  .header-phone { flex-basis: auto; }
  .header-phone small { display: block; margin: 4px 0 0; }
  .menu-toggle { order: 3; }
  .hero { min-height: 610px; }
  .hero-content { padding-block: 76px 50px; }
  .hero-meta { display: flex; gap: 28px; margin-top: 60px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .about-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 48px; }
  .about-photo { order: 0; }
  .about-photo img { height: 560px; }
  .reviews-grid { grid-auto-flow: initial; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; }
  .swipe-hint { display: none; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .price-list li { grid-template-columns: 1fr auto; gap: 24px; }
  dialog { padding: 36px; }
}
@media (min-width: 1024px) {
  :root { --space-section: 80px; }
  .header-inner { flex-wrap: nowrap; min-height: 96px; }
  .brand { font-size: 33px; }
  .menu-toggle { display: none; }
  nav { position: static; display: flex; padding: 0; border: 0; gap: 6px; }
  .header-phone { text-align: right; }
  .hero-sign { position: absolute; right: 6%; bottom: 52px; display: block; color: #ffe8e2; font: italic 30px var(--font-heading); transform: rotate(-7deg); }
  .hero-shade { background: linear-gradient(90deg,rgba(45,14,25,.96),rgba(45,14,25,.80) 38%,rgba(45,14,25,.12) 85%); }
  .benefits { grid-template-columns: repeat(3,minmax(0,1fr)); padding-block: 38px; gap: 32px; }
  .services-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reviews-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .price-action { flex-direction: row; justify-content: center; text-align: left; gap: 28px; }
  .about-grid { gap: 100px; grid-template-columns: 1.1fr 1fr; }
  .about-photo { margin-inline: 20px; }
}
@media (min-width: 1440px) {
  .hero-content { padding-block: 88px 58px; }
  .hero { min-height: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
  .hero-content { animation: none; }
  .button, .service-card { transition: none; }
}
