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

    .not-found-inner {
        grid-template-columns: 1fr;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .burger {
        display: inline-flex;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
    }

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

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

    .service-hero-inner,
    .system-box,
    .selection-box {
        grid-template-columns: 1fr;
    }

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

    .mobile-menu {
        display: block;
    }

    .hero-inner,
    .lead-box,
    .split-grid,
    .safety-box {
        grid-template-columns: 1fr;
    }

    .safety-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .scheme-card {
        min-height: 420px;
    }

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

}

@media (max-width: 640px) {
    .header-phone {
        display: none;
    }

    .not-found-section {
        padding: 64px 0;
    }

    .not-found-visual {
        min-height: 340px;
    }

    .not-found-line {
        left: 34px;
        right: 34px;
    }

    .not-found-card {
        width: 150px;
        padding: 14px;
    }

    .not-found-card-1 {
        left: 18px;
        top: 54px;
    }

    .not-found-card-2 {
        right: 18px;
        bottom: 54px;
    }

    .privacy-document {
        padding: 24px;
        border-radius: 24px;
    }

    .privacy-document h2 {
        font-size: 22px;
    }

    .contacts-visual {
        min-height: 370px;
    }

    .contacts-marker {
        width: 128px;
        min-height: 96px;
        padding: 14px;
    }

    .contacts-marker-main {
        width: 145px;
        min-height: 115px;
    }

    .contacts-marker-main strong {
        font-size: 28px;
    }

    .contacts-marker-1 {
        left: 18px;
        top: 54px;
    }

    .contacts-marker-2 {
        right: 18px;
        bottom: 58px;
    }

    .contacts-route-1 {
        left: 92px;
        top: 145px;
        width: 130px;
    }

    .contacts-route-2 {
        right: 88px;
        bottom: 135px;
        width: 130px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        min-height: 370px;
    }

    .about-node {
        width: 118px;
        height: 118px;
        padding: 14px;
    }

    .about-node-main {
        width: 138px;
        height: 138px;
    }

    .about-node-main strong {
        font-size: 28px;
    }

    .about-node-1 {
        left: 18px;
        top: 54px;
    }

    .about-node-2 {
        right: 18px;
        top: 70px;
    }

    .about-node-3 {
        bottom: 38px;
    }

    .about-network-line-1 {
        left: 95px;
        top: 138px;
        width: 120px;
    }

    .about-network-line-2 {
        right: 95px;
        top: 148px;
        width: 120px;
    }

    .about-network-line-3 {
        bottom: 134px;
        width: 95px;
    }

    .commercial-visual {
        min-height: 370px;
    }

    .building-1 {
        left: 24px;
        width: 82px;
        height: 120px;
    }

    .building-2 {
        left: 120px;
        width: 105px;
        height: 165px;
    }

    .building-3 {
        right: 24px;
        width: 105px;
        height: 135px;
    }

    .commercial-hub {
        width: 72px;
        height: 72px;
    }

    .commercial-pipe-1 {
        left: 88px;
        width: 125px;
    }

    .commercial-pipe-2 {
        right: 88px;
        width: 125px;
    }

    .commercial-label {
        width: 132px;
        padding: 12px;
    }

    .commercial-label-1 {
        left: 18px;
        top: 42px;
    }

    .commercial-label-2 {
        top: 34px;
    }

    .commercial-label-3 {
        right: 18px;
        top: 74px;
    }

    .service-maintenance-visual {
        min-height: 360px;
    }

    .maintenance-circle {
        width: 210px;
        height: 210px;
    }

    .maintenance-tank {
        width: 225px;
        height: 78px;
    }

    .maintenance-tool-1 {
        left: 92px;
        top: 120px;
    }

    .maintenance-tool-2 {
        right: 82px;
        bottom: 118px;
    }

    .maintenance-label {
        width: 132px;
        padding: 12px;
    }

    .maintenance-label-1 {
        left: 18px;
        top: 44px;
    }

    .maintenance-label-2 {
        right: 18px;
        top: 82px;
    }

    .maintenance-label-3 {
        bottom: 42px;
    }

    .refueling-visual {
        min-height: 370px;
    }

    .refueling-truck {
        left: 22px;
        width: 220px;
        transform: scale(0.88);
        transform-origin: left bottom;
    }

    .refueling-hose {
        left: 205px;
        width: 92px;
    }

    .refueling-tank {
        right: 22px;
        width: 190px;
        height: 72px;
    }

    .refueling-label {
        width: 132px;
        padding: 12px;
    }

    .refueling-label-1 {
        left: 18px;
        top: 42px;
    }

    .refueling-label-2 {
        left: 120px;
        top: 212px;
    }

    .refueling-label-3 {
        right: 18px;
        top: 80px;
    }

    .montage-visual {
        min-height: 360px;
    }

    .montage-pit {
        left: 22px;
        width: 245px;
    }

    .montage-tank {
        left: 42px;
        width: 215px;
    }

    .montage-pipe {
        left: 248px;
        width: 75px;
    }

    .montage-house {
        right: 22px;
        width: 112px;
        height: 88px;
    }

    .montage-house::before {
        left: 20px;
        width: 74px;
        height: 58px;
    }

    .montage-label {
        width: 132px;
        padding: 12px;
    }

    .montage-label-1 {
        left: 18px;
        top: 42px;
    }

    .montage-label-2 {
        left: 122px;
        top: 122px;
    }

    .montage-label-3 {
        right: 18px;
        top: 56px;
    }

    .gasholder-visual {
        min-height: 360px;
    }

    .gasholder-tank {
        width: 280px;
        height: 100px;
    }

    .gasholder-info {
        width: 140px;
        padding: 12px;
    }

    .gasholder-info-1 {
        left: 18px;
        top: 48px;
    }

    .gasholder-info-2 {
        right: 18px;
        top: 86px;
    }

    .gasholder-info-3 {
        bottom: 175px;
    }

    .volume-card h3 {
        font-size: 34px;
    }

    .header-btn {
        display: none;
    }

    .page-hero {
        padding: 64px 0;
    }

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

    .work-params {
        grid-template-columns: 1fr;
    }

    .project-cta {
        padding: 24px;
    }

    .service-hero {
        padding: 64px 0;
    }

    .service-hero-panel {
        min-height: 360px;
    }

    .service-point {
        width: 132px;
        padding: 12px;
    }

    .service-point-1 {
        left: 20px;
        top: 54px;
    }

    .service-point-2 {
        left: 40px;
        bottom: 58px;
    }

    .service-point-3 {
        right: 36px;
        top: 72px;
    }

    .service-point-4 {
        right: 20px;
        bottom: 56px;
    }

    .service-hero-panel-line {
        left: 40px;
        right: 40px;
    }

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

    .selection-row {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 56px 0;
    }

    .section {
        padding: 64px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lead-box {
        padding: 24px;
    }

    .scheme-house {
        right: 34px;
        width: 190px;
        height: 130px;
    }

    .scheme-tank {
        left: 28px;
        width: 220px;
    }

    .scheme-line {
        left: 220px;
        width: 120px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-brand > p {
        padding-left: 0;
    }

    .footer-contacts {
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .header {
        --header-menu-top: 82px;
    }

    .header.header--compact {
        --header-menu-top: 68px;
    }

    .header-inner {
        min-height: 82px;
        grid-template-columns: 1fr auto;
    }

    .header.header--compact .header-inner {
        min-height: 68px;
    }

    .logo {
        width: auto;
    }

    .nav {
        display: none;
    }

    .header-actions {
        width: auto;
        gap: 12px;
    }

    .burger {
        display: inline-flex;
    }

    .mobile-menu {
        display: block;
        top: var(--header-menu-top);
    }
}

@media (max-width: 760px) {
    .page-hero {
        padding: 56px 0;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-hero h1 {
        font-size: 40px;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .page-hero p {
        font-size: 17px;
    }

    .page-hero-card {
        padding: 22px;
        border-radius: 22px;
    }

    .privacy-section {
        padding: 56px 0;
    }

    .privacy-document {
        width: 100%;
        max-width: 100%;
        padding: 22px;
        border-radius: 22px;
    }

    .privacy-document h2 {
        font-size: 22px;
        line-height: 1.2;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .privacy-document p,
    .privacy-document li {
        font-size: 15px;
        line-height: 1.6;
    }

    .privacy-document ul {
        padding-left: 18px;
    }

    .privacy-note {
        padding: 16px;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .header {
        --header-menu-top: 74px;
    }

    .header.header--compact {
        --header-menu-top: 64px;
    }

    .header-phone,
    .header-btn {
        display: none;
    }

    .header-inner {
        min-height: 74px;
    }

    .header.header--compact .header-inner {
        min-height: 64px;
    }

    .mobile-menu {
        top: var(--header-menu-top);
    }

    .brand-logo-mark {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .brand-logo-copy strong,
    .header.header--compact .brand-logo-copy strong {
        font-size: 21px;
    }

    .brand-logo-copy small,
    .header.header--compact .brand-logo-copy small {
        font-size: 8px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .privacy-document {
        padding: 18px;
    }

    .privacy-document h2 {
        font-size: 20px;
    }
}

@media (max-width: 760px) {
    .service-point,
    .gasholder-info,
    .montage-label,
    .refueling-label,
    .maintenance-label,
    .commercial-label {
        display: none;
    }
}

.contact-card .contact-card-second-strong {
    display: block;
    margin-top: -10px;
}

/* FAQ: keep closed rows aligned; stop neighbor stretching only while an item is opened */
.faq-grid {
    align-items: stretch;
}

.faq-item {
    align-self: stretch;
    min-height: 100%;
}

.faq-item:not([open]) {
    display: flex;
    align-items: center;
}

.faq-item:not([open]) summary {
    width: 100%;
}

.faq-grid:has(.faq-item[open]) {
    align-items: start;
}

.faq-grid:has(.faq-item[open]) .faq-item {
    align-self: start;
    min-height: 0;
    height: fit-content;
}

.work-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: 999px;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 7px 14px;

    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;

    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.page-main .project-tag {
    background: rgba(191, 219, 254, 0.12);
    color: #dbeafe;
    border: 1px solid rgba(191, 219, 254, 0.18);
}
