/* ===== ANLU TRADING — Navy Industrial Theme ===== */

/* ===== COLOR VARIABLES =====
   Deep Navy:    #151d35
   Primary BG:   #1a2744
   Secondary BG: #223354
   Card BG:      #253550
   Accent:       #4a6fa5
   Light Accent: #6b8fc4
   Glow:         #7191c3
   Text Primary: #e8edf5
   Text Muted:   #8899b4
   Border:       #2d4466
   Border Light: #355070
   Footer BG:    #111827
*/

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #e8edf5;
    background-color: #151d35;
    background-image:
        linear-gradient(180deg,
            rgba(21, 29, 53, 0.65) 0%,
            rgba(26, 39, 68, 0.55) 50%,
            rgba(34, 51, 84, 0.65) 100%
        ),
        url('gears-bg.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    background-position: center;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== THEME SWITCHER ===== */
.theme-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a2744;
    border: 1px solid #2d4466;
    padding: 6px 12px;
    font-size: 13px;
    color: #8899b4;
}

.theme-switcher-label {
    color: #6b7d99;
}

.theme-switcher-btn {
    color: #e8edf5;
    font-weight: 600;
    padding: 2px 8px;
    border: 1px solid #4a6fa5;
    transition: background 0.2s, color 0.2s;
}

.theme-switcher-btn:hover {
    background: #4a6fa5;
    color: #fff;
}

/* ===== HEADER ===== */
.site-header {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, #4a6fa5, #7191c3, transparent) 1;
    padding: 12px 0;
    position: sticky;
    top: 0;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e8edf5;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4a6fa5, transparent);
}

.main-nav {
    display: flex;
    gap: 20px;
    flex: 1;
}

.nav-link {
    font-size: 14px;
    color: #8899b4;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.25s, border-color 0.25s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a6fa5, #7191c3);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e8edf5;
    border-bottom-color: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.lang-switcher {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-link {
    color: #6b7d99;
    padding: 4px;
    transition: color 0.2s;
}

.lang-link.active {
    color: #7191c3;
    font-weight: 600;
}

.lang-link:hover {
    color: #b0c4de;
}

.lang-sep {
    color: #2d4466;
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    display: flex;
    gap: 0;
    background: rgba(22, 33, 54, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #2d4466;
    border-top: 2px solid #4a6fa5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(74, 111, 165, 0.1);
    padding: 20px 24px;
    min-width: 560px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-col {
    flex: 1;
    padding: 0 16px;
}

.nav-dropdown-col:first-child {
    padding-left: 0;
    border-right: 1px solid #2d4466;
}

.nav-dropdown-label {
    font-size: 14px;
    font-weight: 700;
    color: #b0c4de;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2d4466;
}

.nav-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-dropdown-list li {
    font-size: 13px;
    color: #8899b4;
    padding: 6px 0;
    line-height: 1.4;
    cursor: default;
    transition: color 0.15s, padding-left 0.2s;
    border-left: 2px solid transparent;
}

.nav-dropdown-list li:hover {
    color: #e8edf5;
    padding-left: 8px;
    border-left-color: #4a6fa5;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #e8edf5;
}

.mobile-overlay {
    display: none;
}

.mobile-overlay.open {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.mobile-menu-btn.open {
    z-index: 10001;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background: rgba(22, 33, 54, 0.6);
    border-bottom: 1px solid #2d4466;
}

.hero h1 {
    font-size: 32px;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.3;
    color: #e8edf5;
}

.hero-subtitle {
    font-size: 18px;
    color: #8899b4;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4a6fa5, #3d5d8a);
    color: #fff;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a80b8, #4a6fa5);
    box-shadow: 0 4px 16px rgba(74, 111, 165, 0.45);
    transform: translateY(-1px);
}

/* ===== STATS ===== */
.stats {
    padding: 60px 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a6fa5, transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #7191c3, #4a6fa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 15px;
    color: #8899b4;
    margin-top: 5px;
}

/* ===== SERVICE CARDS ===== */
.service-cards {
    padding: 60px 0;
    background: rgba(22, 33, 54, 0.5);
    position: relative;
}

.service-cards::before,
.service-cards::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2d4466, transparent);
}

.service-cards::before { top: 0; }
.service-cards::after { bottom: 0; }

.service-cards h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #e8edf5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    display: block;
    padding: 30px 20px;
    background: rgba(37, 53, 80, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid #2d4466;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #4a6fa5, #7191c3);
    transition: height 0.3s ease;
}

.card:hover {
    border-color: #4a6fa5;
    box-shadow: 0 4px 20px rgba(74, 111, 165, 0.2), 0 0 8px rgba(74, 111, 165, 0.1);
    transform: translateY(-2px);
}

.card:hover::before {
    height: 100%;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #e8edf5;
}

.card p {
    font-size: 14px;
    color: #8899b4;
}

/* ===== SECTIONS ===== */
.page-section {
    padding: 60px 0;
}

.page-section h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #e8edf5;
}

.page-section h2 {
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, #4a6fa5, transparent) 1;
    color: #e8edf5;
}

.page-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #b0c4de;
}

.intro-text p {
    font-size: 16px;
    margin-bottom: 15px;
    max-width: 800px;
    color: #c0cee0;
}

/* ===== TIMELINE ===== */
.timeline-section {
    background: rgba(22, 33, 54, 0.5);
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2d4466, transparent);
}

