:root {
    --primary: #6A7FDB;
    --primary-dark: #5568C7;
    --secondary: #F5F5F5;
    --accent: #F5A9BC;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --green: #22C55E;
    --light-bg: #F9F9F9;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.font-montserrat {
    font-family: var(--font-primary);
}

.font-playfair {
    font-family: var(--font-heading);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

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

/* Кнопки */
.primary-button, .submit-button, button {
    font-family: var(--font-primary);
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.primary-button:hover, .submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 127, 219, 0.3);
}

.secondary-button {
    font-family: var(--font-primary);
    background-color: transparent;
    color: var(--primary);
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.secondary-button:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 127, 219, 0.2);
}

.secondary-button i {
    margin-left: 8px;
}

.about-buttons {
    margin: 1.5rem 0;
}

/* Шапка */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Скрытие header при прокрутке вниз */
header.header-hidden {
    transform: translateY(-100%);
}

/* Показ header при прокрутке вверх */
header.header-visible {
    transform: translateY(0);
}

/* Изменение фона header при прокрутке */
header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem; /* Стандартные отступы для десктопной версии */
}

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

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между логотипом и текстом */
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    white-space: nowrap; /* Предотвращает перенос текста */
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    .logo-text {
        font-size: 1rem;
    }
}

/* Для очень маленьких экранов можно скрыть текст и оставить только логотип */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

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

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

nav ul li a:hover::after {
    width: 100%;
}

/* Стили для кнопки-гамбургера */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
    z-index: 1002;
    padding: 10px;
}

.menu-toggle:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Адаптивность для мобильного меню */
@media (max-width: 768px) {
    /* Уменьшаем высоту шапки на мобильных устройствах */
    header {
        height: auto;
    }
    
    header .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 60px; /* Фиксированная минимальная высота */
    }
    
    /* Сохраняем текущий размер логотипа и кнопки меню */
    .logo-image {
        height: 40px;
    }
    
    .menu-toggle {
        font-size: 1.8rem;
    }
    
    /* Стили для мобильного меню */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
        padding: 5rem 2rem;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.8rem;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        font-weight: 500;
    }
    
    /* Добавляем иконки к пунктам меню */
    nav ul li a::before {
        content: '';
        display: inline-block;
        width: 24px;
        height: 24px;
        margin-right: 10px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    nav ul li:nth-child(1) a::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="%234a90e2" d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40h-16c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H392c-22.1 0-40-17.9-40-40v-88c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v88c0 22.1-17.9 40-40 40h-55.9c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2h-16c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8v-69.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>');
    }
    
    nav ul li:nth-child(2) a::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%234a90e2" d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"/></svg>');
    }
    
    nav ul li:nth-child(3) a::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="%234a90e2" d="M320 32c-8.1 0-16.1 1.4-23.7 4.1L15.8 137.4C6.3 140.9 0 149.9 0 160s6.3 19.1 15.8 22.6l57.9 20.9C57.3 229.3 48 259.8 48 291.9v28.1c0 28.4-10.8 57.7-22.3 80.8c-6.5 13-13.9 25.8-22.5 37.6C0 442.7-.9 448.3 .9 453.4s6 8.9 11.2 10.2l64 16c4.2 1.1 8.7 .3 12.4-2s6.3-6.1 7.1-10.4c8.6-42.8 4.3-81.2-2.1-108.7C90.3 344.3 86 329.8 80 316.5v-2.9c0-30.9 25.1-56 56-56s56 25.1 56 56v28.5c0 25.6-8.4 50.5-23.8 70.8c-2.6 3.4-5.3 6.8-7.9 10.2c-1.4 1.9-2.7 3.8-4 5.7c-3.5 5.1-2.4 12.1 2.6 15.7l33.6 24.1c4.8 3.4 11.4 2.5 15.2-2.1c4.9-6.1 9.6-12.4 13.9-18.8c16.4-24.2 26.4-53 26.4-82.5v-5.5c0-21.6 17.5-39.1 39.1-39.1h.9c21.6 0 39.1 17.5 39.1 39.1v5.5c0 29.5 10 58.3 26.4 82.5c4.3 6.4 9.1 12.7 13.9 18.8c3.8 4.7 10.4 5.5 15.2 2.1l33.6-24.1c5-3.6 6.1-10.6 2.6-15.7c-1.3-1.9-2.6-3.8-4-5.7c-2.6-3.4-5.3-6.8-7.9-10.2c-15.4-20.3-23.8-45.2-23.8-70.8V313.6c0-30.9 25.1-56 56-56s56 25.1 56 56v2.9c-6 13.3-10.3 27.8-13.5 42c-6.4 27.5-10.7 65.9-2.1 108.7c.8 4.3 3.4 8.1 7.1 10.4s8.2 3.1 12.4 2l64-16c5.2-1.3 9.4-5.1 11.2-10.2s.9-10.7-2.3-15c-8.6-11.8-16-24.6-22.5-37.6c-11.5-23-22.3-52.3-22.3-80.8V291.9c0-32.1-9.3-62.6-25.7-88.4l57.9-20.9c9.5-3.4 15.8-12.5 15.8-22.6s-6.3-19.1-15.8-22.6L343.7 36.1C336.1 33.4 328.1 32 320 32z"/></svg>');
    }
    
    nav ul li:nth-child(4) a::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%234a90e2" d="M184 48H328c4.4 0 8 3.6 8 8V96H176V56c0-4.4 3.6-8 8-8zm-56 8V96H64C28.7 96 0 124.7 0 160v96H192 320 512V160c0-35.3-28.7-64-64-64H384V56c0-30.9-25.1-56-56-56H184c-30.9 0-56 25.1-56 56zM512 288H320v32c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32V288H0V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V288z"/></svg>');
    }
    
    nav ul li:nth-child(5) a::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%234a90e2" d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM199.4 312.6c-31.2-31.2-31.2-81.9 0-113.1s81.9-31.2 113.1 0c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9c-50-50-131-50-181 0s-50 131 0 181s131 50 181 0c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0c-31.2 31.2-81.9 31.2-113.1 0z"/></svg>');
    }
    
    nav ul li:nth-child(6) a::before {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%234a90e2" d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>');
    }
    
    /* Затемнение фона при открытом меню */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    body.menu-open::before {
        opacity: 1;
    }
}

