/* BASE */
:root {
  --primary-color: #c3a4ee;
  --secondary-color: #242527;
  --accent-color: #c3a4ee;
  --text-color: #f6f4f7;
  --bg-color: #171819;
  --card-bg: #222325;
  --muted: #bbb9c0;
  --line: #414145;
  --container: 1200px;
  --radius: 12px;
  --space: 40px;
  --font: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text-color); background: var(--bg-color); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: 32px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
em { color: var(--primary-color); font-style: normal; }
p { color: var(--muted); }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space); }
.eyebrow { margin-bottom: 20px; font-size: 14px; letter-spacing: .12em; font-weight: 600; color: var(--primary-color); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 1px solid var(--primary-color); border-radius: 6px; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; color: #19151f; background: var(--primary-color); transition: background .3s ease, transform .3s ease; }
.button:hover { background: #d4bdf3; transform: translateY(-2px); }
.button-outline { color: var(--text-color); border-color: #737079; background: transparent; }
.button-outline:hover { background: #343039; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-color); text-decoration: underline; text-underline-offset: 5px; }
a:hover { color: var(--primary-color); }
.button:hover { color: #19151f; }
.button-outline:hover { color: var(--text-color); }
:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px; background: var(--bg-color); }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--bg-color); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { position: relative; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.logo span { margin-left: 5px; color: var(--primary-color); }
.logo small { display: block; margin-top: 8px; font-size: 10px; line-height: 1.3; font-weight: 400; letter-spacing: .15em; }
.header nav { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; order: 4; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.header-phone { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.header-cta { display: none; }
.menu-toggle { display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; }
.menu-toggle[hidden] { display: none; }
.menu-toggle span:not(.sr-only) { height: 2px; background: var(--text-color); }
.js .header nav { display: none; }
.js .header nav.is-open { display: flex; flex-direction: column; }
/* HERO SECTION */
.hero { overflow: hidden; }
.hero-grid { display: grid; gap: 32px; padding-top: 36px; }
.hero-copy { animation: appear .7s ease both; }
.tiny-star { margin-right: 8px; }
.hero h1 { margin-bottom: 24px; font-weight: 700; letter-spacing: -.05em; }
.hero-description { max-width: 500px; margin-bottom: 30px; }
.desktop-break { display: none; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; margin-top: 32px; font-size: 14px; }
.hero-proof strong { font-size: 20px; }
.hero-proof > span { color: var(--muted); }
.stars { color: var(--primary-color); font-size: 15px; letter-spacing: .1em; white-space: nowrap; }
.hero-location { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; }
.hero-location > span { font-size: 32px; color: var(--primary-color); }
.hero-location p { color: var(--text-color); }
.hero-location p span { color: var(--muted); }
.hero-visual { position: relative; height: 400px; border-radius: 100px 10px 0 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; border-radius: inherit; }
.photo-label { position: absolute; bottom: 24px; left: 20px; padding: 14px 18px; border: 1px solid #ffffff44; border-radius: 7px; font-size: 16px; line-height: 1.4; color: #fff; background: #171819e8; }
.hero-seal { position: absolute; top: -30px; right: -4px; font-size: 90px; color: var(--primary-color); line-height: 1; }
.hero-ribbon { display: flex; justify-content: space-around; gap: 24px; min-width: 100%; width: max-content; margin-top: 32px; padding: 17px 24px; border-block: 1px solid var(--line); color: var(--primary-color); font-size: 14px; letter-spacing: .12em; }
.hero-ribbon i { font-style: normal; }
/* BENEFITS */
.benefits-grid { display: grid; gap: 28px; }
.benefits article { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.line-icon { display: block; margin-bottom: 15px; color: var(--primary-color); font-size: 36px; line-height: 1; }
.benefits h2 { margin-bottom: 12px; font-size: 22px; }
/* SERVICES */
.services { background: #1c1d1f; }
.section-heading { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.section-heading > p { max-width: 300px; }
.service-grid { display: grid; gap: 22px; }
.service-card { overflow: hidden; 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(-5px); box-shadow: 0 12px 28px #0005; }
.service-card > img, .jewel { width: 100%; height: 230px; object-fit: cover; object-position: center 43%; }
.service-copy { padding: 24px; }
.service-copy h3 { margin-bottom: 14px; }
.service-copy p { min-height: 104px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.card-bottom strong { font-size: 22px; white-space: nowrap; }
.card-bottom a { font-size: 14px; }
.jewel { display: grid; place-items: center; background: #29262f; }
.jewel span { width: 110px; height: 110px; border: 13px solid #c4bfd0; border-top-color: transparent; border-radius: 50%; transform: rotate(-30deg); box-shadow: 3px 6px 12px #0005; }
.all-services { display: grid; justify-items: center; gap: 16px; margin-top: 36px; text-align: center; }
.all-services p { font-size: 14px; }
.price-fallback { margin-top: 24px; }
.price-fallback > summary { cursor: pointer; padding: 12px 0; color: var(--primary-color); }
.js .price-fallback { display: none; }
.price-row { display: grid; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-row p { color: var(--text-color); }
.price-row strong { color: var(--primary-color); white-space: nowrap; }
.price-list { margin-block: 20px 28px; }
/* ABOUT */
.about-grid { display: flex; flex-direction: column-reverse; gap: 32px; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { margin-bottom: 20px; }
.about-note { display: flex; align-items: center; gap: 18px; margin: 28px 0; padding-block: 18px; border-block: 1px solid var(--line); }
.about-note > span { font-size: 44px; color: var(--primary-color); }
.about-note p { color: var(--text-color); }
.about-photo { position: relative; }
.about-photo img { max-height: 540px; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo figcaption { position: absolute; bottom: 22px; left: 20px; right: 20px; padding: 10px 14px; font-size: 14px; background: #171819e8; border-radius: 6px; }
/* REVIEWS */
.reviews { background: #222325; }
.rating { display: flex; align-items: center; gap: 18px; }
.rating > strong { font-size: 48px; letter-spacing: -.05em; line-height: 1; }
.rating p { font-size: 14px; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 20px; align-items: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 3px 20px; }
.review { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); scroll-snap-align: start; background: var(--bg-color); }
.review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--primary-color); background: #38313f; }
.review h3 { font-size: 16px; letter-spacing: 0; }
.review time { font-size: 13px; color: var(--muted); }
.review-top .stars { font-size: 12px; }
.review-text { color: #d6d4d9; overflow-wrap: anywhere; }
.review summary { padding: 8px 0; cursor: pointer; color: var(--primary-color); }
.review details[open] summary { margin-bottom: 12px; }
.mobile-hint { margin-bottom: 14px; font-size: 14px; }
.review-link { margin-top: 20px; text-align: center; }
/* CONTACTS */
.contacts-grid { display: grid; gap: 36px; }
.contact-intro { margin-top: 20px; }
.contact-phone { display: inline-block; margin-block: 22px; font-size: clamp(22px, 5vw, 36px); font-weight: 600; letter-spacing: -.04em; }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.address-card { padding: 28px; border: 1px solid #605269; border-radius: var(--radius); background: #27232c; }
.address-symbol { display: block; margin-bottom: 14px; font-size: 44px; color: var(--primary-color); line-height: 1; }
.address-card h3 { margin-bottom: 20px; font-size: 25px; }
address { font-style: normal; }
.address-card p { margin-block: 16px 24px; }
/* FOOTER */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; }
.footer a:not(.logo) { min-height: 44px; display: inline-flex; align-items: center; }
.footer .logo { flex-basis: 100%; }
/* DIALOG AND PRIVACY */
dialog { position: fixed; width: min(840px, calc(100% - 24px)); max-height: 85dvh; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-color); background: var(--bg-color); }
dialog::backdrop { background: #000b; }
.dialog-head { position: sticky; top: -24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-block: 8px; color: var(--primary-color); font-size: 14px; background: var(--bg-color); }
.dialog-close { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-color); background: var(--card-bg); font-size: 28px; }
#price-content > p { margin-top: 16px; }
.privacy { max-width: 800px; }
.privacy h1 { margin-top: 40px; overflow-wrap: anywhere; }
.privacy p { margin-block: 24px; }
@keyframes appear { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
}
/* TABLET */
@media (min-width: 768px) {
  :root { --space: 64px; }
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  .header-phone { margin-left: auto; }
  .header-cta { display: inline-flex; min-height: 44px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px; padding-top: 48px; }
  .hero-visual { height: 570px; }
  .hero-copy .actions { flex-direction: column; align-items: flex-start; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: end; gap: 32px; }
  .section-heading h2 { max-width: 600px; }
  .price-row { grid-template-columns: 1fr auto; gap: 24px; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .footer .logo { flex-basis: auto; margin-right: auto; }
}
/* DESKTOP */
@media (min-width: 1024px) {
  :root { --space: 80px; }
  .header { position: sticky; top: 0; }
  .header-inner { flex-wrap: nowrap; gap: 24px; }
  .header nav, .js .header nav { display: flex; flex-direction: row; width: auto; margin-left: auto; order: 0; gap: 20px; }
  .js .header nav.is-open { flex-direction: row; }
  .menu-toggle { display: none; }
  .header-phone { margin: 0; white-space: nowrap; }
  .button-small { padding: 12px 18px; }
  .logo { font-size: 29px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 54px; padding-top: 50px; }
  .hero h1 { font-size: 62px; }
  .hero-visual { height: 590px; border-top-left-radius: 160px; }
  .hero-seal { right: -25px; top: 20px; font-size: 114px; }
  .hero-copy .actions { flex-direction: row; }
  .hero-proof { margin-top: 40px; }
  .hero-ribbon { width: 100%; margin-top: 48px; padding-block: 22px; }
  .desktop-break { display: initial; }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 42px; }
  .benefits article { border-bottom: 0; border-right: 1px solid var(--line); padding-right: 30px; padding-bottom: 0; }
  .benefits article:last-child { border: 0; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-copy { padding: 26px; }
  .service-copy h3 { min-height: 50px; }
  .service-copy p { min-height: 104px; }
  .about-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 100px; }
  .about-copy h2 { font-size: 44px; }
  .reviews-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .mobile-hint { display: none; }
  .contacts-grid { gap: 100px; }
  .address-card { padding: 40px; }
}
@media (min-width: 1440px) {
  .hero h1 { font-size: 68px; }
}
/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .button, .service-card { transition: none; }
}
