/* static/css/style.css */

:root {
    /* Цветовая палитра */
    --color-primary: #1a365d;
    --color-primary-dark: #2d3748;
    --color-accent: #d4af37;
    --color-accent-dark: #b8941f;
    --color-light: #f8fafc;
    --color-dark: #2d3748;
    --color-gray: #718096;
    --color-white: #ffffff;
    

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Анимации */
    --transition: all 0.3s ease;
}

/* Сброс и базовые стили */
* {
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
    padding-top: 80px; /* Для фиксированного header */
    margin:0;
}

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

.section {
    padding: 1rem 0;
}

.section--light {
    background: var(--color-light);
}

.section--accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

/* Стили для хедера */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(26, 54, 93, 0.1);
}

/* Настройки хедера для красивого выравнивания */
.header__container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0.8rem 1rem; /* Уменьшаем вертикальный padding */
    height: 70px; /* Фиксированная высота для выравнивания */
    min-height: 70px; /* Минимальная высота */
}

/* Стили для логотипа */
.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;

}

.header__logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header__logo:hover .header__logo-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header__logo-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header__logo-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Навигационное меню */
.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: flex-end; /* Прижимаем к низу */
    height: 100%; /* Занимаем всю высоту */}

.nav__link {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav__link.active {
    color: var(--color-accent);
}
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    width: 100%;
}

/* Контакты в шапке */
.header__contacts {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.header__phone {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.header__phone:hover {
    color: var(--color-accent);
}

/* Адаптивность */
@media (max-width: 968px) {
    .header__container {
        padding: 1rem 1.5rem;
    }
    
    .nav__list {
        gap: 1.5rem;
    }
    
    .header__logo-name {
        font-size: 14px;
    }
    
    .header__logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .header__logo-text {
/*        display: none; */
    }
    
    .header__logo {
        gap: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header__contacts {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Эффект при скролле */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 25px rgba(26, 54, 93, 0.15);
}

/*------ Старт Стили для блока контактов в шапке --------*/
/* Стили для блока контактов в шапке */
/* Стили для блока контактов в шапке */
.header__contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    margin-left: 0; /* auto */
    margin-right: 0; /* 1.5rem */
    height: 100%;
}

.header__contact-item {
    display: flex;
    align-items: start;
    height: 20px; /* Уменьшенная высота строки */
}

.header__contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.77rem; /* Уменьшенный размер текста (~12px) */
    transition: var(--transition);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-md);
    height: 100%;
}

.header__contact-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-2px);
}

