/* === ОБЩЕЕ ОФОРМЛЕНИЕ СТРАНИЦЫ РЕМОНТА === */

.site-main {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* общие секции (кроме hero) */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}


/* === СЕКЦИЯ 1: UTP (герой во всю ширину) === */

.hero-section {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 0;

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    text-align: center;
    background-color: rgba(0,0,0,0.4);
    background-blend-mode: overlay;
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-position: center center;
    }
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero-content h1,
.hero-content h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    filter: brightness(0.9);
}


/* === СЕКЦИЯ 2: ПРЕИМУЩЕСТВА === */

.advantages-section {
    text-align: center;
}

.advantages-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #222222;
    font-weight: 700;
}

.advantages-section h3 {
    font-size: 1rem;
    font-weight: 700;
}

.advantages-subtitle {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.advantage-card {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.advantage-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: #00adef;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
    object-fit: contain;
}

.advantage-card h3 {
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

/* === СЕКЦИЯ 3: КЕЙСЫ === */

.cases-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 60px 20px;
}

.cases-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222222;
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.case-card {
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* Две картинки ДО/ПОСЛЕ */
.case-images--two {
    display: grid;
    grid-template-columns: 1fr 1fr; /* на десктопе — две колонки */
    width: 100%;
    /* ВАЖНО: никаких height и overflow здесь не задаём */
}

.case-two-img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Подписи под кейсом */
.case-card h3 {
    padding: 15px 20px 10px;
    margin: 0;
    font-size: 1.1rem;
    color: #222222;
}

.case-link {
    display: block;
    padding: 0 20px 20px;
    color: #00adef;
    text-decoration: none;
    font-weight: 600;
}

/* МОБИЛЬНАЯ ВЕРСИЯ: картинки одна под другой */
@media (max-width: 768px) {
    .case-images--two {
        grid-template-columns: 1fr; /* одна колонка */
    }

    .case-two-img {
        height: 220px; /* можно уменьшить под высоту экрана */
    }
}



/* === СЕКЦИЯ 4: О НАС === */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #ffffff;
    padding: 60px;
    border-radius: 10px;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222222;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555555;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}


/* === СЕКЦИЯ 5: УСЛУГИ === */

.services-section {
    padding: 60px 20px;
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222222;
}

.services-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.services-left {
    flex: 0 0 55%;
}

.services-right {
    flex: 0 0 45%;
    margin-top: auto;
    margin-bottom: auto;
}

.services-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #00adef;
}

.service-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-name {
    font-size: 0.98rem;
    color: #333333;
    flex: 1;
    white-space: normal;
}

.service-price {
    font-weight: 600;
    color: #00adef;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 10px;
}


/* === СЕКЦИЯ 6: FAQ === */

.faq-section {
    background: #f9f9f9;
    padding: 60px;
    border-radius: 10px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #222222;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333333;
    padding-bottom: 15px;
    border-bottom: 2px solid #00adef;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #222222;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f5f5f5;
    color: #00adef;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #555555;
    line-height: 1.8;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}


/* === СЕКЦИЯ 7: ВИДЕО === */

.video-section {
    text-align: center;
}

.video-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222222;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* === АДАПТИВНОСТЬ === */

@media (max-width: 1200px) {
    section {
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .services-layout {
        flex-direction: column;
        max-width: 100%;
    }

    .services-left,
    .services-right {
        flex: 0 0 100%;
    }

    .faq-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 15px;
    }

    .hero-inner {
        padding: 60px 15px;
    }

    .hero-content h1,
    .hero-content h3 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .advantages-section h2,
    .cases-section h2,
    .services-section h2,
    .faq-section h2,
    .video-section h2 {
        font-size: 1.6rem;
    }
}

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

    .hero-content h1,
    .hero-content h3 {
        font-size: 1.6rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

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