/* ===== BOIR.BY - Main Stylesheet ===== */
/* Fonts: Inter, Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --primary: #1a5f6e;
    --primary-dark: #144d5a;
    --primary-light: #1f7080;
    --accent: #e74c3c;
    --accent-hover: #c0392b;
    --dark: #1a2a3a;
    --dark-footer: #0f1f2e;
    --text: #2c3e50;
    --text-light: #5a6a7a;
    --bg: #f8fafc;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: top 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}
.header.hidden { top: -116px; }
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

/* Logo with PNG image */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.logo-img {
    width: 152px;
    height: 152px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
@media (min-width: 769px) {
    .logo { margin-left: -28px; }
}
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-title {
    display: none;
}
.logo-subtitle {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: normal;
    max-width: 260px;
    line-height: 1.4;
}

/* Navigation */
.nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15.5px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(13, 115, 119, 0.08);
}
.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 3px 12px rgba(13,115,119,0.35);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1001;
}
.mobile-menu-btn:hover { background: rgba(26,95,110,0.08); }

/* Full-screen mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: white;
    box-shadow: none;
    z-index: 1100;
    flex-direction: column;
    padding: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    overflow-y: auto;
}
.mobile-nav.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}
/* Top bar inside panel */
.mobile-nav-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a5f6e 0%, #144d5a 100%);
    flex-shrink: 0;
    position: relative;
}
.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.mobile-nav-logo img { width: 96px; height: 96px; object-fit: contain; }
.mobile-nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav-logo span.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
}
.mobile-nav-logo span.logo-full {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: rgba(255,255,255,0.90);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.35;
    max-width: 240px;
}
.mobile-nav-close {
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.28); }

/* Nav links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 6px;
    flex: 1;
    align-items: stretch;
    justify-content: center;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    text-decoration: none;
    color: #2a3a40;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    border-radius: 16px;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.2px;
    border-left: 4px solid transparent;
}
.mobile-nav a::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #c0cdd4;
    border-top: 2.5px solid #c0cdd4;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.mobile-nav a:hover {
    background: rgba(26,95,110,0.07);
    color: var(--primary);
    border-left-color: rgba(26,95,110,0.3);
}
.mobile-nav a:hover::after { border-color: var(--primary); }
.mobile-nav a.active {
    background: linear-gradient(135deg, rgba(26,95,110,0.13) 0%, rgba(26,95,110,0.05) 100%);
    color: #1a5f6e;
    font-weight: 800;
    border-left: 4px solid #1a5f6e;
}
.mobile-nav a.active::after {
    width: 14px;
    height: 8px;
    border-right: none;
    border-top: none;
    border-left: 3px solid #1a5f6e;
    border-bottom: 3px solid #1a5f6e;
    transform: rotate(-45deg) translateY(-2px);
}
.mobile-nav-divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 4px 0;
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 130px 24px 80px;
    background: #0d3a45;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../assets/hero-circuit-gear.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(26,95,110,0.95) 0%,
        rgba(26,95,110,0.88) 35%,
        rgba(26,95,110,0.45) 60%,
        rgba(26,95,110,0.05) 100%);
    z-index: 1;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}
.hero-content { color: white; }
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 540px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.5);
}
.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}
.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    transform: translateY(-2px);
}

/* ===== SVG GEARS ===== */





    to { transform: rotate(360deg); }
}

    to { transform: rotate(-360deg); }
}

/* Circuit background */





    50% { opacity: 1; }
}

    50% { opacity: 0.8; }
}

    50% { transform: scale(1.5); opacity: 1; }
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #144d5a 0%, #1a5f6e 40%, #1a6878 70%, #1a5f6e 100%);
    padding: 140px 24px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    position: relative;
    z-index: 2;
}

/* ===== ABOUT ===== */
.section#about {
    padding-top: 100px;
    padding-bottom: 100px;
}
.about-text {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 48px;
    font-size: 21px;
    line-height: 1.85;
    color: var(--text-light);
}
.about-line {
    display: block;
    white-space: normal;
}
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}
.about-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(26,95,110,0.15);
    border-color: rgba(26,95,110,0.2);
}
.about-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #1f7080);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}
.about-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.about-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}
@media (max-width: 768px) {
    .about-cards { grid-template-columns: 1fr; gap: 16px; max-width: 420px; }
    .about-text { font-size: 17px; margin-bottom: 32px; padding: 0 8px; }
    .about-line { white-space: normal; }
    .map-address-cards { flex-wrap: wrap; }
    .map-address-card { min-width: 180px; }
    .map-frame { height: 340px; }
}
@media (max-width: 480px) {
    .about-cards { max-width: 100%; }
}