.header__contact-icon {
    width: 14px; /* Уменьшенный размер иконок */
    height: 14px;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.header__contact-text {
    white-space: nowrap;
    line-height: 1;
}

/* Адаптивность для контактов */
@media (max-width: 1080px) {
    .header__contact-text {
        display: none;
    }
    

}

@media (max-width: 968px) {
    .header__contacts {
        margin-right: 1rem;
        gap: 0.25rem;
    }
    
    .header__contact-link {
        padding: 0.3rem;
    }
    
    .header__contact-icon {
        margin-right: 0;
        width: 16px;
        height: 16px;
    }
    
    .header__contact-item {
        height: 18px;
    }
}

@media (max-width: 768px) {
    .header__contacts {
        display: none;
    }
}

/*------ Финишщ Стили для блока контактов в шапке --------*/
/*------- Стили для бургер-кнопки СТАРТ -------*/
/* Стили для бургер-кнопки */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.burger__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Анимация бургера при активном состоянии */
.burger.active .burger__line--1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger__line--2 {
    opacity: 0;
}

.burger.active .burger__line--3 {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Стили для мобильного меню */
.header__nav {
    display: flex;
    align-items: flex-end; /* Прижимаем навигацию к низу */
    height: 100%; /* Занимает всю высоту контейнера */
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    height: 100%; /* Занимает всю высоту навигации */
    align-items: flex-end; /* Прижимаем пункты к низу */
}

@media (min-width: 991px) {
.nav__contacts-mobile {
display: none}
}

/* Мобильная версия */
@media (max-width: 991px) {
    .burger {
        display: flex;
    }
    
    .header__nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .header__nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav__item {
        display: flex;
        align-items: flex-end; /* Выравниваем пункты по низу */
    }
    
    .nav__link {
        text-decoration: none;
        color: var(--color-dark);
        font-weight: 500;
        font-size: 0.8rem; /* Уменьшенный размер шрифта */
        transition: var(--transition);
        position: relative;
        padding: 0.5rem 0;
        display: flex;
        align-items: flex-end; /* Текст прижимаем к низу */
    }
    
    .nav__link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-accent);
        transition: var(--transition);
    }

    .nav__link:hover {
        color: var(--color-primary);
    }

    .nav__link:hover::after {
        width: 100%;
    }

    /* Увеличиваем область клика для маленьких ссылок */
    .nav__link {
        padding: 0.8rem 0.5rem; /* Больше padding для удобства клика */
        margin: 0 -0.5rem; /* Компенсируем увеличенный padding */
    }    
    
    /* Адаптивность для навигации */
    @media (max-width: 968px) {
        .nav__list {
            gap: 1.5rem;
        }
        
        .nav__link {
            font-size: 0.75rem; /* Еще меньше на планшетах */
            padding: 0.7rem 0.4rem;
            margin: 0 -0.4rem;
        }
    }

    /* Мобильная версия - другие стили */
    @media (max-width: 768px) {
        .nav__list {
            flex-direction: column;
            gap: 0;
            align-items: stretch; /* На мобильном растягиваем */
            height: auto;
        }
        
        .nav__item {
            width: 100%;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            align-items: stretch;
        }
        
        .nav__link {
            display: block;
            padding: 1rem 0;
            color: var(--color-white);
            font-size: 1rem; /* На мобильном увеличиваем обратно */
            margin: 0;
            align-items: center;
        }
        
        .nav__link::after {
            display: none; /* Убираем подчеркивание на мобильном */
        }
        
        .nav__link:hover {
            color: var(--color-accent);
            background: rgba(255,255,255,0.05);
            padding-left: 1rem;
        }
    }    
    
    
    .header__contacts {
        display: none;
    }
    
    /* Контакты в мобильном меню */
    .nav__contacts-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav__contacts-mobile .header__contact-link {
        color: var(--color-white);
        justify-content: flex-start;
        padding: 0.8rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        font-size: 1rem;
    }
    
    .nav__contacts-mobile .header__contact-icon {
        width: 18px;
        height: 18px;
        margin-right: 0.8rem;
    }
    
    .nav__contacts-mobile .header__contact-text {
        display: block;
        font-size: 0.95rem;
    }
    
}

/* Добавка к стилям для улучшения поведения бургера */

/* Состояние body при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* Дополнительные стили для мобильного меню */
@media (max-width: 991px) {
    .header__nav.active ~ main {
        filter: blur(2px);
    }
    
    /* Плавное появление меню */
    .header__nav {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
}

/*------- Стили для бургер-кнопки ФИНИШ ------*/

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -80px; /* Компенсируем padding-top body */
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect fill="%23000000" x="0" y="0" width="100" height="100" opacity="0.05"/><path d="M0 0h100v100H0z" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(30deg);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

.hero__container {
/*    position: relative;
    z-index: 2; */
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 5rem;
    margin-top: 5rem;
    max-width: 800px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    margin-inline: auto
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
    justify-content: center;
}



/* Кнопки */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

.button--primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-gold);
}

.button--primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.button--secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.button--secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.button--small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Services Preview Section */
.services-preview {
    background: var(--color-light);
    padding: 1rem 1rem;
}

.services-preview__title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.services-preview__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch; /* Растягиваем карточки по высоте */
}

.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

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

.service-card__content {
    flex: 1; /* Растягиваем контент на все доступное пространство */
/*    margin-bottom: 1.5rem;*/
}

.service-card__title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

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

