:root {
    --bg: #176b61;
    --bg2: #177c6d;
    --bg3: #249879;
    --emerald: #2fc795;
    --emerald2: #17866f;
    --mint: #e2fff4;
    --mint2: #b7f4da;
    --light: #f2fffb;
    --gold: #ffbf3f;
    --gold2: #ff8f3d;
    --rose: #ef476f;
    --violet: #8b5cf6;
    --ink: #f7fffc;
    --dark: #145f59;
    --muted: #d5f5e8;
    --muted2: #b5ddcd;
    --panel: rgba(255, 255, 255, .075);
    --panel2: rgba(255, 255, 255, .12);
    --line: rgba(167, 243, 208, .22);
    --line2: rgba(167, 243, 208, .42);
    --shadow: 0 26px 76px rgba(20, 95, 89, .30);
    --shadow2: 0 14px 38px rgba(20, 95, 89, .22);
    --max: 1200px;
    --p: 16px;
    --h1: 40px;
    --r: 24px;
    --r2: 38px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(820px 620px at 10% 6%, rgba(16, 185, 129, .36), transparent 62%),
        radial-gradient(760px 560px at 90% 18%, rgba(224, 184, 79, .18), transparent 58%),
        linear-gradient(180deg, var(--bg), var(--bg2) 48%, var(--dark));
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

a:active {
    transform: translateY(1px);
}

p {
    font-size: 16px;
}

h1 {
    position: relative;
    margin: 24px 0 0;
    font-size: 40px;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -.2px;
}

h2 {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.32;
    letter-spacing: -.25px;
}

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 95, 89, .92);
    backdrop-filter: blur(14px);
}

.top__in {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 19px;
    background: linear-gradient(135deg, var(--emerald), var(--violet), var(--gold));
    box-shadow: 0 0 0 8px rgba(16, 185, 129, .12), 0 18px 36px rgba(16, 185, 129, .20);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__main {
    font-size: 15px;
    font-weight: 950;
}

.brand__sub {
    margin-top: 5px;
    color: var(--muted2);
    font-size: 11px;
    font-weight: 850;
}

.nav {
    justify-self: center;
    display: flex;
    gap: 8px;
}

.nav a {
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.nav a:hover {
    border-color: var(--line);
    background: rgba(16, 185, 129, .12);
    color: var(--ink);
}

.phone {
    padding: 12px 17px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--gold2));
    color: #fff;
    box-shadow: 0 14px 30px rgba(239, 71, 111, .22);
    font-weight: 950;
}

.phone:hover,
.btn--main:hover,
.contact__side > a:hover {
    background: linear-gradient(135deg, #d73761, var(--gold2));
}

.hero {
    padding: 44px 0 26px;
}

.hero__matrix {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: stretch;
}

.sideplate {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--r2);
    background: var(--emerald);
    color: #24564d;
    box-shadow: var(--shadow);
}

.sideplate__top {
    color: #2b5e54;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sideplate__main {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 950;
}

.sideplate__txt {
    margin-bottom: 0;
    color: #315f56;
    line-height: 1.65;
    font-weight: 760;
}

.headline {
    position: relative;
    display: grid;
    min-height: 430px;
    align-content: space-between;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(16, 185, 129, .15), rgba(224, 184, 79, .08));
    box-shadow: var(--shadow);
}

.headline::before {
    position: absolute;
    top: -170px;
    right: -160px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(16, 185, 129, .28);
    content: "";
    filter: blur(34px);
}

.tag {
    position: relative;
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid var(--line2);
    border-radius: 999px;
    background: rgba(20, 95, 89, .50);
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tag::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose);
    box-shadow: 0 0 0 7px rgba(239, 71, 111, .14);
    content: "";
}

.lead {
    position: relative;
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.72;
}

.actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 17px;
    font-weight: 950;
}

.btn--main {
    background: linear-gradient(135deg, var(--rose), var(--gold2));
    color: #fff;
    box-shadow: 0 16px 38px rgba(239, 71, 111, .24);
}

.btn--soft {
    border-color: var(--line);
    background: rgba(255, 255, 255, .08);
    color: var(--ink);
}

.btn--soft:hover {
    border-color: var(--line2);
    background: rgba(16, 185, 129, .13);
}

.headline__base {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
}

.base {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(20, 95, 89, .46);
}

