/* ===========================
   ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ
   =========================== */
:root {
    /* Цветовая палитра */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-gold: #df9e27;
    --matte-gold: #cc8a1a;
    --light-gold: #f4e4bc;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --dark-gray: #333333;
    
    /* Шрифты */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Размеры */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s ease;
    
    /* Тени */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 4px 20px rgba(223, 158, 39, 0.2);
    
    /* Высота хедера */
    --header-height: 100px;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    /* Компенсируем высоту фиксированного хедера */
    padding-top: var(--header-height);
}

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки секций */
.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 15px;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--matte-gold));
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--matte-gold));
    color: var(--primary-black);
    box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(223, 158, 39, 0.3);
}

.btn--secondary {
    background: var(--primary-black);
    color: var(--white);
    border: 2px solid var(--accent-gold);
}

.btn--secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn--outline:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Акцентный текст */
.accent {
    color: var(--accent-gold);
    font-weight: 700;
}

/* ===========================
   ШАПКА САЙТА
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    min-height: 76px;
}

.header__logo a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
}

.header__logo .logo-image {
    height: 70px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.header__logo .logo-image:hover {
    opacity: 0.8;
}

/* Навигация */
.header__nav {
    flex: 1;
    margin: 0 30px;
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--accent-gold);
}

/* Контактная информация в шапке */
.header__contact {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 40px;
}

.header__phone {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
}

.header__phone:hover {
    color: var(--accent-gold);
}

.header__telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--primary-black);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.header__telegram:hover {
    transform: scale(1.1);
    background: var(--matte-gold);
}

/* Мобильное меню */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header__burger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   ГЛАВНЫЙ БАННЕР
   =========================== */
.hero {
    min-height: calc(100vh - var(--header-height));
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Добавляем легкое увеличение для динамичности */
    transform: scale(1.05);
    /* Плавная анимация масштабирования */
    animation: heroImageZoom 20s ease-in-out infinite alternate;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Верхний градиент для лучшего контраста с текстом */
        linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 40%, rgba(10, 10, 10, 0.7) 100%),
        /* Радиальный градиент для фокуса на центре */
        radial-gradient(ellipse at center, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 70%),
        /* Основной темный градиент */
        linear-gradient(135deg, rgba(10, 10, 10, 0.85), rgba(26, 26, 26, 0.75));
    z-index: -1;
    /* Анимация появления затемнения */
    animation: overlayFadeIn 2s ease-out;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    /* Добавляем дополнительную тень для лучшего контраста */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
    /* Анимация появления контента */
    animation: heroContentFadeIn 1.5s ease-out 0.5s both;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Усиленная тень для заголовка */
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    /* Тень для подзаголовка */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.4);
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Преимущества в баннере */
.hero__advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.advantage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(223, 158, 39, 0.2);
    transition: var(--transition);
}