.service-card__desc {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.service-card__footer {
    margin-top: auto;
/*    padding-top: 1.5rem; */
    display: flex;
    justify-content: center; /* Центрируем кнопку по горизонтали */
    width: 100%;
}

/*
.service-card__link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.service-card__link:hover {
    gap: 0.7rem;
    color: var(--color-accent-dark);
}

*/

.service-card__link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    min-width: 120px; /* Фиксированная ширина для выравнивания */
}

.service-card__link:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}


.services-preview__cta {
    text-align: center;
    margin: 2rem 0;
}
/*
.service-card__link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.service-card__link:hover::after {
    transform: translateX(3px);
}
*/

.experience-cta {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1.5rem 2.5rem;
    background: var(--color-white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-accent-light);
}

.experience-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    position: relative; /* Для псевдо-элемента */
    border: 3px solid var(--color-accent);
}


.experience-badge__years {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
}

.experience-badge__text {
    font-size: 1.8rem;
    color: var(--color-gray);
/*    white-space: nowrap;*/
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .experience-badge {
        flex-direction: column; /* Вертикально на мобильных */
        gap: 0.5rem;
        padding: 1.2rem 1.5rem;
    }
    
    .experience-badge__years {
        font-size: 1.5rem;
    }
    
    .experience-badge__text {
        font-size: 1rem;
    }
}

