@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

/* Совпадает с витриной (shop2.css) */
:root {
    --fox-red: #DC2222;
    --fox-red-hover: #c41e1e;
    --fox-text: #222;
    --fox-border: #dee2e6;
    --fox-card: #fff;
    --fox-muted: #6c757d;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    font-weight: 400;
}

section {
    padding: 30px 0;
}

a {
    text-decoration: none;
    color: #333;
}

/* ========== ХЕДЕР (как витрина shop2: карточка, красный акцент) ========== */
.fox-site-header {
    position: relative;
    z-index: 200;
    background: var(--fox-card);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid var(--fox-border);
}

.shop2-page .fox-site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fox-header-container {
    padding-top: 12px;
    padding-bottom: 0;
}

.header_topline.fox-header-top,
.fox-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 4px 0 14px;
}

.fox-header-top__row1 {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

.fox-header-top__brand {
    flex: 0 0 auto;
    min-width: 0;
}

.fox-header-top__brand .logo {
    display: inline-block;
    line-height: 0;
    vertical-align: top;
}

.logo img {
    width: 200px;
    max-width: min(200px, 48vw);
    height: auto;
}

.fox-header-top__info p {
    margin: 0;
}

.fox-header-top__info p + p {
    margin-top: 2px;
}

.fox-header-top__info,
.fox-header-top__phones-wrap {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--fox-text);
}

.fox-header-phone-block {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.fox-header-phone-block__tel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fox-text);
    text-decoration: none;
}

.fox-header-phone-block__tel i {
    color: var(--fox-red);
    font-size: 1.1rem;
}

.fox-header-phone-block__tel:hover {
    color: var(--fox-red);
}

.fox-header-phone-block__tags {
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--fox-muted);
    line-height: 1.35;
}

.fox-header-phone-block__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.fox-header-phone-block__tag:not(:first-child) {
    border-left: 1px solid var(--fox-border);
    padding-left: 10px;
    margin-left: 2px;
}

.fox-header-phone-block__tag i {
    color: var(--fox-red);
    font-size: 0.9rem;
    opacity: 0.92;
}

@media (min-width: 992px) {
    .fox-header-top__info {
        order: 1;
    }
    .fox-header-top__cta {
        order: 2;
    }
    .fox-header-top__phones-wrap {
        order: 3;
        text-align: right;
    }
}

.fox-header-top__info a {
    color: var(--fox-red);
    text-decoration: none;
    font-weight: 600;
}

.fox-header-top__info a:hover {
    text-decoration: underline;
}

.fox-header-top__cta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.fox-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: 220px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.fox-cta--primary {
    background: var(--fox-red);
    color: #fff;
    border-color: var(--fox-red);
    box-shadow: 0 1px 2px rgba(220, 34, 34, 0.25);
}

.fox-cta--primary:hover {
    background: var(--fox-red-hover);
    border-color: var(--fox-red-hover);
    color: #fff;
}

.fox-cta--outline {
    background: var(--fox-card);
    color: var(--fox-text);
    border-color: var(--fox-border);
}

.fox-cta--outline:hover {
    border-color: var(--fox-red);
    color: var(--fox-red);
    background: #fff;
}

