/* THEME AND BASE */
:root {
  --primary-color: #1554f0;
  --secondary-color: #a9c1ff;
  --accent-color: #c4f17a;
  --text-color: #f5f5f7;
  --bg-color: #111214;
  --card-bg: #1a1c20;
  --muted-color: #b4b6be;
  --border-color: #35383e;
  --container: 1200px;
  --radius: 8px;
  --section-space: 44px;
  --body-font: Arial, sans-serif;
  --heading-font: Impact, 'Arial Narrow', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg-color); color: var(--text-color); font: 16px/1.6 var(--body-font); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 5px; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading-font); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
h2 { font-family: var(--body-font); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: 32px; }
h3 { font-size: 19px; line-height: 1.35; }
p { color: var(--muted-color); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; flex-shrink: 0; }
.eyebrow { margin-bottom: 22px; color: var(--secondary-color); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; background: var(--primary-color); color: white; font-weight: 700; text-align: center; transition: background .3s ease, transform .3s ease; }
.button:hover { background: #1045c7; transform: translateY(-2px); }
.button-outline { border-color: #747982; background: transparent; }
.button-outline:hover { background: #2c3037; }
.button-group { display: flex; flex-wrap: wrap; gap: 12px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 12px; background: white; color: black; }
.skip-link:focus { top: 10px; }
/* HEADER */
.header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border-color); background: #111214; }
.header-inner { display: flex; min-height: 86px; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; flex-direction: column; font: 400 29px/1 var(--heading-font); letter-spacing: .03em; }
.logo span { margin-top: 5px; font: 10px/1.3 var(--body-font); letter-spacing: .3em; }
.header-phone { margin-left: auto; font-size: 14px; font-weight: 700; }
.header-cta { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border-color); background: transparent; color: white; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }
.js .menu-toggle { display: block; }
nav { display: flex; width: 100%; flex-wrap: wrap; gap: 4px 16px; }
nav a { display: flex; min-height: 44px; align-items: center; color: #c5c7cd; font-size: 14px; }
nav a:hover { color: white; }
.js nav { display: none; }
.js nav.open { display: flex; }
/* HERO SECTION */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #111214; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-position: 62% center; opacity: .47; }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg, #111214f0, #11121465), linear-gradient(0deg, #111214, transparent 50%); }
.hero-content { padding-top: 55px; padding-bottom: 44px; animation: appear .7s ease both; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #d1dbf4; }
.line { width: 27px; height: 2px; background: var(--primary-color); }
h1 { font-size: clamp(34px, 8.8vw, 76px); line-height: 1.05; }
h1 span { color: var(--secondary-color); }
.hero-description { margin-block: 25px; color: #e0e1e4; font-size: 17px; }
.hero .button-group { align-items: stretch; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 34px; font-size: 14px; }
.hero-rating strong { font-size: 21px; }
.hero-rating strong span { margin-left: 7px; color: var(--accent-color); font-size: 16px; letter-spacing: 2px; }
.hero-rating > span { color: #d4d6dc; }
.hero-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-block: 20px; border-top: 1px solid #ffffff30; font-size: 14px; }
.hero-bottom > span { display: flex; align-items: center; gap: 8px; }
.hero-bottom .icon { width: 20px; height: 20px; color: var(--secondary-color); }
.hero-bottom .hero-note { display: none; }
/* ADVANTAGES */
.advantages { padding-block: 30px; border-bottom: 1px solid var(--border-color); }
.advantages-grid { display: grid; gap: 26px; }
.advantages article { display: flex; align-items: flex-start; gap: 18px; }
.advantages .icon { color: var(--secondary-color); }
.advantages h2 { margin-bottom: 7px; font: 700 18px/1.3 var(--body-font); letter-spacing: normal; }
.advantages p { font-size: 15px; }
/* SERVICES */
.section-heading { display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.services-grid { display: grid; gap: 16px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid var(--border-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 12px 30px #0005; }
.service-card > .icon { width: 36px; height: 36px; margin-bottom: 24px; color: var(--secondary-color); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { margin-bottom: 28px; }
.service-bottom { display: flex; width: 100%; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.service-bottom strong { font-size: 24px; }
.service-bottom a { display: inline-flex; min-height: 44px; align-items: center; color: var(--secondary-color); font-size: 14px; font-weight: bold; }
.price-action { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.price-action p { font-size: 14px; }
/* PRICE MODAL */
dialog { width: min(760px, calc(100% - 24px)); max-height: 85dvh; padding: 24px; border: 1px solid #646972; border-radius: var(--radius); background: var(--bg-color); color: var(--text-color); }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 28px; }
.close-dialog { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border-color); background: var(--card-bg); color: white; font-size: 30px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-block: 15px; border-bottom: 1px solid var(--border-color); }
.price-row span { overflow-wrap: anywhere; }
.price-row strong { flex-shrink: 0; white-space: nowrap; }
.price-note { margin-block: 24px; }
/* ABOUT */
.about { background: #191b20; }
.about-grid { display: grid; gap: 36px; }
.about-copy { order: 2; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy > p:not(.eyebrow) { margin-bottom: 18px; }
.text-link { display: inline-block; min-height: 44px; margin-top: 12px; color: var(--secondary-color); border-bottom: 1px solid #789de2; }
.about-photo { position: relative; max-height: 470px; overflow: hidden; border-radius: var(--radius); }
.about-photo img { width: 100%; height: 100%; aspect-ratio: 1; object-position: center 60%; }
.photo-caption { position: absolute; right: 16px; bottom: 16px; left: 16px; width: fit-content; padding: 8px 12px; background: #111214ed; font-size: 12px; letter-spacing: .08em; }
/* REVIEWS */
.rating-link { display: flex; flex-direction: column; justify-content: center; }
.rating-link strong { font-size: 26px; }
.rating-link > span { color: var(--muted-color); font-size: 14px; }
.stars { color: var(--accent-color); letter-spacing: 2px; }
.reviews-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 92%; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.review-card { display: flex; min-width: 0; flex-direction: column; padding: 26px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--card-bg); scroll-snap-align: start; }
blockquote { margin: 22px 0 26px; overflow-wrap: anywhere; }
.review-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { display: grid; width: 42px; height: 42px; flex-shrink: 0; place-items: center; border-radius: 50%; background: #2c3344; color: var(--secondary-color); }
.review-person h3 { font-size: 15px; }
.review-person time { color: var(--muted-color); font-size: 13px; }
.swipe-hint { margin-top: 12px; font-size: 14px; text-align: center; }
/* CONTACTS */
.contacts { border-top: 1px solid var(--border-color); background: #191b20; }
.contacts-grid { display: grid; gap: 36px; }
.contacts h2 { margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon { color: var(--secondary-color); }
.contact-item h3 { margin-bottom: 4px; font-size: 18px; }
.contact-item p { font-size: 14px; }
.contact-phone { display: block; width: fit-content; margin-block: 30px 22px; font-size: clamp(24px, 6vw, 34px); font-weight: bold; }
.location-panel { position: relative; display: flex; min-height: 350px; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; padding: 28px; border: 1px solid #597bdb; border-radius: var(--radius); background: #153c98; }
.location-panel > .icon { width: 40px; height: 40px; margin-bottom: 25px; }
.location-panel h3 { position: relative; font-size: 30px; }
.location-panel p { position: relative; margin-block: 12px 25px; color: #d9e4ff; }
.location-word { position: absolute; top: 18px; left: 20px; color: #ffffff0a; font: 90px/1 var(--heading-font); }
.button-light { position: relative; background: white; color: #153c98; }
.button-light:hover { background: #e0e8ff; }
/* FOOTER */
.footer { padding-block: 34px 22px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.footer-top > div { display: flex; gap: 24px; }
.footer-top > div a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-color); color: var(--muted-color); font-size: 14px; }
.footer-bottom a { text-decoration: underline; }
/* RESPONSIVE AND MOTION */
@keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 768px) {
  :root { --section-space: 64px; }
  h2 { font-size: 42px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding-block: 80px 65px; }
  .hero-image { left: 36%; width: 64%; opacity: .8; object-position: 50% 45%; }
  .hero::after { background: linear-gradient(90deg, #111214 20%, #111214d9 43%, #11121400 80%), linear-gradient(0deg, #111214, transparent 45%); }
  .hero-description { font-size: 18px; }
  .hero .eyebrow { font-size: 14px; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-heading > p { max-width: 300px; }
  .price-action { flex-direction: row; justify-content: center; gap: 24px; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .about-copy { order: 0; }
  .about-photo { max-height: 600px; }
  .about-photo img { aspect-ratio: 4/5; }
  .reviews-grid { grid-auto-columns: 46%; }
  .contacts-grid { grid-template-columns: 1.1fr 1fr; }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  :root { --section-space: 80px; }
  .header-inner { gap: 24px; }
  .header-cta { display: inline-flex; padding-inline: 18px; font-size: 14px; }
  .js .menu-toggle { display: none; }
  nav, .js nav { display: flex; width: auto; margin-left: auto; gap: 20px; }
  .header-phone { margin-left: 0; }
  .hero-content { padding-block: 92px 72px; }
  .hero-bottom .hero-note { display: flex; margin-left: auto; color: #b4b6be; font-size: 12px; letter-spacing: .1em; }
  .advantages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .advantages { padding-block: 36px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .swipe-hint { display: none; }
  .location-panel { padding: 44px; }
}
@media (min-width: 1440px) {
  .hero-content { padding-block: 110px 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; transition: none; }
  .hero-content { animation: none; }
}
