:root {
    --text: #111;
    --accent-2: #e2ede8;
}

/* БАЗА */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #fff;
}

.container,
.main-container,
.header-inner,
.hero-inner,
.section-inner,
.gallery-grid,
.contact-inner,
.footer-inner,
.container-1120 {
    width: min(1280px, 100% - 40px);
    margin: 0 auto;
}

/* Для страниц типа "Контакты" */

.page-gap {
    padding-top: 140px;
    padding-bottom: 80px;
}

.container-1120 {
    max-width: 1120px;
}

.lead {
    font-size: 18px;
    color: var(--text);
    opacity: 0.9;
    margin-top: 10px;
}

/* ХЕДЕР */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: none;
}

.header-bar {
    width: min(1380px, 100% - 40px);
    margin: 0 auto;
    background: #1755e6;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
}

.header-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 64px;
    border-radius: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 18px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.header-nav a:hover {
    opacity: 1;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
}

.header-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    font-weight: 700;
    font-size: 22px;
}

/* СЕКЦИИ */

.section {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.section-1 {
    position: relative;
    width: 100%;
    height: 1000px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('/static/img/zavod.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* HERO */

.hero-title {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    margin-bottom: 50px;
    padding: 18px 38px;
    background: #ff6a00;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.4);
    transition: 0.2s ease;
}

.hero-btn:hover {
    background: #ff7e1f;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 20px;
}

.stat {
    position: relative;
    padding-right: 40px;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 16px;
    opacity: 0.8;
}

/* СЕКЦИЯ 2 — КАТАЛОГ */

.section-2 {
    background: linear-gradient(90deg, #1755e6 0%, #48a7ff 100%);
    color: #fff;
    padding-top: 100px;
    padding-bottom: 100px;
}

.catalog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    overflow: hidden;
}

.product-image {
    width: 50%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 75%;
    height: auto;
    object-fit: cover;
}

.product-info {
    width: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 20px;
    margin: 0 0 20px;
}

.product-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #e76000;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.product-btn:hover {
    background: #e8eeff;
}

/* СЕКЦИЯ 3 — ПРАЙС */

.section-3 {
    background: #fff;
    padding-top: 60px;
    padding-bottom: 120px;
}

.price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.price-text {
    width: 40%;
}

.price-text h3 {
    font-size: 32px;
    color: #1e33a0;
    margin-bottom: 24px;
    line-height: 1.2;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ff6a00;
    padding: 14px 32px;
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.3);
    transition: 0.2s;
}

.btn-download:hover {
    background: #ff7e1f;
}

.price-image {
    width: 60%;
    display: flex;
    justify-content: center;
}

.price-image img {
    width: 80%;
    max-width: 520px;
    height: auto;
    display: block;
}
/* ===== ДЕСКТОП: заголовок по центру, кнопка поверх изображения ===== */
@media (min-width: 1025px) {

    .compact-price {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center; /* центрируем содержимое */
        min-height: 380px;
    }

    /* Заголовок строго по центру */
    .compact-price .price-text {
        text-align: center;
        flex: 0 0 auto;
        width: auto;
        margin: 0 auto;
    }

    .compact-price .price-text h3 {
        text-align: center;
    }

    /* Картинка справа */
    .compact-price .price-image {
        position: relative;
        flex: 0 0 auto;
    }

    /* Кнопка поверх картинки */
    .compact-price .btn-download {
        position: absolute;
        top: 68%;
        left: 375px;
        transform: translateY(-50%);
        z-index: 5;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }
}

/* БЛОК КОНТАКТОВ + ГАЛЕРЕЯ ВНИЗУ ГЛАВНОЙ */

.contact-block {
    background: #fff;
    position: relative;
    padding-top: 0;
}

.contact-banner {
    background: linear-gradient(90deg, #1e33a0, #1755e6);
    margin-top: 40px;
    padding: 60px 0 80px;
    color: #fff;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: linear-gradient(90deg, #1e33a0, #1755e6);
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.overlap-card {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.contact-left,
.contact-right {
    width: 45%;
}

.pretext {
    opacity: 0.85;
    margin-bottom: 12px;
    font-size: 16px;
}

.big-phone {
    font-size: 32px;
    font-weight: 700;
}

.email {
    font-size: 22px;
    font-weight: 600;
    color: #ff6a00;
}

.divider {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.partnertcreate {
    text-align: center;
}

/* ПАРТНЁРЫ */

.partners-section {
    padding: 60px 0;
    background: #fff;
}

.partners-title {
    font-size: 32px;
    margin-bottom: 32px;
    color: #1242b3;
    text-align: center;
}

/* ДЕСКТОП / ПО УМОЛЧАНИЮ
   Аккуратная сетка 5–6 логотипов в строку, блок по центру */
.partners-grid {
    display: grid;
    width: min(1100px, 100% - 80px);
    margin: 0 auto;

    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px 32px;
    align-items: center;
    justify-items: center;
}

.partners-grid img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.95;
}

.partners-grid img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ===== Мобильная версия блока "Нашими заказчиками являются" ===== */
@media (max-width: 768px) {

    .partners-section {
        padding: 32px 0 40px;
    }

    .partners-title {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }

    .partners-grid {
        width: min(420px, 100% - 40px);
        margin: 0 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 логотипа в ряд */
        gap: 18px 14px;
    }

    .partners-grid img {
        width: 64px;
        height: 64px;
    }

    /* На мобилке показываем только первые 9 логотипов */
    .partners-grid img:nth-child(n+10) {
        display: none;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        width: min(360px, 100% - 32px);
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 логотипа в ряд */
        gap: 16px 14px;
    }

    .partners-grid img {
        width: 70px;
        height: 70px;
    }
}


/* КАРТЫ 5–6 */

.section-5,
.section-6 {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-5::before,
.section-6::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;          /* картинка заполняет блок, без растягивания */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* свои разные картинки */
.section-5::before {
    background-image: url('/static/img/png&jpg/map 3.png');
}

.section-6::before {
    background-image: url('/static/img/png&jpg/map 2.png');
}

.section-5 .section-inner,
.section-6 .section-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .section-5,
    .section-6 {
        min-height: 220px;   /* меньше высота на мобилке */
    }

    .section-5::before,
    .section-6::before {
        background-size: contain;   /* сохраняет пропорции */
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;
        height: 100%;
    }

}

/* FOOTER */

.footer {
    background: #1755e6;
    padding: 30px 0;
    border-top: 0px solid #eee;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo img {
    height: 50px;
}

.footer-text {
    font-size: 16px;
    color: var(--text);
    white-space: nowrap;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-phone a {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.phone-icon {
    width: 22px;
    height: 22px;
}

/* ГАЛЕРЕЯ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item--hidden {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ФИКСИРОВАННЫЕ КНОПКИ */

.fixed-contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

.fc-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.fc-wa {
    background-color: #25D366;
    background-image: url("/static/img/icons/wa.svg");
}

.fc-call {
    background-color: #007bff;
    background-image: url("/static/img/icons/phone.svg");
}

/* КОНТАКТЫ (СТРАНИЦА) */

.contact-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-info {
    margin-top: 30px;
}

.contact-card {
    background: linear-gradient(90deg, #1755e6, #1e33a0);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    color: #fff;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.contact-phone {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.contact-soc {
    margin-top: 24px;
}

.contact-soc h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.soc-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.soc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    text-decoration: none;
    color: #fff;
    padding: 5px 5px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.soc-item:hover {
    background: var(--accent-2);
}

.soc-item img {
    width: 22px;
    height: 22px;
}

.contact-map {
    margin-top: 50px;
    margin-bottom: 50px;
}

.map-wrap {
    margin-top: 20px;
    width: 100%;
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ЛАЙТБОКС */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.lightbox-inner {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: min(90vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 3;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* МОДАЛКА ПОД ПРАЙС */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-window {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 28px;
    width: min(420px, 100% - 40px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    position: relative;
    color: #111;
    font-family: Arial, sans-serif;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.modal-title {
    font-size: 22px;
    margin: 0 0 6px;
}

.modal-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 0 0 18px;
}

.modal-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-field label {
    font-size: 14px;
}

.modal-field input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d4e4;
    font-size: 14px;
}

.modal-field input:focus {
    outline: 2px solid #1755e6;
    border-color: #1755e6;
}

.modal-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin: 10px 0 16px;
}

.modal-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    background: #1755e6;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.modal-submit-btn:hover {
    background: #1e33a0;
}

.modal-status {
    margin-top: 10px;
    font-size: 13px;
}

/* НИЖНИЙ КРАСИВЫЙ КОНТАКТ-БЛОК */

.beautiful-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 45px 60px;
    gap: 50px;
    background: linear-gradient(90deg, #1543d1 0%, #1e5dff 100%);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: #fff;
    font-family: "Inter", sans-serif;
}

.c-block {
    flex: 1;
}

.c-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.95;
}

.c-sub {
    font-size: 15px;
    margin-bottom: 18px;
    opacity: 0.9;
}

.c-phone {
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: 0.25s;
}

.c-phone span {
    opacity: 0.9;
}

.c-phone:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.c-mail {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: 0.25s;
}

.c-mail:hover {
    color: #e0eaff;
}

.c-divider {
    width: 2px;
    height: 90px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}

/* КОМПАКТНЫЙ БЛОК ПРАЙСА В СЕКЦИИ 3 */

.compact-price {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.compact-price .price-text h3 {
    font-size: 34px;
    line-height: 1.25;
    color: #0d37c0;
    margin-bottom: 25px;
}

.compact-price .btn-download {
    background: #ff7f1e;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(255,128,0,0.4);
    transition: 0.25s;
}

.compact-price .btn-download:hover {
    background: #e56909;
    transform: translateY(-2px);
}

.compact-price .price-image img {
    width: 350px;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: 0.3s ease;
}

.compact-price .price-image img:hover {
    transform: scale(1.05);
}

/* ========= АДАПТИВ ========= */

/* 1024 и меньше – выключаем фикс.высоты и немного ужимаем */

@media (max-width: 1024px) {
    .header-inner {
        padding: 10px 18px;
        gap: 18px;
    }

    .header-nav {
        font-size: 16px;
        gap: 14px;
    }

    .header-contacts {
        font-size: 20px;
    }

    .hero-title {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        gap: 30px;
    }

    .section,
    .section-1 {
        height: auto;
    }

    .section-1 {
        padding: 150px 0 80px;
    }

    .price-block {
        gap: 30px;
    }

    .contact-inner {
        gap: 30px;
    }

    .compact-price {
        gap: 30px;
    }
}

/* 900 и меньше – блоки контактов и прайса в колонку */

@media (max-width: 900px) {
    .beautiful-contact {
        flex-direction: column;
        text-align: center;
        padding: 35px 28px;
        gap: 28px;
    }

    .c-divider {
        width: 70%;
        height: 2px;
    }

    .c-phone {
        font-size: 26px;
    }

    .c-mail {
        font-size: 20px;
    }

    .compact-price {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .compact-price .price-image img {
        width: 260px;
    }

    .compact-price .price-text h3 {
        font-size: 26px;
    }
}

/* 768 и меньше – основная мобильная логика, всё в одну колонку */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container,
    .main-container,
    .header-inner,
    .hero-inner,
    .section-inner,
    .gallery-grid,
    .contact-inner,
    .footer-inner,
    .container-1120 {
        width: min(100%, 100% - 24px);
        margin: 0 auto;
    }

    .header-inner {
        width: 100%;
        padding-inline: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-logo {
        font-size: 18px;
        gap: 6px;
    }

    .header-logo-icon {
        height: 50px;
    }

    .header-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .header-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 4px;
        column-gap: 12px;
        font-size: 14px;
    }

    .header-nav a {
        padding: 3px 0;
    }

    .header-contacts {
        font-size: 16px;
    }

    .header-phone {
        font-weight: 500;
    }

    .section {
        padding: 60px 0;
    }

    .section-1 {
        height: auto;
        padding: 140px 0 70px;
    }

    .hero-inner {
        max-width: 460px;
        text-align: left;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.2;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .hero-btn {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 18px;
        padding: 14px 22px;
        margin-bottom: 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding-top: 10px;
    }

    .stat {
        padding-right: 0;
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .stat-value {
        font-size: 26px;
    }

    .stat-label {
        font-size: 13px;
    }

    .section-2 {
        padding: 60px 0;
    }

    .catalog-title {
        font-size: 26px;
        margin-bottom: 26px;
        text-align: left;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image,
    .product-info {
        width: 100%;
    }

    .product-image {
        height: auto;
        padding: 0;
    }

    .product-image img {
        width: 100%;
        max-width: none;
        height: auto;
        object-fit: contain;
    }

    /* Кнопка — по центру, и текст тоже по центру */
    .product-btn {
        width: 70%;
        margin: 0 auto;
        padding: 12px 16px;

        display: flex;
        justify-content: center;
        align-items: center;

        text-align: center;

        font-size: 16px;
        border-radius: 10px;
    }

    /* На случай если внутри есть span — выравниваем */
    .product-btn span {
        display: inline-block;
        text-align: center;
        width: 100%;
    }

    /* Заголовок */
    .product-info h3 {
        text-align: center;
        font-size: 18px;
        margin-bottom: 12px;
    }
}

    .section-3 {
        padding: 50px 0 0px;
    }

    .price-block {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .price-text,
    .price-image {
        width: 100%;
    }

    .price-text h3 {
        font-size: 26px;
    }

    .contact-banner {
        padding: 44px 0 64px;
    }

    .contact-inner {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
        gap: 22px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .divider {
        width: 60%;
        height: 1px;
    }

    .big-phone {
        font-size: 26px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
    }

    .partners-grid img {
        width: 64px;
        height: 64px;
    }

    .section-5,
    .section-6 {
        height: auto;
        min-height: 320px;
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-inner {
        gap: 20px;
        padding-inline: 20px;
    }

    .footer-text,
    .footer-phone a {
        color: #ffffff;
    }

    .contact-header h1 {
        font-size: 34px;
        margin-bottom: 10px;
    }

    .contact-card {
        padding: 28px 24px;
    }

    .contact-phone {
        font-size: 24px;
    }

    .map-wrap {
        height: 320px;
    }

    .beautiful-contact {
        margin-top: 40px;
    }

    .page-gap {
        padding-top: 130px;
        padding-bottom: 60px;
    }


/* 600 и меньше – ещё компактнее */

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .fixed-contact-buttons {
        right: 12px;
        bottom: 14px;
        gap: 12px;
    }

    .fc-circle {
        width: 56px;
        height: 56px;
    }

    .lightbox-inner {
        max-width: 100vw;
        max-height: 100vh;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 14px;
    }

    .beautiful-contact {
        padding: 32px 20px;
    }

    .c-title {
        font-size: 18px;
    }

    .c-sub {
        font-size: 14px;
    }

    .c-phone {
        font-size: 24px;
    }

    .c-mail {
        font-size: 18px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .map-wrap {
        height: 280px;
    }
}

/* 430 и меньше – iPhone 15 Pro Max и похожие */

@media (max-width: 430px) {
    .header-inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .header-logo-icon {
        height: 44px;
    }

    .header-nav {
        font-size: 13px;
        row-gap: 2px;
        column-gap: 10px;
    }

    .header-contacts {
        font-size: 14px;
    }

    .section-1 {
        padding: 130px 0 60px;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero-btn {
        font-size: 16px;
        padding: 12px 18px;
        margin-bottom: 22px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .catalog-title,
    .partners-title {
        font-size: 22px;
    }

    .product-info h3 {
        font-size: 17px;
    }

    .price-text h3 {
        font-size: 22px;
    }

    .contact-header h1 {
        font-size: 28px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .contact-phone {
        font-size: 22px;
    }

    .map-wrap {
        height: 260px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 16px;
    }

    .compact-price {
        padding: 28px 18px;
    }

    .compact-price .price-image img {
        width: 230px;
    }

    .page-gap {
        padding-top: 120px;
        padding-bottom: 50px;
    }
}

.burger {
    display: none;
    border: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.burger-lines {
    position: relative;
    width: 18px;
    height: 2px;
    background: #fff;
}

.burger-lines::before,
.burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.burger-lines::before {
    top: -6px;
}

.burger-lines::after {
    top: 6px;
}

.burger.is-open .burger-lines {
    background: transparent;
}

.burger.is-open .burger-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.burger.is-open .burger-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.burger-label {
    text-transform: uppercase;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9998;
}

.mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: #1755e6;
    box-shadow: -8px 0 24px rgba(0,0,0,0.35);
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9999;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

.mobile-menu a:hover {
    opacity: 1;
}

/* Мобильное поведение хедера: оставляем логотип, телефон и бургер */

@media (max-width: 768px) {

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
    }

    .header-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .header-nav {
        display: none !important;
    }

    .header-contacts {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }

    .header-phone {
        font-weight: 600;
        white-space: nowrap;
    }

    .burger {
        display: flex !important;
    }

    .header-logo {
        display: flex;
        align-items: center;
    }

    .header-logo-icon {
        height: 40px;
    }
}


@media (max-width: 768px) {

    .section-3 {
        padding: 32px 0 40px;           /* меньше воздуха снизу */
    }

    .price-block {
        flex-direction: column;
        text-align: center;
        gap: 0px;
        padding: 24px 18px 24px;        /* заголовок ближе к верху карточки */
    }

    .price-text h3 {
        font-size: 24px;
        margin-bottom: 14px;            /* меньше отступа под заголовком */
    }

    .btn-download {
        margin: 0 auto 4px;             /* кнопка по центру */
        font-size: 16px;
        padding: 12px 22px;
    }

    .price-image img {
        width: 100%;                     /* картинка крупнее */
        max-width: 400px;
    }
}

@media (max-width: 480px) {

    .section-3 {
        padding: 28px 0 32px;
    }

    .price-block {
        padding: 20px 16px 22px;
    }

    .price-text h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .section-5,
    .section-6 {
        display: none !important;
    }
}

/* По умолчанию — показываем везде (ПК + мобильные) */
.image-section {
    display: block;
    width: 100%;
    overflow: hidden;
}

/* Изображение — адаптивное везде */
.image-section img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}