/* Стили для кнопки "Мое образование и квалификация" */
.secondary-button[href="education.html"] {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.05rem;
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
}

.secondary-button[href="education.html"]:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 127, 219, 0.4);
}

/* Уменьшение размера кнопки "Мое образование и квалификация" ТОЛЬКО для мобильных устройств */
@media (max-width: 768px) {
    .secondary-button[href="education.html"] {
        padding: 8px 12px;
        font-size: 0.9rem;
        width: auto;
        max-width: 80%;
        margin: 1rem auto;
        display: block;
    }
}

/* Hero секция */
.hero {
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

/* Исправление проблем в CSS - минималистичный подход */

/* Базовые стили для hero секции - упрощенная версия */
.hero {
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

/* Стили для десктопной версии hero секции */
@media (min-width: 768px) {
    .hero {
        background-image: url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
    }
    
    .hero-overlay {
        background-color: rgba(0, 0, 0, 0.6);
    }
    
    /* Декоративные элементы только для десктопа */
    .hero::before {
        content: '';
        position: absolute;
        top: -150px;
        left: -150px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background-color: #6A7FDB;
        opacity: 0.15;
        z-index: 0;
        pointer-events: none;
    }
    
    .hero::after {
        content: '';
        position: absolute;
        bottom: -180px;
        right: -180px; /* Позиционируем в правом нижнем углу */
        width: 350px;
        height: 350px;
        border-radius: 50%;
        background-color: #F5A9BC;
        opacity: 0.2;
        z-index: 0;
        pointer-events: none;
    }
    
    /* Новая декоративная текстовая панель */
    .hero-decorative-panel {
        position: absolute;
        bottom: 50px;
        left: 50px;
        max-width: 250px;
        padding: 1.5rem;
        background-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
        border-radius: var(--border-radius);
        border-left: 3px solid var(--primary);
        color: var(--white);
        z-index: 1;
        transform: translateY(20px);
        opacity: 0.9;
        transition: all 0.4s ease;
    }
    
    .hero-decorative-panel:hover {
        transform: translateY(0);
        opacity: 1;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .hero-decorative-panel h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: var(--primary);
    }
    
    .hero-decorative-panel p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0;
    }
}

/* Стили для мобильной версии hero секции */
@media (max-width: 767px) {
    .hero {
        background-image: none;
        background-color: #696969;
    }
    
    .hero-overlay {
        background-color: transparent;
    }
    
    .hero-content {
        padding-top: 10%;
    }
    
    /* Отключаем декоративные элементы на мобильных */
    .hero::before,
    .hero::after,
    .hero-decorative-panel {
        display: none;
    }
}

/* Общие стили для hero-контента */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 4rem 0;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 3.2rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Улучшаем видимость кнопки на темном фоне */
.hero .primary-button {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 14px 28px; /* Увеличиваем размер кнопки */
    font-size: 1.1rem; /* Увеличиваем размер текста кнопки */
}

.hero .primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Адаптивность для секции hero */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 60px; /* Уменьшаем отступ сверху */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        max-width: 95%;
    }
    
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero .primary-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero .primary-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .scroll-down {
        bottom: 15px;
    }
    
    .scroll-down a {
        font-size: 1.2rem;
    }
}