/* Заявка партнёра: заметная зелёная кнопка (шапка, страница «Оптовым партнёрам») */
.fox-cta--partner {
    background: linear-gradient(180deg, #2f9d5c 0%, #248a4f 100%);
    color: #fff;
    border-color: #1e7a44;
    box-shadow: 0 2px 6px rgba(36, 138, 79, 0.35);
    font-weight: 600;
}

.fox-cta--partner:hover {
    background: linear-gradient(180deg, #34aa65 0%, #299456 100%);
    border-color: #1e7a44;
    color: #fff;
}

/* Баннер после успешной отправки анкеты (?fox_partner_ok=1) */
.fox-partner-success-banner {
    background: #d1f4df;
    border-bottom: 1px solid #2f9d5c;
    color: #0d3d22;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.45;
}

.fox-partner-success-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fox-partner-success-banner__text {
    margin: 0;
    flex: 1 1 280px;
}

.fox-partner-success-banner__close {
    flex: 0 0 auto;
    align-self: center;
    padding: 6px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #2f9d5c;
    color: #0d3d22;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.fox-partner-success-banner__close:hover {
    background: #eafaf0;
    color: #0d3d22;
}

.fox-header-top .tl_item {
    border-left: 1px solid var(--fox-border);
    padding-left: 16px;
}

.tl_item .tl_phone {
    color: var(--fox-text);
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tl_item .tl_phone span,
.tl_item .tl_phone i {
    color: var(--fox-red);
}

.tl_item .tl_phone:hover {
    color: var(--fox-red);
}

/* Бургер: только моб./планшет */
.fox-header-top__row1 .fox-nav__burger {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex: 0 0 auto;
    border: 1px solid var(--fox-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    align-self: center;
}

.fox-nav__burger-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--fox-text);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.fox-nav__burger-line:nth-child(1) { top: 14px; }
.fox-nav__burger-line:nth-child(2) { top: 21px; }
.fox-nav__burger-line:nth-child(3) { top: 28px; }

#fox-nav-toggle:checked ~ .fox-header-top .fox-header-top__row1 .fox-nav__burger .fox-nav__burger-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
#fox-nav-toggle:checked ~ .fox-header-top .fox-header-top__row1 .fox-nav__burger .fox-nav__burger-line:nth-child(2) {
    opacity: 0;
}
#fox-nav-toggle:checked ~ .fox-header-top .fox-header-top__row1 .fox-nav__burger .fox-nav__burger-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ========== НАВИГАЦИЯ ========== */
.fox-nav {
    clear: both;
    margin: 0 -12px 0;
    padding: 10px 12px 14px;
    border-top: 1px solid var(--fox-border);
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), transparent 32px);
}

.fox-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    gap: 4px 8px;
}