.base__k,
.status__label,
.status__k,
.repair__label {
    color: var(--muted2);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.base__v {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 950;
}

.status {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    background: var(--panel);
    box-shadow: var(--shadow2);
}

.status__head {
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 95, 89, .52);
}

.status__title {
    margin-top: 10px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 950;
}

.status__rows {
    display: grid;
}

.status__row {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.status__row:last-child {
    border-bottom: 0;
}

.status__v {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 850;
}

.diagnostic {
    padding: 16px 0;
}

.diagnostic__grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 18px;
}

.report,
.service-note {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    background: var(--panel);
    box-shadow: var(--shadow2);
}

.report p,
.service-note p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.72;
}

.service-note {
    align-self: stretch;
    border-top: 4px solid var(--gold);
}

.service-note strong {
    display: block;
    color: var(--mint);
    font-size: 21px;
}

.quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.quick__card {
    min-height: 170px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    box-shadow: var(--shadow2);
}

.quick__card:nth-child(1) {
    border-top: 4px solid var(--rose);
}

.quick__card:nth-child(2) {
    border-top: 4px solid var(--violet);
}

.quick__n,
.step__n {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--rose), var(--gold2));
    color: #fff;
    box-shadow: 0 10px 22px rgba(239, 71, 111, .18);
    font-weight: 950;
}

.quick__title,
.step__title {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 950;
}

.quick__txt,
.step__txt {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.62;
}

.faults {
    padding: 24px 0 34px;
}

.section-titlebar {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: end;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line2);
}

