:root {
    --bg: #eaf7f6;
    --bg2: #d7efed;
    --turq: #11b8ab;
    --turq2: #0d8f86;
    --turq3: #baf3ed;
    --rasp: #d92d6f;
    --rasp2: #ae1f55;
    --ink: #173b43;
    --muted: #4e7177;
    --muted2: #6e969b;
    --deep: #245d68;
    --deep2: #1d4d57;
    --panel: #f8ffff;
    --panel2: #edfafa;
    --line: #9bcfca;
    --line2: #61aaa4;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(36,93,104,.18);
    --shadow2: 0 14px 36px rgba(36,93,104,.13);
    --max: 1200px;
    --p: 16px;
    --h1: 40px;
    --h2: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(17,184,171,.06) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg), var(--bg2));
    background-size: 46px 46px, auto;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--rasp); outline-offset: 3px; }
a:active { transform: translateY(1px); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(234,247,246,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.top__in { display: grid; grid-template-columns: 260px 1fr 180px; align-items: stretch; }
.brand { display: grid; grid-template-columns: 58px 1fr; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.brand__mark { display: grid; place-items: center; background: var(--turq); color: #113f45; font-weight: 950; }
.brand__text { padding: 14px 16px; }
.brand__main { font-size: 15px; font-weight: 950; }
.brand__sub { font-size: 11px; color: var(--muted2); font-weight: 850; margin-top: 5px; }
.nav { display: flex; justify-content: center; }
.nav a { display: grid; place-items: center; padding: 0 18px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.nav a:first-child { border-left: 1px solid var(--line); }
.nav a:hover { background: var(--turq3); color: var(--ink); }
.call { display: grid; place-items: center; background: var(--rasp); color: var(--white); font-weight: 950; }
.call:hover { background: var(--rasp2); }

.hero { padding: 46px 0 28px; }
.hero__grid { display: grid; grid-template-columns: 1fr 440px; gap: 18px; }
.hero__copy {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 30px;
    min-height: 430px;
    display: grid;
    align-content: space-between;
    position: relative;
    overflow: hidden;
}
.hero__copy::before {
    content: "";
    position: absolute;
    right: -150px;
    top: -170px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(17,184,171,.28), transparent 68%);
}
.eyebrow { position: relative; display: inline-block; width: max-content; background: var(--rasp); color: var(--white); padding: 9px 12px; font-size: 12px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
h1 { position: relative; margin: 24px 0 0; font-size: var(--h1); line-height: 1.18; font-weight: 950; letter-spacing: -.6px; }
h2 { margin: 0; font-size: var(--h2); line-height: 1.3; font-weight: 950; }
h3 { margin: 0; font-size: 20px; line-height: 1.35; }
p { font-size: var(--p); }
.lead { position: relative; margin: 16px 0 0; line-height: 1.72; color: var(--muted); max-width: 780px; }
.hero__actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 18px; border: 1px solid transparent; font-weight: 950; }
.btn--main { background: var(--rasp); color: var(--white); box-shadow: 0 16px 38px rgba(217,45,111,.20); }
.btn--main:hover { background: var(--rasp2); }
.btn--alt { background: var(--turq); color: #113f45; box-shadow: 0 16px 38px rgba(17,184,171,.18); }
.btn--alt:hover { background: var(--turq3); }
.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 28px; }
.meta { padding: 15px; border-right: 1px solid var(--line); background: var(--panel2); }
.meta:last-child { border-right: 0; }
.meta__k { font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); }
.meta__v { margin-top: 7px; font-size: 15px; font-weight: 950; }

.panel { display: grid; grid-template-rows: auto 1fr auto; background: var(--deep); color: var(--white); border: 1px solid var(--line2); box-shadow: var(--shadow); min-height: 430px; }
.panel__head { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(255,255,255,.24); }
.panel__head div { padding: 17px 18px; font-weight: 950; }
.panel__head span { padding: 17px 18px; border-left: 1px solid rgba(255,255,255,.24); color: var(--turq3); font-weight: 950; font-size: 12px; }
.faults { display: grid; }
.fault { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid rgba(255,255,255,.22); }
.fault:last-child { border-bottom: 0; }
.fault__k { padding: 15px 18px; border-right: 1px solid rgba(255,255,255,.22); color: #d2f0ed; font-size: 12px; font-weight: 950; text-transform: uppercase; }
.fault__v { padding: 15px 18px; color: #f0fffd; font-weight: 850; line-height: 1.45; }
.panel__foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.22); }
.panel__foot a, .panel__foot div { padding: 16px; text-align: center; font-weight: 950; }
.panel__foot a { background: var(--rasp); color: var(--white); }
.panel__foot a:hover { background: var(--rasp2); }
.panel__foot div { background: var(--turq3); color: #194e55; border-left: 1px solid rgba(255,255,255,.22); }

.ribbon { padding: 16px 0; }
.ribbon__in { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); box-shadow: var(--shadow2); }
.ribbon__item { padding: 18px; background: var(--panel); border-right: 1px solid var(--line); }
.ribbon__item:last-child { border-right: 0; }
.ribbon__label { font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; color: var(--turq2); }
.ribbon__text { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.block { padding: 18px 0; }
.block__grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; }
.sidebox { background: var(--turq); color: #113f45; box-shadow: var(--shadow2); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; }
.sidebox__title { font-size: 24px; line-height: 1.5; font-weight: 950; }
.sidebox__txt { font-size: 16px; line-height: 1.65; font-weight: 750; color: #174b51; }
.mainbox { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow2); padding: 24px; }
.mainbox p { margin: 14px 0 0; color: var(--muted); line-height: 1.72; }
.tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.tag { background: var(--panel2); border: 1px solid var(--line); padding: 12px; color: var(--muted); font-size: 13px; font-weight: 900; }

.devices { padding: 16px 0 32px; }
.devices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.device { display: grid; grid-template-columns: 130px 1fr; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow2); min-height: 170px; }
.device__code { display: grid; place-items: center; background: var(--turq3); border-right: 1px solid var(--line); color: var(--deep2); font-size: 32px; font-weight: 950; }
.device__body { padding: 20px; }
.device p { margin: 10px 0 0; color: var(--muted); line-height: 1.62; }

.route { padding: 10px 0 42px; }
.route__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.step { background: var(--deep); color: var(--white); border: 1px solid var(--line2); box-shadow: var(--shadow2); padding: 20px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.step__n { width: 44px; height: 44px; display: grid; place-items: center; background: var(--rasp); font-weight: 950; }
.step__place { color: var(--turq3); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.step__title { margin-top: 28px; font-size: 20px; font-weight: 950; }
.step__txt { margin-top: 10px; color: #e3f6f4; font-size: 14px; line-height: 1.62; }

.contact { padding: 0 0 46px; }
.contact__grid { display: grid; grid-template-columns: 1fr 320px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact__main { padding: 26px; }
.contact__title { font-size: 24px; line-height: 1.3; font-weight: 950; }
.contact__txt { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.contact__action { display: grid; border-left: 1px solid var(--line); }
.contact__action a { display: grid; place-items: center; background: var(--rasp); color: var(--white); font-size: 18px; font-weight: 950; }
.contact__action a:hover { background: var(--rasp2); }
.contact__action div { padding: 18px; background: var(--turq3); color: #315f63; font-weight: 850; line-height: 1.55; }

.content-reserve { padding: 8px 0 32px; }
.content-reserve p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; font-weight: 400; }
.footer { padding: 24px 0 34px; color: var(--muted2); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }
.footer__links { display: flex; align-items: center; gap: 10px; }
.footer a { padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); }
.footer a:hover { background: var(--turq3); color: var(--ink); }
.footer .policy { opacity: .62; font-size: 12px; border-color: transparent; background: transparent; }

@media (max-width: 1000px) {
    .top__in { grid-template-columns: 1fr auto; }
    .nav { display: none; }
    .hero__grid, .block__grid, .contact__grid { grid-template-columns: 1fr; }
    .ribbon__in, .route__grid { grid-template-columns: 1fr 1fr; }
    .contact__action { border-left: 0; border-top: 1px solid var(--line); }
    .tags { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .wrap { width: min(var(--max), calc(100% - 28px)); }
    .top__in { grid-template-columns: 1fr; }
    .call { padding: 14px 16px; }
    .nav { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); grid-column: 1 / -1; order: 3; }
    .nav a { min-height: 44px; flex: 1 1 33%; padding: 10px; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { border-left: 0; }
    .hero__copy, .sidebox, .mainbox, .contact__main { padding: 20px; }
    h1 { font-size: 40px; overflow-wrap: anywhere; }
    .hero__meta, .ribbon__in, .devices__grid, .route__grid, .tags { grid-template-columns: 1fr; }
    .meta, .ribbon__item { border-right: 0; border-bottom: 1px solid var(--line); }
    .meta:last-child, .ribbon__item:last-child { border-bottom: 0; }
    .device { grid-template-columns: 1fr; }
    .device__code { min-height: 74px; border-right: 0; border-bottom: 1px solid var(--line); }
    .fault { grid-template-columns: 1fr; }
    .fault__k { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
    .hero__actions { flex-direction: column; }
    .btn { width: 100%; }
    .footer__in { flex-direction: column; align-items: flex-start; }
    .footer__links { flex-wrap: wrap; }
}
