* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #cd85a8;
    --secondary-color: #9cbace;
    --text-color: #4a4747;
    --light-bg: #abe3f0;
    --white: #ffffff;
    --yellow-color: #F5E1A4;
    --transition: all 0.3s ease;
    --error-color: #ff4444;
    --disabled-color: #cccccc;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}
@font-face {
    font-family: 'BubbleSans';
    src: url('../Fonts/BubbleSans-Regular.woff2') format('woff2'),
         url('../Fonts/BubbleSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-bg) 60%, var(--white) 80%);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(171, 227, 240, 1) 0%,
        rgba(171, 227, 240, 0.95) 50%,
        rgba(171, 227, 240, 0.8) 75%,
        rgba(171, 227, 240, 0) 95%
    );
    z-index: 0;
}

.clouds-hearts {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.logo {
    width: 300px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.studio-text {
    position: absolute;
    bottom: 250px;
    color: var(--white);
    font-size: 24px;
    letter-spacing: 10px;
    text-shadow:  0px 4px 4px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
    color: var(--text-color);
    text-align: center;
}


.about-section h2 {
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: 700;
}

.about-text {
    text-align: left;
    font-family: 'BubbleSans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-text h3,
.about-text .studio {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.about-text .description {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    padding: 30px;
    background-image: url('../images/Frame.png');
    background-size: cover;
    background-position: absolute;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1;
}

.about-text .description::before {
    content: '';
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.about-text .description strong {
    display: block;
    margin-bottom: 15px;
    opacity: 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}

.about-content h3 {
    font-size: 36px;
    margin-bottom: 20px;
    font-family: 'BubbleSans', sans-serif;
    color: var(--text-color);
}

.about-content .studio {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.9;
    font-family: 'BubbleSans', sans-serif;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content .description {
    font-size: 18px;
    line-height: 1.8;
    font-family: 'BubbleSans', sans-serif;
    white-space: pre-line;
    color: var(--text-color);
}

.about-images {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

.princeses-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
}

.papphearts-image {
    width: 300px;
    height: auto;
    margin-top: 10px;
    align-self: center;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: #f1e0adf6;
    font-family: 'BubbleSans', sans-serif;
}

.services-section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--text-color);
    font-family: 'BubbleSans', sans-serif;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    font-family: 'BubbleSans', sans-serif;
}

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

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

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: 'BubbleSans', sans-serif;
}

.service-card p {
    color: #666;
    font-family: 'BubbleSans', sans-serif;
}

/* Portfolio Section */
.portfolio-section {
    padding: 0;
    background-color: var(--secondary-color);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.portfolio-section h2 {
    text-align: center;
    font-size: 48px;
    color: var(--white);
    padding: 20px 0;
    position: relative;
    z-index: 3;
    margin: 0;
}

.carousel {
    position: relative;
    width: 90%;
    height: 100vh;
    overflow: hidden;
    flex: 1;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 3;
    transition: all 0.3s ease;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0.8;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.prev { left: 60px; }
.next { right: 60px; }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicators .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .dot.active {
    background: var(--white);
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
    color: var(--white);
}

.progress-text {
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--text-color);
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author .name {
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-author .project {
    color: #666;
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: url('../images/gradient_stars.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(205, 133, 168, 0.4);
    z-index: 1;
}

.contact-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.contact-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.consultation-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.consultation-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

.signup-btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 14px;
    opacity: 0.8;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .carousel-slide:not(.active) {
        width: 20%;
        height: 80%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .hero-section {
        height: 80vh;
    }
    
    .logo {
        width: 200px;
    }
    
    .studio-text {
        font-size: 18px;
        letter-spacing: 5px;
        bottom: 200px;
    }
    
    .about-section h2,
    .services-section h2,
    .portfolio-section h2,
    .testimonials-section h2,
    .contact-section {
        padding: 80px 0;
    }

    .contact-section h2 {
        font-size: 36px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .contact-item:first-child {
        position: relative;
        padding-bottom: 20px;
    }
    
    .contact-item:first-child::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background-color: var(--white);
        opacity: 0.5;
    }
    
    .carousel-slide:not(.active) {
        width: 20%;
        height: 80%;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .prev { left: 40px; }
    .next { right: 40px; }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-progress {
        bottom: 60px;
    }

    .portfolio-section h2 {
        font-size: 36px;
        padding: 15px 0;
    }

    .carousel {
        height: calc(100vh - 80px);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        align-items: center;
    }

    .about-text .description {
        text-align: center;
    }

    .about-text h3,
    .about-text .studio {
        text-align: center;
    }

    .about-images {
        align-items: center;
    }

    .princeses-image {
        max-width: 300px;
    }

    .papphearts-image {
        width: 200px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        height: 70vh;
    }
    
    .logo {
        width: 150px;
    }
    
    .studio-text {
        font-size: 16px;
        letter-spacing: 3px;
    }
    
    .about-section h2,
    .services-section h2,
    .portfolio-section h2,
    .testimonials-section h2,
    .contact-section {
        padding: 40px 0;
    }

    .contact-section h2 {
        font-size: 28px;
    }

    .contact-section {
        padding: 10px 0;
        min-height: auto;
    }

    
    .carousel-slide:not(.active) {
        width: 20%;
        height: 80%;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .prev { left: 30px; }
    .next { right: 30px; }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-progress {
        bottom: 50px;
    }

    .progress-text {
        font-size: 14px;
        padding: 4px 12px;
    }

    .portfolio-section h2 {
        font-size: 28px;
        padding: 10px 0;
    }

    .carousel {
        height: calc(100vh - 60px);
    }

    .princeses-image {
        max-width: 250px;
    }

    .papphearts-image {
        width: 150px;
        margin-top: 10px;
    }
}

/* Общие стили для заголовков секций */
.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    color: var(--text-color);
}

.about-section h2,
.services-section h2,
.portfolio-section h2,
.testimonials-section h2,
.contact-section h2 {
    composes: section-title;
}

/* Стили для кнопок */
button {
    cursor: pointer;
    transition: var(--transition);
}

button:disabled {
    background-color: var(--disabled-color);
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card:last-child {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 650px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 300px;
        width: 100%;
    }
}