* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #0a0a0a;
    color: #f0f0f0;
    padding: 20px;
    position: relative;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/logo_rdm.jpg') no-repeat center/contain;
    background-size: 60vw;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transform: translateY(0);
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
.pulse-btn {
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 0 18px rgba(212, 175, 55, 0); }
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 10px;
    border-bottom: 1px solid #1e1e1e;
    flex-wrap: wrap;
    gap: 15px;
    transition: border-color 0.3s;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d4af37;
    flex-shrink: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}
.logo-text p {
    color: #d4af37;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.social {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.social a:hover {
    color: #d4af37;
}
.social .phone-icon {
    font-size: 22px;
}
.theme-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: 0.3s;
    padding: 0 10px;
}
.theme-btn:hover {
    color: #d4af37;
}
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border-radius: 30px;
    margin: 30px 0;
    border: 1px solid #1e1e1e;
    transition: background 0.3s, border-color 0.3s;
}
.hero h2 {
    font-size: 42px;
    font-weight: 700;
    transition: color 0.3s;
}
.hero h2 span {
    color: #d4af37;
}
.hero p {
    font-size: 18px;
    color: #bbb;
    max-width: 600px;
    margin: 16px auto 28px;
    transition: color 0.3s;
}
.btn-gold {
    background: #d4af37;
    color: #0a0a0a;
    padding: 14px 44px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-gold:hover {
    background: #e6c452;
    transform: scale(1.03);
}
.stats-section {
    margin: 30px 0 20px;
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: #141414;
    border-radius: 30px;
    padding: 30px 20px;
    border: 1px solid #1e1e1e;
    text-align: center;
    transition: background 0.3s, border-color 0.3s;
}
.stats-container:hover {
    border-color: #d4af37;
}
.stat-item .count {
    font-size: 42px;
    font-weight: 700;
    color: #d4af37;
    display: block;
    line-height: 1.2;
}
.stat-item p {
    font-size: 16px;
    color: #aaa;
    margin-top: 6px;
    transition: color 0.3s;
}
@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .stat-item .count {
        font-size: 32px;
    }
}
.about-section {
    margin: 40px 0 30px;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background: #141414;
    border-radius: 30px;
    padding: 40px 35px;
    border: 1px solid #1e1e1e;
    transition: background 0.3s, border-color 0.3s;
}
.about-container:hover {
    border-color: #d4af37;
}
.about-text h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #fff;
    transition: color 0.3s;
}
.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 16px;
    transition: color 0.3s;
}
.about-text ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
}
.about-text ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: #ccc;
    border-bottom: 1px solid #1a1a1a;
    transition: color 0.3s, border-color 0.3s;
}
.about-text ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 20px;
}
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 16px;
}
.about-features span {
    background: #1e1e1e;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #d4af37;
    border: 1px solid #2a2a2a;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.about-photo {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #1e1e1e;
    transition: 0.3s;
}
.about-photo:hover {
    border-color: #d4af37;
    transform: scale(1.01);
}
.about-photo img {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
    margin-top: 8px;
}

.about-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    background: transparent;
    border-radius: 20px 20px 0 0;
    margin-bottom: 4px;
}
.about-logo {
    max-width: 550px;
    max-height: 550px;
    object-fit: contain;
    background: transparent;
}
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }
    .about-photo img {
        max-height: 280px;
    }
    .about-text h2 {
        font-size: 26px;
    }
}
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.service-item {
    background: #141414;
    padding: 20px 12px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #1e1e1e;
    transition: background 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.service-item:hover {
    border-color: #d4af37;
    transform: translateY(-4px);
}
.service-icon {
    font-size: 28px;
}
.service-name {
    font-weight: 600;
    font-size: 15px;
    color: #f0f0f0;
    transition: color 0.3s;
}
.service-price {
    font-size: 14px;
    color: #d4af37;
    font-weight: 600;
    margin-top: 4px;
}
.gallery-title {
    font-size: 28px;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.gallery-sub {
    color: #888;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin: 20px 0 40px;
}
.gallery-item {
    background: #141414;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #1e1e1e;
    transition: 0.3s;
    cursor: pointer;
}
.gallery-item:hover {
    transform: scale(1.02);
    border-color: #d4af37;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.map-section {
    margin: 40px 0 30px;
    text-align: center;
}
.map-title {
    font-size: 28px;
    margin-bottom: 20px;
}
#map {
    height: 400px;
    border-radius: 20px;
    border: 1px solid #1e1e1e;
    overflow: hidden;
    background: #1a1a1a;
}
@media (max-width: 600px) {
    #map {
        height: 280px;
    }
}
.map-address {
    text-align: center;
    color: #888;
    margin-top: 10px;
    font-size: 14px;
    transition: color 0.3s;
}
.footer {
    text-align: center;
    color: #555;
    font-size: 13px;
    padding: 30px 0 10px;
    border-top: 1px solid #1e1e1e;
    margin-top: 30px;
    transition: color 0.3s, border-color 0.3s;
}
.footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: #d4af37;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
}
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.lightbox .close:hover {
    color: #d4af37;
    transform: rotate(90deg);
}
.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
    user-select: none;
    z-index: 10000;
}
.lightbox .nav:hover {
    color: #d4af37;
}
.lightbox .nav.prev {
    left: 20px;
}
.lightbox .nav.next {
    right: 20px;
}
.lightbox .counter {
    position: absolute;
    bottom: 30px;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #141414;
    padding: 40px 32px 30px;
    border-radius: 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid #2a2a2a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    animation: slideUp 0.3s ease;
    transition: background 0.3s, border-color 0.3s;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}
