:root {
    --bg: #525252;
    --text: #ffffff;
    --accent: #f8b128;
    --radius: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

/* ----- HEADER ----- */

.header {
    padding: 20px 0;
        /* Тонкая белая линия */
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);

    /* Лёгкая тень вниз */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    font-size: 18px;
}

a {
    color: var(--text);
    text-decoration: none;
}

/* Телефон */
.phone {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

/* Кнопки */
.btn {
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: 0.2s;
}

/* Десктопная кнопка */
.desktop-btn {
    display: inline-block;
}

/* Мобильная кнопка внутри меню */
.mobile-btn {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* -----------------------------------
   БУРГЕР-МЕНЮ (CSS)
----------------------------------- */

.burger-checkbox {
    display: none;
}

.burger {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.burger::before,
.burger::after,
.burger span {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.burger::before {
    top: 0;
}
.burger::after {
    bottom: 0;
}
.burger span {
    top: 10px;
}

/* Линия внутри (чтобы было 3 полосы) */
.burger::after,
.burger::before,
.burger span {}

/* Включение анимации при открытии */
.burger-checkbox:checked + .burger::before {
    transform: translateY(10px) rotate(45deg);
}
.burger-checkbox:checked + .burger::after {
    transform: translateY(-10px) rotate(-45deg);
}

.phonemob {
    display: none;
}

/* ----------- МОБИЛЬНОЕ МЕНЮ ----------- */
@media (max-width: 900px) {

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #3d3d3d;
        padding: 80px 30px;
        transition: 0.35s;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        z-index: 1000;
    }

    .phonemob {
    display: block;
}

    nav ul {
        flex-direction: column;
        gap: 25px;
        font-size: 20px;
    }

    /* Кнопка внутри мобильного меню */
    .mobile-btn {
        display: block;
    }

    /* Открытие меню */
    .burger-checkbox:checked ~ nav {
        right: 0;
    }

    /* Бургер появляется */
    .burger {
        display: block;
    }

    /* Прячем телефон */
    .phone {
        display: none;
    }

    /* Прячем десктопную кнопку на мобилках */
    .desktop-btn {
        display: none;
    }
}

/* ----------- ПЛАНШЕТ/МОБИЛКА ----------- */
@media (max-width: 600px) {
    .logo {
        font-size: 22px;
    }
}

/* ----- Диапазон 901–1140 px ----- */
@media (min-width: 901px) and (max-width: 1140px) {
    nav ul {
        gap: 22px;          /* было 35px */
        font-size: 13px;    /* было 18px */
    }

    .phone {
        font-size: 18px;    /* чтобы гармонировало */
    }

    .btn {
        padding: 10px 20px; /* лёгкое уменьшение */
        font-size: 15px;
    }
}



/* -------------------------
      ГЛАВНЫЙ ЭКРАН (HERO)
------------------------- */

.hero {
    padding: 80px 0;
    background: var(--bg);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    max-width: 60%;
}

.hero-label {
    font-size: 18px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 38px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtext {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 35px;
}

.hero-btn {
    padding: 14px 30px;
    font-size: 18px;
}

/* Картинка справа */
.hero-image img {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
}

/* -------- ADAPTIVE -------- */

/* Планшет */
@media (max-width: 1100px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-subtext {
        font-size: 17px;
    }
    .hero-image img {
        max-width: 350px;
    }
}

/* Мобильная версия */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-btn {
        margin: 0 auto;
    }
    .hero-image img {
        max-width: 300px;
        margin-top: 30px;
    }
}






/* -------------------------
        CATALOG
------------------------- */

.catalog {
    width: 100%;
    padding: 0;
    border-top: 2px solid #f8b128;      /* верхняя линия */
    border-bottom: 2px solid #f8b128;   /* нижняя линия */
}

.catalog-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Линия между карточками */
.catalog-card {
    position: relative;
    border-right: 2px solid #f8b128;
}

.catalog-card:last-child {
    border-right: none;
}

/* Изображение 3:2 */
.catalog-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* Ховер */
.catalog-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.35s;
    text-align: center;
}

.catalog-hover h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 18px;
}

/* Кнопка */
.yellow-btn {
    background: #f8b128;
    padding: 12px 28px;
    font-size: 17px;
    color: #fff;              /* БЕЛЫЙ текст */
    font-weight: 600;
    border-radius: 30px;      /* 30px скругление */
    transition: 0.3s;
}

.yellow-btn:hover {
    opacity: 0.9;
}

/* Hover эффект */
.catalog-card:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
}