/* ===== HISTORY ===== */
.history-section {
    background: var(--white);
    padding: 100px 24px;
    text-align: center;
}
.history-inner { max-width: 1200px; margin: 0 auto; }
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    text-align: left;
}
.history-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
}
.history-content p {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}
.history-content strong { color: var(--text); font-weight: 600; }
.history-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
}
.history-link:hover { gap: 12px; }
.history-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.history-card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.history-card--photo {
    padding: 0;
    overflow: hidden;
    min-height: 260px;
}
.history-card::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
}
.history-icon {
    width: 100px; height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 40px;
    position: relative;
}
.history-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}
.history-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.congress-photo {
    width: 100%;
    max-width: 400px;
    height: 220px;
    background: linear-gradient(135deg, #e8f4f8, #d1e8ed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    border: 2px dashed var(--primary);
    position: relative;
    overflow: hidden;
}
.congress-photo::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 48px;
    opacity: 0.3;
    position: absolute;
}
.congress-photo span {
    position: relative;
    z-index: 2;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* ===== STATS ===== */
.stats-section {
    background: linear-gradient(135deg, #144d5a, #1a5f6e, #1a6878);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
/* Glowing orbs */
.stats-section::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.stats-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.stats-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    color: white;
    margin-bottom: 70px;
    letter-spacing: 0.5px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 48px 24px 40px;
    text-align: center;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}
.stat-card.animated {
    opacity: 1;
    transform: translateY(0);
}
.stat-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.25);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    border-radius: 20px 20px 0 0;
}
.stat-icon {
    font-size: 32px;
    margin-bottom: 20px;
    opacity: 0.85;
    display: block;
}
.stat-number-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}
.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 58px;
    font-weight: 900;
    display: block;
    line-height: 1;
    letter-spacing: -1px;
}
.stat-suffix {
    font-size: 36px;
    font-weight: 900;
    opacity: 0.8;
}
.stat-suffix--pre {
    font-size: 36px;
    font-weight: 900;
    opacity: 0.8;
    align-self: flex-start;
    margin-top: 4px;
}
.stat-suffix--post {
    font-size: 36px;
    font-weight: 900;
    opacity: 0.8;
    align-self: flex-end;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ===== DIRECTIONS ===== */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.direction-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.35s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.direction-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.direction-card:hover::before { transform: scaleX(1); }
.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.direction-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.direction-icon-img {
    width: 100%; height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}
.direction-icon-img::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    opacity: 0.2;
}
.direction-icon-img.popularization {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.direction-icon-img.popularization::after { border: 2px solid #f5576c; }
.direction-icon-img.education {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.direction-icon-img.education::after { border: 2px solid #4facfe; }
.direction-icon-img.expert {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.direction-icon-img.expert::after { border: 2px solid #43e97b; }
.direction-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.direction-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== NEWS ===== */
.news-section {
    background: var(--white);
    padding: 100px 24px;
}
.news-inner { max-width: 1200px; margin: 0 auto; }
.news-header { text-align: center; margin-bottom: 50px; }
.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}
.news-btn:hover { background: var(--primary); color: white; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.35s ease, border-color 0.3s ease;
    will-change: transform;
}
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(26,95,110,0.16);
    border-color: rgba(26,95,110,0.2);
}
.news-card:hover .news-image img {
    transform: scale(1.05);
}
.news-image {
    height: 200px;
    background: linear-gradient(135deg, #1a5f6e, #1f7080);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.news-image img {
    transition: transform 0.5s ease;
    will-change: transform;
}
.news-image::before {
    display: none;
}
.news-image span {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    padding: 0 24px;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.news-content { padding: 28px; }
.news-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.news-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}
.news-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.news-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}
.news-link:hover { gap: 10px; }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #1a3a4a, #1a5f6e);
    padding: 100px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
}
.cta-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}
.cta-text-secondary {
    font-size: 17px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ===== CONTENT SECTIONS (about, activity) ===== */
.content-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section.alt-bg { background: var(--white); }
.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
}
.content-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--primary);
}
.content-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
}
.content-section p + p {
    margin-top: 12px;
}
.content-section ul {
    margin: 20px 0;
    padding-left: 30px;
}
.content-section ul li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}
.content-section strong { color: var(--text); font-weight: 600; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 40px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 28px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.timeline-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Congress Section */
.congress-section {
    background: linear-gradient(135deg, rgba(26,95,110,0.05), rgba(31,112,128,0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
}
.congress-section h3 {
    color: var(--primary);
    margin-top: 0;
}
.congress-photo-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8f4f8, #d1e8ed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    border: 2px dashed var(--primary);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}
.congress-photo-placeholder::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 64px;
    opacity: 0.2;
    position: absolute;
}
.congress-photo-placeholder span {
    position: relative;
    z-index: 2;
    font-size: 16px;
    text-align: center;
}

/* Join Section */
.join-section {
    background: linear-gradient(135deg, #1a3a4a, #1a5f6e);
    padding: 80px 24px;
    text-align: center;
    color: white;
}
.join-inner {
    max-width: 800px;
    margin: 0 auto;
}
.join-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}
.join-section p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s ease;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.event-date {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.event-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.event-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}
.event-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.event-link:hover { text-decoration: underline; }
.events-loading, .events-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    padding: 40px 0;
}

/* ===== ACTIVITY DETAIL ===== */
.activity-detail {
    padding: 80px 0;
}
.activity-detail.alt-bg {
    background: var(--white);
}
.activity-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.activity-detail h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}
.activity-detail h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 18px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.activity-detail p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
    max-width: 860px;
}
.activity-detail ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.activity-detail ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    transition: all 0.3s ease;
}
.activity-detail ul li::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: var(--primary);
    border-radius: 50%;
}
.activity-detail ul li:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}
.activity-audience {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(26,95,110,0.1), rgba(31,112,128,0.1));
    border: 1px solid rgba(26,95,110,0.25);
    border-radius: 50px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
}
.directions-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.directions-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}
.directions-subtitle {
    color: var(--text-light);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ===== CONTACTS ===== */
.contacts-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.contact-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}
.contact-text a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-text a:hover { color: var(--primary-dark); }

.map-section {
    background: var(--white);
    padding: 80px 24px;
}
.map-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.map-inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}
.map-address-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
}
.map-address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    flex: 1;
    min-width: 220px;
    max-width: 340px;
}
.map-address-card--main {
    border-color: var(--primary);
    background: #f0fafa;
}
.map-address-card--active {
    border-color: var(--primary);
    background: #f0fafa;
    box-shadow: 0 0 0 2px rgba(26,95,110,0.18);
}
.map-address-card[onclick]:hover {
    border-color: var(--primary);
    background: #e6f5f5;
    transform: translateY(-1px);
    transition: all 0.18s;
}
.map-address-card i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}
.map-address-card div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.map-address-card strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.map-address-card span {
    font-size: 14px;
    color: var(--text-light);
}
.map-frame-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(26,95,110,0.10);
}
.map-frame {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}
.map-open-link-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.map-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.map-open-link:hover {
    background: #f0fafa;
    border-color: var(--primary);
}

.social-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.social-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text);
}
.social-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.4s ease;
    min-width: 160px;
}
.social-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.social-link i {
    font-size: 36px;
    color: var(--primary);
}
.social-link span {
    font-weight: 600;
    font-size: 16px;
}

.reps-section {
    background: var(--white);
    padding: 80px 24px;
}
.reps-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.reps-inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}
.reps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rep-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}
.rep-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.rep-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}
.rep-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}


/* ===== GREETING SECTION ===== */
/* ===== GREETING SECTION ===== */
/*
  Image is portrait 934×1280.
  White space runs from ~38% to ~75% of height, left half.
  We display the image at a fixed max-width so it stays compact,
  then overlay the text exactly over that white zone.
*/

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    width: 100%;
    height: 80px;
    position: relative;
    overflow: hidden;
}
/* О БОИР → Поздравление */
.divider-to-greeting {
    background: #f8fafc;
}
/* Поздравление → История */
.divider-from-greeting {
    background: #ffffff;
}

