body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f0f0f0; /* Замена wall.webp на цвет для мобильных */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        background-image: url('img/wall.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media (max-width: 767px) {
    body {
        background-attachment: scroll;
    }
}

header {
    background: linear-gradient(to right, rgba(0,123,132,0.9), rgba(48,139,182,0.9));
    color: white;
    text-align: center;
    padding: 1em 0;
    position: relative;
    z-index: 10;
}

.call-to-action {
    margin-bottom: 10px;
}

.call-to-action p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.call-to-action .phone-link {
    display: inline-block;
    margin: 5px 10px;
    font-size: 20px;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.call-to-action .phone-link:hover {
    text-decoration: underline;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo {
    max-width: 100px;
    width: 100px;
    height: 100px;
    order: -1;
}

.glowing-title {
    font-size: 2.5em;
    color: #FFFFFF;
    transition: color 0.3s ease;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.glowing-title:hover {
    color: #FFD700; /* Упрощённая анимация */
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFFFFF;
}

.language-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.lang-flag {
    width: 30px;
    height: 20px;
    cursor: pointer;
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-flag:hover {
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1;
    border: 2px solid #FFD700;
}

.lang-flag:not(.active) {
    opacity: 0.6;
}

#hero {
    position: relative;
    text-align: center;
    z-index: 5;
    width: 100%;
    min-height: 360px;
    overflow: visible;
}

.hero-image {
    width: 640px;
    height: 360px;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

.light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 6;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 5px;
    z-index: 7;
}

#services {
    padding: 20px;
}

.section-header {
    text-align: center;
    color: #FFD700;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 20px;
}

.service-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.service-item h3 {
    background-color: #333;
    color: #FFD700;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-3px);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-video, .service-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin-bottom: 3px;
    display: block;
}

.repair-list-container {
    width: 100%;
}

.repair-list {
    text-align: left;
    list-style-position: outside;
    padding-left: 10px;
    margin: 5px 0;
}

.repair-list li {
    background-color: rgba(0,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 2px;
    padding: 4px 4px;
}

footer {
    background-color: #333;
    text-align: center;
    padding: 15px;
    color: #fff;
}

#about, #contact {
    padding: 15px;
    text-align: center;
    background-color: rgba(255,255,255,0.9);
}

#about h2, #contact h2 {
    color: #4CAF50;
    margin-bottom: 15px;
    cursor: pointer;
}

#aboutContent, .contact-info {
    max-width: 500px;
    margin: auto;
    line-height: 1.5;
}

.contact-info p {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.contact-icon {
    width: 26px;
    height: auto;
    margin-right: 8px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0,0,0,0.4);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 15px;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-step {
    margin-bottom: 15px;
}

.modal-image {
    width: 80px;
    height: 80px;
    margin-right: 8px;
    border-radius: 4px;
}

.modal-step p {
    line-height: 1.5;
    margin: 5px 0;
}

.work-list {
    list-style-type: none;
    padding-left: 15px;
    margin: 5px 0;
}

.work-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.work-list li::before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-size: 18px;
}

.footer-content {
    text-align: center;
    padding: 15px;
}

.footer-content p {
    margin: 3px 0;
}

.phone-link {
    display: inline-block;
    margin: 3px 8px;
    font-size: 18px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
}

.whatsapp-buttons {
    margin: 15px 0;
}

.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 8px 12px;
    margin: 3px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #20b354;
}

.video-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.modal-video {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 4px;
    background-color: #333;
}

.scroll-top-btn {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: background-color 0.3s;
}

.scroll-top-btn:hover {
    background-color: #45a049;
}

@media (max-width: 1024px) {
    .service-item {
        width: 80%;
    }
    .modal-video {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
        background-attachment: auto;
    }
    .header-content {
        flex-direction: column;
        gap: 8px;
    }
    .logo {
        max-width: 70px;
    }
    .glowing-title {
        font-size: 1.8em;
    }
    .call-to-action p {
        font-size: 13px;
    }
    .call-to-action .phone-link {
        font-size: 15px;
    }
    .language-switcher {
        margin-top: 12px;
    }
    .service-items {
        flex-direction: column;
        align-items: center;
    }
    .service-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    .glowing-title {
        font-size: 1.3em;
    }
    .call-to-action p {
        font-size: 11px;
    }
    .call-to-action .phone-link {
        font-size: 13px;
    }
    .lang-flag {
        width: 22px;
        height: 14px;
    }
    nav ul li {
        display: block;
        margin: 3px 0;
    }
    .hero-content {
        padding: 8px;
        font-size: 13px;
    }
    .service-item {
        padding: 12px;
    }
    .service-item h3 {
        font-size: 1.1em;
    }
    .modal-content {
        width: 95%;
    }
}