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

:root {
    --primary-color: #FFC8D6; /* Очень мягкий розовый */
    --secondary-color: #FFD9E3; /* Нежный светло-розовый */
    --accent-color: #FFE6EB; /* Пастельный розовый */
    --text-color: #666666; /* Мягкий розовый для текста */
    --light-color: #FFF5F7; /* Светлый розово-белый */
    --dark-color: #4A4141; /* Темный коричневый */
    --heading-color: #4A4A4A; /* Приглушенный розовый для заголовков */
    --gradient-start: #FF9A9E;
    --gradient-end: #FAD0C4;
    --testimonial-shadow-color: rgba(255, 200, 214, 0.4); /* RGBA для primary-color с прозрачностью */
    --font-family: 'Comic Neue', cursive;
    --font-family-secondary: 'Indie Flower', cursive;
}

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Indie+Flower&display=swap');

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

/* Оптимизация изображений */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #FFF;
    padding: 15px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: var(--font-family-secondary);
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.3);
    text-shadow: 1px 1px 2px rgba(255, 139, 167, 0.3);
}

.btn:hover {
    background: linear-gradient(to right, var(--gradient-end), var(--gradient-start));
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 139, 167, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    flex: 0 0 auto;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--heading-color);
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.logo h1 a:hover {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.menu-btn {
    display: none !important; /* Полностью скрываем кнопку меню */
}

.menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Главный баннер */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем контент по горизонтали */
    text-align: center; /* Центрируем текст внутри */
    padding: 0 20px; /* Базовые отступы */
    overflow: hidden;
    background: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Для десктопа - первое изображение */
    height: 100%;
    background: url('images/together.jpg') no-repeat center center/cover;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* Для десктопа - второе изображение */
    height: 100%;
    background: url('images/together2.jpg') no-repeat center center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 500px; /* Уменьшаем максимальную ширину для более компактного вида */
    margin: 0 auto; /* Центрирование блока */
    text-align: center; /* Центрирование текста внутри */
    background: transparent; /* Полностью прозрачный фон */
    padding: 40px 20px; /* Отступы */
    border-radius: 30px; /* Радиус скругления углов */
    position: relative;
    z-index: 1;
    box-shadow: none; /* Убираем тень, если была */
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    /* Улучшения для шапки */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Улучшения для мобильного меню */
    .menu-btn {
        display: none !important; /* Полностью скрываем кнопку меню */
    }

    .menu-btn span {
        width: 24px;
        height: 2px;
        background-color: var(--dark-color);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: none; /* Убираем фон полностью */
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: none; /* Убираем эффект размытия */
        -webkit-backdrop-filter: none; /* Убираем эффект размытия для WebKit */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        background: none; /* Убираем любой фон с элементов списка */
        box-shadow: none; /* Убираем любую тень */
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        color: var(--heading-color);
        display: block;
        transition: all 0.3s ease;
        background: none; /* Changed from transparent to none */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links a:hover {
        color: var(--primary-color);
        transform: translateX(5px);
        background: none; /* Changed from transparent to none */
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent; /* Убираем фон полностью */
        backdrop-filter: none; /* Убираем эффект размытия */
        -webkit-backdrop-filter: none; /* Убираем эффект размытия для WebKit */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Дополнительные улучшения для маленьких экранов */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .team-member,
    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%; /* Убедимся, что кнопка занимает всю ширину */
    }

    /* Улучшения для модальных окон */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .close-modal {
        right: 15px;
        top: 15px;
        font-size: 20px;
    }
}

/* Улучшения для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Улучшения для тач-устройств */
@media (hover: none) {
    .service-card:hover,
    .team-member:hover,
    .contact-card:hover {
        transform: none;
    }

    .nav-links a:active,
    .btn:active {
        opacity: 0.7;
    }
}

/* Улучшения для темной темы */
@media (prefers-color-scheme: dark) {
    .nav-links,
    .modal-content {
        background: transparent;
        color: var(--heading-color);
    }

    .nav-links a {
        color: var(--heading-color);
        background: transparent;
    }

    .menu-btn span {
        background-color: #fff;
    }
    
    .menu-overlay {
        background: transparent;
    }
}

/* Возвращаем стили для десктопа вне медиа-запроса */
.hero h1, .hero p {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 139, 167, 0.3);
    line-height: 1.2;
    color: #FFF; /* Белый цвет текста */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    color: #FFF;
    text-shadow: 1px 1px 2px rgba(255, 139, 167, 0.3);
    margin-bottom: 30px;
}

/* Добавляем анимацию градиента */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Применяем анимацию к тексту */
.hero h1,
.hero p {
    /* background: linear-gradient(to right, var(--gradient-start), var(--gradient-end)); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-size: 300% 300%; */
    /* animation: gradient 15s ease infinite; */
}

/* Медиа-запрос для мобильных, чтобы текст снова стал белым и без градиента */
@media (max-width: 768px) {
    .hero h1,
    .hero p {
        background: none;
        /* -webkit-background-clip: unset; */
        /* background-clip: unset; */
        /* -webkit-text-fill-color: unset; */
        color: var(--heading-color); /* Цвет текста из переменных */
        text-shadow: none; /* Убираем тень текста */
        animation: none; /* Отключаем анимацию градиента */
    }
}