/* ===== GREETING SECTION ===== */
.greeting-section {
    width: 100%;
    padding: 60px 0;
    overflow: hidden;
    /* голубой градиент — фон всей секции, виден слева от картинки */
    background: linear-gradient(160deg, #a8dff0 0%, #beeaf8 40%, #d4f2ff 70%, #c2ecfa 100%);
}

.greeting-outer {
    display: flex;
    align-items: center;
    justify-content: flex-end;   /* картинка прижата вправо */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Левая и правая колонки — не нужны, фон секции и есть градиент */
.greeting-side--left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.greeting-side--right { display: none; }

/* Мини-окошко: картинка справа */
.greeting-img-wrap {
    width: clamp(280px, 34vw, 460px);
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(10, 80, 120, 0.28);
    position: relative;
    /* соотношение сторон оригинала 934:1280 ≈ 3:4 */
    aspect-ratio: 934 / 1280;
    background: #fff;
}

.greeting-img {
    position: absolute;
    inset: 0;
    width: 100%;

    object-fit: cover;
    object-position: top center;
    display: block;
}

/*
  Белая зона ВВЕРХУ картинки — примерно y: 0–34%
  Заголовок + первая строка, растянуты на всю ширину
*/
.g-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52%;
    padding: 40% 7% 2%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/*
  Белая зона СЛЕВА-СНИЗУ картинки — примерно y: 34–85%, x: 0–45%
  Остальной текст, выровнен по левому краю
*/
.g-bottom {
    position: absolute;
    top: 52%;
    left: 0;
    width: 50%;
    bottom: 1%;
    padding: 2% 4% 2% 7%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.greeting-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(13px, 1.6vw, 19px);
    font-weight: 900;
    color: #0a4a4e;
    margin: 0 0 5px 0;
    line-height: 1.2;
    width: 100%;
    letter-spacing: -0.3px;
}

.greeting-p {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(9px, 1.0vw, 13px);
    font-weight: 600;
    line-height: 1.5;
    color: #1a3a4a;
    margin: 0 0 5px 0;
}
.greeting-p:last-child { margin-bottom: 0; }

.greeting-left-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.greeting-left-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 2.6vw, 38px);
    font-weight: 800;
    color: var(--primary, #0a9a8a);
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.greeting-left-date {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 700;
    color: var(--primary-dark, #0a7a6a);
    letter-spacing: 1px;
}

.greeting-anim {
    margin-top: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ganim-svg {
    width: clamp(140px, 18vw, 220px);
    height: auto;
    overflow: visible;
}

/* Gear rotations */
.gear-cw  { animation: gAnimCW  4s linear infinite; transform-origin: 82px 12px; transform-box: view-box; }
.gear-ccw { animation: gAnimCCW 3s linear infinite; transform-origin: 122px 38px; transform-box: view-box; }
@keyframes gAnimCW  { to { transform: rotate(360deg); } }
@keyframes gAnimCCW { to { transform: rotate(-360deg); } }

/* Flask bubbles */
.b1 { animation: bubble1 2.8s ease-in-out infinite; }
.b2 { animation: bubble2 2.8s ease-in-out 0.9s infinite; }
.b3 { animation: bubble3 2.8s ease-in-out 1.6s infinite; }
@keyframes bubble1 {
    0%,100% { opacity: 0; transform: translateY(0); }
    30%      { opacity: 0.9; }
    70%      { opacity: 0.5; transform: translateY(-10px); }
}
@keyframes bubble2 {
    0%,100% { opacity: 0; transform: translateY(0); }
    30%      { opacity: 0.8; }
    70%      { opacity: 0.3; transform: translateY(-8px); }
}
@keyframes bubble3 {
    0%,100% { opacity: 0; transform: translateY(0); }
    40%      { opacity: 0.7; }
    80%      { opacity: 0; transform: translateY(-12px); }
}

/* Lightning pulse */
.bolt { animation: boltPulse 1.8s ease-in-out infinite; transform-origin: 188px 35px; transform-box: view-box; }
@keyframes boltPulse {
    0%,100% { opacity: 0.35; filter: drop-shadow(0 0 0px #14c89a); }
    50%      { opacity: 1;    filter: drop-shadow(0 0 6px #14c89a); }
}

/* Connecting dots pulse */
.d1 { animation: dotPulse 2s ease-in-out infinite; }
.d2 { animation: dotPulse 2s ease-in-out 0.4s infinite; }
.d3 { animation: dotPulse 2s ease-in-out 0.8s infinite; }
.d4 { animation: dotPulse 2s ease-in-out 1.2s infinite; }
@keyframes dotPulse {
    0%,100% { opacity: 0.2; r: 1.5px; }
    50%      { opacity: 0.9; r: 3px; }
}
.greeting-block, .greeting-top, .greeting-bottom, .greeting-text-zone { display: none; }

@media (max-width: 900px) {
    .greeting-outer {
        justify-content: center;
        padding: 0 24px;
    }
    .greeting-img-wrap { width: clamp(260px, 65vw, 400px); }
    .greeting-title { font-size: clamp(10px, 2.5vw, 15px); }
    .greeting-p { font-size: clamp(8px, 1.8vw, 11px); }
}

@media (max-width: 550px) {
    .greeting-section { padding: 32px 0; }
    .greeting-outer {
        padding: 0 16px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .greeting-side--left {
        order: 1;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    .greeting-img-wrap {
        order: 2;
        width: 88vw;
    }
    .greeting-left-text { text-align: center; }
    .greeting-title { font-size: clamp(9px, 3.5vw, 14px); }
    .greeting-p { font-size: clamp(7px, 2.5vw, 10px); }
}


/* ===== LOADER ===== */
.loader-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #0f2d3d 0%, #071520 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Glowing ring behind gears */
.loader-content::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,160,133,0.12) 0%, transparent 70%);
    animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50%       { transform: scale(1.15); opacity: 1; }
}

/* The SVG with gears */
.loader-svg {
    width: 200px;
    height: 200px;
    overflow: visible;
    filter: drop-shadow(0 0 12px rgba(20,200,160,0.4));
}
.gear-big {
    transform-box: fill-box;
    transform-origin: center;
    animation: gearCW 2.4s linear infinite;
}
.gear-mid {
    transform-box: fill-box;
    transform-origin: center;
    animation: gearCCW 2.4s linear infinite;
}
.gear-sml {
    transform-box: fill-box;
    transform-origin: center;
    animation: gearCW 2.4s linear infinite;
}
@keyframes gearCW  { to { transform: rotate(360deg);  } }
@keyframes gearCCW { to { transform: rotate(-360deg); } }

.loader-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #14c89a;
    letter-spacing: 10px;
    text-shadow: 0 0 20px rgba(20,200,154,0.6), 0 0 40px rgba(20,200,154,0.2);
    animation: labelPulse 2.4s ease-in-out infinite;
}
@keyframes labelPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(20,200,154,0.6), 0 0 40px rgba(20,200,154,0.2); }
    50%       { text-shadow: 0 0 30px rgba(20,200,154,0.9), 0 0 60px rgba(20,200,154,0.4); }
}

.loader-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: -18px;
    animation: fadeLoop 1.8s ease-in-out infinite;
}
@keyframes fadeLoop {
    0%, 100% { opacity: 0.35; }
    50%       { opacity: 0.7; }
}

/* Progress bar */
.loader-bar-wrap { display: none; }
.loader-bar { display: none; }

/* ===== HORIZONTAL TIMELINE ===== */
.htl-section {
    background: var(--bg);
    padding: 90px 0 100px;
    overflow: hidden;
}
.htl-inner {
    max-width: 100%;
    padding: 0 40px;
}
.htl-wrap {
    position: relative;
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 320px 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--border);
    cursor: grab;
}
.htl-wrap:active { cursor: grabbing; }
.htl-wrap::-webkit-scrollbar { height: 5px; }
.htl-wrap::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
.htl-wrap::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.htl-line {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 5%, var(--primary-light) 50%, var(--primary) 95%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.htl-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    width: 260px;
    z-index: 2;
}
.htl-col--above { justify-content: flex-end; }
.htl-col--above .htl-card { order: 1; }
.htl-col--above .htl-connector--down { order: 2; }
.htl-col--above .htl-dot { order: 3; }
.htl-col--below { justify-content: flex-start; }
.htl-col--below .htl-dot { order: 1; }
.htl-col--below .htl-connector--up { order: 2; }
.htl-col--below .htl-card { order: 3; }
.htl-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(31,112,128,0.18);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    transition: transform 0.2s, box-shadow 0.2s;
}
.htl-col:hover .htl-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 7px rgba(31,112,128,0.15);
}
.htl-dot--today {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 6px rgba(31,112,128,0.22), 0 0 20px rgba(31,112,128,0.4);
}
.htl-connector--down,
.htl-connector--up {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    flex-shrink: 0;
}
.htl-card {
    width: 240px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}
.htl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(31,112,128,0.18);
    border-color: var(--primary-light);
}
.htl-card-photo {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.htl-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.htl-card:hover .htl-card-photo img { transform: scale(1.04); }
.htl-card-body { padding: 16px 18px 18px; }
.htl-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}
.htl-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}
.htl-col--today {
    width: 80px;
    align-items: center;
    justify-content: center;
}
.htl-today-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    text-align: center;
    white-space: nowrap;
}


/* ===== ABOUT PAGE ===== */
.about-page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.about-who-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}
.about-who-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
}
.about-who-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}
.about-cert-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1.5px solid var(--border);
}
.about-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    margin-top: 8px;
}
.about-doc-btn:hover { background: var(--primary-dark, #144d5a); transform: translateY(-2px); }
.about-cert-link { margin-top: 12px; }

/* Stats */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.about-stat-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(31,112,128,0.12); }
.about-stat-icon { font-size: 24px; color: var(--primary); margin-bottom: 12px; }
.about-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.about-stat-label { font-size: 13px; color: var(--text-light); line-height: 1.4; }
.about-structure-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Congress */
.about-congress-block { text-align: center; max-width: 800px; margin: 0 auto; }
.about-congress-photo {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.about-congress-photo img { width: 100%; display: block; }
.about-congress-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Join */
.about-join-block {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}
.about-join-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 28px;
}
.about-join-block h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}
.about-join-block p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    white-space: pre-line;
}