.timeline-intro {
    font-size: 16px;
    margin-bottom: 30px;
    color: #8899b4;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4a6fa5, #2d4466, #4a6fa5);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(37, 53, 80, 0.7);
    border: 1px solid #2d4466;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
    border-color: #4a6fa5;
    box-shadow: 0 2px 12px rgba(74, 111, 165, 0.15);
}

.timeline-item.highlight {
    border-left: 4px solid #4a6fa5;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a6fa5;
    border: 2px solid #151d35;
    box-shadow: 0 0 8px rgba(74, 111, 165, 0.4);
    transition: box-shadow 0.3s;
}

.timeline-item:hover::before {
    box-shadow: 0 0 16px rgba(74, 111, 165, 0.7);
}

.timeline-year {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #7191c3;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 6px;
    font-size: 15px;
    color: #c0cee0;
}

.timeline-content p {
    font-size: 15px;
    color: #c0cee0;
}

/* ===== SERVICES ===== */
.service-category {
    border-bottom: 1px solid #2d4466;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-item {
    padding: 20px;
    border: 1px solid #2d4466;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    border-color: #4a6fa5;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.1);
}

.service-item.highlight {
    border-left: 4px solid #4a6fa5;
}

.service-item p {
    font-size: 15px;
    color: #8899b4;
    margin-top: 5px;
}

/* ===== QUALITY ===== */
.qa-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.qa-block {
    padding: 25px;
    border: 1px solid #2d4466;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.qa-block:hover {
    border-color: #4a6fa5;
    box-shadow: 0 2px 12px rgba(74, 111, 165, 0.12);
}

.qa-block p {
    font-size: 15px;
    color: #8899b4;
}

/* ===== THESES ===== */
.theses-section {
    background: rgba(22, 33, 54, 0.5);
}

.thesis {
    padding: 30px;
    background: rgba(37, 53, 80, 0.7);
    border: 1px solid #2d4466;
    margin-bottom: 25px;
    transition: border-color 0.3s;
}

.thesis:hover {
    border-color: #355070;
}

.thesis blockquote {
    font-size: 18px;
    font-style: italic;
    color: #b0c4de;
    border-left: 4px solid #4a6fa5;
    padding-left: 15px;
    margin: 15px 0;
}

.thesis p {
    font-size: 15px;
    color: #8899b4;
    line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    background: rgba(22, 33, 54, 0.6);
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2d4466, transparent);
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: none;
    color: #e8edf5;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #2d4466;
    background: rgba(26, 39, 68, 0.8);
    color: #e8edf5;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7d99;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

.contact-form textarea {
    margin-bottom: 15px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ===== CONTACTS ===== */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.location-card {
    padding: 30px;
    border: 1px solid #2d4466;
    background: rgba(37, 53, 80, 0.5);
    transition: border-color 0.3s;
}

.location-card:hover {
    border-color: #4a6fa5;
}

.location-details p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #c0cee0;
}

.location-details a {
    color: #7191c3;
}

.location-details a:hover {
    color: #b0c4de;
    text-decoration: underline;
}

/* ===== MAP ===== */
.map-section h2 {
    border-bottom: none;
}

.map-container {
    margin-top: 20px;
}

.map-placeholder {
    height: 400px;
    background: rgba(37, 53, 80, 0.7);
    border: 1px solid #2d4466;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7d99;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #111827;
    color: #6b7d99;
    padding: 40px 0 20px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, #4a6fa5, transparent) 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: #b0c4de;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #6b7d99;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #b0c4de;
}

.footer-col h4 {
    color: #b0c4de;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #1e2a3e;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #4a5a70;
}

/* ===== THEME SELECTION PAGE ===== */
.theme-choose-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: rgba(22, 33, 54, 0.6);
}

.theme-choose-hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #e8edf5;
}

.theme-choose-hero p {
    font-size: 16px;
    color: #8899b4;
}

.theme-options {
    padding: 40px 0 80px;
}

.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.theme-option {
    display: block;
    border: 2px solid #2d4466;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-option:hover {
    border-color: #4a6fa5;
    box-shadow: 0 4px 16px rgba(74, 111, 165, 0.2);
}

.theme-option-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 39, 68, 0.5);
    border-bottom: 1px solid #2d4466;
}

.theme-option-preview .preview-layout {
    width: 90%;
    height: 80%;
    position: relative;
}