.catalog-card:hover .catalog-hover {
    opacity: 1;
}

/* -------- ADAPTIVE -------- */

@media (max-width: 900px) {
    .catalog-inner {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        border-right: none;
        border-bottom: 2px solid #f8b128;   /* линия между карточками */
    }

    .catalog-card:last-child {
        border-bottom: none;
    }

    .catalog-hover h3 {
        font-size: 22px;
    }
}

@media (max-width: 500px) {
    .yellow-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}



/* -------------------------
     CATALOG – 6 CARDS
------------------------- */

.catalog-6 {
    width: 100%;
    border-top: 2px solid #f8b128;
    border-bottom: 2px solid #f8b128;

}

.catalog-inner-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Линии между карточками */
.catalog-inner-6 .catalog-card {
    border-right: 2px solid #f8b128;
}

.catalog-inner-6 .catalog-card:nth-child(3n) {
    border-right: none; /* последняя карточка в ряду */
}

/* Изображение 3:2 */
.catalog-inner-6 .catalog-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.catalog-inner-6 .catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

/* Hover слой */
.catalog-inner-6 .catalog-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    text-align: center;
}

.catalog-inner-6 .catalog-hover h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 16px;
}

/* Кнопка */
.catalog-inner-6 .yellow-btn {
    background: #f8b128;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.catalog-inner-6 .yellow-btn:hover {
    opacity: 0.9;
}

/* Hover эффект */
.catalog-inner-6 .catalog-card:hover img {
    transform: scale(1.05);
    filter: brightness(70%);
}

.catalog-inner-6 .catalog-card:hover .catalog-hover {
    opacity: 1;
}

/* -------- ADAPTIVE -------- */

/* Планшет */
@media (max-width: 1000px) {
    .catalog-inner-6 {
        grid-template-columns: 1fr 1fr;
    }
    .catalog-inner-6 .catalog-card:nth-child(2n) {
        border-right: none;
    }
}

/* Мобильные устройства */
@media (max-width: 700px) {
    .catalog-inner-6 {
        grid-template-columns: 1fr;
    }
    .catalog-inner-6 .catalog-card {
        border-right: none;
        border-bottom: 2px solid #f8b128;
    }
    .catalog-inner-6 .catalog-card:last-child {
        border-bottom: none;
    }
    .catalog-inner-6 .catalog-hover h3 {
        font-size: 20px;
    }
}


/* ---------- 1000px–700px: двухколоночная сетка со всеми линиями ---------- */
@media (max-width: 1000px) and (min-width: 701px) {

    .catalog-inner-6,
    .catalog-inner-3 {
        grid-template-columns: 1fr 1fr;
    }

    /* ВКЛЮЧАЕМ ВСЕ ЛИНИИ */
    .catalog-inner-6 .catalog-card,
    .catalog-inner-3 .catalog-card {
        border-right: 2px solid #FFD200 !important;
        border-bottom: 2px solid #FFD200 !important;
    }

    /* Последние 2 карточки в нижнем ряду — без нижней линии */
    .catalog-inner-6 .catalog-card:nth-last-child(-n+2),
    .catalog-inner-3 .catalog-card:nth-last-child(-n+2) {
        border-bottom: none !important;
    }

    /* Правую линию убираем только у каждой второй карточки */
    .catalog-inner-6 .catalog-card:nth-child(2n),
    .catalog-inner-3 .catalog-card:nth-child(2n) {
        border-right: none !important;
    }
}