.fox-nav ul li a {
    display: block;
    padding: 6px 10px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    color: var(--fox-text);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.fox-nav ul li a::after {
    display: none;
}

.fox-nav ul li a:hover {
    color: var(--fox-red);
    background: rgba(220, 34, 34, 0.06);
}

.fox-nav ul li a.active {
    color: var(--fox-red);
    background: rgba(220, 34, 34, 0.1);
}

/* Кнопка .glo (остальные страницы) */
.glo {
    color: #00c6ff;
    padding: 5px 15px;
    width: 200px;
    text-decoration: none;
    text-align: center;
    margin-bottom: 5px;
    display: block;
    background-image: linear-gradient(to left, transparent, transparent 50%, #00c6ff 50%, #00c6ff);
    background-position: 100% 0;
    background-size: 200% 100%;
    transition: all .25s ease-in;
    font-weight: 600;
    border: 1px solid #00C6FF;
}

.glo:hover {
    background-position: 0 0;
    color: #fff;
}

/* ========== Адаптив: шапка + меню (checkbox) ========== */
@media (max-width: 991px) {
    .fox-header-top {
        row-gap: 10px;
        align-items: stretch;
    }

    .fox-header-top__row1 {
        width: 100%;
        justify-content: space-between;
        order: 0;
    }

    .fox-header-top__row1 .fox-nav__burger {
        display: flex;
    }

    /* Сразу под шапкой: вход и заявка, затем телефоны, внизу адрес */
    .fox-header-top__cta {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: 0;
        padding-left: 0;
        padding-top: 4px;
    }

    .fox-header-top__cta .fox-cta {
        flex: 1 1 160px;
        max-width: none;
    }

    .fox-header-top__phones-wrap {
        order: 2;
        width: 100%;
        max-width: 100%;
        border-left: 0;
        padding-left: 0;
    }

    .fox-header-phone-block__tel {
        font-size: 15px;
    }

    .fox-header-top__info {
        order: 3;
        width: 100%;
        max-width: 100%;
        border-left: 0;
        padding-left: 0;
        padding-top: 8px;
        border-top: 1px solid var(--fox-border);
    }

    .fox-header-top .tl_item {
        border-left: 0;
    }

    #fox-nav-toggle:not(:checked) ~ .fox-nav {
        max-height: 0;
        margin: 0;
        padding: 0 12px;
        border-top: 0;
        overflow: hidden;
    }

    #fox-nav-toggle:checked ~ .fox-nav {
        max-height: 1200px;
        margin-top: 0;
        border-top: 1px solid var(--fox-border);
    }

    .fox-nav {
        transition: max-height 0.35s ease, padding 0.2s ease, margin 0.2s ease;
    }

    .fox-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .fox-nav ul li a {
        padding: 12px 12px;
        border-radius: 0;
    }

    .fox-nav ul li + li a {
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

/* ========== БЛОК DELIVER ========== */
.deliver {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 100%;
    max-width: 100%;
    background: url('../img/bg/deliver.jpg') center no-repeat;
    background-size: cover;
    color: #fff;
    overflow: hidden;
    transition: all 0.5s ease;
}

.deliver p {
    width: 400px;
    text-align: center;
    margin: 0 auto;
}

.deliver:hover {
    transform: scale(1.01);
}

.deliver:hover .text_block {
    background-color: rgba(255, 255, 255, .6);
    color: #000;
}

.deliver .text_block {
    background-color: rgba(0, 0, 0, .5);
    padding: 40px;
    transition: all 0.5s ease;
}

.deliver .text_block h4 {
    text-transform: uppercase;
    font-weight: 700;
}

/* ========== СЛАЙДЕР ========== */
.slider {
    margin: 30px 0;
}

.slider img {
    width: 100%;
}

/* ========== ЗАГОЛОВКИ ========== */
h2 {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 22px;
}

/* ========== УСЛУГИ ========== */
.servises {
    display: flex;
}

.bottom_services {
    display: flex;
}

.serv_wrap {
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.serv1 {
    width: 100%;
    background: url('../img/services/service1.png') center no-repeat;
    background-size: cover;
    height: 281px;
}

.serv2 {
    width: 100%;
    height: 188px;
}

.serv2 a {
    background: url('../img/services/service2.png') center no-repeat;
    background-size: cover;
}

.serv3 {
    width: 100%;
    height: 188px;
}

.serv3 a {
    background: url('../img/services/service3.png') center no-repeat;
    background-size: cover;
}

.serv4 {
    width: 100%;
    height: 469px;
}

.serv4 a {
    background: url('../img/services/service4.png') center no-repeat;
    background-size: cover;
}

.serv {
    transition: all 0.5s ease;
    overflow: hidden;
}

.serv a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    text-align: center;
    align-items: center;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.serv a span {
    vertical-align: middle;
    font-weight: 700;
    background-color: rgba(255, 255, 255, .6);
    padding: 10px;
    transition: all 0.5s ease;
}

.serv a:hover span {
    color: #000;
    background-color: rgba(255, 255, 255, .9);
}

.serv a:hover {
    transform: scale(1.05);
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.priorities {
    display: flex;
    justify-content: space-around;
}

.priorities .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 33%;
    margin-top: 30px;
    transition: all 0.5s ease;
}

.priorities .item h5 {
    max-width: 200px;
    text-align: center;
    color: #505050;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.priorities .item:hover {
    transform: rotate(-10deg);
}

#priorities .glo {
    margin: 30px auto 0;
    width: 300px;
}

/* ========== ПАРТНЕРЫ ========== */
.partners_row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.partners_row .partner {
    margin: 0 5px;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.partners_row .partner:hover {
    filter: grayscale(0%);
    transform: scale(1.3);
}

.partners_row .partner img {
    width: 100px;
}

#partners {
    background: url('../img/bg/partnerBg.png') no-repeat center;
    background-size: cover;
}

/* ========== О КОМПАНИИ ========== */
#about {
    background: url('../img/bg/aboutbg.jpg') no-repeat top center;
}

#about h3,
#about h4 {
    text-transform: uppercase;
    width: 400px;
    font-weight: 600;
}

#about h3 span,
#about h4 span {
    color: #FF6927;
    font-weight: 700;
}