/* Улучшаем адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
}

/* Обо мне */
.about {
    background-color: var(--light-bg);
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
    top: -1.5rem; /* Смещаем изображение вверх для выравнивания с заголовком */
    height: 100%; /* Устанавливаем высоту контейнера */
    display: flex;
    flex-direction: column;
    margin-left: -5%; /* Смещаем контейнер влево */
    width: 105%; /* Увеличиваем ширину контейнера */
}

.about-image img {
    width: 115%; /* Увеличиваем размер изображения */
    max-width: none; /* Отменяем ограничение max-width: 100% */
    height: 100%; /* Растягиваем изображение на всю высоту контейнера */
    object-fit: cover; /* Сохраняем пропорции изображения */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.about-text {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.about-text .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-container {
    margin-top: auto; /* Прижимаем плашки к нижней части контейнера */
    display: flex;
    gap: 2rem;
    margin-bottom: 0; /* Убираем нижний отступ */
}

.stat-item {
    text-align: center;
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.stat-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Базовые стили для всех изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Стили для изображений в разных секциях */
.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

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

/* Адаптивные изображения для галереи */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* Сохраняем адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        top: 0;
        height: auto;
        margin-bottom: 2rem;
        margin-left: 0; /* Убираем смещение влево */
        width: 100%; /* Возвращаем стандартную ширину */
    }
    
    .about-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .stats-container {
        margin-top: 2rem;
    }
}

/* Стрелка прокрутки вниз */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Увеличиваем z-index, чтобы стрелка была поверх затемнения */
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--white);
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(106, 127, 219, 0.7); /* Добавляем полупрозрачный фон */
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-down a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Футер */
footer {
    background-color: #333;
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
}

.footer-contact-item p {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-column h3 {
        font-size: 1.3rem;
    }
}

/* Специфичные стили для десктопных устройств */
.desktop-device .hero {
    background-position: center center;
    height: 100vh;
}