/* ---------- До 700px: одна колонка, сохраняем все линии ---------- */
@media (max-width: 700px) {

    .catalog-inner-6,
    .catalog-inner-3 {
        grid-template-columns: 1fr;
    }

    .catalog-inner-6 .catalog-card,
    .catalog-inner-3 .catalog-card {
        border-right: 2px solid #FFD200 !important;
        border-bottom: 2px solid #FFD200 !important;
    }

    .catalog-inner-6 .catalog-card:last-child,
    .catalog-inner-3 .catalog-card:last-child {
        border-bottom: none !important;
    }
}




/* -------------------------
     CATALOG – универсальные линии
------------------------- */

.catalog-inner-6,
.catalog-inner-3 {
    display: grid;
    grid-gap: 0; /* убираем промежуток, линии через бордер */
}

/* Карточки: линии справа и снизу */
.catalog-inner-6 .catalog-card,
.catalog-inner-3 .catalog-card {
    border-right: 2px solid #FFD200;   /* линии между колонками */
    border-bottom: 2px solid #FFD200;  /* линии между строками */
}

/* Последние карточки в ряду — убираем правую линию */
.catalog-inner-6 .catalog-card:nth-child(3n),
.catalog-inner-3 .catalog-card:nth-child(3n) {
    border-right: none;
}

/* Последняя строка — убираем нижнюю линию */
.catalog-inner-6 .catalog-card:nth-last-child(-n+3),
.catalog-inner-3 .catalog-card:nth-last-child(-n+3) {
    border-bottom: none;
}

/* Мобильные устройства оставляем как раньше */
@media (max-width: 1000px) {
    .catalog-inner-6,
    .catalog-inner-3 {
        grid-template-columns: 1fr 1fr;
    }
    .catalog-inner-6 .catalog-card:nth-child(2n),
    .catalog-inner-3 .catalog-card:nth-child(2n) {
        border-right: none;
    }
    .catalog-inner-6 .catalog-card:nth-last-child(-n+2),
    .catalog-inner-3 .catalog-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 700px) {
    .catalog-inner-6,
    .catalog-inner-3 {
        grid-template-columns: 1fr;
    }
    .catalog-inner-6 .catalog-card,
    .catalog-inner-3 .catalog-card {
        border-right: none;
        border-bottom: 2px solid #FFD200;
    }
    .catalog-inner-6 .catalog-card:last-child,
    .catalog-inner-3 .catalog-card:last-child {
        border-bottom: none;
    }
}

/* ---------- Мобильная версия: сохраняем ВСЕ линии ---------- */
@media (max-width: 700px) {

    /* Сетка — одна колонка */
    .catalog-inner-6,
    .catalog-inner-3 {
        grid-template-columns: 1fr;
    }

    /* У ВСЕХ карточек включены линии справа и снизу */
    .catalog-inner-6 .catalog-card,
    .catalog-inner-3 .catalog-card {
        border-right: 2px solid #FFD200 !important;
        border-bottom: 2px solid #FFD200 !important;
    }

    /* У ОДНОЙ последней карточки убираем нижнюю линию */
    .catalog-inner-6 .catalog-card:last-child,
    .catalog-inner-3 .catalog-card:last-child {
        border-bottom: none !important;
    }
}




/* -------------------------
       FOOTER
------------------------- */

.footer {
    background: #525252;
    color: #fff;
    padding: 50px 0 30px;
    font-family: Arial, sans-serif;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.footer-column ul li a:hover {
    color: #f8b128;
}

/* Нижняя строка */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #f8b128;
}

/* -------- ADAPTIVE -------- */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
    .footer-column {
        width: 100%;
    }
    .footer-column h4 {
        font-size: 16px;
    }
    .footer-column ul li {
        font-size: 15px;
    }
}