#about #about_wrap {
    display: flex;
}

#about #about_wrap .part {
    width: 50%;
    display: flex;
    flex-direction: column;
}

#about #about_wrap .part .glo {
    width: 400px;
    margin-top: 50px;
}

#about #about_wrap .prior_wrap {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

#about #about_wrap .prior {
    width: 50%;
    margin-top: 20px;
    display: flex;
    font-size: 14px;
}

#about #about_wrap .prior i {
    font-size: 30px;
    margin-bottom: 1rem;
    margin-right: 20px;
}

/* (блок #digit + график: старые стили, digitBg.jpg; главная — .fox-home-stats в shop2.css) */

/* ========== МОДАЛЬНЫЕ ОКНА ========== */

/* Шаблоны #auth и #modal_partner лежат в футере: без этого блоки видны в потоке страницы */
.fox-modal-templates {
    display: none !important;
}

/* Фон затемнения */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

/* Контейнер модального окна */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    max-width: 90vw;
    max-height: 90vh;
}

/* Стили для модальных окон */
#auth.modal,
#modal_partner.modal-partner {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    margin: 0;
}

#auth.modal {
    max-width: 450px;
    width: 450px;
    padding: 32px 36px;
}

#modal_partner.modal-partner {
    max-width: 800px;
    width: 800px;
    padding: 32px 36px;
}

/* Кнопка закрытия */
.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-close-btn:hover {
    background: #e31e24;
    color: white;
    transform: rotate(90deg);
}

/* ===== МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ ===== */
#auth.modal .logo {
    text-align: center;
    margin-bottom: 24px;
}

#auth.modal .logo img {
    width: 120px;
    display: inline-block;
}

#auth.modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

#auth.modal form label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

#auth.modal form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#auth.modal form input:focus {
    outline: none;
    border-color: #e31e24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

#auth.modal form button {
    background: #e31e24;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

#auth.modal form button:hover {
    background: #c41a1f;
    transform: translateY(-2px);
}

#auth.modal .pass {
    position: relative;
}

#auth.modal .pass input {
    padding-right: 40px;
}

#auth.modal .pass i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
}

#auth.modal .pass i:hover {
    color: #e31e24;
}

#forgot_pass {
    text-align: center;
    color: #e31e24;
    cursor: pointer;
    font-size: 14px;
    margin: 16px 0;
    text-decoration: underline;
}

#forgot_pass:hover {
    color: #c41a1f;
}

#forgot_form {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

#forgot_form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

#forgot_form button {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#forgot_form button:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ===== МОДАЛЬНОЕ ОКНО ПАРТНЕРА ===== */
.partner-header {
    text-align: center;
    margin-bottom: 28px;
}

.partner-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.partner-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.partner-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group.full-width {
    grid-column: span 2;
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.required {
    color: #e31e24;
}

.field-input,
.field-textarea {
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    width: 100%;
}

.field-input:focus,
.field-textarea:focus {
    outline: none;
    border-color: #e31e24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

.toggle-btn {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

.toggle-btn:hover {
    background: #e31e24;
    border-color: #e31e24;
    color: white;
}

.toggle-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.toggle-btn.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-hint {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.additional-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.file-block {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
}

.file-block-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.file-list {
    list-style: none;
    margin-bottom: 16px;
    padding-left: 0;
}

.file-list li {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
}

.file-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input-hidden {
    display: none;
}

.file-upload-btn {
    background: #e31e24;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.file-upload-btn:hover {
    background: #c41a1f;
    transform: translateY(-1px);
}

.file-names {
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
}

.file-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 20px;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e31e24;
}

.checkbox-label {
    font-size: 13px;
    color: #6b7280;
}

.link-primary {
    color: #e31e24;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: #e31e24;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #c41a1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.3);
}

/* ========== Статичные страницы (о компании, партнёры, B2B) ========== */
.fox-static-page {
    padding: 28px 0 48px;
}

.fox-static-page h1,
.fox-static-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fox-text);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
}

.fox-static-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fox-text);
    margin: 20px 0 10px;
}