.reviews-page .reviewer-name {
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.reviews-page .review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.reviews-page .review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Адаптивность для страницы отзывов на мобильных устройствах */
@media (max-width: 768px) {
    .reviews-page {
        padding: 5rem 0 3rem;
    }
    
    .reviews-page h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .reviews-page .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reviews-page .review-card {
        padding: 1.2rem;
    }
    
    .reviews-page .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reviews-page .reviewer-name {
        font-size: 1rem;
    }
    
    .reviews-page .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .reviews-page .review-date {
        font-size: 0.8rem;
    }
    
    /* Улучшенная навигация для мобильной версии страницы отзывов */
    .reviews-page .container {
        width: 90%;
        padding: 0 15px;
    }
    
    /* Добавляем разделитель между отзывами для визуального разделения */
    .reviews-page .review-card:not(:last-child) {
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 1.5rem;
    }
    
    /* Улучшаем отображение рейтинга */
    .reviews-page .review-rating {
        font-size: 0.9rem;
    }
    
    /* Добавляем кнопку "Наверх" для удобной навигации */
    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background-color: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .reviews-page h1 {
        font-size: 1.8rem;
    }
    
    .reviews-page .review-card {
        padding: 1rem;
    }
    
    .reviews-page .reviewer-avatar {
        width: 35px;
        height: 35px;
    }
    
    .reviews-page .review-text {
        font-size: 0.85rem;
    }
}

/* Исправление перекрытий секций */
@media (max-width: 768px) {
    /* Общие настройки для секций */
    .fullscreen {
        min-height: auto;
        height: auto;
        padding: 4rem 0;
    }
    
    /* Hero секция */
    .hero.fullscreen {
        min-height: 80vh;
        padding-top: 80px; /* Учитываем высоту шапки */
    }
    
    /* Секция услуг */
    .services.fullscreen {
        padding: 3rem 0;
    }
    
    /* Секция отзывов */
    .reviews.fullscreen {
        padding: 3rem 0; /* Оставляем только нужный padding для мобильных */
        min-height: auto;
    }
    
    /* Секция контактов */
    .contact.fullscreen {
        padding: 3rem 0;
    }
    
    /* Исправление z-index для предотвращения перекрытий */
    header {
        z-index: 1000;
    }
    
    .hero {
        z-index: 1;
    }
    
    .services, .reviews, .contact {
        z-index: 2;
        position: relative;
    }
}

/* Улучшенные медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    /* Базовые стили */
    .container {
        width: 90%;
        padding: 0 15px;
    }
    
    /* Типографика */
    h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Секции */
    section {
        padding: 3rem 0;
    }
    
    /* Шапка */
    header .container {
        min-height: 60px;
    }
    
    /* Hero секция */
    .hero-content {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Стили для кнопки "Больше отзывов" */
.reviews-more {
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}

.more-reviews-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.more-reviews-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .reviews-more {
        margin-top: 1.5rem;
    }
    
    .more-reviews-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}
    
    /* Кнопка "Наверх" для удобной навигации */
    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background-color: var(--primary);
        color: var(--white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .reviews-page h1 {
        font-size: 1.8rem;
    }
    
    .reviews-page .review-card {
        padding: 1rem;
    }
    
    .reviews-page .reviewer-avatar {
        width: 35px;
        height: 35px;
    }
    
    .reviews-page .review-text {
        font-size: 0.85rem;
    }
}

.prev-review {
    left: 10px;
}

.next-review {
    right: 10px;
}

/* Стили для индикаторов */
.indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Скрываем стрелки навигации на мобильных устройствах */
@media (max-width: 768px) {
    .prev-review,
    .next-review {
        display: none; /* Полностью скрываем стрелки на мобильных */
    }
    
    /* Увеличиваем размер индикаторов для лучшей доступности на мобильных */
    .indicator {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }
    
    /* Добавляем подсказку о свайпе */
    .reviews-carousel::after {
        content: "← Свайп →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-light);
        margin-top: 15px;
        opacity: 0.7;
    }
    
    /* Оптимизируем анимацию для мобильных устройств */
    .review-card.slide-in-right,
    .review-card.slide-in-left,
    .review-card.slide-out-right,
    .review-card.slide-out-left {
        animation-duration: 0.4s; /* Ускоряем анимацию на мобильных */
        animation-timing-function: ease-out; /* Более плавное завершение */
        will-change: transform, opacity; /* Оптимизация производительности */
    }
}

/* Улучшенные анимации для карусели отзывов */
@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Восстанавливаем кнопки в верхнем меню для десктопной версии */
@media (min-width: 769px) {
    header .container {
        justify-content: space-between;
    }
    
    .logo {
        flex: 0 0 auto;
    }
    
    nav {
        display: block;
        flex: 1 1 auto;
        text-align: right;
        margin-left: auto;
    }
    
    nav ul {
        display: flex;
        list-style: none;
        gap: 2rem;
        justify-content: flex-end;
    }
    
    nav ul li a {
        font-family: var(--font-primary);
        font-weight: 500;
        text-decoration: none;
        color: var(--text-dark);
        transition: var(--transition);
        position: relative;
        padding-bottom: 5px;
        display: block;
    }
    
    nav ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary);
        transition: var(--transition);
    }
    
    nav ul li a:hover {
        color: var(--primary);
    }
    
    nav ul li a:hover::after {
        width: 100%;
    }
    
    /* Убираем мобильный текст логотипа на десктопе */
    .mobile-logo-text {
        display: none;
    }
    
    /* Показываем обычный текст логотипа */
    .logo-text {
        display: inline-block;
    }
    
    /* Скрываем кнопку меню на десктопе */
    .menu-toggle {
        display: none;
    }
}

