

/* Start:/bitrix/templates/trade_union_website_template/styles.css?177865593930287*/
/* ==================== RESET & BASE ==================== */
:root {
    --primary-dark: #1a2e20;
    --primary-darker: #121f17;
    --primary-bg: #14241a;
    --gold: #C8A366;
    --gold-light: #d4b47a;
    --gold-dark: #b08d55;
    --text-white: #ffffff;
    --text-light: #b8c5be;
    --text-muted: #8a9a90;
    --card-bg: #1c3326;
    --card-bg-light: #223d2e;
    --border-color: rgba(200, 163, 102, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* ==================== HEADER / NAVBAR ==================== */

/* Highlight letters in logo */
.logo-text .name .highlight {
    color: var(--gold);
    font-weight: 800;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 36, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(200, 163, 102, 0.1);
    padding: 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(18, 31, 23, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .brand {
    font-size: 11px;
    font-weight: 600;
    /*color: var(--gold); /* ✅ Раскомментировано для видимости на тёмном фоне */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text .name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.logo-text .name span {
    color: var(--gold);
}

/* Navigation Links — ✅ Улучшено для Битрикс-меню */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Сброс стилей для вложенных списков Битрикса */
.nav-links,
.nav-links ul,
.nav-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block; /* ✅ Важно для кликабельности всей области */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ✅ Добавлены состояния .selected и .active для Битрикс */
.nav-links li a:hover,
.nav-links li a.selected,
.nav-links li a.active {
    color: var(--text-white);
}

.nav-links li a:hover::after,
.nav-links li a.selected::after,
.nav-links li a.active::after {
    width: 100%;
}

/* ✅ Выпадающее подменю (на будущее) */
.nav-links ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
}

.nav-links li:hover > ul {
    display: block;
}

.nav-links ul li a {
    padding: 8px 20px;
    font-size: 12px;
    color: var(--text-light);
}

.nav-links ul li a:hover {
    color: var(--gold);
    background: rgba(200, 163, 102, 0.1);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.btn-follow-news {
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: 25px;
    background: transparent;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-follow-news:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 163, 102, 0.3);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(200, 163, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ✅ Фикс для SVG-иконок */
.social-icon svg,
.social-icon i {
    display: block;
    line-height: 1;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu — ✅ Улучшено для Битрикс */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 31, 23, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px; /* ✅ Отступы для мобильных */
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 10px 0;
    text-decoration: none;
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* ✅ Добавлено состояние .selected */
.mobile-menu a:hover::after,
.mobile-menu a.selected::after {
    width: 100%;
}

/* ✅ Сброс стилей для вложенных списков Битрикса в мобильном меню */
.mobile-menu ul,
.mobile-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.mobile-menu li {
    width: 100%;
    text-align: center;
}

.mobile-menu li a {
    width: 100%;
    display: block;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 36, 26, 0.92) 0%,
        rgba(20, 36, 26, 0.75) 40%,
        rgba(20, 36, 26, 0.4) 70%,
        rgba(20, 36, 26, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(200, 163, 102, 0.15);
    border: 1px solid rgba(200, 163, 102, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-title .line1 {
    color: var(--text-white);
    display: block;
}

.hero-title .line2 {
    color: var(--gold);
    display: block;
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-gold {
    padding: 14px 32px;
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-gold:hover {
    background: var(--gold-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 163, 102, 0.35);
}

.btn-primary-gold .arrow {
    transition: transform 0.3s ease;
}

.btn-primary-gold:hover .arrow {
    transform: translateX(4px);
}

.btn-outline-gold {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(200, 163, 102, 0.4);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 163, 102, 0.1);
    transform: translateY(-2px);
}

/* ==================== STATS SECTION ==================== */
/* ✅ ОСТАВЛЕНО КАК ВО ВТОРОМ ФАЙЛЕ (Flex для Битрикс) */
.stats-section {
    background: var(--primary-darker);
    border-top: 1px solid rgba(200, 163, 102, 0.1);
    border-bottom: 1px solid rgba(200, 163, 102, 0.1);
    padding: 0;
}

.stats-grid {
    display: flex; /* ✅ Flex вместо Grid для динамической ширины */
    flex-wrap: wrap;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ Центрирование контента */
    gap: 16px;
    padding: 32px 24px;
    border-right: 1px solid rgba(200, 163, 102, 0.1);
    border-bottom: 1px solid rgba(200, 163, 102, 0.1); /* ✅ Нижняя граница для всех */
    box-sizing: border-box; /* ✅ Важно для padding + border */
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(200, 163, 102, 0.05);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(200, 163, 102, 0.1);
    border: 1px solid rgba(200, 163, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 22px;
    color: var(--gold);
}

.stat-info .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center; /* ✅ Центрирование подписи */
}

/* ==================== ABOUT BLOCK ==================== */
.about-block {
    padding: 60px 0;
    background: #ffffff;
}

.about-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
    border: 1px solid rgba(200, 163, 102, 0.15);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.about-card-icon i {
    font-size: 24px;
    color: var(--gold);
}

.about-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.about-card-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== ECOSYSTEM SECTION ==================== */
.ecosystem-section {
    padding: 50px 0;
    background: var(--primary-darker);
    border-top: 1px solid rgba(200, 163, 102, 0.1);
    border-bottom: 1px solid rgba(200, 163, 102, 0.1);
}

.ecosystem-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 36px;
}

.ecosystem-grid {
    display: grid;
    gap: 16px;
}

.eco-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 12px;
    border-radius: 16px;
    background: rgba(200, 163, 102, 0.05);
    border: 1px solid rgba(200, 163, 102, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.eco-item:hover {
    background: rgba(200, 163, 102, 0.12);
    border-color: rgba(200, 163, 102, 0.3);
    transform: translateY(-4px);
}

.eco-item .eco-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 24px;
}

.eco-item .eco-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
}

.eco-item:hover .eco-label {
    color: var(--text-white);
}

/* ==================== FORM / PETR SECTION ==================== */
.form-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
}

.petr-image {
    flex-shrink: 0;
    width: 340px;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.petr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.petr-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--primary-bg), transparent);
}

.form-content {
    flex: 1;
}

.form-greeting {
    font-size: 17px;
    color: var(--gold); /* ✅ Оставлено как в базе (золотой акцент) */
    line-height: 1.7;
    margin-bottom: 28px;
}

.form-greeting strong {
    color: var(--gold);
}

.form-greeting p {
    margin-top: 8px;
    font-size: 15px;
    color: var(--gold); /* ✅ Оставлено как в базе */
}

.bitrix-form-container {
    background: #ffffff;
    border: 1px solid rgba(200, 163, 102, 0.15);
    border-radius: 64px; /* ✅ Оставлено сильное скругление из базы */
    padding: 32px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bitrix-form-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.bitrix-form-placeholder i {
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-darker);
    border-top: 1px solid rgba(200, 163, 102, 0.1);
    padding: 36px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
}

.footer-info .org-name {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.footer-info .org-details {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.footer-email i {
    color: var(--gold);
    font-size: 18px;
}

.footer-subscribe {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-subscribe input {
    padding: 10px 20px;
    border: 1px solid rgba(200, 163, 102, 0.2);
    border-radius: 25px;
    background: rgba(200, 163, 102, 0.05);
    color: var(--text-white);
    font-size: 13px;
    outline: none;
    width: 220px;
    transition: all 0.3s ease;
}

.footer-subscribe input::placeholder {
    color: var(--text-muted);
}

.footer-subscribe input:focus {
    border-color: var(--gold);
    background: rgba(200, 163, 102, 0.1);
}

.btn-subscribe {
    padding: 10px 28px;
    background: var(--gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
	line-height: 0px !important;
}

.btn-subscribe:hover {
    background: var(--gold-dark);
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-subscribe:active {
    transform: translateY(3px);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
    border: none;
    box-shadow: 0 4px 15px rgba(200, 163, 102, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 163, 102, 0.4);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
    border: 2px solid var(--primary-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

::-webkit-scrollbar-thumb:active {
    background: var(--gold-light);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--primary-darker);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .ecosystem-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none !important; /* ✅ !important для перебивания Битрикс-стилей */
    }

    .burger {
        display: flex !important;
    }

    .btn-follow-news {
        display: none;
    }

    /* ✅ Адаптив статистики — оставлено как во втором файле (Flex) */
    .stats-grid {
        /* grid-template-columns удалён, так как это flex-контейнер */
    }
    
    .stat-item {
        flex: 1 1 50% !important; /* ✅ Принудительно 2 в ряд */
        max-width: 50% !important;
        border-right: none;
        border-bottom: 1px solid rgba(200, 163, 102, 0.1);
        justify-content: center;
    }
    
    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .ecosystem-grid {
        grid-template-columns: repeat(4, 1fr) !important; 
        gap: 10px;
    }

    .form-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .petr-image {
        width: 280px;
        height: 340px;
    }

    .form-greeting {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        margin-top: 56px;
    }

    .hero-bg .overlay {
        background: linear-gradient(
            180deg,
            rgba(20, 36, 26, 0.85) 0%,
            rgba(20, 36, 26, 0.7) 50%,
            rgba(20, 36, 26, 0.5) 100%
        );
    }

    .hero-content {
        padding: 40px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-gold,
    .btn-outline-gold {
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        /* flex-контейнер, колонки задаются через .stat-item */
    }

    .ecosystem-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-subscribe {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .footer-subscribe input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 10px 0;
    }

    .logo-text .brand {
        font-size: 9px;
    }

    .logo-text .name {
        font-size: 14px;
    }

    .hero-title {
        font-size: 28px;
    }

    .stats-grid {
        /* flex-контейнер */
    }

    .stat-item {
        flex: 1 1 100% !important; /* ✅ Принудительно 1 в ряд */
        max-width: 100% !important;
        border-right: none;
        border-bottom: none;
        justify-content: flex-start;
        padding: 20px 16px;
        text-align: left;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-icon i {
        font-size: 18px;
    }

    .stat-info .stat-number {
        font-size: 22px;
    }

    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .eco-item {
        padding: 16px 8px;
    }

    .eco-label {
        font-size: 10px;
    }

    .about-card {
        padding: 28px 20px;
    }

    .petr-image {
        width: 240px;
        height: 300px;
    }

    .bitrix-form-container {
        padding: 20px;
        border-radius: 24px; /* ✅ Уменьшено скругление для мобильных */
    }

    .mobile-menu a {
        font-size: 18px;
        padding: 12px 0;
    }
}

/* ==================== COUNTER ANIMATION ==================== */
.counter {
    display: inline-block;
}

/* Сообщения формы подписки */
.subscribe-message {
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-align: center;
    font-weight: 500;
}

.subscribe-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.subscribe-message.error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Адаптив для формы в футере */
@media (max-width: 768px) {
    .footer-subscribe {
        flex-direction: column;
        width: 100%;
    }
    .footer-subscribe input,
    .footer-subscribe .btn-subscribe {
        width: 100%;
        max-width: 300px;
        margin: 4px auto;
    }
}

/* === Убираем псевдоэлемент ::before у кнопки подписки === */
.btn-subscribe::before {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .subscribe-message-wrapper {
        margin-bottom: 8px;
    }
    
    .subscribe-message {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ==================== ФОРМА ПОДПИСКИ В ФУТЕРЕ (ПОЛЕ + КНОПКА В РЯД) ==================== */

/* Контейнер формы */
.footer-subscribe {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
    max-width: 500px; /* Чуть шире, чтобы вместить поле + кнопку в ряд */
}

/* Форма: элементы друг под другом (строка input+button, потом согласие) */
.footer-subscribe form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
}

/* Группа: Поле Email + Кнопка в ОДНУ СТРОКУ */
.subscribe-input-row {
    display: flex !important;
    flex-direction: row !important; /* Строго в строку! */
    gap: 12px !important;
    width: 100%;
}

/* Поле email */
.footer-subscribe input[type="email"] {
    flex: 1 !important; /* Занимает всё свободное место */
    height: 48px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(200, 163, 102, 0.2) !important;
    color: #fff !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    min-width: 0 !important; /* Важно для flex-сжатия */
}

/* Кнопка */
.footer-subscribe .btn-subscribe {
    height: 48px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    background: var(--gold) !important;
    color: var(--primary-dark) !important;
    border: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    padding: 0 28px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important; /* Текст кнопки не переносится */
    flex-shrink: 0 !important; /* Кнопка не сжимается */
}

.footer-subscribe .btn-subscribe:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px) !important;
}

/* Блок согласия - ЧЕКБОКС И ТЕКСТ НА ОДНОЙ СТРОКЕ, ПОД ФОРМОЙ */
.footer-subscribe .bx-sender-subscribe-agreement {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: left !important;
}

/* Чекбокс */
.footer-subscribe .bx-sender-subscribe-agreement input[type="checkbox"] {
    margin: 4px 0 0 0 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    accent-color: var(--gold) !important;
}

/* Текст согласия */
.footer-subscribe .bx-sender-subscribe-agreement span,
.footer-subscribe .bx-sender-subscribe-agreement label,
.footer-subscribe .main-user-consent-request-announce-link {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    word-break: break-word !important;
    white-space: normal !important;
}

.footer-subscribe .bx-sender-subscribe-agreement a {
    color: var(--gold) !important;
    text-decoration: underline !important;
}

/* Сообщение об успехе/ошибке */
.footer-subscribe .subscribe-message-wrapper {
    width: 100% !important;
    margin-bottom: 8px !important;
}

.footer-subscribe .subscribe-message {
    padding: 10px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.footer-subscribe .subscribe-message.success {
    background: rgba(76, 175, 80, 0.15) !important;
    color: #4CAF50 !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

.footer-subscribe .subscribe-message.error {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .footer-subscribe {
        max-width: 100% !important;
    }
    
    /* На мобильных тоже в строку, но если не влезает — перенос */
    .subscribe-input-row {
        flex-wrap: wrap !important;
    }
    
    .footer-subscribe input[type="email"] {
        flex: 1 1 100% !important; /* На мобильном поле на всю ширину */
    }
    
    .footer-subscribe .btn-subscribe {
        width: 100% !important;
        flex: 1 1 100% !important; /* Кнопка тоже на всю ширину */
    }
    
    .footer-subscribe .bx-sender-subscribe-agreement {
        flex-direction: row !important;
        font-size: 10px !important;
    }
    
    .footer-subscribe .bx-sender-subscribe-agreement span,
    .footer-subscribe .bx-sender-subscribe-agreement label {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
}
/* End */
/* /bitrix/templates/trade_union_website_template/styles.css?177865593930287 */
