/* TOKENS AND BASE */
:root {
  --primary-color: #4c203e;
  --secondary-color: #eee2e8;
  --accent-color: #a53b64;
  --text-color: #30242a;
  --muted: #6b5a64;
  --bg-color: #fcf8f5;
  --card-bg: #fffdfb;
  --line: #d9cbd2;
  --container: 1200px;
  --radius: 8px;
  --section-space: 48px;
  --body-font: Arial, Helvetica, sans-serif;
  --display-font: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text-color); background: var(--bg-color); font: 16px/1.6 var(--body-font); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-underline-offset: 5px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display-font); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(42px, 6.1vw, 76px); }
h2 { font-size: clamp(32px, 3.5vw, 46px); }
h3 { font-size: 20px; line-height: 1.3; }
em { color: var(--accent-color); font-weight: 400; }
p { overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 5px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.eyebrow { margin-bottom: 22px; color: var(--primary-color); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.icon { width: 32px; height: 32px; flex: 0 0 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 23px; color: #fff; background: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 4px; text-align: center; text-decoration: none; font-size: 15px; transition: transform .3s ease, background .3s ease; }
.button:hover { background: #672b53; transform: translateY(-2px); }
.button-outline { color: var(--primary-color); background: transparent; }
.button-outline:hover { color: var(--primary-color); background: var(--secondary-color); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-color); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 100; padding: 10px; background: #fff; }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg-color); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 15px; }
.brand { color: var(--primary-color); font-family: var(--display-font); font-size: 43px; font-style: italic; font-weight: bold; line-height: .9; letter-spacing: -.07em; text-decoration: none; }
.brand span { display: block; margin-top: 9px; font: 10px/1.2 var(--body-font); letter-spacing: .16em; text-transform: uppercase; }
.header-phone { margin-left: auto; text-decoration: none; font-size: 14px; white-space: nowrap; }
.header-phone span { display: none; }
.header-cta { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); color: var(--primary-color); background: transparent; border-radius: 4px; }
.menu-toggle span { display: block; height: 1px; margin-block: 6px; background: currentColor; }
.navigation { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.navigation a:hover { color: var(--accent-color); }
/* HERO */
.hero { overflow: hidden; padding-block: 40px; }
.hero-grid { display: grid; gap: 35px; }
.hero-copy { align-self: center; animation: enter .7s ease both; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-description { max-width: 435px; margin-bottom: 30px; color: var(--muted); font-size: 17px; }
.hero-visual { position: relative; min-width: 0; padding: 10px 10px 0; border: 1px solid var(--line); border-radius: 180px 180px 0 0; }
.hero-image { width: 100%; height: 380px; object-fit: cover; object-position: 50% 43%; border-radius: 170px 170px 0 0; }
.hero-seal { position: absolute; right: 0; bottom: 74px; display: grid; place-content: center; width: 110px; height: 110px; border-radius: 50%; color: white; background: var(--primary-color); font-family: var(--display-font); font-size: 17px; line-height: 1.2; text-align: center; transform: rotate(8deg); }
.hero-seal em { color: #f6c5d8; }
.hero-seal .icon { width: 23px; height: 23px; margin: 6px auto 0; }
.photo-caption { display: flex; justify-content: space-between; gap: 10px; padding-block: 12px; color: var(--muted); font-size: 12px; }
.photo-caption span:last-child { color: var(--primary-color); font-family: var(--display-font); font-style: italic; }
.hero-rating { display: inline-flex; align-items: center; min-height: 64px; gap: 14px; margin-top: 28px; text-decoration: none; }
.rating-number { font-family: var(--display-font); font-size: 38px; line-height: 1; }
.stars { color: #853050; font-size: 15px; letter-spacing: 3px; }
.rating-caption { display: block; color: var(--muted); font-size: 13px; }
/* BENEFITS */
.benefits { padding-block: 32px; border-block: 1px solid var(--line); }
.benefits-grid { display: grid; gap: 28px; }
.benefits article { display: flex; gap: 18px; }
.benefits .icon { margin-top: 5px; color: var(--accent-color); }
.benefits h2 { margin-bottom: 8px; font-family: var(--body-font); font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.benefits p { color: var(--muted); font-size: 14px; }
/* SERVICES */
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.section-heading > p { color: var(--muted); }
.services-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px #4c203e0c; }
.service-card > .icon { margin-bottom: 25px; color: var(--accent-color); }
.service-card h3 { margin-bottom: 12px; font-weight: 500; }
.service-card p { margin-bottom: 26px; color: var(--muted); }
.service-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.service-bottom strong { color: var(--primary-color); font-size: 20px; font-weight: 500; }
.service-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-color); font-size: 14px; }
.full-pricelist { margin-top: 30px; }
.full-pricelist > summary { width: fit-content; margin-inline: auto; list-style: none; }
.full-pricelist > summary::-webkit-details-marker { display: none; }
.catalog-content { padding: 24px; text-align: left; }
.catalog-content h3 { margin-bottom: 8px; font-family: var(--display-font); font-size: 30px; font-weight: 400; }
.catalog-content > p { color: var(--muted); }
.search-label { display: block; margin: 20px 0 6px; }
#service-search { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-color); background: #fff; }
.search-status { margin-block: 8px; font-size: 14px; }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.price-table th, .price-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.price-table th:last-child, .price-table td:last-child { width: 95px; padding-left: 10px; text-align: right; }
.price-table th { color: var(--muted); font-size: 14px; font-weight: 400; }
.price-table td:last-child { color: var(--primary-color); }
.catalog-contact { margin-top: 24px; }
/* ABOUT */
.about { background: var(--secondary-color); }
.about-grid { display: grid; gap: 30px; align-items: center; }
.about-copy { order: 2; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p:not(.eyebrow) { max-width: 465px; margin-bottom: 20px; color: var(--muted); }
.about-photo img { width: 100%; height: 400px; object-fit: cover; object-position: center 44%; border-radius: 160px 160px 4px 4px; }
.about-photo figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
/* REVIEWS */
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; }
.review-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); scroll-snap-align: start; }
.review-card blockquote { margin: 20px 0 25px; font-size: 16px; overflow-wrap: anywhere; }
.review-author { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 12px; margin-top: auto; font-size: 14px; font-weight: 600; }
.review-author time { color: var(--muted); font-size: 12px; font-weight: 400; }
.swipe-hint { margin-top: 8px; color: var(--muted); font-size: 13px; }
/* CONTACTS */
.contacts { border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 35px; }
.contacts h2 { margin-bottom: 30px; }
address { font-style: normal; }
.contact-row { display: flex; gap: 20px; margin-bottom: 20px; }
.contact-row .icon { color: var(--accent-color); }
.contact-row p { color: var(--muted); }
.contact-row strong { color: var(--text-color); font-weight: 400; }
.contact-phone { display: inline-flex; min-height: 44px; margin-bottom: 20px; font-size: clamp(22px, 3vw, 28px); text-decoration: none; }
.social-links { display: flex; gap: 22px; margin-top: 18px; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.map-card { position: relative; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--secondary-color); }
.map-placeholder { display: grid; justify-items: center; align-content: center; min-height: 335px; gap: 18px; padding: 24px; text-align: center; }
.map-placeholder[hidden] { display: none; }
.map-placeholder .icon { width: 48px; height: 48px; color: var(--primary-color); }
.map-placeholder strong { font-weight: 400; }
.map-link { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; min-height: 55px; padding: 10px; background: var(--card-bg); border-top: 1px solid var(--line); font-size: 14px; }
.map-card iframe { display: block; width: 100%; height: 390px; border: 0; padding-bottom: 55px; }
/* FOOTER */
.footer { padding-top: 42px; color: #fff5ef; background: var(--primary-color); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 35px; }
.footer .brand { color: #fff5ef; }
.footer-top > p { font-family: var(--display-font); font-style: italic; font-size: 24px; line-height: 1.25; }
.footer-top > a:last-child { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; min-height: 80px; padding-block: 20px; border-top: 1px solid #986c89; font-size: 13px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
/* DIALOG AND PRIVACY */
dialog { position: fixed; width: min(820px, calc(100% - 24px)); max-height: 88dvh; padding: 0; color: var(--text-color); background: var(--bg-color); border: 1px solid var(--line); border-radius: var(--radius); }
dialog::backdrop { background: #27111fbb; }
.dialog-toolbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; background: var(--primary-color); color: #fff; font-size: 14px; }
.dialog-close { min-height: 44px; padding: 5px 10px; color: #fff; background: transparent; border: 1px solid #bb96b0; border-radius: 4px; }
.privacy-page main { max-width: 800px; }
.privacy-page h1 { margin-block: 50px 30px; font-size: clamp(27px, 5vw, 42px); overflow-wrap: anywhere; }
.privacy-page p { margin-bottom: 24px; }
/* RESPONSIVE LAYOUT */
@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; padding-block: 14px; }
  .navigation { order: 4; flex-basis: 100%; justify-content: center; }
  .js .menu-toggle { display: block; }
  .js .navigation { display: none; }
  .js .navigation.is-open { display: flex; }
}
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-image { height: 520px; }
  .hero { padding-block: 50px; }
  .hero-seal { right: -12px; bottom: 80px; width: 130px; height: 130px; font-size: 20px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 60px; }
  .about-copy { order: 0; }
  .about-photo img { height: 500px; }
  .reviews-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding: 0; }
  .swipe-hint { display: none; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map-card { min-height: 450px; }
  .map-placeholder { min-height: 395px; }
  .map-card iframe { height: 450px; }
  .header-phone { font-size: 16px; }
  .header-phone span { display: block; color: var(--muted); font-size: 12px; }
}
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { gap: 25px; min-height: 96px; }
  .header-cta { display: inline-flex; }
  .brand { font-size: 48px; }
  .navigation { gap: 16px; margin-left: auto; }
  .header-phone { margin: 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 65px; }
  .hero-image { height: 575px; }
  .hero-visual { border-radius: 240px 240px 0 0; }
  .hero-image { border-radius: 230px 230px 0 0; }
  .hero-copy { padding-bottom: 20px; }
  .hero-rating { margin-top: 40px; }
  .benefits-grid, .services-grid, .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits-grid { gap: 40px; }
  .benefits { padding-block: 40px; }
  .contact-grid { gap: 80px; }
}
@media (min-width: 1440px) {
  .hero { padding-block: 60px; }
}
/* MOTION */
@keyframes enter { 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; }
}
