:root {
  --bg: #050a12;
  --bg-soft: #08111e;
  --panel: #0a1422;
  --panel-hover: #0d192a;
  --line: rgba(215, 255, 113, .16);
  --line-bright: rgba(200, 255, 0, .52);
  --text: #f7faff;
  --muted: #9aa9bd;
  --blue: #c8ff00;
  --blue-light: #dcff42;
  --lime: #c8ff00;
  --lime-light: #dcff42;
  --red: #ff3c4f;
  --radius: 28px;
  --container: 1320px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background-color: var(--bg); background-image: linear-gradient(rgba(200, 255, 0, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 255, 0, .025) 1px, transparent 1px); background-size: 72px 72px; background-attachment: fixed; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body.menu-open, body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 64px)); margin: 0 auto; }
.section { padding: 82px 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; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; border-bottom: 1px solid rgba(132, 170, 222, .09); background: linear-gradient(180deg, rgba(3, 8, 16, .96), rgba(3, 8, 16, .44)); }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 30px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(200, 255, 0, .12)); }
.brand span { font-size: 17px; font-weight: 800; line-height: .95; letter-spacing: .045em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.15vw, 36px); margin-left: auto; font-size: 14px; font-weight: 600; }
.main-nav a { color: #eaf1fb; transition: color .2s ease; }
.main-nav a:hover { color: var(--blue-light); }
.menu-button { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 17, 30, .82); font-size: 25px; cursor: pointer; }
.header-cta { min-height: 48px; padding-inline: 24px; white-space: nowrap; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 30px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(200, 255, 0, .34); outline-offset: 3px; }
.button-primary { color: #090d05; background: linear-gradient(135deg, #e2ff67, #b9ed00); box-shadow: 0 12px 30px rgba(200, 255, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .56); }
.button-primary:hover { box-shadow: 0 16px 40px rgba(200, 255, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .56); }
.button-primary:disabled { opacity: .58; cursor: wait; transform: none; }
.button-outline { color: var(--lime-light); border-color: rgba(200, 255, 0, .62); background: rgba(15, 24, 7, .38); }
.button-outline:hover { border-color: var(--lime-light); background: rgba(200, 255, 0, .1); }

.hero { position: relative; min-height: 935px; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: transparent; margin-top: 10vh; }
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -6px;
  pointer-events: none;
  background: url("./assets/hero-repair.png") center / cover no-repeat;
  transform: scale(1.008);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 60%, rgba(0, 0, 0, .72) 70%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .76) 7%, #000 15%, #000 86%, rgba(0, 0, 0, .72) 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 60%, rgba(0, 0, 0, .72) 70%, transparent 100%), linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .76) 7%, #000 15%, #000 86%, rgba(0, 0, 0, .72) 94%, transparent 100%);
  mask-composite: intersect;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 8, 15, .96) 0%, rgba(3, 8, 15, .88) 28%, rgba(3, 8, 15, .32) 57%, rgba(3, 8, 15, .04) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 67%, rgba(0, 0, 0, .55) 83%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 67%, rgba(0, 0, 0, .55) 83%, transparent 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 108px; }