/* Дополнительные стили для красоты */
.experience-badge {
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.experience-badge__years {
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

.experience-badge__text {
    opacity: 0.9;
}


/* Alternative: without changing HTML */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card__desc {
    margin-bottom: 2rem; /* Отступ 2rem до кнопки */
    flex: 1; /* Растягиваем описание */
}

.service-card__link {
    margin-top: auto; /* Прижимаем к низу */
    align-self: flex-start; /* Выравниваем по левому краю */
}

/* Адаптивность */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card__link {
        padding: 0.5rem 1.2rem;
        min-width: 110px;
        font-size: 0.9rem;
    }
    
    .services-preview__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card__title {
        font-size: 1.1rem;
    }
    
    .service-card__desc {
        font-size: 0.9rem;
    }
}


/* About Section - Optimized Layout */
.about__container {
    display: grid;
    grid-template-areas: 
        "title"
        "image"
        "content"
        "actions";
    gap: 2rem;
    width: 100%;
}

.about__title {
    grid-area: title;
    text-align: left; /* Заголовок слева */
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0;
    padding: 0 1rem;
}

.about__image-wrapper {
    grid-area: image;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about__image {
    width: 100%;
    height: auto;
    max-width: 400px;
    border: 3px solid var(--color-accent);
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.about__content {
    grid-area: content;
    padding: 0 1rem;
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-dark);
    text-align: left; /* Текст слева */
}

.about__actions {
    grid-area: actions;
    text-align: left; /* Кнопка слева */
    padding: 0 1rem;
}

/* Десктопная версия - ДВЕ КОЛОНКИ */
@media (min-width: 969px) {
    .about__container {
        grid-template-areas: 
            "title title"
            "image content"
            "image actions";
        grid-template-columns: 1fr 1fr; /* Две колонки */
        gap: 3rem;
        align-items: start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .about__title {
        text-align: center;
        margin-bottom: 1rem;
        padding: 0;
        grid-column: 1 / -1; /* Заголовок на всю ширину */
    }
    
    .about__image-wrapper {
        justify-content: flex-start; /* Фото прижимаем к левому краю */
    }
    
    .about__image {
        max-width: 450px;
        margin-left: 0;
    }
    
    .about__content {
        padding: 0;
        padding-right: 2rem;
    }
    
    .about__text {
        text-align: left;
        padding-right: 0;
    }
    
    .about__actions {
        text-align: left;
        padding: 0;
    }
}

/* Планшетная версия */
@media (max-width: 968px) {
    .about__container {
        padding: 0 1.5rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .about__title {
        font-size: 2.2rem;
        text-align: left;
    }
    
    .about__image {
        max-width: 350px;
    }
    
    .about__text {
        text-align: left;
    }
    
    .about__actions {
        text-align: center;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .about__container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .about__title {
        font-size: 2rem;
        text-align: center; /* На мобильных центрируем */
        padding: 0;
    }
    
    .about__image {
        max-width: 300px;
        border-width: 2px;
        margin: 0 auto; /* Центрируем фото на мобильных */
    }
    
    .about__text {
        font-size: 1rem;
        text-align: center; /* На мобильных центрируем */
        padding: 0;
    }
    
    .about__actions {
        text-align: center; /* На мобильных центрируем */
        padding: 0;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .about__container {
        padding: 0 0.5rem;
    }
    
    .about__image {
        max-width: 100%;
        border-radius: 6px;
    }
    
    .about__title {
        font-size: 1.8rem;
    }
}

/* Principles Section - Centered & Compact */
.principles {
    background: var(--color-light);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.principles__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.principles__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
/*    max-width: 600px; */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Principles List - Compact & Centered */
.principles-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem auto;
/*    max-width: 800px; */
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.principles-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.principles-list__number {
    flex-shrink: 0;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-accent);
    background: transparent;
    line-height: 1;
}

.principles-list__content {
    flex: 1;
}

.principles-list__title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 600;
}

.principles-list__desc {
    color: var(--color-gray);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* CTA Block - Centered */
.principles__cta {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-accent-light);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.principles__cta-title {
    font-size: 1.3rem;
    color: var(--color-primary);
/*    margin-bottom: 1.2rem; */
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .principles {
        padding: 3rem 0;
    }
    
    .principles__title {
        font-size: 2rem;
    }
    
    .principles__subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .principles-list {
        padding: 0 1rem;
        max-width: 100%;
        grid-template-columns: 1fr;
    }
    
    .principles-list__item {
        padding: 0.4rem 0;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .principles-list__number {
        font-size: 2.2rem;
    }
    
    .principles__cta {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}

@media (min-width: 769px) {
    .principles-list {
        grid-template-columns: 1fr 1fr;
/*        gap: 0.5rem; */
        gap: 1.5rem;
    }
}

/* Анимации */
.principles-list__item {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

/* ====== СТИЛИ ДЛЯ СЕКЦИИ ПРОЦЕССА ====== */
/* Process Section */
.process__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.process__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem;
    position: relative;
    max-width: 1200px;
}

/* Vertical progress line */
.process__list::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-accent);
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Step number circle 
.process-step__icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 2;
    border: 3px solid var(--color-white);
}*/

.process-step__number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    font-variant-numeric: tabular-nums;
}

.process-step__content {
    flex: 1;
    padding: 0.2rem 0;
}

.process-step__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.process-step__text {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

/* Last step — remove extra margin */
.process-step:last-child {
    margin-bottom: 0;
}

/* CTA block */
.process__cta {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-sm);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.process__cta-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.process__cta .button {
    margin: 0 auto;
}

.process_rezume {
    text-align:left;
    margin-top: 3rem;
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .process__title {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .process__subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .process__list {
/*        padding-left: 1rem; */
    }

    .process__list::before {
/*        left: 20px; */
        left: 1.25rem;
    }

    .process-step {
        gap: 1rem;
    }

    .process-step__icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .process-step__number {
        font-size: 1.2rem;
    }

    .process-step__title {
        font-size: 1.2rem;
    }

    .process-step__text {
        font-size: 0.95rem;
    }

    .process__cta {
        padding: 1.5rem 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .process__title {
        font-size: 2rem;
    }

    .process-step__title {
        font-size: 1.1rem;
    }
}


/* Обертка для всей шкалы */
.process__list-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

/* Вертикальная линия по центру */
.process__list-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-accent);
    opacity: 0.3;
    transform: translateX(-50%);
    z-index: 0;
}

/* Элемент шага — теперь двухколоночный */
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1;
    width: 100%;
}

.process-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Левая часть — иконка и описание шага */
.process-step__icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 2;
    border: 3px solid var(--color-white);
    position: relative;
/*     left: -10px; сдвигаем к линии */
}

/* Кружки с номерами — центрированные на странице how-i-work */
.process-step__icon-wrapper--centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
/*    top: 1.5rem;  сдвиг вниз, чтобы не наезжало на заголовок */
    margin: 0;
}

.process-step__content {
    flex: 1;
    padding: 0.2rem 0;
    max-width: 1200px;
}

/* Правая часть — список дел */
.process-step__cases {
    flex: 1;
    padding: 0.5rem 0 0 2rem;
    border-left: 1px dashed var(--color-gray-light);
    margin-left: 2rem;
    align-self: stretch;
}

.process-step__cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-step__case-item {
    font-size: 0.95rem;
    color: var(--color-gray);
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.process-step__case-item:last-child {
    border-bottom: none;
}

.process-step__cases-empty {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    font-style: italic;
}

/* Адаптив: на мобильных — колонки друг под другом */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .process__list-wrapper::before {
        left: 24px;
        transform: none;
    }

    .process-step__icon-wrapper {
        left: 0;
    }

    .process-step__cases {
        margin-left: 0;
        padding-left: 1rem;
        border-left: none;
        border-top: 1px dashed var(--color-gray-light);
        padding-top: 1rem;
        width: 100%;
    }
}

/* ====== СТИЛИ ДЛЯ СЕКЦИИ FAQ ====== */
.faq {
    background: var(--color-light);
}

.faq__title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.faq__subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Сетка для двух колонок */
.faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.2);
}

.faq-item[open] {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-gold);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    transition: var(--transition);
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question span {
    flex: 1;
    margin-right: 1rem;
}

.faq-item__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--color-accent);
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item__answer-content {
    color: var(--color-dark);
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item__answer-content strong {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.faq-cta {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-accent-light);
    max-width: 500px;
    margin: 0 auto;
}

.faq-cta p {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Анимация открытия */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item[open] .faq-item__answer {
    animation: fadeIn 0.3s ease;
}

/* Две колонки на больших экранах */
@media (min-width: 992px) {
    .faq__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Чтобы вопросы в колонках были одинаковой высоты */
    .faq__grid {
        align-items: start;
    }
}

/* Адаптивность для планшетов и мобильных */
@media (max-width: 768px) {
    .faq__grid {
        margin-bottom: 2rem;
        gap: 0.8rem;
    }
    
    .faq-item__question {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .faq-item__answer {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .faq-cta p {
        font-size: 1rem;
    }
}

/* Для очень маленьких мобильных */
@media (max-width: 480px) {
    .faq-item__question {
        padding: 1rem;
    }
    
    .faq-item__answer {
        padding: 0 1rem 1rem 1rem;
    }
    
    .faq-item__question span {
        margin-right: 0.8rem;
        font-size: 0.95rem;
    }
}

/* ====== СТИЛИ ДЛЯ ФУТЕРА ====== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 3rem 0 1rem 0;
}

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

.footer__section {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer__logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    object-fit: cover;
    background-color: #fff;
}

.footer__logo-text {
    display: flex;
    flex-direction: column;
}

.footer__logo-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.footer__logo-name {
    font-size: 1rem;
    color: var(--color-accent);
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer__contact-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

.footer__contact-link,
.footer__contact-text {
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.5;
    transition: var(--transition);
}

.footer__contact-link:hover {
    color: var(--color-accent);
}

.footer__contact-text {
    opacity: 0.9;
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__link {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer__link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer__legal-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__legal-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright p,
.footer__development p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (min-width: 768px) {
    .footer__content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
    
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .footer {
        padding: 2rem 0 1rem 0;
        text-align: center;
    }
    
    .footer__content {
        gap: 2rem;
    }
    
    .footer__logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer__contact-item {
        display: flex;
        align-items: center;
        justify-content: left;
        gap: 0.8rem;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__title {
        text-align: center;
    }
    
    .footer__nav {
        align-items: center;
    }
    
    .footer__legal-info {
        text-align: center;
    }
}

/* Темная тема для всего футера .footer span*/
.footer a,
.footer p
 {
    color: var(--color-white);
}

.footer .button {
    background: var(--color-accent);
    color: var(--color-primary);
}


/* Плавный переход к контактам */
.footer .button:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.transition-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.transition-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.transition-content h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.transition-content p {
    color: var(--color-gray);
    line-height: 1.6;
}

/* Элегантный фон для последней секции */
/* Просто и элегантно - золотой градиент */
.section--elegant {
    background: 
        linear-gradient(135deg, #ffffff 0%, #faf8f0 100%),
        linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.03) 50%, transparent 100%);
    position: relative;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section--elegant::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}


/* Breadcrumbs Styles */
/* Breadcrumbs Styles */
.breadcrumbs {
    position: relative;
/*     top: 80px; Под шапкой */
/*    background: var(--color-light);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1); */
    z-index: 2;
    padding: 0.6rem 0;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--color-light);
}

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

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

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

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "|";
    margin: 0 0.5rem;
    color: var(--color-light);
    user-select: none;
}

.breadcrumbs__item:last-child {
    color: var(--color-light);
    font-weight: 600;
    pointer-events: none;
}

.breadcrumbs__item:last-child a {
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumbs-container {
        top: 70px;
        padding: 0.5rem 0;
        
    }

    .breadcrumbs__list {
        font-size: 0.9rem;
        display: none;
    }

    .breadcrumbs__item + .breadcrumbs__item::before {
        margin: 0 0.4rem;
    }
}

/* Стили страницы перечня УСЛУГ и пр.*/
.hero__list-page {
    min-height: 70vh;
}

.hero__title__list-page {
    font-size: clamp(2.5rem, 3vw, 4rem);
}

/* Стили для списка файлов */
.files-list {
    margin: 2rem 0;
}

.file-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.file-title {
    font-family: 'Georgia', serif;
    color: #1a365d;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.file-title a {
    color: inherit;
    text-decoration: none;
}

.file-title a:hover {
    color: #d4af37;
    text-decoration: underline;
}

.file-description {
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* SEO текст с призывом к действию */
.seo-content {
    padding: 4rem 0;
    background: var(--color-light);
}

.seo-text {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.7;
}

.seo-text h2 {
    font-family: 'Georgia', serif;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.seo-text h3 {
    font-family: 'Georgia', serif;
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.seo-text p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.seo-text ul {
    color: var(--color-gray);
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.seo-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.seo-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-accent-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .seo-text {
        padding: 0 1rem;
    }
    
    .seo-text h2 {
        font-size: 1.7rem;
    }
    
    .seo-text h3 {
        font-size: 1.3rem;
    }
    
    .seo-text p {
        font-size: 1rem;
    }
}


/* Основная структура с сайдбаром */
.main-content-with-sidebar {
    width: 100%;
}

.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Десктопная версия */
@media (min-width: 1024px) {
    .content-sidebar-layout {
        grid-template-columns: 1fr 350px;
        gap: 0.5rem;
        align-items: start;
    }
}

.main-content-area {
    width: 100%;
}

/* Стили сайдбара */
.sidebar-wrapper {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: 0rem 1rem 2rem 1rem;
    height: fit-content;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .sidebar-wrapper {
        position: sticky;
        top: 4rem;
    }
}

/* Горизонтальный аккордеон на мобильных */
@media (max-width: 1023px) {
    .sidebar-wrapper {
        order: -1;
        position: static;
    }
    
    /* Аккордеон для мобильных */
    .sidebar-accordion {
        display: block;
    }
    
    .sidebar-accordion__header {
        background: var(--color-primary);
        color: white;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-md);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .sidebar-accordion__content {
        display: none;
        padding: 1rem 0;
    }
    
    .sidebar-accordion__content--open {
        display: block;
    }
}

/* Hero секция на всю ширину */
.hero__list-page {
    width: 100%;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

/* Стили для аккордеона */
.accordion-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: var(--color-primary);
        color: white;
        border: none;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-md);
        cursor: pointer;
        font-size: 1.1rem;
    }
    
    .accordion-icon {
        transition: transform 0.3s ease;
    }
    
    .accordion-icon--rotated {
        transform: rotate(180deg);
    }
    
    .sidebar-content {
        display: none;
        padding: 1rem 0;
    }
    
    .sidebar-content--visible {
        display: block;
    }
}

/* ======================
   СТИЛИ ДЛЯ СТРАНИЦЫ "С ЧЕГО НАЧАТЬ?" — АДАПТИРОВАНО ПОД ВАШ ДИЗАЙН
   ====================== */

/* Общие утилиты */

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- Аккордеон FAQ --- */
.accordion details {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-light);
    box-shadow: var(--shadow-sm);
}

.accordion summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-family: 'Georgia', serif;
    color: var(--color-primary);
    cursor: pointer;
    outline: none;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
    list-style: none; /* Убираем стандартный маркер */
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary:hover {
    background: #edf2f7;
    color: var(--color-accent);
}

.accordion .accordion-content {
    padding: 1rem 1.25rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    font-family: 'Georgia', serif;
    color: var(--color-dark);
    line-height: 1.6;
}

/* --- Интерактивный опрос --- */
.interactive-quiz {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.interactive-quiz .form-group {
    margin-bottom: 1.25rem;
}

.interactive-quiz label {
    display: block;
    margin: 0.5rem 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-dark);
    font-family: 'Georgia', serif;
}

.interactive-quiz input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--color-accent);
}

