/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E91E63;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --bg-light: #f1f1f1;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

* {
    min-width: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Навигация */
.navbar {
    position: relative;
    padding: 12px 0;
    background: #e4dede;
    z-index: 10;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
    width: auto;
}

.nav-contacts {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.nav-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-phone a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-phone a:hover {
    color: #C2185B;
}

.nav-address {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-light);
    white-space: nowrap;
    padding-left: 15px;
    border-left: 2px solid #E0E0E0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1.2px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Главный экран */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #e4dede;
}

.hero-content {
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: end;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.hero-left {
    padding: 60px 0 200px 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 450px;
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px 45px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background: #C2185B;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

/* Правая часть с изображением */
.hero-right {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-image {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* Секция с гарантией */
.guarantee-section {
    padding: 100px 0;
    background: var(--white);
}

.guarantee-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 80px;
    align-items: center;
}

.guarantee-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.guarantee-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.guarantee-text {
    padding: 20px 0;
}

.guarantee-title {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.guarantee-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.guarantee-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.guarantee-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guarantee-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

.guarantee-list svg {
    flex-shrink: 0;
}

/* Секция с галереей работ */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-light);
    overflow: hidden;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* Glide.js кастомные стили */
.glide {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 80px;
}

.glide__track {
    overflow: visible;
}

.glide__slides {
    margin: 0;
    padding: 0;
    list-style: none;
}

.glide__slide {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.glide__slide--active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.glide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 100%;
}

.glide__slide--active img {
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3);
}

/* Стрелки */
.glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-dark);
}

.glide__arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.glide__arrow--left {
    left: 0;
}

.glide__arrow--right {
    right: 0;
}

/* Точки */
.glide__bullets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.glide__bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.glide__bullet--active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Секция с услугами */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #F0F0F0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.15);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
}

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

.service-title {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 52px;
}

.service-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 70px;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.services-cta {
    text-align: center;
}

/* Секция "Почему нам доверяют" */
.trust-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.trust-icon {
    flex-shrink: 0;
}

.trust-icon svg {
    display: block;
}

.trust-content {
    flex: 1;
}

.trust-title {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.trust-description {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-light);
}

/* Футер */
.footer {
    position: relative;
    padding: 50px 0 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #E8E6E7 0%, #F5F4F5 100%);
    color: var(--text-dark);
}

.footer .container {
    position: relative;
    z-index: 3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.footer-left {
    text-align: left;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 180px;
    width: auto;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

.footer-center {
    text-align: center;
}

.footer-address {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.footer-phone {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-phone:hover {
    transform: scale(1.05);
    color: #C2185B;
}

.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    transition: transform 0.3s ease;
    display: block;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link svg circle {
    transition: fill 0.3s ease;
}

.social-link:hover svg circle {
    fill: var(--primary-color);
}

.social-link:hover svg path {
    fill: white;
}

.footer-right {
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #F0F0F0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 1px solid #F0F0F0;
}

.modal-logo {
    margin-bottom: 20px;
}

.modal-logo img {
    height: 100px;
    width: auto;
}

.modal-title {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.modal-body {
    padding: 40px;
}

.modal-question {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.modal-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.modal-option {
    text-align: center;
    padding: 30px 20px;
    border: 2px solid #F0F0F0;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
}

.option-image {
    margin-bottom: 20px;
}

.option-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.option-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-button:hover {
    background: #C2185B;
    transform: scale(1.05);
}

.modal-contact {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #F0F0F0;
}

.modal-contact-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal-phone {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-phone:hover {
    color: #C2185B;
    transform: scale(1.05);
}

/* Анимации */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-contacts {
        padding: 10px 0;
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-phone {
        font-size: 18px;
    }
    
    .nav-address {
        font-size: 11px;
        white-space: normal;
        text-align: center;
        padding-left: 0;
        border-left: none;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-left {
        padding: 20px 0 40px 0;
        text-align: center;
        order: 2;
    }
    
    .hero-right {
        height: 350px;
        align-items: center;
        order: 1;
        padding-top: 80px;
    }
    
    .hero-image {
        align-items: center;
    }
    
    .hero-image img {
        object-fit: contain;
        max-height: 100%;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        margin: 0 auto 40px;
    }
    
    .guarantee-section {
        padding: 60px 0;
    }
    
    .guarantee-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .guarantee-text {
        text-align: center;
    }
    
    .guarantee-title {
        font-size: 32px;
    }
    
    .guarantee-subtitle {
        font-size: 18px;
    }
    
    .guarantee-list li {
        justify-content: center;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .glide {
        padding: 40px 30px;
        overflow: hidden;
    }
    
    .glide__track {
        overflow: hidden;
    }
    
    .glide__slide {
        height: 400px;
    }
    
    .glide__arrow {
        width: 40px;
        height: 40px;
    }
    
    .glide__arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-title {
        font-size: 18px;
        min-height: auto;
    }
    
    .service-description {
        font-size: 13px;
        min-height: auto;
    }
    
    .service-price {
        font-size: 20px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .trust-item {
        gap: 20px;
    }
    
    .trust-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .trust-title {
        font-size: 20px;
    }
    
    .trust-description {
        font-size: 14px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-address {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-phone {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .nav-contacts {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-phone {
        font-size: 16px;
    }
    
    .nav-address {
        font-size: 10px;
        white-space: normal;
        padding-left: 0;
        border-left: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .guarantee-title {
        font-size: 28px;
    }
    
    .guarantee-subtitle {
        font-size: 16px;
    }
    
    .guarantee-description {
        font-size: 14px;
    }
    
    .guarantee-list li {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .gallery-carousel {
        padding: 0 50px;
    }
    
    .gallery-carousel {
        padding: 0 50px;
    }
    
    .carousel-container {
        overflow: hidden;
    }
    
    .carousel-slide {
        min-width: 100%;
        height: 400px;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    .carousel-slide.active {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    
    .carousel-slide img {
        object-fit: cover;
        object-position: center;
    }
    
    .carousel-track {
        gap: 0;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-description {
        font-size: 14px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .trust-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .trust-icon svg {
        width: 44px;
        height: 44px;
    }
    
    .trust-title {
        font-size: 18px;
    }
    
    .trust-description {
        font-size: 14px;
    }
    
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .footer-address {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .footer-phone {
        font-size: 22px;
    }
    
    .footer-brand {
        font-size: 20px;
    }
    
    .footer-tagline {
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 30px 20px 20px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-question {
        font-size: 20px;
    }
    
    .modal-phone {
        font-size: 20px;
    }
}