.modal-close:hover {
    color: #d4af37;
    transform: rotate(90deg);
}
.modal-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d4af37;
    background: #111;
    transition: background 0.3s;
}
.modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.modal-phone {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
    margin: 10px 0 6px;
}
.modal-sub {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}
.modal-btn.call {
    background: #d4af37;
    color: #0a0a0a;
}
.modal-btn.call:hover {
    background: #e6c452;
    transform: scale(1.03);
}
.modal-btn.vk {
    background: #2787f5;
    color: #fff;
}
.modal-btn.vk:hover {
    background: #4a9eff;
    transform: scale(1.03);
}
.modal-footer {
    font-size: 12px;
    color: #555;
    margin-top: 18px;
    transition: color 0.3s;
}
.floating-offer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #d4af37;
    border-radius: 60px;
    padding: 12px 24px;
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    animation: bounce 2s ease-in-out infinite;
    max-width: 90%;
    backdrop-filter: blur(10px);
    transition: background 0.3s, border-color 0.3s;
}
.offer-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.offer-text {
    color: #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
}
.offer-btn {
    background: #d4af37;
    color: #0a0a0a;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}
.offer-btn:hover {
    background: #e6c452;
    transform: scale(1.05);
}
.offer-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    transition: 0.3s;
}
.offer-close:hover {
    color: #fff;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}
body.light-theme {
    background: #f4f4f4;
    color: #111;
}
body.light-theme .header {
    border-bottom-color: #ddd;
}
body.light-theme .logo-text h1 {
    color: #111;
}
body.light-theme .hero {
    background: linear-gradient(145deg, #f4f4f4, #e8e8e8);
    border-color: #ddd;
}
body.light-theme .hero h2 {
    color: #111;
}
body.light-theme .hero p {
    color: #333;
}
body.light-theme .service-item,
body.light-theme .about-container,
body.light-theme .stats-container,
body.light-theme .modal-content {
    background: #fff;
    border-color: #ddd;
}
body.light-theme .service-item .service-name {
    color: #111;
}
body.light-theme .about-text h2 {
    color: #111;
}
body.light-theme .about-text p {
    color: #333;
}
body.light-theme .about-text ul li {
    color: #333;
    border-bottom-color: #eee;
}
body.light-theme .about-features span {
    background: #eee;
    color: #111;
}
body.light-theme .about-logo-wrapper {
    background: #f0f0f0;
}
body.light-theme .footer {
    border-top-color: #ddd;
    color: #888;
}
body.light-theme .footer a {
    color: #555;
}
body.light-theme .map-address,
body.light-theme .gallery-sub {
    color: #555;
}
body.light-theme .gallery-title {
    color: #111;
}
body.light-theme .stat-item p {
    color: #555;
}
body.light-theme .modal-title {
    color: #111;
}
body.light-theme .modal-sub {
    color: #555;
}
body.light-theme .modal-footer {
    color: #888;
}
body.light-theme .modal-logo {
    background: #eee;
}
body.light-theme .floating-offer {
    background: linear-gradient(135deg, #f4f4f4, #e8e8e8);
    border-color: #d4af37;
}
body.light-theme .offer-text {
    color: #111;
}
body.light-theme .offer-close {
    color: #555;
}
body.light-theme .offer-close:hover {
    color: #111;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero h2 {
        font-size: 28px;
    }
    .services {
        grid-template-columns: 1fr 1fr;
    }
    .lightbox .nav {
        font-size: 30px;
        padding: 10px;
    }
    .lightbox .close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    .floating-offer {
        padding: 10px 16px;
        border-radius: 30px;
    }
    .offer-text {
        font-size: 14px;
        white-space: normal;
    }
    .offer-btn {
        font-size: 12px;
        padding: 6px 16px;
    }
}
/* ===== ЯНДЕКС КАРТА ===== */
.yandex-map {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #1e1e1e;
}
.yandex-map iframe {
    display: block;
    width: 150%;
    height: 500px;
}
@media (max-width: 600px) {
    .yandex-map iframe {
        height: 280px;
    }
}
.map-button {
    margin-top: 15px;
}
.map-button .btn-gold {
    font-size: 16px;
    padding: 12px 30px;
}
/* ===== ЧАСТИЦЫ (ФОН) ===== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