/* --- Результат опроса --- */
.result-box {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 1rem;
    background: #f0f9ff;
    border-left: 4px solid var(--color-accent);
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.result-box strong {
    color: var(--color-primary);
}

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

/* --- Форма заявки --- */
.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-family: 'Georgia', serif;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: var(--transition);
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form .consent {
    margin-top: 1rem;
}

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

.alt-contacts {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.alt-contacts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alt-contacts li {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-family: 'Georgia', serif;
}

.alt-contacts a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.alt-contacts a:hover {
    text-decoration: underline;
}

/* --- Преимущества консультации (сетка) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.benefit .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.benefit h3 {
    margin: 0.5rem 0 1rem;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.benefit p {
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
    font-family: 'Georgia', serif;
}

/* --- Отзывы --- */
.testimonials-section {
    margin: 3rem 0;
    background: var(--color-light);
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
}

.testimonials-section h2 {
    text-align: center;
    color: var(--color-primary);
    font-family: 'Georgia', serif;
    margin-bottom: 2rem;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-dark);
    font-family: 'Georgia', serif;
}

.testimonial cite {
    display: block;
    text-align: right;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--color-gray);
    font-family: 'Georgia', serif;
}

/* --- Финальный CTA --- */
.final-cta {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-xl);
    margin: 3rem 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-sm);
}