.hero-copy { max-width: 720px; }
.hero-label { width: fit-content; display: flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 9px 15px; border: 1px solid rgba(200, 255, 0, .25); border-radius: 999px; color: #e8f3d0; background: rgba(20, 31, 11, .72); box-shadow: inset 0 0 28px rgba(200, 255, 0, .05); font-size: 13px; }
.hero-label i { color: var(--blue-light); }
.hero h1 { max-width: 700px; margin: 0 0 20px; font-size: clamp(46px, 4.55vw, 72px); line-height: .98; letter-spacing: -.045em; }
.hero h1 span { color: var(--blue); text-shadow: 0 0 35px rgba(200, 255, 0, .18); }
.hero-copy > p { max-width: 580px; margin: 0 0 30px; color: #bdc8d8; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-features { max-width: 660px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.hero-features > div { display: flex; align-items: center; gap: 12px; }
.hero-features > div > span { width: 38px; height: 42px; flex: 0 0 38px; display: grid; place-items: center; color: var(--blue-light); font-size: 25px; }
.hero-features p { display: grid; gap: 1px; margin: 0; font-size: 13px; }
.hero-features b { font-size: 13px; }
.hero-features small { color: #8f9db0; font-size: 11px; }

.section-heading { margin: 0 auto 38px; text-align: center; }
.section-heading > span, .eyebrow { color: var(--blue-light); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-heading h2 { margin: 7px 0 8px; font-size: clamp(32px, 3vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); }

.services { padding-top: 62px; background: transparent; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(12, 25, 43, .98), rgba(6, 13, 23, .98)); box-shadow: 0 18px 50px rgba(0, 0, 0, .2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(200, 255, 0, .42); box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 0 32px rgba(200, 255, 0, .06); }
.service-image { height: 214px; overflow: hidden; border-bottom: 1px solid var(--line); background: #06101d; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:nth-child(1) .service-image img { object-position: 66% 77%; }
.service-card:nth-child(2) .service-image img { object-position: 37% 79%; }
.service-card:nth-child(3) .service-image img { object-position: 50% 78%; }
.service-card:nth-child(4) .service-image img { object-position: 50% 76%; }
.service-card:hover .service-image img { transform: scale(1.045); }
.service-content { min-height: 225px; display: flex; flex-direction: column; padding: 24px 22px 22px; }
.service-title { display: flex; align-items: center; gap: 12px; }
.service-title h3 { margin: 0; font-size: 19px; }
.hex { width: 38px; height: 42px; flex: 0 0 38px; display: grid; place-items: center; clip-path: polygon(50% 0, 93% 24%, 93% 76%, 50% 100%, 7% 76%, 7% 24%); color: #081004; background: var(--blue); font-size: 18px; }
.hex.red { background: var(--red); }
.service-content > p { margin: 17px 0 20px; color: var(--muted); font-size: 14px; }
.service-link { width: fit-content; display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding: 0; border: 0; color: var(--blue-light); background: transparent; font-weight: 700; font-size: 13px; cursor: pointer; }
.service-link i { transition: transform .2s ease; }
.service-link:hover i { transform: translateX(5px); }

.advantages { padding-top: 56px; background: linear-gradient(180deg, transparent, rgba(7, 17, 30, .7), transparent); }
.advantages-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px; }
.advantage { text-align: center; }
.line-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--blue-light); font-size: 39px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 255, 0, .12), transparent 66%); filter: drop-shadow(0 0 14px rgba(200, 255, 0, .2)); }
.line-icon.red { color: #ff5363; background: radial-gradient(circle, rgba(255, 60, 79, .12), transparent 66%); filter: drop-shadow(0 0 14px rgba(255, 60, 79, .22)); }
.advantage h3 { margin: 0 0 9px; font-size: 16px; }
.advantage p { max-width: 190px; margin: 0 auto; color: var(--muted); font-size: 13px; }

.process { padding-top: 54px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step { position: relative; padding: 0 30px; text-align: center; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; left: 69%; width: 62%; border-top: 1px dashed rgba(102, 137, 184, .42); }
.step-number { position: absolute; z-index: 2; top: 29px; left: calc(50% - 72px); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--lime-light); background: #18220e; font-weight: 800; }
.step-number.red { color: #ff7a86; background: #33141c; }
.step-icon { position: relative; z-index: 1; width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid rgba(200, 255, 0, .48); border-radius: 50%; color: var(--blue-light); background: radial-gradient(circle, rgba(200, 255, 0, .16), rgba(5, 10, 18, .9) 68%); box-shadow: 0 0 28px rgba(200, 255, 0, .12), inset 0 0 18px rgba(200, 255, 0, .09); font-size: 37px; }
.step-icon.red { color: #ff5968; border-color: rgba(255, 60, 79, .5); background: radial-gradient(circle, rgba(255, 60, 79, .16), rgba(5, 10, 18, .9) 68%); }
.process-step h3 { margin: 0 0 5px; font-size: 16px; }
.process-step p { max-width: 180px; margin: 0 auto; color: var(--muted); font-size: 13px; }

.calculator-section { padding-top: 58px; background: radial-gradient(circle at 76% 50%, rgba(200, 255, 0, .065), transparent 28%); }
.calculator-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.calculator-copy h2, .faq-copy h2 { margin: 9px 0 18px; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.calculator-copy > p, .faq-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; }
.calculator-note { width: fit-content; display: flex; align-items: center; gap: 11px; margin-top: 28px; padding: 13px 17px; border: 1px solid var(--line); border-radius: 18px; color: #b9c5d5; background: rgba(8, 17, 29, .74); font-size: 12px; }
.calculator-note i { color: var(--lime); font-size: 18px; }
.calculator-card { padding: 38px; border: 1px solid rgba(200, 255, 0, .25); border-radius: 32px; background: radial-gradient(circle at 100% 0, rgba(200, 255, 0, .11), transparent 34%), linear-gradient(145deg, rgba(13, 28, 31, .98), rgba(7, 14, 23, .98)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .035); }
.calculator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calculator-fields label { display: grid; gap: 9px; color: #cbd6e4; font-size: 12px; font-weight: 700; }
.calculator-fields select { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: #091423; outline: none; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.calculator-fields select:hover, .calculator-fields select:focus { border-color: rgba(200, 255, 0, .55); box-shadow: 0 0 0 3px rgba(200, 255, 0, .08); }
.calculator-fields option { color: var(--text); background: #091423; }
.calculator-check { position: relative; display: flex; align-items: center; gap: 12px; width: fit-content; margin: 20px 0; color: #d3dce8; font-size: 13px; cursor: pointer; }
.calculator-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check-box { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border: 1px solid rgba(200, 255, 0, .45); border-radius: 8px; color: #0a0e05; background: rgba(200, 255, 0, .06); transition: background .2s ease, box-shadow .2s ease; }
.check-box i { opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.calculator-check input:checked + .check-box { background: var(--lime); box-shadow: 0 0 20px rgba(200, 255, 0, .2); }
.calculator-check input:checked + .check-box i { opacity: 1; transform: scale(1); }
.calculator-check input:focus-visible + .check-box { outline: 3px solid rgba(200, 255, 0, .34); outline-offset: 3px; }
.calculator-result { display: grid; gap: 3px; margin-bottom: 18px; padding: 22px 24px; border: 1px solid rgba(200, 255, 0, .29); border-radius: 22px; background: linear-gradient(135deg, rgba(200, 255, 0, .13), rgba(200, 255, 0, .045)); }
.calculator-result small { color: #c9d3df; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.calculator-result strong { color: var(--lime-light); font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.calculator-result span { color: var(--muted); font-size: 11px; }
.calculator-request { width: 100%; }

.stats { padding: 0 0 58px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, rgba(10, 24, 42, .96), rgba(6, 14, 24, .96)); box-shadow: var(--shadow); }
.stats-grid > div { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 22px; }
.stats-grid > div:not(:last-child) { border-right: 1px solid var(--line); }
.stats-grid i { color: var(--blue-light); font-size: 43px; filter: drop-shadow(0 0 12px rgba(200, 255, 0, .22)); }
.stats-grid p { display: grid; margin: 0; }
.stats-grid strong { font-size: 24px; line-height: 1.1; }
.stats-grid span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.reviews { padding-top: 44px; }
.reviews-wrap { position: relative; }
.reviews-track { display: grid; grid-auto-columns: calc((100% - 40px) / 3); grid-auto-flow: column; gap: 20px; overflow-x: auto; padding: 4px 2px 16px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { min-height: 244px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(11, 25, 43, .95), rgba(6, 14, 24, .96)); scroll-snap-align: start; }
.review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.review-top > div { display: grid; }
.stars { margin-top: 5px; color: var(--red); letter-spacing: .09em; }
.review-icon { color: var(--lime-light); font-size: 44px; opacity: .68; }
.review-card p { margin: 20px 0 16px; color: #d8e0eb; font-size: 14px; }
.review-card small { margin-top: auto; color: #728198; }
.slider-button { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: rgba(10, 22, 38, .94); cursor: pointer; transform: translateY(-50%); transition: border-color .2s ease, background .2s ease; }
.slider-button:hover { border-color: var(--blue); color: #0a0e05; background: var(--lime); }
.slider-prev { left: -58px; }
.slider-next { right: -58px; }
.slider-dots { display: flex; justify-content: center; gap: 7px; margin-top: 7px; }
.slider-dots span { width: 7px; height: 7px; border-radius: 50%; background: #213047; transition: width .2s ease, background .2s ease; }
.slider-dots span.active { width: 20px; border-radius: 5px; background: var(--blue); }

.faq-section { padding-top: 52px; }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 6vw, 82px); align-items: start; }
.faq-copy { position: sticky; top: 32px; }
.faq-copy .button { margin-top: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(11, 24, 40, .96), rgba(6, 13, 23, .96)); overflow: clip; transition: border-color .2s ease, background .2s ease; }
.faq-item[open] { border-color: rgba(200, 255, 0, .36); background: linear-gradient(145deg, rgba(18, 31, 29, .98), rgba(7, 15, 22, .98)); }
.faq-item summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; list-style: none; font-weight: 750; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid rgba(200, 255, 0, .33); border-radius: 50%; color: var(--lime); transition: transform .22s ease, color .22s ease, background .22s ease; }
.faq-item[open] summary i { color: #0a0e05; background: var(--lime); transform: rotate(45deg); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { margin: 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact-section { padding-top: 42px; }
.contact-card { display: grid; grid-template-columns: .8fr 1.28fr .8fr; gap: 40px; align-items: center; padding: 40px 42px; border: 1px solid rgba(200, 255, 0, .23); border-radius: 32px; background: radial-gradient(circle at 12% 8%, rgba(200, 255, 0, .08), transparent 35%), linear-gradient(140deg, rgba(11, 24, 41, .98), rgba(6, 14, 25, .98)); box-shadow: var(--shadow); }
.contact-copy h2 { margin: 8px 0 14px; font-size: 34px; line-height: 1.08; letter-spacing: -.025em; }
.contact-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form input, .lead-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: rgba(6, 16, 29, .82); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.lead-form input { height: 48px; padding: 0 15px; }
.lead-form textarea { min-height: 78px; padding: 13px 15px; resize: vertical; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6f8096; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(200, 255, 0, .1); }
.form-wide { grid-column: 1 / -1; }
.contact-form .button { min-height: 48px; grid-column: 1 / -1; }
.form-note { color: #718098; font-size: 10px; }
.form-status { min-height: 0; color: #79dba2; font-size: 13px; font-weight: 700; }
.form-status.error { color: #ff7f8b; }
.contact-list { display: grid; gap: 21px; }
.contact-list > a, .contact-list > div { display: flex; align-items: flex-start; gap: 14px; }
.contact-list i { width: 27px; flex: 0 0 27px; color: var(--blue-light); font-size: 26px; }
.contact-list span { display: grid; }
.contact-list b { font-size: 14px; }
.contact-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.site-footer { padding: 24px 0; border-top: 1px solid rgba(112, 146, 192, .11); background: #04080f; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, .76fr) 1.1fr; gap: 40px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand span { font-size: 14px; }
.footer-about > p { margin: 8px 0 16px; color: #738197; font-size: 11px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #172335; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.socials a:hover { transform: translateY(-2px); border-color: rgba(200, 255, 0, .55); box-shadow: 0 0 18px rgba(200, 255, 0, .11); }
.socials img { width: 100%; height: 100%; object-fit: contain; }
.socials a:first-child img { width: 80%; height: 80%; }
.footer-grid > div:not(.footer-about) { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-grid h3 { margin: 5px 0 4px; font-size: 13px; }
.footer-grid > div:not(.footer-about) a, .footer-link { padding: 0; border: 0; color: #8190a5; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.footer-grid > div:not(.footer-about) a:hover, .footer-link:hover { color: var(--blue-light); }
.footer-contacts a { color: #dce6f5 !important; font-size: 13px !important; }
.footer-contacts a i { margin-right: 8px; color: var(--blue-light); }
.footer-contacts small { margin-top: 8px; color: #505e72; font-size: 9px; }

.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(1, 5, 10, .8); backdrop-filter: blur(10px); }
.modal-dialog { position: relative; z-index: 1; width: min(480px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 38px; border: 1px solid rgba(200, 255, 0, .28); border-radius: 30px; background: linear-gradient(145deg, #0d1b2e, #070e19); box-shadow: 0 35px 100px rgba(0, 0, 0, .62), 0 0 60px rgba(200, 255, 0, .06); transform: translateY(14px); transition: transform .22s ease; }
.modal.is-open .modal-dialog { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(5, 12, 22, .64); cursor: pointer; }
.modal-dialog h2 { margin: 8px 0 5px; font-size: 34px; }
.modal-dialog > p { margin: 0 0 22px; color: var(--muted); }
.modal-form { display: grid; gap: 14px; }
.modal-form label { display: grid; gap: 7px; color: #c8d4e4; font-size: 12px; }
.modal-form .button { width: 100%; margin-top: 4px; }

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

@media (max-width: 1380px) {
  .container { width: min(var(--container), calc(100% - 84px)); }
  .slider-prev { left: -42px; }
  .slider-next { right: -42px; }
  .main-nav { gap: 19px; }
}

@media (max-width: 1160px) {
  .header-inner { gap: 20px; }
  .main-nav a:nth-last-child(2), .main-nav a:nth-last-child(3) { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .contact-card { grid-template-columns: 1fr 1.45fr; }
  .contact-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); padding-top: 24px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.2fr repeat(3, .8fr); }
  .footer-contacts { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between; align-items: center !important; padding-top: 14px; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 40px, var(--container)); }
  .site-header { position: absolute; }
  .header-inner { min-height: 80px; }
  .menu-button { display: grid; place-items: center; order: 2; }
  .header-cta { order: 1; margin-left: auto; min-height: 44px; }
  .main-nav { position: fixed; z-index: 25; top: 80px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(5, 12, 22, .98); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav a:nth-last-child(2), .main-nav a:nth-last-child(3) { display: block; padding: 13px 12px; border-bottom: 1px solid rgba(112, 146, 192, .1); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero { min-height: 770px; align-items: end; }
  .hero::before { background-position: 62% center; }
  .hero::after { background: linear-gradient(90deg, rgba(3, 8, 15, .92), rgba(3, 8, 15, .42) 65%, rgba(3, 8, 15, .08)); }
  .hero-inner { padding: 140px 0 58px; }
  .hero-copy { max-width: 610px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .process-step:nth-child(2)::after { display: none; }
  .calculator-grid, .faq-grid { grid-template-columns: 1fr; gap: 38px; }
  .faq-copy { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .reviews-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .slider-button { display: none; }
  .contact-card { padding: 34px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 64px 0; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 14px; }
  .header-cta { display: none; }
  .hero { min-height: 760px; }
  .hero::before { background-position: 58% center; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 66%, rgba(0, 0, 0, .62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 66%, rgba(0, 0, 0, .62) 80%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%); }
  .hero::after { background: linear-gradient(90deg, rgba(3, 8, 15, .82) 0%, rgba(3, 8, 15, .52) 72%, rgba(3, 8, 15, .14) 100%); }
  .hero-inner { display: flex; align-items: flex-end; min-height: 760px; padding: 104px 0 42px; }
  .hero-label { max-width: 100%; font-size: 11px; }
  .hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-features { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .hero-features > div { padding: 9px 12px; border: 1px solid rgba(112, 146, 192, .14); border-radius: 9px; background: rgba(5, 13, 24, .64); }
  .services-grid { grid-template-columns: 1fr; }
  .service-image { height: 232px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .advantages-grid article:last-child { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-step::after { display: none; }
  .calculator-card { padding: 26px 20px; border-radius: 26px; }
  .calculator-fields { grid-template-columns: 1fr; }
  .calculator-note { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { min-height: 94px; justify-content: flex-start; padding-inline: 32px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stats-grid > div:last-child { border-bottom: 0; }
  .reviews-track { grid-auto-columns: 88%; }
  .faq-item { border-radius: 18px; }
  .faq-item summary { min-height: 68px; padding: 17px 18px; font-size: 14px; }
  .faq-answer { padding: 0 18px 18px; }
  .contact-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form > * { grid-column: 1 !important; }
  .contact-list { grid-column: auto; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-contacts { grid-column: 1 / -1; flex-direction: column !important; align-items: flex-start !important; }
  .modal { padding: 12px; }
  .modal-dialog { max-height: calc(100vh - 24px); padding: 30px 20px 24px; }
}

@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; }
}