/* Секции */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* Услуги */
.services {
    background: linear-gradient(rgba(249, 246, 246, 0.95), rgba(249, 246, 246, 0.95)), url('images/tatiana.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

.service-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    text-shadow: 
        0 0 1px rgba(255, 255, 255, 0.5),
        0 0 2px rgba(255, 255, 255, 0.3),
        0 0 3px rgba(255, 255, 255, 0.2);
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #FF8E8E, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    text-shadow: 
        0 0 2px rgba(255, 255, 255, 0.6),
        0 0 4px rgba(255, 255, 255, 0.4),
        0 0 6px rgba(255, 255, 255, 0.3);
    -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 1;
    box-shadow: 
        inset 0 0 15px rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.service-features li {
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
}

.service-features li:before {
    content: "✿";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.service-btn {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1rem;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .service-card p {
        font-size: 1rem;
    }
}

/* О нас */
.about {
    background: linear-gradient(rgba(249, 246, 246, 0.95), rgba(249, 246, 246, 0.95));
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.2);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--heading-color);
    font-family: var(--font-family-secondary);
    letter-spacing: 1px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки для десктопа */
    gap: 30px;
    padding: 20px;
    list-style: none;
    margin: 0 auto;
    max-width: 1000px; /* Ограничиваем ширину для центрирования сетки */
}

.features-list li {
    margin-bottom: 20px;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(200, 185, 185, 0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    opacity: 1; /* Убедимся, что элементы видны */
    transform: none; /* Убедимся, что нет смещений */
}

.features-list li:before {
    content: "♥";
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.features-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.2);
}

.features-list li:hover:before {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Стили для центрирования последнего элемента на десктопе */
@media (min-width: 769px) { /* Применяем только на экранах шире 768px */
    .features-list li:last-child {
        grid-column: 2 / 3; /* Размещаем последний элемент во второй колонке из трех */
        justify-self: center; /* Центрируем его внутри ячейки */
    }
}

/* Медиа-запрос для мобильных */
@media (max-width: 768px) {
    .about-content {
        padding: 20px;
    }

    .features-list {
        grid-template-columns: 1fr; /* Одна колонка для мобильных */
        gap: 20px;
        /* Убираем ограничения ширины и центрирование сетки */
        max-width: none;
        margin: 0;
    }

    .features-list li {
        font-size: 1rem;
        padding: 15px;
        /* Убираем центрирование последнего элемента на мобильных */
        grid-column: auto !important;
        justify-self: auto !important;
    }
}

.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-content {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.features-content h3 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.features-content h4 {
    color: var(--heading-color);
    font-size: 1.4rem;
    margin: 20px 0 15px;
}

.features-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.education-list, .experience-list, .hobbies-list, .egor-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.education-list li, .experience-list li, .hobbies-list li, .egor-list li {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.education-list li:hover, .experience-list li:hover, .hobbies-list li:hover, .egor-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.education-list strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.experience-list ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.experience-list ul li {
    background: none;
    box-shadow: none;
    padding: 5px 0;
}

.egor-experience {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.egor-experience p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .features-content {
        padding: 0 20px;
    }
    
    .features-content h3 {
        font-size: 1.5rem;
    }
    
    .features-content h4 {
        font-size: 1.2rem;
    }
    
    .education-list li, .experience-list li, .hobbies-list li, .egor-list li {
        padding: 10px;
    }
}

/* Команда */
.team {
    background: linear-gradient(rgba(249, 246, 246, 0.95), rgba(249, 246, 246, 0.95)), url('images/egor.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

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

.team-member {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.2);
    transition: all 0.3s ease;
    background-color: rgba(249, 246, 246, 0.95);
}

.team-member.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.team-member-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(200, 185, 185, 0.3);
}

.team-member h3 {
    margin-top: 20px;
    font-family: var(--font-family-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.team-member p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* Контакты */
.contact {
    background: linear-gradient(rgba(249, 246, 246, 0.95), rgba(249, 246, 246, 0.95)), url('images/Qr_code.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* Отзывы клиентов */
.testimonials {
    padding: 80px 0;
    background-color: #f9f9f9; /* Светлый фон для секции */
    text-align: center;
    position: relative; /* Добавим для позиционирования псевдо-элемента */
    overflow: hidden; /* Скроем все, что выходит за пределы секции */
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/roses.jpg'); /* Замените на путь к вашему изображению роз */
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Сделайте изображение еле заметным */
    z-index: 0; /* Поместим фон под контент */
}

.testimonials h2 {
    color: var(--heading-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: var(--font-family-secondary);
    letter-spacing: 1px;
}

.testimonial-item {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--testimonial-shadow-color); /* Тень с использованием цвета палитры */
    font-style: italic;
    color: var(--dark-color); /* Используем темный цвет из палитры для основного текста */
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Немного усилим тень текста */
    border: 2px solid var(--gradient-end); /* Более выраженная рамка с использованием цвета палитры */
}

.testimonial-item p:last-child {
    font-style: normal;
    font-weight: 700;
    margin-top: 25px; /* Увеличим отступ сверху */
    color: var(--dark-color); /* Используем темный цвет из палитры */
    font-size: 1.1rem; /* Немного увеличим размер шрифта */
    text-shadow: none; /* Убираем тень текста для имени */
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }

    .testimonials h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .testimonial-item {
        padding: 20px;
        margin: 15px auto;
    }

    .testimonial-item p {
        font-size: 0.95rem;
    }
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background-color: rgba(249, 246, 246, 0.95);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(200, 185, 185, 0.3);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: translateY(-5px) scale(1.1);
    -webkit-transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card:hover .contact-icon::before {
    opacity: 1;
}

.contact-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon i {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
}

@media (max-width: 768px) {
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .contact-info {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Улучшенные стили для контактных карточек */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 15px 0;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 10px 0;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Эффект параллакса для фоновых изображений */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated.visible {
    opacity: 1;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

/* Настройки для Intersection Observer */
.intersection-observer {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.intersection-observer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Настройки для разных блоков */
.service-card,
.team-member,
.contact-card,
.features-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible,
.team-member.visible,
.contact-card.visible,
.features-list li.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Улучшения для мобильной навигации */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
        border: none;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: none; /* Убираем фон полностью */
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: none; /* Убираем эффект размытия */
        -webkit-backdrop-filter: none; /* Убираем эффект размытия для WebKit */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        background: none; /* Убираем любой фон с элементов списка */
        box-shadow: none; /* Убираем любую тень */
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        background: none; /* Changed from transparent to none */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-links a:hover {
        color: var(--primary-color);
        transform: translateX(5px);
        background: none; /* Changed from transparent to none */
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent; /* Убираем фон полностью */
        backdrop-filter: none; /* Убираем эффект размытия */
        -webkit-backdrop-filter: none; /* Убираем эффект размытия для WebKit */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Улучшения для контактной формы */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 2px rgba(74, 109, 167, 0.3);
    border-color: var(--primary-color);
}

.form-group label {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Плавающая тень для карточек */
.team-member, 
.service-card {
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.2);
    transition: all 0.3s ease;
}

.team-member:hover, 
.service-card:hover {
    box-shadow: 0 10px 25px rgba(200, 185, 185, 0.3);
}

/* Стили для активной навигации */
nav a.active {
    color: var(--accent-color);
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Стили для формы с фокусом */
.form-group.focused label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Кнопка "Наверх" */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(to right bottom, var(--gradient-start), var(--gradient-end));
    color: var(--dark-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(200, 185, 185, 0.3);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: linear-gradient(to right bottom, var(--gradient-end), var(--gradient-start));
    transform: translateY(-3px);
}

/* Отладочные стили для секции about */
#about {
    min-height: 300px;
    position: relative;
}

#about .container {
    padding: 20px;
}

#about h2 {
    color: var(--heading-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки для десктопа */
    gap: 30px;
    padding: 20px;
    list-style: none;
    margin: 0 auto;
    max-width: 1000px; /* Ограничиваем ширину для центрирования сетки */
}

.features-list li {
    margin-bottom: 20px;
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(200, 185, 185, 0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    opacity: 1; /* Убедимся, что элементы видны */
    transform: none; /* Убедимся, что нет смещений */
}

.features-list li:before {
    content: "♥";
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.features-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(200, 185, 185, 0.2);
}

.features-list li:hover:before {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* Стили для центрирования последнего элемента на десктопе */
@media (min-width: 769px) { /* Применяем только на экранах шире 768px */
    .features-list li:last-child {
        grid-column: 2 / 3; /* Размещаем последний элемент во второй колонке из трех */
        justify-self: center; /* Центрируем его внутри ячейки */
    }
}

/* Медиа-запрос для мобильных */
@media (max-width: 768px) {
    .about-content {
        padding: 20px;
    }

    .features-list {
        grid-template-columns: 1fr; /* Одна колонка для мобильных */
        gap: 20px;
        /* Убираем ограничения ширины и центрирование сетки */
        max-width: none;
        margin: 0;
    }

    .features-list li {
        font-size: 1rem;
        padding: 15px;
        /* Убираем центрирование последнего элемента на мобильных */
        grid-column: auto !important;
        justify-self: auto !important;
    }
}

.features {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-content {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.features-content h3 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.features-content h4 {
    color: var(--heading-color);
    font-size: 1.4rem;
    margin: 20px 0 15px;
}

.features-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.education-list, .experience-list, .hobbies-list, .egor-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.education-list li, .experience-list li, .hobbies-list li, .egor-list li {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.education-list li:hover, .experience-list li:hover, .hobbies-list li:hover, .egor-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.education-list strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.experience-list ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.experience-list ul li {
    background: none;
    box-shadow: none;
    padding: 5px 0;
}

.egor-experience {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.egor-experience p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .features-content {
        padding: 0 20px;
    }
    
    .features-content h3 {
        font-size: 1.5rem;
    }
    
    .features-content h4 {
        font-size: 1.2rem;
    }
    
    .education-list li, .experience-list li, .hobbies-list li, .egor-list li {
        padding: 10px;
    }
} 