.advantage:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.advantage i {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.advantage span {
    font-weight: 600;
    font-size: 1rem;
}

/* ===========================
   СЕКЦИЯ "О КОМПАНИИ"
   =========================== */
.about {
    padding: 100px 0;
    background: var(--light-gray);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    /* Минимальная высота для обеспечения динамичности */
    min-height: 600px;
}

/* Стили для текстовой части */
.about__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.about__description {
    margin-bottom: 40px;
}

.about__description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.about__description strong {
    color: var(--accent-gold);
    font-weight: 700;
}

.about__principles {
    display: grid;
    gap: 25px;
}

.principle {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.principle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.principle__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), var(--matte-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principle__icon i {
    color: var(--primary-black);
    font-size: 1.2rem;
}

.principle__content h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.principle__content p {
    color: var(--gray);
    line-height: 1.6;
}

.about__image {
    position: relative;
    /* Заполняем всю доступную высоту колонки */
    height: 100%;
    min-height: 600px;
    /* Обеспечиваем полное покрытие колонки */
    display: flex;
    align-items: stretch;
}

.about__img {
    width: 100%;
    height: 100%;
    /* Полное покрытие области с сохранением пропорций */
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    /* Добавляем плавный переход для hover-эффекта */
    transition: var(--transition);
}

.about__img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

/* ===========================
   СЕКЦИЯ "УСЛУГИ"
   =========================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service {
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service:hover .service__image img {
    transform: scale(1.05);
}

.service__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.service__title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.service__description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service__features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
    min-height: 120px;
}

.service__features li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: var(--dark-gray);
}

.service__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.service .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ===========================
   СЕКЦИЯ "ПОРТФОЛИО"
   =========================== */
.portfolio {
    padding: 100px 0;
    background: var(--light-gray);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio__item {
    background: var(--white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    /* Убираем position: relative, так как теперь не нужно для overlay */
}

.portfolio__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.portfolio__image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio__item:hover .portfolio__image img {
    transform: scale(1.05);
}

/* Информационный блок под изображением */
.portfolio__info {
    padding: 20px;
    background: var(--white);
}

.portfolio__title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
    line-height: 1.3;
}

.portfolio__description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.portfolio__details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}

.portfolio__area {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.portfolio__type {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===========================
   СЕКЦИЯ "ОТЗЫВЫ"
   =========================== */
.reviews {
    padding: 100px 0;
    background: var(--white);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.review {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-gold);
}

.review__header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    min-height: 80px;
}

.review__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
    /* Убеждаемся, что аватар не сжимается */
    position: relative;
    background: var(--light-gray);
}

.review__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Гарантируем центрирование изображения */
    display: block;
}

.review__name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 3px;
}

.review__position {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.3;
}

.review__rating {
    display: flex;
    gap: 2px;
}

.review__rating i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.review__content {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    min-height: 120px;
}

.review__content p {
    color: var(--gray);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.review__project {
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.review__project span {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
}

/* ===========================
   СЕКЦИЯ "FAQ"
   =========================== */
.faq {
    padding: 100px 0;
    background: var(--light-gray);
}

.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq__item {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.faq__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.faq__question {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    padding-right: 30px;
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: bold;
    transition: var(--transition);
}

.faq__item:hover .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    display: block;
}

.faq__answer p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   СЕКЦИЯ "КОНТАКТЫ"
   =========================== */
.contacts {
    padding: 100px 0;
    background: var(--light-gray);
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: left;
}

.contact__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), var(--matte-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon i {
    color: var(--primary-black);
    font-size: 1.4rem;
}

.contact__content h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.contact__content a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact__content a:hover {
    color: var(--matte-gold);
}

/* ===========================
   МОДАЛЬНОЕ ОКНО
   =========================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-heavy);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--accent-gold);
}

.modal__title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 10px;
    text-align: center;
}

.modal__subtitle {
    color: var(--gray);
    text-align: center;
    margin-bottom: 30px;
}

/* ===========================
   ФОРМЫ
   =========================== */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-black);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(223, 158, 39, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

.form__error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form__privacy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 15px;
}

.form__privacy a {
    color: var(--accent-gold);
    text-decoration: none;
}

.form__privacy a:hover {
    text-decoration: underline;
}

/* ===========================
   ФУТЕР
   =========================== */
.footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer__content {
    text-align: center;
}

.footer__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--dark-gray);
}

.footer__logo .footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer__logo p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__contacts a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__contacts a:hover {
    color: var(--accent-gold);
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-gray);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.footer__bottom {
    text-align: center;
}

.footer__bottom p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Кнопка "Наверх" */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--primary-black);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--matte-gold);
    transform: translateY(-3px);
}

/* ===========================
   АДАПТИВНЫЕ СТИЛИ
   =========================== */

