/*
  ООО «Ремонт Электродвигателей»
  Основные цвета и размеры собраны здесь — меняйте значения переменных,
  чтобы быстро обновить оформление всего сайта.
*/
:root {
  --blue-950: #072b4d;
  --blue-900: #07365e;
  --blue-800: #084b82;
  --blue-700: #0b5fae;
  --blue-600: #0877cc;
  --cyan-400: #55c4f3;
  --cyan-100: #dff5ff;
  --ink: #112b3f;
  --muted: #587083;
  --line: #dce7ef;
  --surface: #f5f8fb;
  --white: #ffffff;
  --shadow-sm: 0 14px 40px rgba(13, 66, 104, 0.08);
  --shadow-lg: 0 28px 80px rgba(9, 55, 89, 0.14);
  --radius: 20px;
  --container: 1240px;
  --header: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -0.035em; }
p:last-child { margin-bottom: 0; }
::selection { color: var(--white); background: var(--blue-700); }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -100px; padding: 12px 18px; color: var(--white); background: var(--blue-900); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(207, 222, 233, 0.82);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 35px rgba(9, 55, 89, 0.08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-700); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--cyan-400); border-radius: 999px; }
.brand-mark::before { width: 28px; height: 4px; }
.brand-mark::after { width: 4px; height: 28px; }
.brand-mark span { z-index: 1; width: 18px; height: 18px; border: 4px solid var(--white); border-radius: 50%; background: var(--blue-700); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 3px; color: var(--blue-700); font-size: 11px; font-weight: 800; letter-spacing: .095em; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.6vw, 25px); margin-left: auto; }
.site-nav a { position: relative; padding: 26px 0; color: #29485e; font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 18px; height: 2px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav a:hover, .site-nav a.active { color: var(--blue-700); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.header-phone { padding-left: 22px; border-left: 1px solid var(--line); color: var(--blue-900); font-size: 13px; font-weight: 800; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; margin-left: auto; border: 0; border-radius: 10px; background: var(--surface); cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: min(840px, 100svh); padding-top: var(--header); display: grid; align-items: center; overflow: hidden; background: #eef3f6; }
.hero-image, .hero-overlay, .hero-grid { position: absolute; inset: var(--header) 0 0; width: 100%; height: calc(100% - var(--header)); }
.hero-image { object-fit: cover; object-position: center; }
.hero-overlay { background: linear-gradient(90deg, rgba(247, 250, 252, .99) 0%, rgba(247, 250, 252, .96) 33%, rgba(247, 250, 252, .44) 56%, rgba(247, 250, 252, .02) 78%); }
.hero-grid { opacity: .28; background-image: linear-gradient(rgba(23, 91, 135, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 91, 135, .09) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, #000 0, transparent 58%); }
.hero-content { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 92px; }
.hero-copy { width: min(680px, 58%); }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; color: var(--blue-700); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 32px; height: 2px; background: var(--cyan-400); }
.eyebrow-light { color: #9ddcff; }
.hero h1 { margin-bottom: 26px; color: var(--blue-950); font-size: clamp(42px, 5.2vw, 72px); font-weight: 800; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue-700); font-style: normal; }
.hero-lead { max-width: 560px; margin-bottom: 32px; color: #36576d; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 800; line-height: 1.2; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue-700); box-shadow: 0 12px 26px rgba(11, 95, 174, .2); }
.button-primary:hover { background: var(--blue-800); box-shadow: 0 16px 34px rgba(11, 95, 174, .28); }
.button-secondary { color: var(--blue-900); background: rgba(255, 255, 255, .82); border-color: #bfd1de; backdrop-filter: blur(10px); }
.button-secondary:hover { background: var(--white); }
.button-white { color: var(--blue-900); background: var(--white); }
.hero-contacts { display: grid; grid-template-columns: 1.45fr 1.05fr 1fr; gap: 0; width: min(760px, 100%); padding-top: 24px; border-top: 1px solid rgba(113, 145, 166, .35); }
.contact-group { min-width: 0; padding: 0 22px; border-right: 1px solid rgba(113, 145, 166, .28); }
.contact-group:first-child { padding-left: 0; }
.contact-group:last-child { padding-right: 0; border-right: 0; }
.contact-label { display: block; margin-bottom: 7px; color: #6c8495; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-group a, .contact-group strong { display: block; color: var(--blue-950); font-size: 14px; font-weight: 750; line-height: 1.55; }
.contact-group div { display: flex; flex-wrap: wrap; column-gap: 15px; }
.contact-group small { display: block; color: var(--muted); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-hint span { width: 18px; height: 30px; border: 1px solid #8ba2b2; border-radius: 10px; }
.scroll-hint span::after { content: ""; display: block; width: 3px; height: 7px; margin: 5px auto; border-radius: 3px; background: var(--blue-600); animation: scroll-dot 1.7s infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading h2, .requisites-intro h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 54px); font-weight: 800; }
.section-heading > p:last-child, .split-heading > p { color: var(--muted); font-size: 18px; }
.split-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .65fr); align-items: end; gap: 60px; }
.split-heading > p { margin-bottom: 5px; }

.section-about { background: var(--white); }
.section-about::before { content: ""; position: absolute; right: 0; top: 120px; width: 26%; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.about-layout { display: grid; grid-template-columns: .78fr 1.4fr; gap: 24px; align-items: stretch; }
.about-feature { display: flex; flex-direction: column; padding: 36px; color: var(--white); background: linear-gradient(155deg, var(--blue-800), var(--blue-950)); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-feature .metric { display: flex; align-items: end; gap: 12px; padding-bottom: 28px; margin-bottom: auto; }
.about-feature .metric strong { font-size: 58px; line-height: 1; letter-spacing: -.06em; }
.about-feature .metric span { max-width: 62px; padding-bottom: 5px; color: #a9d8f2; font-size: 12px; line-height: 1.2; text-transform: uppercase; }
.about-feature h3 { margin: 48px 0 18px; font-size: 27px; }
.about-feature p { color: #d7e7f1; }
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { position: relative; min-height: 245px; padding: 30px; overflow: hidden; background: var(--surface); border: 1px solid #e6eef4; border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card-index { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 42px; color: var(--blue-700); background: var(--cyan-100); border-radius: 50%; font-size: 12px; font-weight: 850; }
.info-card h3 { margin-bottom: 12px; font-size: 22px; }
.info-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.registration-panel { margin-top: 24px; display: grid; grid-template-columns: .72fr 1.5fr; gap: 42px; padding: 44px; color: var(--white); background: var(--blue-950); border-radius: var(--radius); }
.registration-title h3 { margin-bottom: 14px; font-size: 30px; }
.registration-title > p:last-child { color: #a9c8dc; }
.registration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 30px; margin: 0; }
.registration-grid div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.registration-grid dt { color: #8fc5e5; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.registration-grid dd { margin: 5px 0 0; font-size: 14px; font-weight: 650; line-height: 1.45; }

.section-services { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { display: flex; flex-direction: column; min-height: 320px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-card > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 42px; color: var(--blue-700); background: var(--cyan-100); border-radius: 9px; font-size: 12px; font-weight: 850; }
.service-card h3 { margin-bottom: 15px; font-size: 22px; }
.service-card p { margin-bottom: 25px; color: var(--muted); font-size: 15px; }
.service-card a { margin-top: auto; color: var(--blue-700); font-size: 13px; font-weight: 850; }
.service-card a:hover { color: var(--blue-900); }
.local-seo-note { display: grid; grid-template-columns: .62fr 1.6fr; gap: 45px; align-items: center; margin-top: 22px; padding: 28px 32px; color: var(--white); background: var(--blue-950); border-radius: var(--radius); }
.local-seo-note strong { font-size: 20px; line-height: 1.3; }
.local-seo-note p { margin: 0; color: #c9deeb; }
.local-seo-note a { color: #8bd9ff; font-weight: 750; }

.section-price { background: var(--surface); }
.price-shell { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.price-caption { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; background: #edf5fa; border-bottom: 1px solid var(--line); }
.price-caption strong { font-size: 15px; }
.price-caption span { color: var(--muted); font-size: 13px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 17px 14px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-table th:last-child, .price-table td:last-child { border-right: 0; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { min-width: 180px; color: var(--white); background: var(--blue-900); font-size: 12px; line-height: 1.35; letter-spacing: .015em; }
.price-table th:first-child { width: 160px; background: var(--blue-950); }
.price-table td:first-child { color: var(--blue-900); background: #f2f7fa; font-weight: 850; }
.price-table td { color: #31556e; font-size: 13px; }
.price-table tbody tr:hover td { background: #f4fbff; }
.price-value { display: inline-block; min-width: 110px; padding: 4px 8px; border-radius: 6px; cursor: text; transition: background .2s, color .2s; }
.price-value:hover { color: var(--blue-700); background: var(--cyan-100); }
.price-value:focus { color: var(--blue-900); background: #fff4c7; outline: 2px solid #f2c94c; }
.price-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px 26px; background: #eaf7ff; border-top: 1px solid #cbeafb; }
.price-note > span { display: grid; place-items: center; width: 27px; height: 27px; color: var(--blue-700); border: 1px solid #8dcee9; border-radius: 50%; font-weight: 850; }
.price-note p { margin: 0; color: #3b6178; font-size: 13px; }
.price-note a { color: var(--blue-700); font-size: 13px; font-weight: 850; }

.section-requisites { overflow: hidden; color: var(--white); background: var(--blue-800); }
.section-requisites::before, .section-requisites::after { content: ""; position: absolute; border: 1px solid rgba(117, 202, 246, .17); border-radius: 50%; }
.section-requisites::before { width: 520px; height: 520px; right: -170px; top: -280px; }
.section-requisites::after { width: 330px; height: 330px; right: -90px; top: -185px; }
.requisites-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .76fr 1.3fr; gap: 90px; }
.requisites-intro > p:not(.eyebrow) { margin-bottom: 30px; color: #cae3f3; font-size: 18px; }
.requisites-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 38px; }
.requisites-list div { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.requisites-list div:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.requisites-list dt { margin-bottom: 7px; color: #91cee9; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.requisites-list dd { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.55; }
.requisites-list dd span { color: #afd0e2; font-weight: 500; }
.requisites-list a:hover { color: #aee7ff; }

.section-types { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.equipment-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 11px 32px rgba(10, 61, 96, .07); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.equipment-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(10, 61, 96, .13); }
.equipment-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eaf1f5; }
.equipment-image::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(7, 43, 77, .08)); }
.equipment-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.equipment-card:hover img { transform: scale(1.045); }
.equipment-number { position: absolute; z-index: 1; left: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: rgba(7, 43, 77, .82); border-radius: 8px; font-size: 11px; font-weight: 850; backdrop-filter: blur(8px); }
.equipment-copy { min-height: 112px; padding: 18px 19px 21px; }
.equipment-copy small { display: block; margin-bottom: 6px; color: var(--blue-600); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.equipment-copy h3 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.02em; }
.image-credits { margin: 24px 0 0; color: #7b8e9c; font-size: 12px; }
.image-credits a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

.section-route { background: var(--surface); }
.map-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.map-card iframe { display: block; width: 100%; height: 480px; border: 0; filter: saturate(.86) contrast(1.02); }
.map-info { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 30px; }
.map-info > div { display: flex; align-items: center; gap: 17px; }
.map-info p { margin: 0; }
.map-info small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.map-info strong { font-size: 15px; line-height: 1.45; }
.map-pin { position: relative; width: 42px; height: 42px; flex: 0 0 42px; background: var(--cyan-100); border-radius: 50%; }
.map-pin::before { content: ""; position: absolute; width: 12px; height: 12px; left: 15px; top: 11px; background: var(--blue-700); border: 4px solid var(--white); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 8px rgba(7, 43, 77, .22); }

.section-faq { background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.faq-layout .section-heading { position: sticky; top: calc(var(--header) + 30px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(10, 61, 96, .05); }
.faq-item summary { position: relative; padding: 22px 58px 22px 24px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 15px; height: 2px; background: var(--blue-700); transition: transform .22s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p { margin: 0; padding: 0 58px 22px 24px; color: var(--muted); }

.section-reviews { background: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review-card { min-height: 285px; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid #e5edf3; border-radius: var(--radius); }
.review-mark { color: var(--cyan-400); font-family: Georgia, serif; font-size: 64px; line-height: .65; }
.review-card blockquote { margin: 28px 0 30px; color: #35566d; font-size: 15px; line-height: 1.65; }
.review-author { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.review-author span { display: grid; place-items: center; width: 36px; height: 36px; color: var(--blue-800); background: var(--cyan-100); border-radius: 50%; font-size: 12px; font-weight: 850; }
.review-author strong { font-size: 14px; }

.contact-strip { position: relative; overflow: hidden; padding: 55px 0; color: var(--white); background: linear-gradient(120deg, var(--blue-700), #087cc2); }
.contact-strip::after { content: ""; position: absolute; width: 360px; height: 360px; right: 7%; top: -210px; border: 70px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.contact-strip-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.contact-strip p { margin-bottom: 5px; color: #cdeaff; font-size: 14px; font-weight: 700; }
.contact-strip h2 { margin: 0; font-size: clamp(30px, 3vw, 43px); }
.contact-strip-actions { display: flex; align-items: center; gap: 28px; }
.contact-strip-actions > a:first-child { font-size: 21px; font-weight: 850; white-space: nowrap; }

.site-footer { color: #d7e5ef; background: #061f34; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr .85fr; gap: 55px; padding-top: 66px; padding-bottom: 54px; }
.brand-footer { color: var(--white); }
.brand-footer .brand-copy small { color: #9ddcff; }
.footer-brand p { margin-top: 22px; color: #86a3b8; font-size: 14px; }
.footer-grid h3 { margin: 7px 0 18px; color: #79c9f3; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) > a { display: block; margin-bottom: 6px; font-size: 14px; }
.footer-grid p { color: #aec0cd; font-size: 14px; }
.footer-grid p span { color: #7f98aa; }
.footer-grid a:hover { color: var(--cyan-400); }
.footer-route { margin-top: 18px; color: #7fcff7 !important; font-weight: 750; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 24px; color: #6e889a; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .header-phone { display: none; }
  .site-nav { gap: 18px; }
  .hero-copy { width: 64%; }
  .registration-panel { grid-template-columns: 1fr; }
  .registration-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  :root { --header: 68px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding: 86px 0; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header) 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; margin: 0; overflow: hidden; background: rgba(255, 255, 255, .99); box-shadow: 0 20px 35px rgba(7, 43, 77, .12); opacity: 0; transition: max-height .35s var(--ease), opacity .25s; }
  .site-nav.is-open { max-height: calc(100vh - var(--header)); opacity: 1; }
  .site-nav a { padding: 15px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; padding-top: var(--header); align-items: start; }
  .hero-image, .hero-overlay, .hero-grid { inset: var(--header) 0 auto; height: 48vw; min-height: 300px; }
  .hero-image { object-position: 64% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(247, 250, 252, .97) 0%, rgba(247, 250, 252, .57) 47%, rgba(247, 250, 252, .08) 80%); }
  .hero-content { padding-top: 46px; padding-bottom: 54px; }
  .hero-copy { width: 100%; padding-top: 0; }
  .hero h1 { max-width: 640px; }
  .hero-lead { max-width: 500px; }
  .hero-contacts { margin-top: 270px; width: 100%; padding: 22px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
  .scroll-hint { display: none; }
  .split-heading { grid-template-columns: 1fr; gap: 8px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-feature { min-height: 420px; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-layout .section-heading { position: static; }
  .requisites-grid { grid-template-columns: 1fr; gap: 52px; }
  .map-info { align-items: stretch; flex-direction: column; }
  .map-info .button { align-self: flex-start; }
  .contact-strip-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 9px; }
  .hero { background: var(--surface); }
  .hero-image, .hero-overlay, .hero-grid { top: var(--header); height: 260px; min-height: 0; }
  .hero-image { object-position: 64% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(247, 250, 252, .08), rgba(247, 250, 252, .1) 64%, rgba(247, 250, 252, 1)); }
  .hero-grid { display: none; }
  .hero-content { padding-top: 225px; padding-bottom: 38px; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(29px, 8.4vw, 35px); letter-spacing: -.06em; }
  .hero-lead { margin-bottom: 24px; font-size: 18px; }
  .hero-actions { margin-bottom: 30px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-contacts { grid-template-columns: 1fr; gap: 17px; margin-top: 0; padding: 21px; }
  .contact-group { padding: 0 0 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-group:last-child { padding-bottom: 0; border-bottom: 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .requisites-intro h2 { font-size: 34px; }
  .section-heading > p:last-child, .split-heading > p { font-size: 16px; }
  .about-cards { grid-template-columns: 1fr; }
  .about-feature { min-height: 0; padding: 28px; }
  .about-feature .metric { margin-bottom: 40px; }
  .about-feature h3 { margin-top: 0; }
  .info-card { min-height: 0; padding: 25px; }
  .card-index { margin-bottom: 24px; }
  .registration-panel { padding: 28px; }
  .registration-grid { grid-template-columns: 1fr; gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 25px; }
  .service-card > span { margin-bottom: 28px; }
  .local-seo-note { grid-template-columns: 1fr; gap: 12px; padding: 25px; }
  .price-caption { align-items: flex-start; flex-direction: column; gap: 4px; padding: 18px; }
  .table-scroll { overflow: visible; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table { table-layout: auto; }
  .price-table thead { display: none; }
  .price-table tbody { padding: 12px; }
  .price-table tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
  .price-table tr:last-child { margin-bottom: 0; }
  .price-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; text-align: right; border-right: 0; border-bottom: 1px solid var(--line); }
  .price-table td::before { content: attr(data-label); max-width: 55%; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.25; text-align: left; }
  .price-table td:first-child { background: var(--blue-950); color: var(--white); font-size: 18px; }
  .price-table td:first-child::before { color: #a9d8f2; }
  .price-table td:last-child { border-bottom: 0; }
  .price-value { min-width: 0; padding: 3px 4px; }
  .price-note { grid-template-columns: auto 1fr; padding: 18px; }
  .price-note a { grid-column: 2; }
  .requisites-list { grid-template-columns: 1fr; }
  .requisites-list div:nth-last-child(-n+2) { border-bottom: 0; }
  .requisites-list div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .gallery-grid, .reviews-grid { grid-template-columns: 1fr; }
  .equipment-copy { min-height: 0; }
  .map-card iframe { height: 370px; }
  .map-info { padding: 22px; }
  .map-info strong br { display: none; }
  .map-info .button { width: 100%; }
  .faq-item summary { padding: 19px 52px 19px 20px; font-size: 16px; }
  .faq-item summary::before, .faq-item summary::after { right: 20px; }
  .faq-item p { padding: 0 20px 20px; }
  .contact-strip-actions { width: 100%; align-items: stretch; flex-direction: column; gap: 14px; }
  .contact-strip-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
