/* =========================================================
   ELSTER ГАЗЭЛЕКТРОНИКА
   Основные стили сайта
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #f7f9fc;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5eaf0;
    box-shadow: 0 2px 15px rgba(15, 35, 55, 0.05);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #0756a5;
    letter-spacing: -0.5px;
}

.logo::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 32px;
    margin-right: 10px;
    border-radius: 4px;
    background: #0756a5;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    position: relative;
    display: block;
    padding: 10px 14px;
    color: #354052;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: #0756a5;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-list a:hover {
    color: #0756a5;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   HEADER BUTTON
   ========================================================= */

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 7px;
    background: #0756a5;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.header-button:hover {
    background: #064783;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(7, 86, 165, 0.22);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(35, 126, 215, 0.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eef5fb 0%,
            #ffffff 55%,
            #edf5fc 100%
        );
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -220px;
    border-radius: 50%;
    background: rgba(7, 86, 165, 0.07);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 22px;
    color: #14283d;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero p {
    max-width: 700px;
    margin: 0;
    color: #526274;
    font-size: 20px;
    line-height: 1.65;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 85px 0;
    background: #ffffff;
}

.section:nth-of-type(even) {
    background: #f7f9fc;
}

.section h2 {
    position: relative;
    margin: 0 0 25px;
    color: #172b40;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.section h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin-top: 14px;
    border-radius: 3px;
    background: #0756a5;
}

.section p {
    max-width: 850px;
    margin: 0 0 18px;
    color: #59697a;
    font-size: 17px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(30, 55, 80, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(30, 55, 80, 0.11);
}

.card h3 {
    margin: 0 0 12px;
    color: #17334f;
    font-size: 21px;
}

.card p {
    margin: 0;
    font-size: 15px;
}


/* =========================================================
   CATALOG
   ========================================================= */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    box-shadow: 0 7px 25px rgba(30, 55, 80, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(30, 55, 80, 0.1);
}

.product-card-image {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f6fa;
}

.product-card-content {
    padding: 25px;
}

.product-card h3 {
    margin: 0 0 10px;
    color: #17334f;
    font-size: 20px;
}

.product-card p {
    margin: 0 0 15px;
    font-size: 15px;
}

.product-price {
    color: #0756a5;
    font-size: 22px;
    font-weight: 800;
}


/* =========================================================
   CONTACTS
   ========================================================= */

#contacts {
    background: #102b45;
    color: #ffffff;
}

#contacts h2 {
    color: #ffffff;
}

#contacts h2::after {
    background: #55a9f5;
}

#contacts p {
    color: #c9d6e2;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 35px 0;
    background: #0b2034;
    color: #9fb0c0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
}


/* =========================================================
   BURGER MENU
   ========================================================= */

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #172b40;
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 1023px) {

    .header-inner {
        position: relative;
        min-height: 70px;
    }

    .burger {
        display: flex;
        margin-left: 10px;
    }

    .header-button {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        display: none;
        width: 100%;
        margin: 0;
        background: #ffffff;
        border-top: 1px solid #e5eaf0;
        box-shadow: 0 15px 30px rgba(20, 40, 60, 0.1);
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        padding: 14px 10px;
        border-bottom: 1px solid #edf0f3;
        font-size: 16px;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }

    .burger.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .burger.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .card-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 75px 0;
    }

    .section {
        padding: 70px 0;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 599px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-inner {
        gap: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .logo::before {
        width: 6px;
        height: 27px;
        margin-right: 8px;
    }

    .burger {
        width: 42px;
        height: 42px;
        margin-left: auto;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 55px 0;
    }

    .section h2 {
        font-size: 30px;
    }

    .card-grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(7, 86, 165, 0.35);
    outline-offset: 3px;
}