/* Preview: Classic */
.preview-classic .preview-header {
    height: 14%;
    border-bottom: 1px solid #2d4466;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
}
.preview-classic .preview-header .p-logo {
    font-size: 8px;
    font-weight: 700;
    color: #b0c4de;
}
.preview-classic .preview-header .p-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}
.preview-classic .preview-header .p-nav span {
    width: 20px;
    height: 4px;
    background: #355070;
}
.preview-classic .preview-hero {
    height: 40%;
    background: rgba(37, 53, 80, 0.5);
    margin: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-classic .preview-hero .p-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}
.preview-classic .preview-hero .p-line {
    height: 3px;
    background: #4a5a70;
}
.preview-classic .preview-hero .p-line:first-child {
    width: 60px;
}
.preview-classic .preview-hero .p-line:nth-child(2) {
    width: 45px;
}
.preview-classic .preview-hero .p-line:nth-child(3) {
    width: 25px;
}
.preview-classic .preview-cards {
    display: flex;
    gap: 4px;
    margin: 4px;
}
.preview-classic .preview-cards .p-card {
    flex: 1;
    height: 32px;
    background: rgba(37, 53, 80, 0.7);
    border: 1px solid #2d4466;
}
.preview-classic .preview-footer {
    height: 10%;
    margin: 4px;
    background: rgba(17, 24, 39, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Header на узких экранах */
    .header-inner {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    .lang-switcher {
        margin-right: 60px;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 2px !important;
        padding: 0 !important;
        margin-top: 0 !important;
        border-top: none !important;
        flex-shrink: 1;
        min-width: 0;
        white-space: nowrap;
    }

    .lang-switcher .lang-link {
        color: #6b7d99;
        font-size: 12px;
        padding: 1px 3px !important;
        white-space: nowrap;
    }

    .lang-switcher .lang-link.active {
        color: #7191c3;
        font-weight: 600;
    }

    .lang-switcher .lang-sep {
        color: #2d4466;
        font-size: 11px;
        padding: 0;
    }

    /* Логотип компактнее */
    .logo-text {
        font-size: 13px;
        letter-spacing: 0.3px;
    }

    /* --- Полноэкранное мобильное меню --- */
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        min-height: -webkit-fill-available;
        background: #111827;
        z-index: 10002;
        padding: 80px 24px 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open {
        display: flex;
    }

    /* Ссылки меню */
    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 17px;
        border-bottom: 1px solid #1e2a3e;
        color: #8899b4;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #e8edf5;
        border-bottom-color: #1e2a3e;
    }

    .nav-link::after {
        display: none;
    }

    /* Кнопка бургер — всегда в правом верхнем углу */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 10px;
        right: 16px;
        z-index: 10001;
        background: none;
        border: none;
        border-radius: 0;
        width: auto;
        height: auto;
        font-size: 26px;
        padding: 4px;
        line-height: 1;
        color: #e8edf5;
    }

    .mobile-menu-btn.open {
        z-index: 10001;
    }

    /* Оверлей */
    .mobile-overlay.open {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
    }

    /* ===== Мобильный dropdown ===== */

    /* Контейнер dropdown */
    .nav-dropdown {
        border-bottom: 1px solid #1e2a3e;
    }

    /* Кнопка-toggle: Продукция и услуги */
    .nav-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 16px 0;
        border-bottom: none !important;
        background: none;
    }

    /* Меню внутри dropdown (скрыто по умолчанию) */
    .nav-dropdown-menu {
        display: none;
        position: static;
        background: transparent;
        padding: 0;
        margin: 0;
        min-width: auto;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        backdrop-filter: none;
    }

    /* Когда dropdown открыт */
    .nav-dropdown.open > .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown.open .nav-arrow {
        transform: rotate(180deg);
    }

    /* Колонки внутри — друг под другом */
    .nav-dropdown-col {
        display: block;
        padding: 0;
        margin-bottom: 0;
        border-right: none !important;
    }

    /* Секция: Продукция / Услуги (кликабельная) */
    .nav-dropdown-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 0 12px 12px;
        font-size: 15px;
        font-weight: 600;
        color: #b0c4de;
        border-top: 1px solid #1e2a3e;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .nav-dropdown-label::after {
        content: '▸';
        font-size: 13px;
        color: #6b7d99;
        transition: transform 0.2s ease;
    }

    .nav-dropdown-label.open::after {
        transform: rotate(90deg);
    }

    /* Список подпунктов (скрыт по умолчанию) */
    .nav-dropdown-list {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0 0 0 12px;
    }

    /* Когда секция раскрыта */
    .nav-dropdown-list.open {
        display: block;
    }

    .nav-dropdown-list li {
        display: block;
        padding: 10px 0;
        font-size: 14px;
        color: #8899b4;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border-bottom: 1px solid #1e2a3e;
    }

    .nav-dropdown-list li:last-child {
        border-bottom: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qa-blocks {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }

    .theme-options-grid {
        grid-template-columns: 1fr;
    }

    .theme-switcher {
        top: 70px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: -28px;
    }

    .timeline::before {
        left: 10px;
    }
}