/* -------------------------
      MODAL / ПОПАП
------------------------- */

.modal {
    display: none; /* скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #525252;
    color: #fff;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    border-radius: 15px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 20px;
}

.modal h2 .highlight {
    color: #f8b128; /* желтый заголовок */
}

.modal .specs {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal .specs li {
    margin-bottom: 5px;
}

.modal p {
    margin-bottom: 10px;
}

.modal-images {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-images img {
    width: 50%;
    border-radius: 8px;
    object-fit: cover;
}



/* -------------------------
      MODAL / ФОРМА ЗАКАЗА
------------------------- */

#orderModal {
    display: none; /* скрыто по умолчанию */
    position: fixed; /* фиксируем относительно окна */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 19999; /* выше всего остального */
    overflow-y: auto; /* скролл только если контент большой */
    padding: 40px 20px; 
}

#orderModal .modal-content {
    background: #525252;
    color: #fff;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

#orderModal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

#orderModal h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#orderModal p {
    font-size: 16px;
    margin-bottom: 20px;
}

#orderModal .form-order {
    margin-top: 10px;
}

#orderModal .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

#orderModal .form-row label {
    margin-bottom: 5px;
    font-size: 14px;
}

#orderModal .form-row input,
#orderModal .form-row textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    background: #666;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

#orderModal .form-row input:focus,
#orderModal .form-row textarea:focus {
    outline: 2px solid #f8b128;
}

#orderModal .form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-row {
    display: flex;
}

#orderModal .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

#orderModal .checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

#orderModal .checkbox-row a {
    color: #f8b128;
    text-decoration: underline;
}

#orderModal .submit-btn {
    background: #f8b128;
    color: #fff;
    padding: 14px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    width: fit-content;
    align-self: flex-start;
}

#orderModal .submit-btn:hover {
    opacity: 0.9;
}

/* -------- АДАПТИВ -------- */
@media (max-width: 900px) {
    #orderModal .modal-content {
        padding: 30px 20px;
        border-radius: 12px;
    }

    #orderModal h2 {
        font-size: 20px;
    }

    #orderModal p {
        font-size: 14px;
    }

    #orderModal .submit-btn {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 16px;
    }
}

@media (max-width: 600px) {

    #orderModal {
        padding: 20px 12px; /* меньше отступы по краям */
    }

    #orderModal .modal-content {
        padding: 16px 14px;
        border-radius: 10px;
    }

    #orderModal h2 {
        font-size: 17px;
        margin-bottom: 6px;
        text-align: center;
    }

    #orderModal p {
        font-size: 12.5px;
        line-height: 1.35;
        text-align: center;
        margin-bottom: 14px;
    }

    #orderModal .form-row {
        margin-bottom: 10px;
    }

    #orderModal .form-row label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    #orderModal .form-row input,
    #orderModal .form-row textarea {
        font-size: 14px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    #orderModal .form-row textarea {
        min-height: 45px;
    }

    #orderModal .checkbox-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    #orderModal .checkbox-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

    #orderModal .checkbox-row label {
        font-size: 12px;
        line-height: 1.3;
    }

    #orderModal .submit-btn {
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
        border-radius: 25px;
        margin-top: 8px;
    }
}


@media (max-width: 400px) {

    #orderModal {
        padding: 10px 6px;
    }

    #orderModal .modal-content {
        padding: 10px 8px;
        border-radius: 8px;
    }

    #orderModal h2 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    #orderModal p {
        font-size: 11.5px;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    #orderModal .form-row {
        margin-bottom: 8px;
    }

    #orderModal .form-row label {
        font-size: 11px;
        margin-bottom: 3px;
    }

    #orderModal .form-row input,
    #orderModal .form-row textarea {
        padding: 7px 9px;
        font-size: 13px;
        border-radius: 7px;
    }

    #orderModal .form-row textarea {
        height: 25px;
    }

    #orderModal .checkbox-row {
        gap: 6px;
    }

    #orderModal .checkbox-row input[type="checkbox"] {
        width: 15px;
        height: 15px;
        margin-top: 1px;
    }

    #orderModal .checkbox-row label {
        font-size: 11px;
        line-height: 1.25;
    }

    #orderModal .submit-btn {
        width: 100%;
        padding: 0;
        font-size: 14px;
        border-radius: 22px;
        margin-top: 6px;
    }
}






