:root {
    --dosaaf-blue: #0c2340;
    --dosaaf-navy: #16365c;
    --dosaaf-navy-light: #1f4879;
    --dosaaf-red: #c41e3a;
    --dosaaf-red-hover: #a81730;
    --dosaaf-gold: #d4a32b;
    --dosaaf-gold-light: #f3cf7a;
    --dosaaf-sky: #0284c7;
    --dosaaf-light: #f8fafc;
    --dosaaf-dark: #0f172a;
    --dosaaf-text: #334155;
    --dosaaf-border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dosaaf-text);
    background-color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility mode (Версия для слабовидящих) */
body.accessibility-mode {
    font-size: 120% !important;
    background: #ffffff !important;
    color: #000000 !important;
}
body.accessibility-mode * {
    background-color: inherit !important;
    color: inherit !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}
body.accessibility-mode a {
    text-decoration: underline !important;
}

/* Top bar */
.top-bar {
    background: #081a2f;
    color: #cbd5e1;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}
.top-bar a:hover {
    color: var(--dosaaf-gold-light);
}
.accessibility-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.accessibility-btn:hover {
    background: #ffffff;
    color: #0c2340;
}

/* Brand header */
.brand-header {
    background: linear-gradient(135deg, #0c2340 0%, #16365c 100%);
    color: #ffffff;
    padding: 1.25rem 0;
    position: relative;
}
.brand-logo-img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}
.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}
.brand-subtitle {
    font-size: 0.85rem;
    color: var(--dosaaf-gold-light);
    font-weight: 500;
}
.brand-badge {
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.4);
    color: #ffccd5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Main Navigation */
.main-navbar {
    background: #112d4e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 3px solid var(--dosaaf-red);
}
.main-navbar .navbar-nav .nav-link {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.15rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid var(--dosaaf-gold);
    margin-bottom: -3px;
}
.main-navbar .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 280px;
    margin-top: 0;
}
.main-navbar .dropdown-item {
    color: #1e293b;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.15s;
    white-space: normal;
    border-left: 3px solid transparent;
}
.main-navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--dosaaf-navy);
    border-left-color: var(--dosaaf-red);
    padding-left: 1.45rem;
}
.dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dosaaf-red);
    font-weight: 700;
    padding: 0.5rem 1.25rem 0.25rem;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
    background: #f1f5f9;
}
.hero-feature-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}
.hero-feature-overlay {
    background: linear-gradient(180deg, rgba(12, 35, 64, 0.1) 0%, rgba(12, 35, 64, 0.6) 40%, rgba(8, 26, 47, 0.95) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.hero-feature-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #ffffff;
}
.hero-feature-badge {
    display: inline-block;
    background: var(--dosaaf-gold);
    color: #0c2340;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}
.hero-feature-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #ffffff;
}
.hero-feature-subtitle {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
}

/* News Feed Grid (Right Column of Hero) */
.news-feed-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--dosaaf-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}
.news-feed-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dosaaf-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.news-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.news-item:hover {
    background-color: #f8fafc;
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.news-item-img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.news-item-content {
    flex-grow: 1;
    min-width: 0;
}
.news-item-date {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.news-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item:hover .news-item-title {
    color: var(--dosaaf-red);
}

/* Service Directions Section */
.directions-section {
    padding: 3.5rem 0;
    background: #ffffff;
}
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-badge {
    display: inline-block;
    color: var(--dosaaf-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dosaaf-blue);
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--dosaaf-red);
    border-radius: 2px;
}

/* Service Direction Cards */
.direction-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 240px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.direction-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.direction-card:hover .direction-card-img {
    transform: scale(1.08);
}
.direction-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 35, 64, 0.15) 0%, rgba(12, 35, 64, 0.5) 40%, rgba(8, 26, 47, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}
.direction-card:hover .direction-card-overlay {
    background: linear-gradient(180deg, rgba(12, 35, 64, 0.2) 0%, rgba(12, 35, 64, 0.6) 40%, rgba(196, 30, 58, 0.9) 100%);
}
.direction-card-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}
.direction-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--dosaaf-gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    transition: all 0.2s ease;
}
.direction-card:hover .direction-card-arrow {
    color: #ffffff;
    opacity: 1;
    transform: translateX(4px);
}

/* Banner Cultural Heritage */
.heritage-banner {
    background: linear-gradient(135deg, #0c2340 0%, #16365c 100%);
    color: #ffffff;
    padding: 3.5rem 0;
    position: relative;
    border-top: 3px solid var(--dosaaf-gold);
    border-bottom: 3px solid var(--dosaaf-red);
}
.heritage-banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}
.heritage-banner-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2e8f0;
}
.heritage-badge-pill {
    background: rgba(212, 163, 43, 0.15);
    border: 1px solid var(--dosaaf-gold);
    color: var(--dosaaf-gold-light);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* Map Section */
.map-section {
    padding: 3rem 0;
    background: #f8fafc;
}
.map-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--dosaaf-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.map-contact-box {
    padding: 2rem;
    background: #ffffff;
}

/* Footer */
.site-footer {
    background: #081a2f;
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--dosaaf-red);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--dosaaf-gold-light);
    padding-left: 4px;
}
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #64748b;
}

/* Content page prose styling */
.page-header {
    background: linear-gradient(135deg, #0c2340 0%, #16365c 100%);
    color: #ffffff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}
.page-header .breadcrumb {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.page-header .breadcrumb-item a {
    color: var(--dosaaf-gold-light);
    text-decoration: none;
}
.page-header .breadcrumb-item.active {
    color: #e2e8f0;
}
.page-header .page-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}
.page-content-wrap {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--dosaaf-border);
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 3rem;
}
.page-content-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.page-content-wrap table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}
.page-content-wrap th,
.page-content-wrap td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}
.page-content-wrap th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: var(--dosaaf-blue);
}

/* WordPress & Kadence Blocks Compatibility Layout */
.kt-row-column-wrap, .wp-block-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}
.kt-has-4-columns > .wp-block-kadence-column, .wp-block-column {
    flex: 1 1 calc(25% - 1.5rem) !important;
    min-width: 250px !important;
}
.kt-has-3-columns > .wp-block-kadence-column {
    flex: 1 1 calc(33.333% - 1.5rem) !important;
    min-width: 280px !important;
}
.kt-has-2-columns > .wp-block-kadence-column {
    flex: 1 1 calc(50% - 1.5rem) !important;
    min-width: 300px !important;
}
.kt-inside-inner-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.kt-img-overlay-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #0c2340;
}
.kt-img-overlay-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.kt-img-overlay-wrap img {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: transform 0.4s ease;
}
.kt-img-overlay-wrap:hover img {
    transform: scale(1.05);
}
.kt-image-overlay-message {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 35, 64, 0.95) 100%);
    text-align: center;
}
.image-overlay-title {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.wp-block-heading {
    color: var(--dosaaf-blue);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.wp-block-file {
    background: #f1f5f9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--dosaaf-blue);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.wp-block-file__button {
    background: var(--dosaaf-red) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: background 0.2s;
}
.wp-block-file__button:hover {
    background: var(--dosaaf-red-hover) !important;
}