/* Секция отзывов */
.reviews {
    /* Убираем flex-выравнивание */
    display: block;

    /* Задаем большие вертикальные отступы */
    padding: 8rem 0; 
    background-color: var(--light-bg);
    
    /* Делаем секцию заметно больше высоты экрана */
    min-height: 160vh; 
}

.reviews .container {
    width: 100%; 
}

.reviews .title-container {
    text-align: center;
    margin-bottom: 3rem; 
}

.reviews-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.reviews-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.reviews-layout-wrapper {
    /* Эти стили больше не нужны */
}

.rating-summary {
    display: none; /* Полностью скрываем блок с рейтингом */
}

.reviews-container {
    max-width: 100%; /* Сетка отзывов будет занимать всю ширину контейнера */
    margin: 0 auto; /* Центрируем */
}

.reviews-more {
    text-align: center;
    margin-top: 3rem; 
}

.review-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.review-author {
    flex-shrink: 0;
    text-align: center;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.review-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.review-more {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.review-more:hover {
    color: var(--primary-dark);
}

/* --- Desktop adaptive: только размеры объектов, не layout --- */
@media (max-width: 1600px) {
  h1, .reviews-title { font-size: clamp(2.2rem, 4vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
  h3, .stat-number, .service-card h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
  .primary-button, .secondary-button { font-size: clamp(0.95rem, 1.5vw, 1.1rem); }
  .reviewer-avatar { width: clamp(36px, 4vw, 60px); height: clamp(36px, 4vw, 60px); font-size: clamp(1.1rem, 2vw, 1.5rem); }
  .about-image { max-width: clamp(180px, 25vw, 350px); }
}
@media (max-width: 1280px) {
  h1, .reviews-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
  h2 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
  h3, .stat-number, .service-card h3 { font-size: clamp(1rem, 1.3vw, 1.1rem); }
  .primary-button, .secondary-button { font-size: clamp(0.9rem, 1.2vw, 1rem); }
  .reviewer-avatar { width: clamp(28px, 3vw, 40px); height: clamp(28px, 3vw, 40px); font-size: clamp(0.9rem, 1.5vw, 1.1rem); }
  .about-image { max-width: clamp(120px, 20vw, 250px); }
}

/* --- Мобильная версия: layout-изменения только при ширине ≤ 992px --- */
@media (max-width: 992px) {
  .about-content, .contact-content, .services-grid, .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .about-image {
    margin-bottom: 2rem;
    max-width: 100% !important;
  }
  .contact-content {
    display: block !important;
  }
  .services-grid {
    grid-template-rows: auto !important;
  }
  .menu-toggle {
    display: block !important;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
    padding: 5rem 2rem;
  }
  nav.active {
    right: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  .stats-container {
    flex-direction: column;
    gap: 1rem;
  }
  .review-card, .service-card, .stat-item, .education-item {
    padding: 1.2rem !important;
    margin-bottom: 1.5rem !important;
  }
  .reviewer-avatar {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }
  .fullscreen {
    min-height: auto !important;
    height: auto !important;
    padding: 4rem 0 !important;
  }
  .hero {
    padding-top: 60px !important;
  }
  .hero-content {
    padding: 3rem 0 !important;
  }
  .primary-button, .secondary-button {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  .container {
    width: 95% !important;
    padding: 0 10px !important;
  }
  /* и другие мобильные layout-изменения */
}