/* Блок "О компании" */
.about-company {
    padding: 80px 20px;
    color: #fff; /* Белый текст */
}

.about-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Адаптивность */
}

.about-text {
    flex: 1 1 500px;
}

.about-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-video {
    flex: 1 1 500px;
    text-align: center;
}

@media (max-width: 900px) {
    .about-video {
        flex: 1 1 100%;
        margin: 20px 0; /* уменьшили отступы сверху и снизу */
    }

    .about-text {
        flex: 1 1 100%;
        margin: 20px 0; /* уменьшили отступы сверху и снизу */
    }
}


.about-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Адаптив на планшетах и мобильных */
@media (max-width: 900px) {
    .about-inner {
        flex-direction: column;
    }
    .about-video {
        margin-top: 30px;
    }
}



/* Блок ключевых направлений */
.key-directions {
    background-color: #525252; /* фон как у сайта */
    color: #ffffff; /* белый текст */
    padding: 60px 20px;
}

.key-directions-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.key-directions h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.key-directions h2 .highlight {
    color: #f8b128; /* желтый цвет, как кнопки */
}

.key-directions p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.key-directions ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.key-directions ul li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.5;
}

/* Адаптив */
@media (max-width: 768px) {
    .key-directions h2 {
        font-size: 24px;
    }

    .key-directions p,
    .key-directions ul li {
        font-size: 16px;
    }
}


/* Общий блок */
.partners-benefits {

    color: #fff;
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
}

/* Заголовок и вступление */
.partners-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.partners-header h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.partners-header h2 .highlight {
    color: #f8b128; /* желтый акцент */
}

.partners-header p {
    font-size: 18px;
    line-height: 1.6;
    color: #cccccc;
}

/* Сетка колонок */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Колонка */
.partners-column {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Центральная колонка с фото */
.photo-column {
    align-items: center;
}

.photo-column img {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.photo-column img:hover {
    transform: scale(1.05);
}

/* Преимущество */
.benefit {
    background-color: #2c2c2c; /* чуть светлее, чем основной фон */
    padding: 25px 20px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit h3 {
    font-size: 20px;
    color: #f8b128;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Пятое преимущество под фото */
.partners-footer {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

/* Адаптив */
@media (max-width: 1000px) {
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }

    .partners-column {
        align-items: center;
        text-align: center;
    }

    .benefit {
        text-align: center;
    }

    .photo-column img {
        max-width: 100%;
    }
}



.team-block {
    color: #fff;
    padding: 80px 20px;
}

.team-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Фото слева */
.team-photo img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Текст справа */
.team-text {
    flex: 1;
}

.team-text h2 {
    font-size: 32px;
    color: #f8b128; /* желтый акцент заголовка */
    margin-bottom: 20px;
}

.team-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
}

/* Кнопка под блоком */
.team-action {
    text-align: center;
}

.team-action .team-order-btn {
    font-size: 18px;
    padding: 15px 40px;
}

/* Адаптив */
@media (max-width: 1000px) {
    .team-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .team-photo img {
        max-width: 100%;
    }
}



.gallery-slider {
    padding: 80px 0;
}

.gallery-title {
    text-align: center;
    color: #fff;
    font-size: 36px;
    margin-bottom: 40px;
}

/* центральный холдер */
.gallery-center {
    width: 700px;
    max-width: 100%;
    height: 380px;
    position: relative;
    overflow: visible;
}

/* все фото в одном ряду, но мы будем каждый двигать */
.gallery-track {
    display: flex;
    position: relative;
    height: 100%;
}

.gallery-track img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.5);
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    transition: .5s ease;
    cursor: pointer;
}

/* левое фото */
.gallery-track img.left {
    transform: translate(-150%, -50%) scale(.6);
    opacity: 0.7;
}

/* выбранное центральное */
.gallery-track img.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
}