.final-cta h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: 'Georgia', serif;
}

.final-cta .button--large {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* --- Блок адвоката в сайдбаре --- */
.sidebar-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.sidebar-card__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.attorney-photo {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-accent);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.attorney-photo:hover {
    transform: scale(1.03);
}

.attorney-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-dark);
    font-family: 'Georgia', serif;
}

.attorney-bio strong {
    color: var(--color-primary);
}

/* Кнопка "Подробнее обо мне" */
.sidebar-card .button--outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.sidebar-card .button--outline:hover {
    background: var(--color-accent);
    color: white;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__actions .button {
        width: 100%;
        text-align: center;
    }

    .content-sidebar-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-wrapper {
        margin-top: 2rem;
        order: -1;
    }

    .final-cta {
        padding: 2rem 1rem;
    }
}

/* Аккордион services */

.accordion {
    margin: 2rem 0;
}

.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: #f8fafc;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 1000px;
}

.accordion-pages {
    padding: 1.5rem;
}

.accordion-page {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.accordion-page:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.page-link h4 {
    margin: 0 0 0.5rem 0;
    color: #3b82f6;
}

.page-link p {
    margin: 0;
    color: #6b7280;
}

.accordion-empty {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Вложенные подразделы */
.subsections {
    padding: 1rem 1.5rem;
}

.subsection {
    margin-bottom: 0.5rem;
}

.subsection-header {
    padding: 1rem;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.subsection-content {
    padding: 1rem;
    background: white;
}

.subsection-page {
    display: block;
    padding: 0.5rem 0;
    color: #3b82f6;
    text-decoration: none;
}

.subsection-page:hover {
    text-decoration: underline;
}

.subsection-empty {
    color: #94a3b8;
    font-style: italic;
}

/* Аккордион универсальный */
/* Стили для простого списка страниц */
.pages-list {
    margin: 2rem 0;
}

.page-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.page-item:hover {
    background: #f8fafc;
}

.page-link h3 {
    margin: 0 0 0.5rem 0;
    color: #3b82f6;
}

.page-link p {
    margin: 0;
    color: #6b7280;
}

.empty-section {
    padding: 3rem;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
}

.section-content {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Стили для отсутствующих страниц */
.timeline-step--disabled {
    opacity: 0.6;
}

.timeline-step--disabled .disabled-link {
    color: #94a3b8;
    pointer-events: none;
    text-decoration: none;
}

.timeline-warning {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 4px;
    color: #92400e;
    font-size: 0.8rem;
}

.timeline-warning small {
    font-size: 0.8rem;
}

/* ======  СЕКЦИЯ ПОЧЕМУ КЛИЕНТЫ ВЫБИРАЮТ МЕНЯ ====== */
/* Benefits Section */

.benefit-card__icon {
    margin-bottom: 20px;
    color: #6b7280; /* Серый цвет для иконок */
    text-align: center;
}

.benefit-card__icon svg {
    width: 64px;
    height: 64px;
}

.service-card__title--centered {
    text-align: center;
}

@media (max-width: 768px) {

    .benefit-card__icon svg {
        width: 40px;
        height: 40px;
    }
}


/*============== ТОЖЕ ХЕРО ОБ АДВОКАТЕ =====================*/



.hero__container__about {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 1.5fr; /* Фото занимает меньше места */
    gap: 4rem; /* Солидный отступ между фото и текстом */
    align-items: center;
}

/* Стили для изображения */
.hero__image-wrapper {
    position: relative;
}
.hero__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    /* Можно добавить тонкую золотую рамку для акцента */
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%) border-box;
}

/* Стили для контента */
/*.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/*.hero__title {
    font-family: serif; /* Используем шрифт с засечками по умолчанию для "журнального" заголовка */
/*    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Адаптивный размер */
/*    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin: 0;
} */

/*.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin: 0;
}

/* Блок с цифрами */
.hero__stats {
    display: flex;
    gap: 2rem;
    padding: 0 2rem 3rem 2rem;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hero__stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent); /* Золотой акцент для цифр */
    line-height: 1;
}
.hero__stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 0.25rem;
}