.section-titlebar span {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section-titlebar h2 {
    margin-bottom: 0;
}

.section-titlebar--compact {
    margin-bottom: 18px;
}

.equipment-register {
    border-bottom: 1px solid var(--line);
}

.equipment-row {
    display: grid;
    grid-template-columns: 68px 190px minmax(0, 1fr) 82px;
    gap: 18px;
    align-items: center;
    min-height: 84px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .18s ease, padding-left .18s ease;
}

.equipment-row:last-child {
    border-bottom: 0;
}

.equipment-row:hover {
    padding-left: 22px;
    background: rgba(255, 255, 255, .07);
}

.equipment-code {
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
}

.equipment-row strong {
    font-size: 20px;
}

.equipment-row > span:nth-child(3) {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.equipment-go {
    justify-self: end;
    color: var(--mint2);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.secondary-scope {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.secondary-scope span {
    padding: 13px 14px;
    border-right: 1px solid var(--line);
    background: rgba(16, 185, 129, .08);
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.secondary-scope span:last-child {
    border-right: 0;
}

.repair {
    padding: 14px 0 40px;
}

.repair__box {
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.repair__name {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    background: linear-gradient(180deg, var(--emerald), var(--emerald2));
    color: #24564d;
}

.repair__label {
    color: #315f56;
}

.repair__big {
    margin-top: 24px;
    font-size: 24px;
    line-height: 1.42;
    font-weight: 950;
}

.repair__small {
    margin: 18px 0 0;
    color: #315f56;
    line-height: 1.65;
    font-weight: 760;
}

.repair__data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.data {
    padding: 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.data:nth-child(2n) {
    border-right: 0;
}

.data:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.data:nth-child(1) {
    background: rgba(255, 255, 255, .03);
}

.data:nth-child(2) {
    background: rgba(255, 191, 63, .06);
}

.data:nth-child(3) {
    background: rgba(47, 199, 149, .06);
}

.data:nth-child(4) {
    background: rgba(139, 92, 246, .07);
}

.data__title {
    font-size: 18px;
    font-weight: 950;
}

.data__txt {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.62;
}

.process {
    padding: 0 0 42px;
}

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.step {
    position: relative;
    min-height: 205px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    box-shadow: var(--shadow2);
}

.process--rail .step::after {
    position: absolute;
    right: -15px;
    top: 41px;
    width: 15px;
    height: 1px;
    background: var(--line2);
    content: "";
}

.process--rail .step:last-child::after {
    display: none;
}

.process__grid--home {
    grid-template-columns: repeat(3, 1fr);
}

.contact {
    padding: 0 0 46px;
}

.contact__box {
    display: grid;
    grid-template-columns: 1fr 320px;
    overflow: hidden;
    border-radius: var(--r2);
    background: var(--light);
    color: #24564d;
    box-shadow: var(--shadow);
}

.contact__main {
    padding: 26px;
}

.contact__title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 950;
}

.contact__txt {
    margin: 10px 0 0;
    color: #4f776c;
    line-height: 1.65;
}

.contact__side {
    display: grid;
    border-left: 1px solid rgba(36, 86, 77, .18);
}

.contact__side > a {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rose), var(--gold2));
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.contact__side div {
    display: grid;
    place-items: center;
    padding: 18px;
    background: var(--mint);
    color: #4f776c;
    font-weight: 850;
}

.contact__side div a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.content-reserve {
    min-height: 1px;
    padding: 10px 0 0;
}

.content-reserve p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.device-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.device-headline {
    min-height: 360px;
}

.device-status {
    min-height: 360px;
}

.device-summary {
    padding-bottom: 26px;
}

.device-faults {
    padding-top: 18px;
}

.device-fault-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.fault {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--panel);
    box-shadow: var(--shadow2);
}

.fault__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(20, 95, 89, .52);
}

.fault__type {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fault__code {
    color: var(--rose);
    font-size: 13px;
    font-weight: 950;
}

.fault__body {
    padding: 20px;
}

.fault h3 {
    margin: 0;
    font-size: 20px;
}

.fault p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.62;
}

.device-fault:nth-child(1) {
    border-top: 4px solid var(--emerald);
}

.device-fault:nth-child(2) {
    border-top: 4px solid var(--gold2);
}

.device-fault:nth-child(3) {
    border-top: 4px solid var(--violet);
}

.device-fault:nth-child(4) {
    border-top: 4px solid var(--rose);
}

.related {
    padding-top: 8px;
    padding-bottom: 52px;
}

.related__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related__links a {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--mint);
    font-size: 14px;
    font-weight: 850;
}

.related__links a:hover {
    border-color: var(--line2);
    background: rgba(16, 185, 129, .13);
}

.footer {
    padding: 24px 0 34px;
    color: var(--muted2);
}

.footer__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
}

.footer .policy {
    padding: 8px 10px;
    border-color: transparent;
    opacity: .55;
    font-size: 12px;
}

@media (max-width: 1080px) {
    .hero__matrix,
    .diagnostic__grid,
    .repair__box,
    .contact__box,
    .device-hero__grid {
        grid-template-columns: 1fr;
    }

    .sideplate {
        min-height: 230px;
    }

    .status,
    .device-status {
        min-height: auto;
    }

    .process__grid {
        grid-template-columns: 1fr 1fr;
    }

    .process__grid--home {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact__side {
        min-height: 130px;
        border-top: 1px solid rgba(36, 86, 77, .18);
        border-left: 0;
    }
}

@media (max-width: 820px) {
    .nav {
        display: none;
    }

    .top__in {
        grid-template-columns: 1fr auto;
    }

    .equipment-row {
        grid-template-columns: 52px 150px 1fr;
    }

    .equipment-go {
        display: none;
    }

    .repair__data {
        grid-template-columns: 1fr;
    }

    .data,
    .data:nth-child(2n),
    .data:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .data:last-child {
        border-bottom: 0;
    }

    .secondary-scope {
        grid-template-columns: 1fr 1fr;
    }

    .secondary-scope span:nth-child(2) {
        border-right: 0;
    }

    .secondary-scope span:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .device-fault-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(var(--max), calc(100% - 28px));
    }

    .top__in {
        grid-template-columns: 1fr;
    }

    .phone {
        justify-self: stretch;
        text-align: center;
    }

    .brand {
        justify-content: center;
    }

    .hero {
        padding-top: 26px;
    }

    .headline,
    .report,
    .service-note,
    .repair__name,
    .contact__main {
        padding: 20px;
    }

    .headline__base,
    .quick,
    .process__grid,
    .process__grid--home {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-titlebar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .equipment-row {
        grid-template-columns: 42px 1fr;
        gap: 8px 12px;
        padding: 16px 10px;
    }

    .equipment-row > span:nth-child(3) {
        grid-column: 2;
    }

    .secondary-scope {
        grid-template-columns: 1fr;
    }

    .secondary-scope span,
    .secondary-scope span:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .secondary-scope span:last-child {
        border-bottom: 0;
    }

    .process--rail .step::after {
        display: none;
    }

    .contact__side {
        min-height: 150px;
    }

    .footer__in {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__links {
        flex-wrap: wrap;
    }
}