/* правое фото */
.gallery-track img.right {
    transform: translate(50%, -50%) scale(.6);
    opacity: 0.7;
}

@media (max-width: 900px) {
    .gallery-track img.right {
        display: none;
    }

    .gallery-track img.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        z-index: 3;
    }
}


/* кнопки */
.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.gallery-btn {
    background: #f8b128;
    color: #ffffff;
    border: none;
    padding: 15px 25px;
    font-size: 32px;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity .3s;
}

.gallery-btn:hover {
    opacity: .85;
}


/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoomIn .3s ease;
}

.lightbox.show {
    display: flex;
}

@keyframes zoomIn {
    from { transform: scale(.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}






.cfo-map .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

.cfo-map .highlight {
    color: #f8b128; /* желтый, как на сайте */
}



.team-block .section-title {
    color: #ffffff; /* белый текст */
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.team-block .highlight {
    color: #f8b128; /* желтый акцент */
}




/* === Блок Контакты === */
.contacts-block {
    padding: 80px 0;
    color: #fff;
}

.contacts-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap; /* десктоп: логотип справа */
}

.contacts-info {
    flex: 1 1 60%;
    min-width: 0;
}

.contacts-info h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #fff;
    text-align: left;
}

.contacts-info h2 .highlight {
    color: #F8B128; /* желтое выделение */
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.contact-item p, .contact-item a {
    font-size: 16px;
    color: #ccc;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
    color: #F8B128;
}

/* Кнопка */
.contact-action {
    margin: 30px 0;
    text-align: left;
}

.contact-action .btn {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #F8B128;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-action .btn:hover {
    background-color: #f8b128;
}

/* Социальные сети */
.contacts-socials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contacts-socials .social-link {
    display: inline-block;
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    transition: all 0.3s;
}

.contacts-socials .social-link:hover {
    background-color: #F8B128;
    color: #1a1a1a;
    border-color: #F8B128;
}

/* Правая часть: логотип */
.contacts-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-left: 50px;
}

.contacts-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.contacts-content {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .contacts-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Логотип теперь снизу и центр */
    .contacts-logo {
        order: 2; /* ставим после контента */
        justify-content: center;
        margin-top: 20px;
    }

    .contacts-info {
        order: 1; /* текстовый блок сверху */
    }

    .contacts-info h2 {
        text-align: center;
        font-size: 28px;
    }

    .contact-item h3, .contact-item p {
        text-align: center;
        font-size: 16px;
    }

    .contact-action {
        text-align: center;
    }

    .contact-action .btn {
        width: 80%;
        max-width: 300px;
        padding: 12px 0;
    }

    .contacts-socials {
        justify-content: center;
    }

    .contacts-content {
        display: inline;
    }

}


@media (max-width: 600px) {
    .contacts-block {
        padding: 40px 15px;
    }

    .contacts-info h2 {
        font-size: 24px;
    }

    .contact-item h3 {
        font-size: 16px;
    }

    .contact-item p, .contact-item a {
        font-size: 14px;
    }

    .contact-action .btn {
        font-size: 14px;
        width: 100%;
        padding: 10px 0;
    }

    .contacts-logo img {
        max-width: 180px;
    }
}

/* === Модалка заказа звонка === */
#orderModal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    z-index: 12000;
    padding: 15px;
}

#orderModal .modal-content {
    background: #525252;
    color: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 15px;
    position: relative;
    box-sizing: border-box;
}

#orderModal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

