/* Сброс стандартных стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Основные стили для body */
body {
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* Навигация */

.logo-img {
    height: 50px; /* Настрой высоту под свои нужды */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px; /* Меньший размер для мобильных устройств */
    }
}

nav {
    background: #252525;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo {
    font-size: 1.6em;
    font-weight: 700;
    color: #D4A017;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #D4A017;
}

/* Бургер-меню для мобильных устройств */
.burger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #e0e0e0;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
    padding: 10px;
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #252525;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 1.2em;
        display: block;
        padding: 10px;
    }
}

/* Hero Section (Слайдер) */
.hero {
    height: 100vh;
    position: relative;
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

.slider-arrows {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    -webkit-transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: left;
    color: white;
    max-width: 50%;
    z-index: 4;
}

.hero-text h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    -webkit-transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    -webkit-transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.2s;
}

.hero-text.active h1,
.hero-text.active p {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    background: #D4A017;
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.3s ease;
    -webkit-transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background: #b88c14;
    transform: translateY(-2px);
}

.hero-info {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 0.9em;
    opacity: 0.7;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
}

.hero-info:hover {
    opacity: 1;
}

.hero-info::before {
    content: '→';
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .hero-info {
        display: none;
    }
}

/* Общие стили для секций */
section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.8em;
    color: #D4A017;
    margin-bottom: 50px;
    font-weight: 700;
}

/* Services Section */
.services {
    background: #252525;
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #2f2f2f;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.service-card i {
    font-size: 2.5em;
    color: #D4A017;
    margin-bottom: 20px;
    display: block;
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

.service-card h3 {
    font-size: 1.4em;
    color: #e0e0e0;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    font-size: 1em;
    color: #b0b0b0;
}

@media (max-width: 768px) {
    .services .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        text-align: center;
    }
}

/* Why Choose Us Section */
.why-choose {
    background: #1e1e1e;
}

.why-choose .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    padding: 30px;
    background: #2f2f2f;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.why-card i {
    font-size: 2.5em;
    color: #D4A017;
    margin-bottom: 20px;
    display: block;
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

.why-card h3 {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 10px;
    font-weight: 600;
}

.why-card p {
    color: #b0b0b0;
}

@media (max-width: 768px) {
    .why-choose .why-grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        text-align: center;
    }
}

/* Who We Serve Section */
.who-we-serve {
    background: #252525;
}

.who-we-serve ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.who-we-serve li {
    font-size: 1.1em;
    margin: 15px 0;
    color: #b0b0b0;
    position: relative;
    padding-left: 30px;
}

.who-we-serve li::before {
    content: '✔';
    color: #D4A017;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .who-we-serve ul {
        text-align: center;
    }

    .who-we-serve li {
        padding-left: 0;
    }

    .who-we-serve li::before {
        display: none;
    }
}

/* Portfolio Section */
.portfolio {
    background: #1e1e1e;
}

.portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.05);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

/* Модальное окно для "до/после" */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 500px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        width: 100%; /* Полная ширина на мобильных */
        max-width: none; /* Убираем ограничение по максимальной ширине */
        height: 60vh; /* Уменьшаем высоту, чтобы поместилось на экране */
        border-radius: 0; /* Убираем скругление углов для полного охвата */
        margin: 0;
    }

    .modal {
        padding: 0; /* Убираем отступы */
    }

    .comparison-slider {
        height: 100%; /* Убедимся, что слайдер занимает всю высоту */
    }

    .comparison-slider img {
        object-fit: contain; /* Изображения адаптируются без искажений */
    }

    .comparison-slider::before,
    .comparison-slider::after {
        font-size: 1em; /* Уменьшаем шрифт подписей на мобильных */
        padding: 3px 8px;
    }

    .comparison-slider .divider::before,
    .comparison-slider .divider::after {
        width: 20px; /* Уменьшаем размер стрелок на разделителе */
        height: 20px;
        font-size: 0.8em;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    color: #e0e0e0;
    cursor: pointer;
    z-index: 4;
    -webkit-tap-highlight-color: transparent;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-slider .before {
    z-index: 1;
}

.comparison-slider .after {
    z-index: 2;
    clip-path: inset(0 50% 0 0); /* Изначально показываем левую половину */
}

.comparison-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    cursor: ew-resize;
}

.comparison-slider::before,
.comparison-slider::after {
    position: absolute;
    bottom: 20px;
    color: #e0e0e0;
    font-size: 1.2em;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 3;
}

.comparison-slider::before {
    content: 'Before';
    left: 20px;
}

.comparison-slider::after {
    content: 'After';
    right: 20px;
}

.comparison-slider .divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #D4A017;
    z-index: 3;
    transform: translateX(-50%);
}

.comparison-slider .divider::before,
.comparison-slider .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    background: #D4A017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: #2f2f2f;
    transform: translateY(-50%);
}

.comparison-slider .divider::before {
    content: '◄';
    left: -15px;
}

.comparison-slider .divider::after {
    content: '►';
    right: -15px;
}

/* Reviews Section */


.faq {
    padding: 80px 0;
    background: #252525;
}

.faq h2 {
    text-align: center;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
}

.faq-question {
    padding: 15px;
    font-size: 1.2em;
    color: #D4A017;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.5em;
    color: #D4A017;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 200px; /* Настрой под свои нужды */
    padding: 15px;
}

/* Медиа-запрос для мобильных */
@media (max-width: 768px) {
    .faq {
        padding: 50px 0;
    }

    .faq h2 {
        font-size: 1.8em;
    }

    .faq-question {
        font-size: 1em;
    }

    .faq-answer {
        font-size: 0.9em;
    }

    .faq-answer.active {
        max-height: 300px; /* Увеличиваем для мобильных, если текст длинный */
    }
}

.reviews {
    background: #252525;
}

.reviews .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #2f2f2f;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.review-card i {
    font-size: 1.5em;
    color: #D4A017;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
}

.review-card p {
    font-style: italic;
    color: #b0b0b0;
    margin-bottom: 15px;
    margin-top: 30px;
}

.review-card .author {
    font-weight: 500;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .reviews .review-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        text-align: left;
    }
}

/* Contact Section */
.contact {
    background: #1e1e1e;
}

.contact .contact-info {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact .contact-info p {
    font-size: 1.1em;
    color: #e0e0e0;
}

.contact .contact-info a {
    color: #D4A017;
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.contact .contact-info a:hover {
    color: #b88c14;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 12px;
    border: 1px solid #444;
    background: #2f2f2f;
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    -webkit-transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #D4A017;
    outline: none;
}

.contact textarea {
    resize: none;
    height: 150px;
}

@media (max-width: 768px) {
    .contact form {
        max-width: 100%;
    }

    .contact .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* Footer */
footer {
    background: #252525;
    color: #e0e0e0;
    text-align: center;
    padding: 30px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #D4A017;
    text-decoration: none;
    transition, transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

footer a:hover {
    color: #b88c14;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.5em;
    color: #e0e0e0;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.social-links a:hover {
    color: #D4A017;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #D4A017;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #b88c14;
}