:root {
    --blue: #1d62d9;
    --blue-dark: #0a3682;
    --blue-deep: #06285f;
    --gray: #dddfe9;
    --light: #f5f6fa;
    --white: #ffffff;
    --text: #142033;
    --muted: #5d687a;
    --border: #d7dbe7;
    --shadow: 0 18px 50px rgba(10, 54, 130, .08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: 76px;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(6, 40, 95, .18);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    max-width: 360px;
    text-decoration: none;
    line-height: 1.15;
    font-weight: 700;
}

.logo span,
.logo small {
    display: block;
}

.logo span {
    font-size: 16px;
    letter-spacing: .01em;
}

.logo small {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    opacity: .82;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    white-space: nowrap;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    opacity: .88;
    transition: opacity .18s ease;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
    opacity: .8;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    position: relative;
    z-index: 110;
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Common */

main {
    min-height: 60vh;
}

.hero,
.page-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(29, 98, 217, .14), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.hero {
    padding: 100px 0 92px;
}

.page-hero {
    padding: 86px 0 78px;
    border-bottom: 1px solid var(--border);
}

.hero-grid,
.page-hero-grid,
.installation-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.12;
}

h1 {
    max-width: 900px;
    margin-bottom: 24px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -.035em;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.025em;
}

h3 {
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: -.015em;
}

p {
    margin-top: 0;
}

.hero-subtitle,
.lead {
    max-width: 860px;
    color: var(--muted);
    font-size: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(29, 98, 217, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(29, 98, 217, .28);
}

.hero-card {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(29, 98, 217, .16);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(10, 54, 130, .95), rgba(29, 98, 217, .86)),
        var(--blue-dark);
    color: var(--white);
    box-shadow: var(--shadow);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .45;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    border: 32px solid rgba(255, 255, 255, .08);
}

.hero-card p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 0;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.45;
}

.section {
    padding: 88px 0;
}

.section.light {
    background: var(--light);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.section-head p {
    max-width: 540px;
    margin-bottom: 0;
    color: var(--muted);
}

/* Cards */

.feature-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.feature-card,
.item-card,
.technical-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 34px rgba(10, 54, 130, .045);
}

.feature-card,
.technical-block {
    padding: 28px;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--blue);
}

.feature-card p,
.technical-block p,
.item-card-body p,
.item-card-body div {
    color: var(--muted);
}

.item-card {
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 98, 217, .35);
    box-shadow: var(--shadow);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(29, 98, 217, .12), rgba(10, 54, 130, .06)),
        var(--light);
    color: var(--blue-dark);
    text-align: center;
    font-weight: 700;
}

.image-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(10, 54, 130, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.image-placeholder-large {
    min-height: 320px;
}

.item-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--gray);
}

.item-card-body {
    padding: 24px;
}

.item-card-body h3 {
    margin-bottom: 12px;
}

.item-card-body a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.item-card-body a:hover {
    text-decoration: underline;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.note-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.info-note {
    padding: 28px 30px;
    border-left: 5px solid var(--blue);
    border-radius: var(--radius);
    background: var(--light);
    color: var(--text);
    box-shadow: 0 12px 34px rgba(10, 54, 130, .045);
}

.hero-image {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--gray);
    box-shadow: var(--shadow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(10, 54, 130, .045);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 14px 16px;
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--white);
}

/* Footer */

.site-footer {
    padding: 78px 0 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(29, 98, 217, .32), transparent 28%),
        var(--blue-deep);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 56px;
}

.site-footer h2 {
    margin-bottom: 18px;
}

.site-footer p {
    color: rgba(255, 255, 255, .78);
}

.site-footer a {
    color: var(--white);
}

.contacts-list {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
}

.contacts-list p {
    margin: 0 0 14px;
}

.contacts-list p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

/* Responsive */

@media (max-width: 1040px) {
    .main-nav {
        gap: 16px;
        font-size: 14px;
    }

    .logo {
        max-width: 300px;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 68px;
    }

    .header-inner {
        position: relative;
        min-height: 68px;
        padding: 0;
    }

    .logo span {
        font-size: 14px;
    }

    .logo small {
        font-size: 12px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: -20px;
        right: -20px;
        display: none;
        padding: 18px 20px 22px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        background: var(--blue-dark);
        box-shadow: 0 18px 30px rgba(6, 40, 95, .22);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        font-size: 15px;
        white-space: normal;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a::after {
        display: none;
    }

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

    .hero-grid,
    .page-hero-grid,
    .installation-hero-grid,
    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 260px;
    }

    .feature-grid,
    .card-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 66px 0;
    }

    .section-head {
        display: block;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-subtitle,
    .lead {
        font-size: 16px;
    }

    .page-content {
    max-width: 900px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 17px;
    }

    .page-content p {
    margin-bottom: 14px;
    }

    .page-content ul {
    padding-left: 22px;
    }

    .page-content li {
    margin-bottom: 8px;
    }

    .feature-grid,
    .card-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .feature-card,
    .technical-block,
    .item-card,
    .info-note,
    .contacts-list {
        border-radius: 14px;
    }

    .footer-grid {
        gap: 34px;
    }
}

.product-gallery {
    position: relative;
    overflow: hidden;
    background: #f4f6fb;
}

.product-gallery__viewport {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-gallery__image-button {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery__image-button.is-active {
    display: block;
}

.product-gallery__image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(221, 223, 233, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #0a3682;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.product-gallery__arrow--prev {
    left: 10px;
}

.product-gallery__arrow--next {
    right: 10px;
}

.product-gallery__counter {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(10, 54, 130, 0.84);
    color: #ffffff;
    font-size: 12px;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.gallery-modal.is-open {
    display: block;
}

.gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 42, 0.82);
}

.gallery-modal__dialog {
    position: absolute;
    inset: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal__image {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    background: #ffffff;
}

.gallery-modal__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a3682;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.gallery-modal__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a3682;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-modal__arrow--prev {
    left: 0;
}

.gallery-modal__arrow--next {
    right: 0;
}

.gallery-modal__caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    max-width: 90vw;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a3682;
    font-size: 14px;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .gallery-modal__dialog {
        inset: 16px;
    }

    .gallery-modal__arrow {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .gallery-modal__caption {
        border-radius: 12px;
        text-align: center;
    }
}

.installation-gallery__button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: left;
}

.installation-gallery__button img {
    display: block;
    width: 100%;
}

.installation-gallery__button:hover img {
    opacity: 0.92;
}

.materials-group {
    margin-top: 42px;
}

.materials-group:first-of-type {
    margin-top: 0;
}

.materials-group__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.materials-group__header::after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background: #dddfe9;
}

.materials-group__header h2 {
    margin: 0;
    color: #0a3682;
}

.materials-group__description {
    max-width: 920px;
    margin: -8px 0 24px;
    color: #4a5875;
}