.fox-static-page .fox-lead {
    color: var(--fox-muted);
    line-height: 1.6;
    max-width: 52rem;
    margin: 0 0 12px;
}

.fox-static-page p {
    line-height: 1.6;
    color: var(--fox-text);
    margin: 0 0 12px;
}

.fox-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 20px;
    align-items: center;
}

.corp-list {
    margin: 16px 0 20px 24px;
    padding: 0;
    color: var(--fox-text);
}

.corp-list li {
    margin: 8px 0;
    line-height: 1.45;
    padding-left: 4px;
}

/* Сетка карточек #two_cases (контакты, партнёры и др.) */
#two_cases {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 24px;
    margin: 24px 0 8px;
}

#two_cases .case {
    flex: 1 1 220px;
    min-width: 200px;
    background: var(--fox-card);
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#two_cases .case:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    border-color: rgba(220, 34, 34, 0.2);
}

#two_cases .case h4,
#two_cases .case h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--fox-red);
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}

#two_cases .case p,
#two_cases .case li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--fox-text);
    margin: 0 0 8px;
}

#two_cases .case a {
    color: var(--fox-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

#two_cases .case a:hover {
    color: var(--fox-red);
}

#two_cases .case .glo {
    max-width: none;
    width: auto;
    display: inline-block;
    margin: 4px 8px 4px 0;
}

.fox-partners-cta .glo,
#two_cases .case .glo,
.fox-cta-row .glo {
    color: #fff;
    border-color: var(--fox-red);
    background: var(--fox-red);
    background-image: none;
    width: auto;
    max-width: 280px;
    padding: 10px 18px;
    border-radius: 8px;
    margin-bottom: 0;
}

.fox-partners-cta .glo:hover,
#two_cases .case .glo:hover,
.fox-cta-row .glo:hover {
    background: var(--fox-red-hover);
    border-color: var(--fox-red-hover);
    color: #fff;
    transform: none;
}

.fox-partners-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

@media (min-width: 480px) {
    .fox-partners-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Акции (actions.php) */
.fox-actions-page {
    padding: 24px 0 48px;
}

.fox-actions-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fox-text);
    margin: 0 0 8px;
    text-align: left;
}

.fox-actions-page .fox-lead {
    color: var(--fox-muted);
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 48rem;
}

.fox-actions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0 -6px;
}

.fox-action-card.fox-action-card--promo,
.fox-actions-page .card.fox-action-card--promo {
    width: 18rem;
    max-width: calc(100% - 12px);
    position: relative;
    margin: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--fox-border);
    background: var(--fox-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fox-action-card.fox-action-card--promo:hover,
.fox-actions-page .card.fox-action-card--promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.fox-action-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--fox-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 4;
}

.fox-action-card__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.fox-action-card__title {
    height: 50px;
    overflow: hidden;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--fox-text);
}

.fox-action-card__price {
    color: var(--fox-red);
    font-size: 1.15rem;
    font-weight: 700;
}

.fox-action-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.fox-action-card__empty {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--fox-muted);
    flex: 1 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.fox-actions-page .g_slider {
    position: relative;
}

.fox-actions-page .g_slider .slick-prev,
.fox-actions-page .g_slider .slick-next {
    z-index: 5;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
}

.fox-actions-page .g_slider .slick-prev:before,
.fox-actions-page .g_slider .slick-next:before {
    font-size: 16px;
}

.fox-placeholder-page h1,
.fox-placeholder-page p {
    margin-bottom: 12px;
}

.fox-placeholder-page h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fox-text);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 860px) {
    #modal_partner.modal-partner {
        width: 90vw !important;
        max-width: 90vw !important;
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    #auth.modal {
        width: 90vw !important;
        max-width: 90vw !important;
        padding: 24px 20px;
    }
    
    .partner-fields,
    .fields-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .field-group.full-width {
        grid-column: span 1;
    }
    
    .partner-header h2 {
        font-size: 22px;
    }
    
    .file-upload-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-upload-btn {
        text-align: center;
        justify-content: center;
    }
}