/* Тёмная тема */
body.dark-mode {
    background-color: #1a1a1a !important;
    color: #cccccc !important;
}

body.dark-mode .mbr-section,
body.dark-mode .container,
body.dark-mode .card-wrapper,
body.dark-mode .item-wrapper,
body.dark-mode .calc-wrapper,
body.dark-mode .map-wrapper,
body.dark-mode .blog-block,
body.dark-mode .archive-block,
body.dark-mode .all-videos,
body.dark-mode .hero-video,
body.dark-mode .video-section {
    background-color: #1a1a1a !important;
}

body.dark-mode .card-box {
    background-color: #242424 !important;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode .mbr-section-title,
body.dark-mode .card-title,
body.dark-mode .blog-item-title,
body.dark-mode .archive-item-title,
body.dark-mode .calc-title,
body.dark-mode .map-title,
body.dark-mode .hero-title,
body.dark-mode .all-title {
    color: #e0e0e0 !important;
}

body.dark-mode p, body.dark-mode .mbr-text,
body.dark-mode .card-text, body.dark-mode .blog-item-text,
body.dark-mode .archive-item-text, body.dark-mode .calc-desc,
body.dark-mode .map-desc, body.dark-mode .hero-desc,
body.dark-mode .all-desc, body.dark-mode .calc-hint {
    color: #aaaaaa !important;
}

body.dark-mode .navbar {
    background-color: #1a1a1a !important;
}

body.dark-mode .nav-link {
    color: #cccccc !important;
}

body.dark-mode .btn-primary {
    background-color: #3d6549 !important;
    border-color: #3d6549 !important;
}

body.dark-mode .btn-white-outline {
    color: #cccccc !important;
    border-color: #cccccc !important;
}

body.dark-mode .blog-item,
body.dark-mode .archive-item,
body.dark-mode .video-item {
    background-color: #242424 !important;
    border-color: #333 !important;
}

body.dark-mode .calc-result,
body.dark-mode .map-info {
    background-color: #2a2a2a !important;
    border-color: #333 !important;
    color: #cccccc !important;
}

body.dark-mode .calc-tab {
    background-color: #333 !important;
    color: #aaa !important;
    border-color: #444 !important;
}

body.dark-mode .calc-tab.active {
    background-color: #4a7c59 !important;
    color: #fff !important;
}

body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
    background-color: #333 !important;
    color: #ccc !important;
    border-color: #444 !important;
}

body.dark-mode .share-buttons a {
    filter: brightness(0.8);
}

body.dark-mode .mbr-overlay {
    opacity: 0.7 !important;
}

/* Кнопка переключения темы */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
    transition: background 0.3s;
}
.theme-toggle:hover {
    background: #555;
}