/* Today card in timeline */
.htl-today-card {
    width: 220px;
    background: var(--white);
    border: 1.5px solid var(--primary-light);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-light);
    box-shadow: 0 4px 16px rgba(31,112,128,0.12);
    text-align: left;
}

/* Responsive about page */
@media (max-width: 900px) {
    .about-who-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-who-visual { order: -1; max-width: 320px; margin: 0 auto; }
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .about-stats-grid { grid-template-columns: 1fr; }
    .about-stat-num { font-size: 28px; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-footer);
    color: rgba(255,255,255,0.7);
    padding: 24px 24px 14px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

/* Compact single-row layout */
.footer-compact {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 180px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.footer-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}
.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.footer-logo-line {
    display: block;
    line-height: 1.55;
}
.footer-desc {
    display: none;
}

/* Partners block */
.footer-mid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}
.footer-partners-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-partners-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    min-width: 56px;
    cursor: pointer;
}
.partner-card i { font-size: 15px; color: var(--primary-light); }
.partner-card:hover {
    background: rgba(31,112,128,0.18);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

/* Contacts + socials */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}
/* Address card — clickable, mirrors screenshot style */
.footer-addr-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-bottom: 4px;
}
.footer-addr-card:hover {
    background: rgba(31,112,128,0.18);
    border-color: var(--primary-light);
    color: white;
}
.footer-addr-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-addr-icon i { color: white; font-size: 14px; }
.footer-addr-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.footer-addr-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.45);
    display: block;
    margin-top: 6px;
    line-height: 1.3;
}
.footer-addr-body .footer-addr-label:first-child { margin-top: 0; }
.footer-addr-value {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.45;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    min-height: 36px;
}
.footer-contact-item i { color: var(--primary-light); font-size: 13px; width: 14px; text-align: center; margin-top: 3px; flex-shrink: 0; }
.footer-contact-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--primary-light); text-decoration: underline; }
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.footer-socials a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-socials a:hover {
    background: rgba(31,112,128,0.2);
    border-color: var(--primary-light);
    color: white;
}