/* Планшеты */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    /* Хедер на планшетах */
    .header__nav {
        margin: 0 20px;
    }
    
    .nav__list {
        gap: 20px;
    }
    
    .nav__link {
        font-size: 0.9rem;
    }
    
    .header__logo .logo-image {
        height: 65px;
    }
    
    .hero__title {
        font-size: 2.8rem;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }
    
    .about__text {
        padding-right: 0;
        order: 1;
    }
    
    .about__image {
        min-height: 400px;
        order: 2;
    }
    
    /* Портфолио на планшетах */
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .portfolio__image {
        height: 220px;
    }
    
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer__info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    /* Шапка */
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-black);
        padding: 20px;
        transition: all 0.3s ease;
        z-index: 999;
        /* Скрываем меню по умолчанию */
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        /* Добавляем тень для лучшего визуального эффекта */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header__burger {
        display: flex;
    }
    
    .header__content {
        padding: 8px 0;
        gap: 15px;
        min-height: 64px;
    }
    
    .header__logo .logo-image {
        height: 50px;
    }
    
    .header__contact {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 36px;
    }
    
    .header__phone {
        font-size: 0.85rem;
        font-weight: 500;
        line-height: 1;
    }
    
    .header__telegram {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Компенсация фиксированного хедера на мобильных */
    body {
        padding-top: var(--header-height);
    }
    
    .hero {
        min-height: calc(100vh - var(--header-height));
    }
    
    /* Главный баннер */
    .hero__title {
        font-size: 2.2rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero__advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* О компании */
    .about__image {
        min-height: 300px;
        order: 1;
    }
    
    .about__text {
        order: 2;
    }
    
    /* Секции */
    .section__title {
        font-size: 2rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .reviews__grid {
        grid-template-columns: 1fr;
    }
    
    /* Портфолио */
    .portfolio__image {
        height: 200px;
    }
    
    .portfolio__info {
        padding: 15px;
    }
    
    .portfolio__title {
        font-size: 1.1rem;
    }
    
    .portfolio__description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .portfolio__details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 10px;
    }
    
    /* Отзывы */
    .review {
        padding: 20px;
    }
    
    .review__header {
        gap: 12px;
    }
    
    .review__avatar {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .review__name {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* Модальное окно */
    .modal__content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    /* Общие отступы */
    section {
        padding: 60px 0;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    /* Компенсация фиксированного хедера на маленьких экранах */
    body {
        padding-top: var(--header-height);
    }
    
    .hero {
        min-height: calc(100vh - var(--header-height));
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__advantages {
        grid-template-columns: 1fr;
    }
    
    .advantage {
        padding: 15px;
    }
    
    .section__title {
        font-size: 1.7rem;
    }
    
    .portfolio__filter {
        flex-direction: column;
        align-items: center;
    }
}

/* ===========================
   АНИМАЦИИ
   =========================== */

/* Анимация затемнения для hero-баннера */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        background: 
            linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.1) 40%, rgba(10, 10, 10, 0.3) 100%),
            radial-gradient(ellipse at center, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.4) 70%),
            linear-gradient(135deg, rgba(10, 10, 10, 0.4), rgba(26, 26, 26, 0.3));
    }
    to {
        opacity: 1;
        background: 
            linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 40%, rgba(10, 10, 10, 0.7) 100%),
            radial-gradient(ellipse at center, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 70%),
            linear-gradient(135deg, rgba(10, 10, 10, 0.85), rgba(26, 26, 26, 0.75));
    }
}

/* Медленный зум фонового изображения */
@keyframes heroImageZoom {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.1);
    }
}

/* Анимация появления контента героя */
@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимации при загрузке */
.hero__content {
    animation: fadeInUp 1s ease-out;
}

.about__text {
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.about__image {
    animation: fadeInRight 1s ease-out 0.4s both;
}

/* ===========================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   =========================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===========================
   УВЕДОМЛЕНИЯ
   =========================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.3s ease-out;
}

.notification--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.notification button:hover {
    opacity: 1;
}

/* ===========================
   АНИМАЦИИ ДЛЯ ЭЛЕМЕНТОВ
   =========================== */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Дополнительные анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Анимация пульсации для CTA кнопок */
.btn--primary:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Стили для состояния ошибки в формах */
.form__input.error,
.form__textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

/* Дополнительные стили для скролла хедера */
.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header {
    transition: all 0.3s ease, transform 0.3s ease;
}
