:root {
    --primary-color: #f8a5c2; /* Розовый */
    --secondary-color: #a29bfe; /* Фиолетовый */
    --dark-color: #333344;
    --light-color: #f9f7fe;
    --accent-color: #63cdda;
    --text-color: #444;
    --text-light: #777;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Alumni Sans", sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    font-size: 1.5rem;
}

h1, h2, h3, h4 {
    font-family: "Alumni Sans", sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 3.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 7px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 1.9rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Alumni Sans", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

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

.nav-menu li {
    margin-left: 35px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-size: 1.75rem;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu .btn {
    margin-left: 10px;
    padding: 10px 25px;
    font-size: 1.85rem;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
    background: none;
    border: none;
    padding: 5px;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.92)), 
                url('https://images.unsplash.com/photo-1607773967209-6c879c220cda?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.hero-text {
    flex: 1;
}

.hero-text .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: var(--shadow-hover);
}

/* Two-column layout */
.two-columns {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.two-columns.reverse {
    flex-direction: row-reverse;
}

.column {
    flex: 1;
}

.column img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(+10deg);
}

.column img:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: var(--shadow-hover);
}

/* About Section */
.about {
    background-color: var(--light-color);
    position: relative;
}

.about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--light-color));
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-card .price {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

/* Gallery Section */
.gallery {
    background-color: var(--light-color);
    position: relative;
}

.gallery:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--light-color));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.gallery-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover:before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Reviews Section */
.reviews-slider {
    max-width: 1400px;
    margin: 40px auto 0;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 50px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    position: relative;
}

.reviews-slider::-webkit-scrollbar {
    height: 8px;
}

.reviews-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
    margin: 0 20px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.review {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 350px;
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.review:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    font-family: "Alumni Sans", sans-serif;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}

.review-author img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--light-color);
    box-shadow: var(--shadow);
}

.review-author h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.review-author p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary-color);
}

.contact-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.contact-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 30px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(5deg);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 45px 40px;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background: var(--light-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: "Alumni Sans", sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(248, 165, 194, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .review {
        flex: 0 0 calc(50% - 15px);
        min-width: 320px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-container,
    .two-columns {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 50px;
    }
    
    .hero-text .btn {
        margin: 0 10px 15px;
    }
    

    
    
    .two-columns .column:first-child {
        margin-bottom: 40px;
    }
    
    .review {
        flex: 0 0 calc(50% - 15px);
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 12px 0;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    .burger {
        display: block;
        z-index: 1001;
    }
    
    section {
        padding: 70px 0;
    }
    
    .modal {
        padding: 35px 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 25px;
    }
    
    .contact-item {
        min-width: 100%;
        width: 100%;
    }
    
    .reviews-slider {
        padding: 10px 5px 40px;
        gap: 20px;
    }
    
    .review {
        flex: 0 0 85%;
        min-width: 85%;
        padding: 25px 20px;
    }
    
    .review:before {
        left: 20px;
        top: 15px;
        font-size: 3rem;
    }
    
    .review-author img {
        width: 55px;
        height: 55px;
    }
    
    .footer-container {
        gap: 30px;
    }
    
    .footer-column {
        min-width: 200px;
    }
    
    .hero {
        padding-top: 140px;
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-text .btn {
        width: auto;
        display: inline-block;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .review {
        min-width: 90%;
        padding: 20px 15px;
    }
    
    .review-author {
        flex-direction: column;
        text-align: center;
    }
    
    .review-author img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .modal {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 25px 20px;
    }
    
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    
    .review {
        min-width: 95%;
    }
}

/* Анимации для появления элементов */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .gallery-item, .contact-item, .review {
    animation: fadeUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Улучшение доступности */
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.nav-menu a:focus,
.burger:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Стили для выделения текста */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Стили для полосы прокрутки */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f593bb, #8d85f5);
}
/* Мобильная версия секции Контакты (max-width: 768px) */
@media (max-width: 768px) {
    /* Секция Контакты */
    #contact .two-columns.reverse {
        flex-direction: column !important;
    }
    
    #contact .two-columns.reverse .column:first-child {
        order: 1; /* "Как со мной связаться" становится первым */
        margin-bottom: 10px;
    }
    
    #contact .two-columns.reverse .column:last-child {
        order: 2; /* Контактные данные становятся вторыми */
    }
    
    /* Контактные блоки - 2 в ряд */
    #contact .contact-info {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* Два столбца */
        gap: 20px;
    }
    
    #contact .contact-item {
        text-align: center;
        min-width: 280px;
        padding: 10px 15px;
        background: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }
    
    #contact .contact-item:hover {
        transform: translateY(-5px);
    }
    
    #contact .contact-icon {
        margin-bottom: 10px;
        font-size: 24px;
        color: #d4a574; /* Цвет как в кнопках */
    }
    
    #contact .contact-item h4 {
        font-size: 16px;
        margin-bottom: 8px;
        color: #333;
    }
    
    #contact .contact-item p {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }
    
    /* Кнопка в мобильной версии */
    #contact-book-btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 16px;
        margin-top: 20px;
    }
    
    /* Заголовок секции */
    #contact h2.text-center {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    /* Описание в первом блоке */
    #contact .column:first-child h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    #contact .column:first-child p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}

/* Для очень маленьких экранов (max-width: 480px) */
@media (max-width: 480px) {
    #contact .contact-info {
        grid-template-columns: 1fr; /* Один столбец на очень маленьких экранах */
        gap: 15px;
    }
    
    #contact .contact-item {
        padding: 15px 10px;
    }
    
    #contact .contact-icon {
        font-size: 22px;
    }
    
    #contact .contact-item h4 {
        font-size: 15px;
    }
    
    #contact .contact-item p {
        font-size: 13px;
    }
}