:root {
    --secondary: #d4c0a1;
    --accent: #9d75cd;
    --light: #f0ece0;
    --dark: #3a4a45;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-bs-theme="dark"] {
    --secondary: #d4c0a1;
    --accent: #9d75cd;
    --light: #342f40;
    --dark: #9d75cd;
}

body {
    font-family: sans-serif;
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: serif;
}

p {
    text-indent: 1.25em;
}

code {
    color: var(--accent);
    font-weight: bold;
    border-bottom: 2px dotted;
    cursor: pointer;
}

section {
    min-height: 100vh;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    color: white;
    border: none;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(154, 140, 110, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 74, 69, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

.carousel-item img {
    width: 500px;
    height: 500px;
}

/* -------------- */
/* Главная секция */
/* -------------- */
#home {
    background-size: cover;
    background: linear-gradient(135deg, rgba(245, 240, 230, 0.1) 50%, rgba(245, 240, 230, 0.5) 100%), url('/static/images/home-bg.png') no-repeat bottom center;
    position: relative;
}

[data-bs-theme="dark"] {
    #home {
        background: linear-gradient(135deg, rgba(52, 47, 64, 0.1) 50%, rgba(75, 67, 91, 0.5) 100%), url('/static/images/home-bg.png') no-repeat bottom center;
    }
}

.hero-content {
    max-width: 500px;
    animation: fadeInUp 1s ease-out;
    --bs-bg-opacity: 0;
}


/* ------- */
/* Обо мне */
/* ------- */

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(58, 74, 69, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

/* Услуги */

.service-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 20px 0;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

#contact .btn {
    width: 160px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-container, .contact-container {
        flex-direction: column;
    }

    .about-img {
        max-width: 500px;
        margin: 0 auto;
    }

    .nav-links li {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }

    .hero-content {
        --bs-bg-opacity: 0.35;
        border-radius: 10px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    #home {
        background-position: bottom right !important;
        background-size: 1300px !important;
    }

    .nav-links li {
        margin-left: 15px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .services-container {
        grid-template-columns: 1fr;
    }
}