#orderModal .form-row {
    display: flex;
    margin-bottom: 15px;
}

#orderModal .form-row input {
    border-radius: 8px;
    border: none;
    font-size: 14px;
    background: #666;
    color: #fff;
}

#orderModal .form-row input:focus {
    outline: 2px solid #f8b128;
}

#orderModal .submit-btn {
    background: #F8B128;
    color: #fff;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

#orderModal .submit-btn:hover {
    background: #e6a800;
}


/* === Модалка заказа звонка === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* затемнение */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

.modal-close:hover {
    color: #F8B128;
}

.form-order .form-row {
    margin-bottom: 15px;
}

.form-order label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 500;
}

.form-order input, .form-order textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 14px;
    background-color: #2a2a2a;
    color: #fff;
}

.form-order input:focus, .form-order textarea:focus {
    border-color: #F8B128;
    outline: none;
}

.form-order button.submit-btn {
    background-color: #F8B128;
    color: #1a1a1a;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-order button.submit-btn:hover {
    background-color: #f8b128;
}




/* Всплывающее сообщение */
.form-message {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    color: white;
    font-size: 16px;
}

.form-message.show {
    display: block;
}




.privacy-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 40px;
    background: #4a4a4a;
    border-radius: 15px;
    color: #fff;
}

.privacy-container h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #f8b128;
    text-align: center;
}

.privacy-container h2 {
    font-size: 22px;
    margin-top: 30px;
    color: #f8b128;
}

.privacy-container p {
    margin: 12px 0;
    font-size: 16px;
}

.privacy-container ul {
    margin: 12px 0;
    padding-left: 20px;
}

.privacy-container li {
    margin-bottom: 8px;
}

/* Адаптив */
@media (max-width: 600px) {
    .privacy-container {
        padding: 20px;
        margin: 40px 15px;
    }

    .privacy-container h1 {
        font-size: 26px;
    }

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

    .privacy-container p {
        font-size: 14px;
    }
}




/* ---------- Подменю ---------- */

.nav ul li {
    position: relative;
}

.nav ul .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #525252;
    border: 1px solid #f8b128;
    padding: 10px 0;
    min-width: 200px;
    display: none; /* скрыто по умолчанию */
    z-index: 10;
}

.nav ul .submenu li a {
    display: block;
    padding: 10px 16px;
    color: #fff;
}

.nav ul .submenu li a:hover {
    background: #f8b128;
    color: #000;
}

/* Показывать при наведении на десктопе */
@media (min-width: 901px) {
    .nav ul li:hover > .submenu {
        display: block;
    }
}

/* Мобильные — подменю внутри бургера */
@media (max-width: 900px) {
    .nav ul .submenu {
        position: static;
        border: none;
        padding-left: 15px;
    }

    .submenu-toggle::after {
        content: "▼";
        font-size: 10px;
        margin-left: 8px;
        display: inline-block;
        transition: 0.3s;
    }

    .submenu-open > .submenu-toggle::after {
        transform: rotate(180deg);
    }

    .nav ul .submenu {
        display: none;
    }

    .nav ul .submenu.open {
        display: block;
    }
}




/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.cookie-popup.show {
    display: flex;
}

.cookie-box {
    max-width: 900px;
    width: 100%;
    background: #525252;
    padding: 20px 25px;
    border-radius: 10px;
    font-size: 16px;
    color: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cookie-box p {
    margin: 0 0 15px;
    line-height: 1.5;
}

.cookie-box a {
    color: #f8b128;
    text-decoration: underline;
}

.cookie-btn {
    background: #f8b128;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.cookie-btn:hover {
    background: #f8b128;
}



.trap-field {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}




.details-link {
    display: inline-block;
    margin: 15px 0 20px;
    font-weight: 500;
    text-decoration: underline;
    position: relative;
}

.details-link::after {
    content: " →";
    transition: 0.3s;
}

.details-link:hover::after {
    margin-left: 5px;
}