.footer-addr-block { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.footer-addr-row { display: flex; flex-direction: column; gap: 2px; }
.footer-addr-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.footer-copy-text { font-size: 0.92rem; color: rgba(255,255,255,0.85); cursor: pointer; transition: color .15s; }
.footer-copy-text:hover { color: #fff; text-decoration: underline; }
.footer-contacts-plain { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

@media (max-width: 768px) {
    .footer { padding: 28px 16px 16px; }
    .footer-compact { gap: 24px; }
    .footer-bottom { text-align: center; }
}
@media (max-width: 480px) {
    .footer-compact { flex-direction: column; gap: 20px; }
    .footer-left, .footer-mid, .footer-right { min-width: 100%; }
    .footer-mid { align-items: center; text-align: center; }
    .footer-partners-cards { justify-content: center; }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .logo-subtitle { display: none; }
    .nav-link { padding: 8px 11px; font-size: 13.5px; }
}
@media (max-width: 768px) {
    .logo-subtitle { display: block; }
}
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; margin-top: 40px; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .directions-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .history-grid { grid-template-columns: 1fr; gap: 40px; }
    .contacts-grid { grid-template-columns: 1fr; }
    .reps-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Header — search left, logo center, burger right */
    .nav { display: none; }
    .mobile-menu-btn { display: flex; width: 48px; height: 48px; font-size: 28px !important; }
    .header-search-btn { width: 48px; height: 48px; font-size: 24px !important; }
    .logo-subtitle { display: none !important; }
    .logo-img { width: 110px; height: 110px; }
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        margin-left: 0;
    }

    /* Hero — all centered */
    .hero { padding: 140px 20px 60px; min-height: unset; display: flex; align-items: center; justify-content: center; }
    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-content {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title { font-size: 28px; text-align: center; }
    .hero-subtitle {
        font-size: 15px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    .hero-content .btn { align-self: center; }

    /* Sections */
    .section { padding: 60px 20px; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 16px; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 44px; }
    .stats-section { padding: 70px 20px; }
    .stats-title { font-size: 26px; margin-bottom: 40px; }

    /* Directions */
    .directions-grid { grid-template-columns: 1fr; gap: 20px; }
    .direction-card { padding: 32px 24px; }

    /* History */
    .history-section { padding: 60px 20px; }
    .history-content h3 { font-size: 26px; }
    .history-grid { grid-template-columns: 1fr; }
    .history-visual { display: none; }

    /* News */
    .news-section { padding: 60px 20px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Greeting */
    .greeting-outer { justify-content: center; padding: 0 16px; }
    .greeting-img-wrap { width: clamp(240px, 70vw, 380px); }

    /* CTA */
    .cta-section { padding: 70px 20px; }
    .cta-title { font-size: 22px; }
    .cta-text { font-size: 16px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* Page header */
    .page-header { padding: 110px 20px 60px; }
}

@media (max-width: 480px) {
    /* Hero */
    .hero { padding: 140px 16px 60px; min-height: unset; }
    .hero-title { font-size: 24px; letter-spacing: 0; line-height: 1.3; text-align: center; }
    .hero-subtitle { font-size: 15px; line-height: 1.65; margin-bottom: 28px; }
    .btn { padding: 13px 28px; font-size: 14px; }
    .btn { padding: 14px 28px; font-size: 15px; }

    /* Stats — single column on very small */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 30px 16px 26px; border-radius: 14px; }
    .stat-number { font-size: 38px; }
    .stat-icon { font-size: 24px; margin-bottom: 14px; }
    .stat-label { font-size: 12px; }

    /* Greeting */
    .greeting-outer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .greeting-side--left { order: 1; padding: 0; width: 100%; justify-content: center; }
    .greeting-img-wrap { order: 2; width: 88vw; }
    .greeting-left-text { text-align: center; }

    /* News */
    .news-card { border-radius: 12px; }

    /* Footer */
    .footer { padding: 50px 16px 24px; }
    .footer-logo-text { font-size: 14px; }
    .footer-logo-img { max-height: 54px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== SEARCH & FILTER (News page) ===== */
.news-controls {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    position: static;
    box-shadow: none;
}
.news-controls-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.news-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.news-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
}
.news-search {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}
.news-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,95,110,0.12);
}
.news-search::placeholder { color: #9aa5b1; }
.news-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}
.news-search-clear.visible { opacity: 1; }
.news-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.news-filter-btn {
    padding: 9px 18px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.news-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.news-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.news-year-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s;
}
.news-year-select:focus { border-color: var(--primary); }

/* News badge */
.news-image { position: relative; }
.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.news-image--seminar .news-badge { background: #8b5cf6; }
.news-image--competition .news-badge { background: #f59e0b; }

/* Цвета фона по типу новости */
.news-image--event       { background: linear-gradient(135deg, #1a5f6e, #144d5a); }
.news-image--seminar     { background: linear-gradient(135deg, #6d5fd6, #4f46a8); }
.news-image--competition { background: linear-gradient(135deg, #d97706, #b45309); }
.news-image--meeting     { background: linear-gradient(135deg, #1a5f6e, #1f7080); }

/* News date icon */
.news-date i { margin-right: 5px; font-size: 12px; }

/* News empty state */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.news-empty i { font-size: 48px; margin-bottom: 20px; opacity: 0.3; display: block; }
.news-empty p { font-size: 18px; margin-bottom: 24px; }

/* News card hidden */
.news-card.hidden { display: none; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(26,95,110,0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease;
    pointer-events: none;
    z-index: 500;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.05); }
/* progress ring */
.back-to-top svg.progress-ring {
    position: absolute;
    top: -4px; left: -4px;
    width: 60px; height: 60px;
    transform: rotate(-90deg);
    pointer-events: none;
}
.back-to-top svg.progress-ring circle {
    fill: none;
    stroke: rgba(255,255,255,0.35);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}
.back-to-top svg.progress-ring circle.progress {
    stroke: white;
    stroke-dasharray: 163;
    stroke-dashoffset: 163;
}

/* ===== CONTRAST FIXES (WCAG AA) ===== */
/* stat-label was too light (opacity 0.8 on teal bg) */
.stat-label { opacity: 1; color: rgba(255,255,255,0.92); }
/* news-date color boost */
.news-date { color: #0a5e62; }
/* text-light contrast fix on white bg */
.about-text { color: #4a5a6a; }
.section-subtitle { color: #4a5a6a; }
/* footer links boost */
.footer-links a { color: rgba(255,255,255,0.85); }
.footer-contact-item { color: rgba(255,255,255,0.85); }
.footer-social a { color: rgba(255,255,255,0.85); }

/* ===== MOBILE NAV ACTIVE STATE FIX ===== */

/* ===== NEWS PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-controls { top: 72px; padding: 16px; }
    .news-controls-inner { gap: 12px; }
    .news-search-wrap { min-width: 100%; }
    .news-filters { gap: 6px; }
    .news-filter-btn { padding: 7px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 16px; }
}

/* ===== HEADER SEARCH ===== */
.header-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 6px;
}
.header-search-btn {
    background: rgba(13,115,119,0.08);
    border: 1.5px solid rgba(13,115,119,0.2);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.header-search-btn:hover { background: rgba(26,95,110,0.15); color: var(--primary); border-color: var(--primary); }
.header-search-box {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    width: 340px;
    overflow: visible;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: top right;
}
.header-search-box.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.header-search-input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: transparent;
}
.header-search-input::placeholder { color: #9aa5b1; }
.header-search-go {
    padding: 12px 16px;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.header-search-go:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
    .header-search-wrap { position: static; }
    .header-search-box {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-top: 2px solid var(--primary);
        border-left: none;
        border-right: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        transform-origin: top center;
        z-index: 1001;
    }
    .header-search-input { font-size: 16px; padding: 14px 16px; }
    .header-search-go { padding: 14px 20px; font-size: 16px; }
}

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}
.search-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.active { background: #f0fafa; }
.search-result-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #1f7080);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 13px; flex-shrink: 0;
}
.search-result-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.search-result-title { font-size: 14px; font-weight: 600; color: var(--text); }
.search-result-desc { font-size: 12px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item mark { background: #ffe082; border-radius: 2px; padding: 0 1px; }
.search-empty { padding: 14px 16px; font-size: 14px; color: var(--text-light); text-align: center; }

@media (max-width: 768px) {
    .search-dropdown {
        position: fixed;
        top: 130px;
        left: 0; right: 0;
        border-radius: 0 0 12px 12px;
        border-top: none;
    }
}

/* ===== SKELETON / SHIMMER ===== */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
@keyframes skeletonFadeOut {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}
.skeleton {
    background: linear-gradient(90deg, #e8edf0 25%, #f4f7f8 50%, #e8edf0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 8px;
}
#skeletonGrid {
    transition: opacity 0.5s ease;
}
#skeletonGrid.hiding {
    opacity: 0;
    pointer-events: none;
}
.news-card.is-skeleton .news-image {
    background: linear-gradient(90deg, #e8edf0 25%, #f4f7f8 50%, #e8edf0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}
.news-card.is-skeleton .skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf0 25%, #f4f7f8 50%, #e8edf0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}
.news-card.is-skeleton .skeleton-line.short { width: 55%; }
.news-card.is-skeleton .skeleton-line.title { height: 18px; width: 90%; margin-bottom: 14px; }
.news-card.is-skeleton .skeleton-content { padding: 24px; }

/* ===== CONTACTS TABLE ===== */
.contacts-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.contacts-table-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.contacts-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contacts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: white;
}
.contacts-table thead tr {
    background: linear-gradient(135deg, var(--primary), #1f7080);
    color: white;
}
.contacts-table th {
    padding: 14px 18px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.contacts-table th:first-child { width: 48px; text-align: center; border-radius: 14px 0 0 0; }
.contacts-table th:last-child { border-radius: 0 14px 0 0; }
.contacts-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.contacts-table tbody tr:last-child { border-bottom: none; }
.contacts-table tbody tr:hover { background: #f0fafa; }
.contacts-table tbody tr.contacts-table-group td {
    background: var(--surface, #f5f7fa);
    color: var(--primary);
    font-size: 13px;
    padding: 10px 18px;
    border-top: 2px solid var(--border);
}
.contacts-table tbody tr.contacts-table-group:hover { background: var(--surface, #f5f7fa); }
.contacts-table td {
    padding: 16px 18px;
    color: var(--text);
    vertical-align: middle;
    line-height: 1.5;
}
.contacts-table td:first-child {
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}
.contacts-table td a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.contacts-table td a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .contacts-table th, .contacts-table td { padding: 12px 12px; font-size: 13px; }
    .contacts-table-title { font-size: 18px; }
}

/* ===== JOIN REGIONS ===== */
.join-regions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 24px;
}
.join-region-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.join-region-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-2px);
}
.join-region-card > i {
    font-size: 20px;
    color: var(--primary-light);
}
.join-region-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0;
}
.join-region-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    flex: 1;
}
.join-region-card p a { color: var(--primary-light); text-decoration: none; }
.join-region-card p a:hover { text-decoration: underline; }
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    align-self: flex-start;
}
.btn-download:hover { background: var(--primary-dark); }
.charter-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}
.charter-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.charter-img-link { display: inline-block; }
.charter-img {
    max-width: 480px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: opacity 0.2s;
}
.charter-img:hover { opacity: 0.85; }
@media (max-width: 600px) {
    .charter-img { max-width: 100%; }
}

    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    line-height: 1.6;
}
.join-note i { color: var(--primary-light); margin-right: 4px; }
.join-note a { color: var(--primary-light); }

@media (max-width: 900px) {
    .join-regions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .join-regions { grid-template-columns: 1fr; }
}

/* ================================================
   MOBILE COMPREHENSIVE FIX (≤480px)
   ================================================ */
@media (max-width: 480px) {

    /* Header */
    .header-inner { height: 80px; padding: 0 16px; }
    .header.hidden { top: -84px; }
    .logo { gap: 10px; }
    .logo-img { width: 90px; height: 90px; }
    .logo-title { font-size: 16px; }
    .logo-subtitle { display: block; font-size: 11px; max-width: 160px; line-height: 1.35; }

    /* Hero — полный фон, без троения заголовка */
    .hero { padding: 140px 16px 60px; min-height: unset; display: flex; align-items: center; justify-content: center; }
    .hero-bg-image { background-position: center center; background-size: cover; }
    .hero-overlay {
        background: rgba(26,95,110,0.82);
    }







    .hero::before, .hero::after { display: none; }
    .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .hero-title { font-size: 26px; letter-spacing: 0; line-height: 1.3; text-align: center; }
    .hero-subtitle { font-size: 16px; line-height: 1.65; margin-bottom: 24px; max-width: 100%; text-align: center; margin-left: auto; margin-right: auto; }
    .hero-visual { display: none; }

    /* About */
    .section#about { padding: 48px 16px; }
    .about-text { font-size: 15px; margin-bottom: 24px; }
    .about-cards { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
    .about-card { padding: 24px 18px; }
    .about-card-icon { width: 52px; height: 52px; font-size: 20px; }
    .about-card h3 { font-size: 15px; }
    .about-card p { font-size: 13px; }

    /* Stats */
    .stats-section { padding: 48px 16px; }
    .stats-title { font-size: 22px; margin-bottom: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 20px 12px; border-radius: 14px; }
    .stat-number { font-size: 36px; }
    .stat-label { font-size: 12px; }

    /* Directions */
    .section { padding: 48px 16px; }
    .section-title { font-size: 22px; }
    .section-subtitle { font-size: 14px; }
    .directions-grid { grid-template-columns: 1fr; gap: 14px; }
    .direction-card { padding: 24px 18px; border-radius: 14px; }
    .direction-icon-img { width: 56px; height: 56px; font-size: 22px; }
    .direction-card h3 { font-size: 16px; }
    .direction-card p { font-size: 13px; }

    /* History */
    .history-section { padding: 48px 16px; }
    .history-content h3 { font-size: 22px; }
    .history-content p { font-size: 16px; }
    .history-list { padding-left: 18px; }
    .history-list li { font-size: 13px; margin-bottom: 6px; }
    .history-visual { display: none; }

    /* Greeting */
    .greeting-section { padding: 28px 0; }
    .greeting-outer { flex-direction: column; align-items: center; gap: 16px; padding: 0 14px; }
    .greeting-side--left { order: 1; padding: 0; width: 100%; justify-content: center; }
    .greeting-img-wrap { order: 2; width: 92vw; border-radius: 14px; }
    .greeting-left-title { font-size: 22px; }
    .greeting-left-date { font-size: 14px; }
    .greeting-title { font-size: 13px; }
    .greeting-p { font-size: 12px; }

    /* News */
    .news-section { padding: 48px 16px; }
    .news-grid { grid-template-columns: 1fr; gap: 14px; }
    .news-image { height: 160px; }
    .news-content { padding: 18px; }
    .news-card h3 { font-size: 15px; }
    .news-card p { font-size: 13px; }

    /* CTA */
    .cta-section { padding: 52px 16px; }
    .cta-title { font-size: 20px; }
    .cta-text { font-size: 14px; }
    .cta-text-secondary { font-size: 13px; }
    .cta-inner > div { flex-direction: column; align-items: center; gap: 12px !important; }
    .cta-inner > div .btn { width: 100%; justify-content: center; max-width: 320px; }

    /* Footer */
    .footer { padding: 24px 14px 14px; }
    .footer-compact { flex-direction: column; gap: 18px; }
    .footer-left, .footer-mid, .footer-right { min-width: 100%; }
    .footer-logo-text { font-size: 13px; }
    .footer-logo-img { max-height: 48px; }
    .footer-desc { font-size: 12px; }
    .partner-card { padding: 8px 10px; font-size: 11px; min-width: 50px; }
    .footer-contact-item { font-size: 12px; min-height: 38px; }
    .footer-bottom { font-size: 11px; }

    /* News controls */
    .news-controls-inner { flex-direction: column; gap: 12px; padding: 16px; }
    .news-search-wrap { width: 100%; }
    .news-filters { flex-wrap: wrap; gap: 6px; }
    .news-filter-btn { padding: 6px 12px; font-size: 12px; }

    /* Join regions */
    .join-section { padding: 52px 16px; }
    .join-inner h2 { font-size: 24px; }
    .join-regions { grid-template-columns: 1fr; gap: 12px; }
    .join-region-card { padding: 16px; }
    .join-region-card h4 { font-size: 13px; }
    .join-region-card p { font-size: 12px; }
    .btn-download { font-size: 11px; padding: 7px 12px; }
    .join-note { font-size: 12px; padding: 10px 14px; }

    /* About text — убираем nowrap на мобильных */
    .about-line { white-space: normal; }
    .about-text { font-size: 15px; margin-bottom: 24px; padding: 0 4px; }

    /* Map section */
    .map-section { padding: 48px 16px; }
    .map-address-cards { flex-direction: column; gap: 10px; }
    .map-address-card { min-width: unset; max-width: 100%; padding: 14px 16px; }
    .map-frame { height: 280px; }
    .map-open-link-wrap { flex-direction: column; align-items: stretch; gap: 8px; }
    .map-open-link { justify-content: center; font-size: 13px; padding: 10px 16px; }

    /* Contacts page */
    .contacts-section { padding: 48px 16px; }
    .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-info h2 { font-size: 20px; }
    .contacts-table th, .contacts-table td { padding: 10px 10px; font-size: 12px; }
    .contacts-table-title { font-size: 16px; }

    /* Reps grid */
    .reps-grid { grid-template-columns: 1fr; gap: 12px; }
    .rep-card { padding: 16px; }
    .rep-card h4 { font-size: 14px; }
    .rep-card p { font-size: 12px; }

    /* Activity page */
    .activity-section { padding: 48px 16px; }
    .activity-grid { grid-template-columns: 1fr; }

    /* Page header */
    .page-header { padding: 90px 16px 48px; }
    .page-header h1 { font-size: 26px; }

    /* Back to top */
    .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; font-size: 15px; }
    .back-to-top svg.progress-ring { width: 52px; height: 52px; }

    /* Search dropdown */
    .search-dropdown { border-radius: 0 0 10px 10px; }
    .search-result-item { padding: 10px 12px; gap: 10px; }
    .search-result-title { font-size: 13px; }
    .search-result-desc { font-size: 11px; }
}

/* Tiny screens ≤360px */
@media (max-width: 360px) {
    .hero-title { font-size: 23px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 30px; }
    .about-cards { gap: 10px; }
    .directions-grid { gap: 10px; }
}

/* About more link */
.about-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid rgba(26,95,110,0.25);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}
.about-more-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    gap: 12px;
}
/* wrapper для центрирования ссылки */
.about-link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Greeting news card */
.news-image--greeting { background: #cce8ec; }
.news-date--holiday { color: #c0392b; font-weight: 600; }

/* Mobile nav overlay backdrop */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; }

/* ===== HISTORY TASK CARDS ===== */
.history-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.history-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 18px;
    background: white;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.history-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26,95,110,0.1);
}
.history-list li::before {
    content: '';
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), #1f7080);
    border-radius: 8px;
    flex-shrink: 0;
    background-image: none;
}
.history-list li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; }
.history-list li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3L1 9l11 6 9-4.91V17h2V9M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82z'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; }
.history-list li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; }

@media (max-width: 700px) {
    .history-list { grid-template-columns: 1fr; gap: 10px; }
    .history-list li { flex-direction: row; align-items: flex-start; padding: 14px; }
    .history-list li::before { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
}

/* ===== TASKS → DIRECTIONS CONNECTED BLOCK ===== */
.tasks-directions-block {
    margin: 24px 0 8px;
}

/* Строка задач */
.tasks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.task-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,95,110,0.12);
}
.task-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #1f7080);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}
.task-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
    margin: 0;
}

/* SVG стрелки */
/* CSS Коннекторы */
.tasks-connectors {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 0 calc(100% / 6);
    height: 72px;
    position: relative;
}
/* Горизонтальная перемычка */
.tasks-connectors::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26,95,110,0.2) 20%, rgba(26,95,110,0.2) 80%, transparent);
    transform: translateY(-50%);
}
.connector-line {
    width: 2px;
    background: linear-gradient(to bottom, rgba(26,95,110,0.2) 0%, #1a5f6e 100%);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 8px rgba(26,95,110,0.4);
}
.connector-line.mid {
    background: linear-gradient(to bottom, rgba(31,112,128,0.2) 0%, #1f7080 100%);
    box-shadow: 0 0 8px rgba(31,112,128,0.4);
}
/* Кружок сверху */
.connector-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    border: 2px solid #1a5f6e;
    box-shadow: 0 0 6px rgba(26,95,110,0.5);
}
.connector-line.mid::before {
    border-color: #1f7080;
    box-shadow: 0 0 6px rgba(31,112,128,0.5);
}
/* Кружок снизу */
.connector-line::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a5f6e;
    box-shadow: 0 0 8px rgba(26,95,110,0.6);
}
.connector-line.mid::after {
    background: #1f7080;
    box-shadow: 0 0 8px rgba(31,112,128,0.6);
}

.arrows-svg { display: none; }

/* Подпись */
.directions-label {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-top: 4px;
}

/* Строка направлений */
.directions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.direction-card-linked {
    background: linear-gradient(135deg, rgba(26,95,110,0.05), rgba(31,112,128,0.03));
    border: 1px solid rgba(26,95,110,0.2);
    border-top: 3px solid var(--primary);
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.direction-card-linked:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,95,110,0.12);
}
.direction-linked-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: white;
}
.direction-linked-icon.popularization { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.direction-linked-icon.education      { background: linear-gradient(135deg, #3498db, #2980b9); }
.direction-linked-icon.expert         { background: linear-gradient(135deg, var(--primary), #1f7080); }
.direction-card-linked h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.direction-card-linked p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* МОБИЛЬНЫЙ — убрать стрелки, всё в колонку */
@media (max-width: 768px) {
    .tasks-row { grid-template-columns: 1fr; gap: 10px; }
    .directions-row { grid-template-columns: 1fr; gap: 10px; }
    .tasks-arrows { display: none; }
    .tasks-connectors { display: none; }
    .directions-label { font-size: 17px; margin-top: 8px; }
    .task-card { flex-direction: row; align-items: flex-start; padding: 16px; }
    .direction-card-linked { padding: 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .tasks-row { gap: 12px; }
    .directions-row { gap: 12px; }
    .task-card p { font-size: 12.5px; }
    .direction-card-linked p { font-size: 12px; }
}

/* ===== ДЕЯТЕЛЬНОСТЬ БОИР (Главная) ===== */
/* =========================================================
   ДЕЯТЕЛЬНОСТЬ БОИР — Modern Redesign
   ========================================================= */
/* ===== ДЕЯТЕЛЬНОСТЬ БОИР — MODERN ===== */
/* ===== ДЕЯТЕЛЬНОСТЬ БОИР — панельный макет ===== */
.boir-activity-section {
    background: var(--white);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.boir-activity-section::before {
    display: none;
}
.boir-activity-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.boir-activity-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 19px;
    margin: -10px auto 20px;
    max-width: 780px;
    line-height: 1.7;
}

/* Сетка панелей */
.boir-panels-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Базовая панель */
.boir-panel {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
    box-shadow: 0 4px 18px rgba(26,107,138,0.10);
}
.boir-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,107,138,0.18);
}

/* Тёмная панель (первая) */
.boir-panel--dark {
    background: linear-gradient(135deg, #1a6070 0%, #2a9d8f 60%, #33b5a5 100%);
}
.boir-panel--dark .boir-panel-header {
    color: #fff;
    background: rgba(0,0,0,0.12);
}
.boir-panel--dark .boir-panel-list {
    color: rgba(255,255,255,0.90);
}
.boir-panel--dark .boir-panel-list li::before {
    color: #a0ede4;
}

/* Светлая панель */
.boir-panel--light {
    background: linear-gradient(135deg, #2a9d8f 0%, #33b5a5 60%, #3ec9b7 100%);
}
.boir-panel--light .boir-panel-header {
    color: #fff;
    background: rgba(0,0,0,0.10);
}
.boir-panel--light .boir-panel-list {
    color: rgba(255,255,255,0.92);
}
.boir-panel--light .boir-panel-list li::before {
    color: #b8f0ea;
}

/* Левая часть — заголовок */
.boir-panel-header {
    flex: 0 0 320px;
    padding: 28px 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Правая часть — список */
.boir-panel-list {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 22px 32px 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.15);
}
.boir-panel-list li {
    font-size: 17px;
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
}
.boir-panel-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* Мобильный */
@media (max-width: 768px) {
    .boir-activity-section { padding: 40px 0 50px; }
    .boir-activity-subtitle {
        font-size: 16px;
        max-width: 100%;
        padding: 0 16px;
        margin: -6px auto 16px;
    }
    .boir-activity-subtitle br {
        display: none;
    }
    .boir-panels-grid { gap: 14px; }
    .boir-panel {
        flex-direction: column;
        border-radius: 10px;
    }
    .boir-panel-header {
        flex: none;
        padding: 18px 20px 16px;
        font-size: 16px;
        background: rgba(0,0,0,0.14) !important;
    }
    .boir-panel-list {
        padding: 16px 20px 18px 20px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.18);
        gap: 8px;
    }
    .boir-panel-list li {
        font-size: 15px;
    }
}

/* Кнопка "Все новости" — снизу под лентой */
.news-footer-btn {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* CTA текст — по центру, 2 строки */
.cta-text, .cta-text-secondary {
    text-align: center !important;
}

/* ===== SECTION REVEAL ON SCROLL ===== */
.section-hidden {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.section-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Уважаем prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .section-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .direction-card, .news-card, .about-card, .rep-card, .timeline-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =============================================
   ДЕЯТЕЛЬНОСТЬ БОИР — диаграмма (схема)
   ============================================= */

.boir-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Верхняя плашка — цвет фото 2 (~#1a5f6e, насыщенный бирюзовый) */
.boir-tasks-wrapper {
    background: #1a5f6e;
    border-radius: 14px;
    padding: 24px 28px 28px;
    margin-bottom: 0;
}
.boir-tasks-label {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.boir-tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.boir-task-box {
    background: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 16px 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    color: #1a3a4a;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.boir-task-box--accent {
    background: #fdf6ee;
    border-color: #e8cfa0;
}

/* Стрелки — между плашками, на прозрачном фоне */
.boir-arrows-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 28px;
    background: transparent;
    margin: 8px 0;
}
.boir-arrow-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
}
.boir-arrow {
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 36px solid #cc1111;
    filter: drop-shadow(0 2px 4px rgba(180,0,0,0.35));
}

/* Нижняя плашка — цвет фото 3 (~#217080, светлее/мятнее) */
.boir-directions-wrapper {
    background: #217080;
    border-radius: 14px;
    padding: 24px 28px 28px;
}
.boir-directions-label {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.boir-directions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.boir-direction-card {
    background: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 20px 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.boir-direction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,120,110,0.18);
}
.boir-direction-card--accent {
    background: #fdf6ee;
    border-color: #e8cfa0;
}
.boir-direction-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #0a5550;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    text-align: center;
}
.boir-direction-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #1a3a30;
    margin: 0;
    text-align: center;
}

/* Мобильная диаграмма — скрыта на десктопе */
.boir-diagram-mobile { display: none; }

@media (max-width: 900px) {

    /* Скрываем десктопную структуру с отдельными стрелками */
    .boir-tasks-wrapper,
    .boir-arrows-row,
    .boir-directions-wrapper {
        display: none;
    }

    /* Показываем мобильную версию */
    .boir-diagram-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .boir-mobile-pair {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .boir-mobile-task {
        width: 100%;
        background: #1a5f6e;
        border-radius: 10px 10px 0 0;
        padding: 16px 18px;
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        border: 2px solid rgba(255,255,255,0.25);
        border-bottom: none;
    }

    .boir-mobile-arrow {
        width: 0;
        height: 0;
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-top: 28px solid #cc1111;
        filter: drop-shadow(0 2px 3px rgba(180,0,0,0.3));
        margin: 4px 0;
    }

    .boir-mobile-direction {
        width: 100%;
        background: #217080;
        border-radius: 0 0 10px 10px;
        padding: 16px 18px;
        border: 2px solid rgba(255,255,255,0.2);
        border-top: none;
    }

    .boir-mobile-direction-title {
        font-family: "Montserrat", sans-serif;
        font-weight: 800;
        font-size: 13px;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 8px;
        text-align: center;
    }

    .boir-mobile-direction-desc {
        font-size: 14px;
        line-height: 1.55;
        color: rgba(255,255,255,0.9);
        margin: 0;
        text-align: center;
    }
}

/* ===== MOBILE-ONLY FIXES (max-width: 768px) ===== */

@media (max-width: 768px) {

    /* 1. HEADER — убираем подпись справа от логотипа, увеличиваем логотип и иконки */
    .logo-subtitle {
        display: none !important;
    }
    .logo-text {
        display: none !important;
    }
    .logo-img {
        width: 130px !important;
        height: 130px !important;
    }
    .header-search-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 22px !important;
    }
    .mobile-menu-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 26px !important;
    }

    /* 2. HERO — фоновая картинка для мобильных */
    .hero-bg-image {
        background-image: url('../assets/hero-bg-circuit.jpg') !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    /* 3. HERO TITLE — форматирование надписи на главной плашке */
    .hero-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        letter-spacing: 0px !important;
        margin-bottom: 20px !important;
    }
    .hero-title-mobile {
        display: block !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
    }

    /* 4. Равные отступы сверху и снизу до кнопки "Вступить в БОИР" */
    .hero-subtitle {
        margin-bottom: 32px !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-content .btn {
        margin-top: 0;
        margin-bottom: 32px;
        align-self: center;
    }
    .hero-content {
        padding-bottom: 0;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 5. О БОИР — выравнивание текста по центру, распределение строк */
    .about-text {
        text-align: center !important;
        font-size: 16px !important;
        line-height: 1.8 !important;
        padding: 0 12px !important;
        max-width: 100% !important;
    }
    .about-text br {
        display: none;
    }
    .about-line {
        display: block !important;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {

    /* Дополнительные поправки для совсем маленьких экранов */
    .logo-img {
        width: 115px !important;
        height: 115px !important;
    }
    .hero-title {
        font-size: 20px !important;
        letter-spacing: 0px !important;
    }
    .about-text {
        font-size: 15px !important;
    }
}

/* Hero title mobile/desktop visibility */
.hero-title-mobile { display: none; }
.hero-title-desktop { display: inline; }

@media (max-width: 768px) {
    .hero-title-mobile { display: block; }
    .hero-title-desktop { display: none; }
}

/* ===== CTA MOBILE/DESKTOP VARIANTS ===== */

/* Desktop: show desktop variants, hide mobile */
.cta-title--mobile,
.cta-text--mobile,
.cta-text-secondary--mobile {
    display: none;
}
.cta-title--desktop,
.cta-text--desktop,
.cta-text-secondary--desktop {
    display: block;
}

@media (max-width: 768px) {
    /* Switch to mobile variants */
    .cta-title--desktop,
    .cta-text--desktop,
    .cta-text-secondary--desktop {
        display: none !important;
    }
    .cta-title--mobile,
    .cta-text--mobile,
    .cta-text-secondary--mobile {
        display: block !important;
        text-align: center;
    }

    /* Extra spacing between main text and secondary on mobile */
    .cta-text--mobile {
        margin-bottom: 28px;
    }
    .cta-text-secondary--mobile {
        margin-top: 8px;
        margin-bottom: 36px;
    }

    /* Hero background: use new hero.jpg for mobile */
    .hero-bg-image {
        background-image: url('../assets/hero-bg-circuit.jpg') !important;
    }
}

/* ===== MOBILE-ONLY OVERRIDES ===== */

@media (max-width: 768px) {
    /* About text: center alignment on mobile */
    .about-text {
        text-align: center;
        font-size: 16px !important;
        line-height: 1.75;
        padding: 0 16px;
        white-space: normal;
    }

    /* CTA button equal spacing top and bottom */
    .cta-text-secondary--mobile {
        margin-bottom: 32px !important;
    }
    .cta-inner > div[style] {
        margin-top: 32px !important;
        margin-bottom: 32px !important;
    }

    /* Header: logo on left level, subtitle hidden */
    .logo {
        align-items: center;
    }
    .logo-text {
        display: none !important;
    }
}

/* CTA button wrapper equal spacing on mobile */
@media (max-width: 768px) {
    .cta-buttons-wrap {
        margin-top: 32px !important;
        margin-bottom: 0 !important;
    }
    .cta-text-secondary--mobile {
        margin-bottom: 32px !important;
    }
    /* Hero title mobile: no extra nbsp spacing */
}

/* ================================================
   АДАПТАЦИЯ ДЛЯ ЭКРАНОВ 1366×768 (малая высота)
   ================================================ */

/* Шапка — уменьшаем высоту на экранах с малой высотой */
@media (max-height: 800px) and (min-width: 769px) {
    .header-inner { height: 72px; }
    .header.hidden { top: -76px; }
    .logo-img { width: 80px; height: 80px; }

    /* Hero — учитываем уменьшенную шапку */
    .hero {
        padding: 90px 24px 50px;
        min-height: 100vh;
    }

    /* page-header на inner pages */
    .page-header { padding: 100px 24px 50px; }
}

/* Дополнительная подстройка для совсем маленькой высоты */
@media (max-height: 700px) and (min-width: 769px) {
    .header-inner { height: 64px; }
    .header.hidden { top: -68px; }
    .logo-img { width: 68px; height: 68px; }

    .hero {
        padding: 80px 24px 40px;
        min-height: unset;
    }
    .hero-title { font-size: clamp(20px, 3.2vw, 36px); margin-bottom: 16px; }
    .hero-subtitle { margin-bottom: 24px; }

    .page-header { padding: 84px 24px 40px; }
}

/* ===== МОБИЛЬНЫЙ ФИХ: таймлайн О БОИР ===== */
@media (max-width: 768px) {
    .htl-section {
        overflow: visible;
    }
    .htl-wrap {
        padding: 180px 24px;
    }
}
@media (max-width: 480px) {
    .htl-wrap {
        padding: 160px 16px;
    }
    .htl-col {
        width: 220px;
    }
    .htl-card {
        width: 200px;
    }
}

/* Точный брейкпоинт для распространённого 1366×768 */
@media (max-width: 1400px) and (max-height: 800px) and (min-width: 1024px) {
    .header-inner { height: 72px; }
    .header.hidden { top: -76px; }
    .logo-img { width: 80px; height: 80px; }

    .hero {
        padding: 92px 32px 52px;
        min-height: 100vh;
    }

    /* Немного уменьшаем заголовок чтобы влезал без скролла */
    .hero-title { font-size: clamp(22px, 3.5vw, 38px); }
    .hero-subtitle { font-size: clamp(14px, 1.6vw, 17px); margin-bottom: 32px; }
    .btn { padding: 13px 32px; font-size: 15px; }

    /* scroll-offset под уменьшенную шапку */
    html { scroll-padding-top: 72px; }
}