/* Кнопка */
.hero__button {
    display: inline-block;
    width: fit-content; /* Ширина по содержимому */
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-primary-dark);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.hero__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-primary);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
/*    .hero__container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
*/
    .hero__stats {
        justify-content: center;
    }

    .hero__button {
        align-self: center;
    }

    .hero__image {
        max-width: 400px; /* Ограничиваем ширину фото на мобильных */
        margin: 0 auto;
    }
}

/* ========= Специализация ОБ АДВОКАТЕ ========= */

.specialization__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto; /* Центрируем и добавляем отступ снизу */
}

.specialization {
    padding: 4rem 1rem;
    background-color: var(--color-white);
}

.specialization__container {
    max-width: 1200px;
    margin: 0 auto;
}

.specialization__title {
    font-family: serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.specialization__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.specialization__item {
    background: var(--color-light);
    padding: 2rem;
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.specialization__item-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}

.specialization__item-text {
    color: var(--color-dark);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .specialization__list {
        grid-template-columns: 1fr;
    }
    
    .specialization__title {
        font-size: 2rem;
    }
}

/* ====== Стили профиля ====== */    

.profile {
    padding: 4rem 1rem;
    background-color: var(--color-light);
}

.profile__container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile__title {
    font-family: serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

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

.profile__text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-dark);
}

.profile__principles {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 4px solid var(--color-accent);
}

.profile__principles-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.profile__principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile__principles-item {
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    color: var(--color-dark);
}

.profile__principles-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .profile__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile__title {
        font-size: 2rem;
    }
    
    .profile__principles {
        padding: 1.5rem;
    }
}