/* ============================================================
   СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ
   (stoimost, about, uslugi, contacts и т.д.)
   ============================================================ */

/* Узкий контейнер для текстовых страниц */
.container--narrow { max-width: 880px; }

/* Заголовок страницы — тёмный блок сверху */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}
.page-hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.04;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

/* Хлебные крошки */
.breadcrumbs {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--silver-dim);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: var(--silver-dim);
    transition: color 0.3s;
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span {
    color: var(--silver-dim);
    opacity: 0.5;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 14px;
}
.page-subtitle {
    font-size: 16px;
    color: var(--silver);
    font-weight: 400;
    line-height: 1.5;
    max-width: 720px;
}

/* Основной контент страницы */
.page-content {
    background: var(--bg-white);
    padding: 72px 0 100px;
}

.content-block {
    margin-bottom: 36px;
}
.content-block:last-of-type { margin-bottom: 48px; }

.content-block p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 16px;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block p strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Ведущий абзац — крупный, выделенный */
.lead {
    font-size: 19px !important;
    line-height: 1.65 !important;
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 24px 28px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
}

/* Заголовок блока внутри контента */
.block-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 22px;
}

/* Списки */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.content-list li {
    position: relative;
    padding: 12px 0 12px 36px;
    font-size: 17px;               /* было 16px */
    line-height: 1.7;
    color: var(--text-dark);
    border-bottom: 1px solid var(--line-light);
}
.content-list li:last-child {
    border-bottom: none;
}

/* Список с галочкой (для "что мы делаем") */
.content-list--check li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
}
.content-list--check li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 22px;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

/* Список-предупреждение (для минусов) */
.content-list--warn li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background: rgba(184, 169, 122, 0.15);
    color: var(--gold-dark);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Финальный блок (выделенный, итоговый) */
.content-final {
    margin: 40px 0 36px;
    padding: 32px 32px;
    background: var(--navy);
    color: var(--silver);
    border-left: 3px solid var(--gold);
}
.content-final p {
    color: var(--silver);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.content-final p:last-child { margin-bottom: 0; }
.content-final-strong {
    color: var(--gold) !important;
    font-family: 'Playfair Display', serif;
    font-size: 22px !important;
    font-weight: 600;
    line-height: 1.4 !important;
    margin-top: 8px !important;
}

/* CTA-кнопка в конце страницы */
.content-cta {
    text-align: center;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line-light);
}

/* Адаптив для внутренних страниц */
@media (max-width: 768px) {
    .page-hero { padding: 48px 0 40px; }
    .page-title { font-size: 32px; }
    .page-subtitle { font-size: 14px; }
    .page-content { padding: 48px 0 64px; }
    .lead { font-size: 16px !important; padding: 20px 22px; }
    .block-title { font-size: 22px; }
    .content-list li { font-size: 14px; padding-left: 32px; }
    .content-final { padding: 24px 22px; }
    .content-final-strong { font-size: 18px !important; }
}

/* Кнопка скачать презентацию в заголовке страницы */
.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.page-hero-text { flex: 1; min-width: 0; }
.btn-pres {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 8px;
}
.btn-pres:hover {
    background: var(--gold);
    color: var(--navy);
}
.btn-pres svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Кнопка презентации в хлебных крошках — только на мобильном */
.btn-pres-mobile { display: none; }

/* На мобильном кнопка переезжает в строку хлебных крошек справа */
@media (max-width: 768px) {
    .page-hero .container {
        display: flex;
        flex-direction: column;
    }
    .page-hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    /* Большую кнопку из заголовка скрываем */
    .page-hero-row .btn-pres {
        display: none;
    }
    /* Строка хлебных крошек с кнопкой справа */
    .breadcrumbs {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }
    .breadcrumbs-links {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
        flex: 1;
    }
    /* Маленькая кнопка в строке хлебных крошек */
    .breadcrumbs .btn-pres-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid var(--gold);
        color: var(--gold);
        font-family: 'Inter', sans-serif;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 7px 12px;
        text-decoration: none;
        flex-shrink: 0;
        white-space: nowrap;
        transition: all 0.3s ease;
    }
    .breadcrumbs .btn-pres-mobile:active {
        background: var(--gold);
        color: var(--navy);
    }
    .breadcrumbs .btn-pres-mobile svg {
        width: 10px; height: 10px; fill: currentColor; flex-shrink: 0;
    }
}

/* Политика персональных данных */
.pd-block {
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
    padding: 20px 24px;
    margin-top: 8px;
}
.pd-block p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 8px;
}
.pd-block p:last-child { margin-bottom: 0; }
.pd-block a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.pd-block a:hover { color: var(--gold); }
.pd-date {
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--line-light);
    padding-top: 16px;
    margin-top: 8px;
}
.pd-date p { margin-bottom: 4px; }
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 16px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-light);
}

/* ============================================================
   СТРАНИЦЫ ЮРИСТОВ (about-morozov, about-kanunnikov, about-sedogin)
   ============================================================ */

.person-intro {
    background: var(--bg-white);
    padding: 40px 0 0 !important;  /* переопределяем .section padding: 100px 0 */
}
.person-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Фото юриста */
.person-photo {
    position: relative;
    display: block;
}
.person-photo > img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--navy);
    filter: grayscale(15%);
}

/* Контакты-иконки под фото */
.person-contacts {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
.person-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.person-contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: none;
}
.person-contact-icon:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Информация рядом с фото */
.person-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
    font-weight: 600;
}
.person-lead {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 18px;
}
.person-edu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}
.person-extra {
    margin-top: 14px;
}
.person-extra-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
    font-weight: 600;
}
.person-extra p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}
.person-link {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.3s;
}
.person-link:hover {
    color: var(--gold);
}

/* Сетка принципов (4 шт для Морозова) */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 8px;
}
.principle-item {
    padding: 28px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
    transition: all 0.3s ease;
}
.principle-item:hover {
    background: var(--bg-white);
    box-shadow: 0 8px 24px rgba(18,25,42,0.08);
}
.principle-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 12px;
}
.principle-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 12px;
}
.principle-item p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Сетка направлений (для Канунникова и Седогина) */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.direction-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 28px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
    transition: all 0.3s ease;
}
.direction-item:hover {
    background: var(--navy);
    border-left-color: var(--gold);
}
.direction-item:hover .direction-num { color: var(--gold-light); }
.direction-item:hover h3 { color: var(--white); }
.direction-num {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.3s;
}
.direction-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    transition: color 0.3s;
}

/* Inline media-grid (компактнее чем на главной) */
.media-grid--inline {
    margin-top: 8px;
    border: 1px solid var(--line-light);
}

/* Финальный блок заголовок */
.content-final-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 700;
}

/* Финальный список (внутри тёмного блока) */
.final-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}
.final-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--silver);
    font-size: 15px;
    line-height: 1.65;
}
.final-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 12px;
    height: 1px;
    background: var(--gold);
}
.final-list strong {
    color: var(--gold);
}

/* Скетч Кремля на странице Морозова —
   справа в край страницы, за блоком "Ключевые принципы"
   ✅ ФИНАЛЬНЫЕ ЗНАЧЕНИЯ согласованы с заказчиком */
.person-kremlin-sketch {
    position: absolute;
    right: -60px;
    bottom: 1600px;
    width: 600px;
    height: auto;
    opacity: 0.40;
    pointer-events: none;
    z-index: 0;
    background: none;
}
/* Поднимаем контент поверх скетча */
.person-intro .container {
    position: relative;
    z-index: 1;
}

/* Скетч ладьи на странице "Наша стоимость" —
   справа в край, сверху от первого абзаца и уходит вниз
   ✅ ФИНАЛЬНЫЕ ЗНАЧЕНИЯ согласованы с заказчиком */
.stoimost-sketch {
    position: absolute;
    right: -60px;
    top: 20px;
    width: 700px;
    height: auto;
    opacity: 0.40;
    pointer-events: none;
    z-index: 0;
    background: none;
}
@media (max-width: 1100px) {
    .principles-grid { grid-template-columns: 1fr; }
    .directions-grid { grid-template-columns: 1fr; }
    .person-grid { grid-template-columns: 320px 1fr; gap: 40px; }

    /* Уменьшаем картинку на планшете */
    .service-form-grid { grid-template-columns: 1fr 280px; gap: 32px; }
    .illustration-img { max-width: 280px; }
}
@media (max-width: 768px) {
    .person-grid { grid-template-columns: 1fr; gap: 32px; }
    .person-photo { max-width: 320px; margin: 0 auto; }
    .person-lead { font-size: 18px; }
    .principles-grid { gap: 16px; }
    .principle-item { padding: 20px; }
    .principle-num { font-size: 24px; }
    .principle-item h3 { font-size: 17px; }
    .direction-item { padding: 18px 20px; gap: 14px; }
    .direction-num { font-size: 22px; }
    .direction-item h3 { font-size: 15px; }
    .content-final-title { font-size: 19px; }
    .final-list li { font-size: 14px; }
}

/* ============================================================
   КОНЕЦ СТИЛЕЙ СТРАНИЦ ЮРИСТОВ
   ============================================================ */

/* ============================================================
   СТРАНИЦЫ УСЛУГ (uslugi-sport, uslugi-labor и т.д.)
   ============================================================ */

/* Блок-разделитель с CTA "Наша стоимость" */
.content-cost-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 36px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
    margin: 48px 0;
}
.cost-cta-text {
    flex: 1;
}
.cost-cta-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}
.cost-cta-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.content-cost-cta .btn {
    flex-shrink: 0;
}

/* Форма заявки на странице услуги (на белом фоне) */
.service-form-wrap {
    padding: 40px 36px;
    background: var(--bg-white);
    border: 1px solid var(--line-light);
    border-top: 3px solid var(--gold);
}
.service-form-subtitle {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin-bottom: 28px !important;
    margin-top: -8px !important;
}

/* Сетка: форма слева + декоративная картинка справа */
.service-form-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    align-items: stretch;        /* картинка растягивается по высоте всей левой колонки */
}

/* Левая колонка с заголовком и формой */
.service-form-left {
    display: flex;
    flex-direction: column;
}

/* Декоративная картинка справа от формы — крупно, без фона */
.service-form-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.illustration-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    background: none;
    opacity: 0.95;
}

/* Форма со светлым фоном — отличается от тёмной на главной */
.contact-form.contact-form--light {
    max-width: 100% !important;
    margin: 0 !important;
    display: grid;
    gap: 14px;
    align-items: start;
    justify-items: start;       /* всё прижато к левому краю */
}
.contact-form.contact-form--light input,
.contact-form.contact-form--light select,
.contact-form.contact-form--light textarea {
    background: var(--bg-light) !important;
    border: 1px solid var(--line-light) !important;
    color: var(--text-dark) !important;
    padding: 14px 18px !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    max-width: 560px;            /* поля занимают левую часть, не на всю ширину */
}
.contact-form.contact-form--light input::placeholder,
.contact-form.contact-form--light textarea::placeholder {
    color: var(--text-muted) !important;
}
.contact-form.contact-form--light input:focus,
.contact-form.contact-form--light select:focus,
.contact-form.contact-form--light textarea:focus {
    border-color: var(--gold) !important;
    background: var(--bg-white) !important;
}
.contact-form.contact-form--light textarea {
    min-height: 100px;
    resize: vertical;
}
.contact-form.contact-form--light .form-checkbox {
    color: var(--text-muted);
    max-width: 560px;
    justify-self: start;         /* чекбокс по левому краю */
    text-align: left;
}
.contact-form.contact-form--light .form-checkbox a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-form.contact-form--light .form-checkbox a:hover {
    color: var(--gold);
}
.contact-form.contact-form--light button[type="submit"] {
    justify-self: start;         /* кнопка по левому краю */
    margin-top: 8px;
}

/* Адаптив для страниц услуг */
@media (max-width: 768px) {
    .content-cost-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px 22px;
    }
    .cost-cta-text h3 { font-size: 19px; }
    .service-form-wrap { padding: 28px 22px; }

    /* На мобильном картинка под формой и поменьше */
    .service-form-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .illustration-img {
        max-width: 220px;
        margin: 0 auto;
    }

    /* На мобильном кнопка "Отправить заявку" по центру (на десктопе остаётся слева) */
    .contact-form.contact-form--light button[type="submit"] {
        justify-self: center;
        margin-top: 12px;
    }
}

/* ============================================================
   КОНЕЦ СТИЛЕЙ СТРАНИЦ УСЛУГ
   ============================================================ */

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

:root {
    --navy:        #12192A;
    --navy-mid:    #131B2E;
    --navy-card:   #1A2540;
    --gold:        #B8A97A;
    --gold-light:  #D4C99A;
    --gold-dark:   #8A7D58;
    --silver:      #C8CDD8;
    --silver-dim:  #8A919E;
    --white:       #F5F6F8;
    --bg-light:    #F2F3F5;
    --bg-white:    #FAFBFC;
    --text-dark:   #12192A;
    --text-muted:  #5A6070;
    --line-light:  #DDE0E6;
    --line-dark:   rgba(200, 205, 216, 0.12);
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--text-dark); background: var(--bg-white); overflow-x: clip; max-width: 100vw; }

/* Скрываем мобильную вторую строку шапки на десктопе */
.logo-name-row { display: none; }
img { max-width: 100%; display: block; }
img { background-color: rgba(18, 25, 42, 0.05); background-image: linear-gradient(135deg, rgba(18,25,42,0.03) 25%, transparent 25%, transparent 50%, rgba(18,25,42,0.03) 50%, rgba(18,25,42,0.03) 75%, transparent 75%); background-size: 20px 20px; min-height: 1px; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: -0.005em; line-height: 1.15; }

.section-title { font-size: 46px; text-align: center; margin-bottom: 16px; color: var(--text-dark); position: relative; padding-bottom: 28px; font-weight: 700; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 48px; height: 1px; background: var(--gold); }
.section-title.light { color: var(--white); }
.section-title.light::after { background: var(--gold); }
.section-subtitle { text-align: center; font-size: 14px; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 60px; margin-top: -4px; }

/* Кнопки */
.btn { display: inline-block; padding: 16px 36px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-light { background: transparent; color: var(--silver); border-color: var(--silver-dim); }
.btn-outline-light:hover { border-color: var(--silver); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover { background: transparent; color: var(--navy); }

/* Кнопка "Узнать про услугу" — крупная тёмно-синяя */
.btn-service {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    padding: 16px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-service:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ===== ШАПКА ===== */
.header { background: var(--navy); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line-dark); }
.header-top { padding: 16px 0; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.logo { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.logo-img { height: 72px; width: auto; background: none; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--gold); letter-spacing: 0.22em; line-height: 1.1; display: block; }

/*
   "ИСКУССТВО ПРАВА" — КАПСЛОК, по центру под "ЕВГЕНИЙ МОРОЗОВ"
   Без растягивания, обычное центрирование.
   Полоски "—" по бокам идут вместе с текстом.
*/
.logo-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-top: 5px;
    display: block;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}

.nav-top { display: flex; gap: 36px; justify-content: center; flex: 1; }
.nav-top a { font-size: 13px; font-weight: 500; color: var(--silver); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-top a:hover { color: var(--gold); }

/* КОНТАКТЫ В ШАПКЕ — телефон + пометка + email */
.header-contacts {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.header-phone { font-size: 17px; font-weight: 600; color: var(--white); letter-spacing: 0.04em; }
.header-phone:hover { color: var(--gold); }
.header-phone-note {
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--silver-dim);
    font-style: normal;
    margin-bottom: 2px;
}
.header-email {
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.04em;
}
.header-email:hover { color: var(--gold-light); }
.header-cities { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--silver-dim); margin-top: 4px; }

/* Бургер */
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; z-index: 110; position: relative; }
.burger span { display: block; width: 28px; height: 2px; background: var(--silver); transition: all 0.3s ease; transform-origin: center; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--gold); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--gold); }

/* Главное меню */
.nav-main { background: var(--navy-card); border-top: 1px solid var(--line-dark); }
.nav-main ul { display: flex; justify-content: space-between; }
.nav-main a { display: block; padding: 18px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-dim); position: relative; white-space: nowrap; transition: color 0.3s; }
.nav-main a::after { content: ''; position: absolute; bottom: 10px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s ease; }
.nav-main a:hover { color: var(--gold); }
.nav-main a:hover::after { width: 100%; }

/* Скрываем мобильные пункты на десктопе */
.nav-mobile-only { display: none; }

/* ===== HERO ===== */
.hero { background: var(--navy); color: var(--white); padding: 60px 0 0; position: relative; overflow: hidden; min-width: 320px; }
.hero-noise { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); background-size: 200px 200px; opacity: 0.04; pointer-events: none; }
/* Световые блики убраны по запросу заказчика */
.hero-lines { display: none; }
/*
   СКЕТЧ В HERO (здание с колоннами) — за спиной Морозова
   КАК МЕНЯТЬ: width = размер, right = смещение от правого края, bottom = смещение вниз
*/
.hero-sketch {
    position: absolute;
    right: 60px;
    bottom: -120px;
    width: 720px;
    height: auto;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
    background: none;
}

.hero .container { display: grid; grid-template-columns: 55% 45%; gap: 20px; align-items: flex-end; position: relative; z-index: 2; min-width: 0; }
.hero-content { padding-bottom: 60px; }

.hero-brand-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.hero-brand-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; letter-spacing: 0.3em; color: var(--silver-dim); text-transform: uppercase; }
.hero-brand-sep { color: var(--silver-dim); font-size: 14px; opacity: 0.5; }
.hero-brand-sub { font-family: 'Playfair Display', serif; font-size: 14px; letter-spacing: 0.15em; color: var(--silver-dim); font-weight: 400; }

.hero-label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }

.hero h1 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--white); margin-bottom: 28px; line-height: 1.15; font-size: 48px; }
.hero h1 .h1-sub { display: block; font-size: 36px; color: var(--silver); line-height: 1.25; margin-top: 8px; font-weight: 500; }

.hero-features { margin-bottom: 48px; }
.hero-features li { padding: 14px 0 14px 28px; position: relative; font-size: 15px; color: var(--silver); border-bottom: 1px solid var(--line-dark); }
.hero-features li:last-child { border-bottom: none; }
.hero-features li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 1px; background: var(--gold); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image { display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 3; }
.hero-image img { width: 100%; max-width: 680px; height: auto; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6)); display: block; margin: 0 auto; background: none; }

/* Секции */
.section { padding: 100px 0; }

/* ===== НАША ФИЛОСОФИЯ ===== */
.philosophy { background: var(--bg-white); }
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}
.philosophy-card {
    padding: 44px 36px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    background: var(--bg-white);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.philosophy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    z-index: 0;
}
.philosophy-card:hover::before { transform: scaleY(1); }
.philosophy-card > * { position: relative; z-index: 1; }

.phil-num {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--line-light);
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}
.philosophy-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 16px;
    transition: color 0.4s ease;
}
.philosophy-card p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
    text-align: justify;
    hyphens: auto;
    transition: color 0.4s ease;
}
.philosophy-card p:last-child { margin-bottom: 0; }

.philosophy-card:hover .phil-num { color: var(--gold); }
.philosophy-card:hover h3 { color: var(--white); }
.philosophy-card:hover p { color: var(--silver); }

/* ===== КЛЮЧЕВЫЕ УСЛУГИ ===== */
.services { background: var(--bg-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--line-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}
.service-card:hover {
    border-color: var(--navy);
    box-shadow: 0 16px 40px rgba(18, 25, 42, 0.12);
    transform: translateY(-4px);
}

/* Картинка-заглушка */
.service-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--navy);
    overflow: hidden;
    position: relative;
}
.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.85;
    transition: all 0.4s ease;
    background: var(--navy);
}
.service-card:hover .service-card-img img {
    opacity: 1;
    transform: scale(1.05);
}

.service-card-content {
    padding: 32px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}
.service-card-title-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Название услуги — крупно, золотым, выделено */
.service-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--navy);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.005em;
}
/* Подзаголовок услуги — мельче, без выделения, без курсива */
.service-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}
/* При наведении карточки — текст остаётся тёмным, меняется только тень и подъём */

/* Финальная подпись под услугами */
.services-tagline {
    margin-top: 80px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 0;
    border-top: 1px solid var(--line-light);
    font-style: italic;
}

/*
   СКЕТЧ ЗАСЕКИНА в секции формы (внизу — где оставить заявку)
   Крупно, справа, не у самого края.
   ✅ ФИНАЛЬНЫЙ РАЗМЕР: width: 600px (согласовано с заказчиком)
*/
.form-sketch {
    position: absolute;
    right: 8%;
    bottom: 40px;
    left: auto;
    width: 600px;
    max-width: 55%;
    height: auto;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    background: none;
}

/* Видео */
.video-section { background: var(--bg-light); }
.video-placeholder { max-width: 960px; margin: 60px auto 0; aspect-ratio: 16/9; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--silver-dim); border: 1px solid var(--line-dark); cursor: pointer; transition: border-color 0.3s; }
.video-placeholder:hover { border-color: var(--gold); }
.video-play { width: 72px; height: 72px; border: 1px solid var(--silver-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; transition: all 0.3s; }
.video-placeholder:hover .video-play { border-color: var(--gold); color: var(--gold); }
.video-label { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; }

/* О практике */
.about-preview { background: var(--bg-white); }
.about-preview .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
/*
   Фото в блоке "О руководителе" — адаптируется под любые пропорции
   Работает с квадратным, прямоугольным (вертикальным или горизонтальным) фото.
   Фото показывается целиком, без обрезки.
*/
.about-preview-image {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.about-preview-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(15%);
    background: none;
    display: block;
}
.about-label { font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; }
.about-preview-content h2 { font-size: 42px; color: var(--text-dark); margin-bottom: 12px; font-weight: 700; }
.about-position {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 28px;
    font-weight: 600;
}
.about-preview-content p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }
.about-preview-content strong { color: var(--text-dark); font-weight: 600; }
.about-edu { margin: 32px 0; padding: 28px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 16px; }
.edu-row { display: flex; align-items: center; gap: 16px; }
.edu-badge { flex-shrink: 0; font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; letter-spacing: 0.15em; color: var(--navy); background: var(--bg-light); border: 1px solid var(--line-light); padding: 6px 12px; }
.edu-desc { font-size: 14px; color: var(--text-muted); line-height: 1.4; }
/* Блок "Регулярное участие в форумах" — просто текст с подложкой */
.about-conferences {
    margin: 36px 0;
    padding: 22px 28px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
}
.about-conferences-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.55;
    font-weight: 500;
}

/* Скетч */
.sketch-divider { background: var(--navy); position: relative; overflow: hidden; padding: 80px 0; }
.sketch-divider-bg { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); background-size: 200px 200px; opacity: 0.04; pointer-events: none; }
.sketch-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
/*
   СКЕТЧ МИНИНА И ПОЖАРСКОГО в скетч-разделителе с цитатой
   КАК МЕНЯТЬ: max-width = размер, opacity = видимость
*/
.sketch-img { width: 100%; max-width: 820px; opacity: 0.30; background: none; }
.sketch-text { text-align: left; }
.sketch-quote { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 500; color: var(--silver); line-height: 1.5; margin-bottom: 24px; }
.sketch-author { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }

/* В медиа */
.media-section { background: var(--bg-light); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); margin-top: 60px; }
.media-card { background: var(--bg-white); padding: 48px 40px; transition: background 0.3s ease; }
.media-card:hover { background: var(--navy); }
.media-year { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; color: var(--gold-dark); line-height: 1; margin-bottom: 12px; transition: color 0.3s; }
.media-type { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; transition: color 0.3s; }
.media-title { font-family: 'Playfair Display', serif; font-size: 21px; color: var(--text-dark); line-height: 1.3; transition: color 0.3s; font-weight: 600; }
.media-card:hover .media-year { color: var(--gold); }
.media-card:hover .media-type { color: var(--silver-dim); }
.media-card:hover .media-title { color: var(--white); }

/* Команда */
.team { background: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.team-card {
    background: var(--bg-white);
    border: 1px solid var(--line-light);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.team-card:hover { border-color: var(--navy); box-shadow: 0 16px 40px rgba(18,25,42,0.12); transform: translateY(-4px); }
.team-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--navy); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%); transition: filter 0.4s ease; }
.team-card:hover .team-photo img { filter: grayscale(0%); }
/* Карточка-инфо растягивается на доступную высоту */
.team-info {
    padding: 28px 28px 28px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Иконки прижимаются к низу — margin-top: auto */
.team-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    margin-top: auto;
}
.team-name-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.team-name-link:hover .team-name { color: var(--gold); }
.team-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; line-height: 1.3; transition: color 0.3s ease; }
.team-pos { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.team-city { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.team-links { display: flex; justify-content: center; gap: 16px; padding-top: 20px; }
/* Иконки-кнопки в карточках команды — круглые картинки в едином стиле */
.team-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
    overflow: hidden;
}
.team-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
/* Иконка-картинка (PNG) — заполняет всю круглую кнопку */
.team-icon-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: none;
}
.team-icon:hover {
    transform: translateY(-2px) scale(1.05);
}
/* Серая неактивная иконка (нет ссылки) */
.team-icon--inactive {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: default;
    pointer-events: none;
}

/* Отзывы */
.reviews-preview { background: var(--bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); margin-bottom: 40px; }
.review-card { background: var(--bg-white); padding: 44px 36px; display: flex; flex-direction: column; gap: 20px; }
.review-stars { font-size: 18px; color: var(--gold); letter-spacing: 3px; }
.review-text { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--text-dark); line-height: 1.7; flex-grow: 1; font-weight: 500; }
.review-author { padding-top: 20px; border-top: 1px solid var(--line-light); }
.review-name { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.review-case { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.reviews-more { text-align: center; }

/* Блог */
.blog-preview { background: var(--bg-white); }
/* Блог — заголовок по центру, кнопка под карточками */
.blog-grid { margin-top: 60px; }
.blog-more {
    text-align: center;
    margin-top: 48px;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.blog-card { background: var(--bg-white); display: flex; flex-direction: column; transition: all 0.3s ease; }
.blog-card:hover { box-shadow: 0 8px 32px rgba(18,25,42,0.08); }
.blog-card-img { position: relative; }
/* Квадратные изображения в блоге — подходят для вертикальных фото с телефона */
.blog-img-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--navy);
    overflow: hidden;
}
/* Если в этот блок поставить настоящую картинку — будет правильно центрироваться */
.blog-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.blog-tag { position: absolute; bottom: 16px; left: 16px; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 12px; }
.blog-card-body { padding: 32px; flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.blog-date { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.blog-card h3 { font-family: 'Playfair Display', serif; font-size: 23px; color: var(--text-dark); line-height: 1.3; font-weight: 700; }
.blog-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex-grow: 1; }
.service-link { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dark); padding-bottom: 3px; border-bottom: 1px solid var(--gold-dark); transition: all 0.3s ease; }
.service-link:hover { color: var(--gold); border-color: var(--gold); }

/* Форма */
.contact-form-section { background: var(--navy); position: relative; overflow: hidden; }
.form-noise { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); background-size: 200px 200px; opacity: 0.04; pointer-events: none; }
.form-subtitle { text-align: center; font-size: 14px; color: var(--silver-dim); margin-bottom: 48px; margin-top: 8px; letter-spacing: 0.04em; position: relative; z-index: 1; }
.contact-form { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; position: relative; z-index: 1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 17px 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); color: var(--white); font-family: 'Inter', sans-serif; font-size: 14px; transition: all 0.3s ease; outline: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--silver-dim); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); background: rgba(184,169,122,0.04); }
.contact-form select { color: var(--silver-dim); cursor: pointer; }
.contact-form select option { background: var(--navy-card); color: var(--white); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--silver-dim); cursor: pointer; line-height: 1.5; }
.form-checkbox input[type="checkbox"] { width: auto; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.form-checkbox a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.form-messengers { text-align: center; margin-top: 40px; position: relative; z-index: 1; }
.form-messengers p { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 16px; }
.messenger-btns { display: flex; justify-content: center; gap: 20px; }
/* Иконки мессенджеров в форме — круглые картинки, крупнее чем в карточках команды */
.msg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}
.msg-icon--inactive {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: default;
    pointer-events: none;
}
.msg-icon-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: none;
}
.msg-icon:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Подвал */
.footer { background: #0B1120; color: var(--silver-dim); padding: 72px 0 28px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-logo { height: 96px; width: auto; margin-bottom: 14px; background: none; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: 0.2em; }
.footer-slogan { font-family: 'Playfair Display', serif; font-size: 12px; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 18px; font-weight: 400; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: var(--silver-dim); max-width: 280px; margin-bottom: 20px; }
.footer-req { font-size: 11px; color: var(--silver-dim); line-height: 1.8; opacity: 0.7; }
.footer h4 { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer ul li { margin-bottom: 10px; font-size: 13px; }
.footer-note { font-size: 10px !important; color: var(--silver-dim); opacity: 0.7; margin-top: -6px !important; margin-bottom: 14px !important; }
.footer a { color: var(--silver-dim); transition: color 0.3s; }
.footer a:hover { color: var(--gold); }
.footer-presentation {
    text-align: center;
    padding: 28px 0 32px;
    margin-top: 40px;
    border-top: 1px solid var(--line-dark);
}
.footer-presentation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 32px;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    opacity: 1 !important;
}
.footer-presentation-btn svg {
    fill: var(--gold-light);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}
.footer-presentation-btn:hover {
    background: var(--gold);
    color: var(--navy) !important;
    border-color: var(--gold);
    opacity: 1 !important;
}
.footer-presentation-btn:hover svg {
    fill: var(--navy) !important;
}
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 11px; color: var(--silver-dim); letter-spacing: 0.04em; opacity: 0.7; }

/* Cookie-баннер */
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; background: var(--navy); border: 1px solid var(--gold-dark); color: var(--silver); padding: 20px 24px; z-index: 1000; box-shadow: 0 16px 48px rgba(0,0,0,0.5); transform: translateY(150%); transition: transform 0.5s ease; max-width: 900px; margin: 0 auto; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-banner-text { font-size: 13px; line-height: 1.6; flex: 1; }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-text a:hover { color: var(--gold-light); }
.cookie-banner-btn { background: var(--gold); color: var(--navy); border: none; padding: 12px 28px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.3s ease; flex-shrink: 0; white-space: nowrap; }
.cookie-banner-btn:hover { background: var(--gold-light); }

/* ===== АДАПТИВ ===== */
@media (min-width: 1920px) {
    .container { max-width: 1440px; }
    .hero h1 { font-size: 56px; }
    .hero h1 .h1-sub { font-size: 42px; }
    .section-title { font-size: 52px; }
}

@media (max-width: 1100px) {
    .section-title { font-size: 36px; }
    .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero h1 { font-size: 40px; }
    .hero h1 .h1-sub { font-size: 30px; }
    .sketch-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
    .sketch-quote { font-size: 22px; }
    .hero-sketch { width: 580px; opacity: 0.20; right: 80px; }
    .form-sketch { width: 700px; opacity: 0.18; right: 5%; left: auto; max-width: 55%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-tagline { font-size: 20px; }
}

@media (max-width: 860px) {
    .hero .container { grid-template-columns: 1fr; gap: 0; align-items: center; }
    .hero-content { padding-bottom: 40px; }
    .hero h1 { font-size: 32px; }
    .hero h1 .h1-sub { font-size: 24px; }
    .hero-image img { max-width: 100%; max-height: 420px; object-fit: contain; }
    .about-preview .container { grid-template-columns: 1fr; gap: 48px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .media-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .sketch-wrap { grid-template-columns: 1fr; text-align: center; }
    /* Минин на мобильном — не уменьшаем сильно, чтобы был виден */
    .sketch-img { margin: 0 auto; max-width: 380px; opacity: 0.35; }
    .sketch-text { text-align: center; }
    .hero-sketch { width: 400px; opacity: 0.10; right: -60px; }
    /* Засекин на мобильном — крупно, справа, не уменьшается сильно */
    .form-sketch { width: 360px; opacity: 0.20; right: 0; left: auto; max-width: 70%; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .nav-top { display: none; }

    /* Шапка — две строки */
    .header-top .container {
        flex-wrap: wrap;
        padding: 8px 16px;
        gap: 0;
    }

    /* Строка 1: ЕМ — контакты — бургер, равномерно */
    .logo {
        order: 1;
        width: auto;
        flex-shrink: 0;
        gap: 0;
    }
    .logo-text { display: none; }  /* имя — во 2й строке */
    .logo-img { height: 40px; }

    .header-contacts {
        order: 2;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
        line-height: 1.3;
        padding: 0 8px;
    }
    .header-phone {
        font-size: 13px;
        font-weight: 700;
        color: var(--gold);
        white-space: nowrap;
    }
    .header-phone-note {
        font-size: 8px;
        color: var(--silver-dim);
        margin: 1px 0;
    }
    .header-email {
        font-size: 10px;
        font-weight: 600;
        color: var(--gold);
        white-space: nowrap;
    }
    .header-cities { display: none; }

    .burger {
        order: 3;
        display: flex;
        flex-shrink: 0;
        align-self: center;
    }

    /* Строка 2: ЕВГЕНИЙ МОРОЗОВ по центру на всю ширину */
    .header-top .container::after {
        content: '';
        display: block;
        width: 100%;
        order: 4;
    }
    .logo-name-row {
        display: block;
        order: 5;
        width: 100%;
        text-align: center;
        padding: 8px 0 6px;
        border-top: 1px solid rgba(184,169,122,0.15);
    }
    .logo-name {
        font-size: 20px;
        letter-spacing: 0.22em;
        display: block;
        text-align: center;
    }
    .logo-tagline {
        font-size: 11px;
        letter-spacing: 0.18em;
        display: block;
        text-align: center;
        margin-top: 2px;
    }

    /* Фикс обрезания текста справа на всех страницах */
    * { box-sizing: border-box; }
    .hero, .hero-content, section, .container { max-width: 100%; }
    .hero-title { word-break: break-word; }
    .hero-subtitle { word-break: break-word; }
    .nav-main { position: fixed; top: 0; left: 0; right: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: var(--navy-card); box-shadow: 0 16px 32px rgba(0,0,0,0.4); z-index: 98; }
    .nav-main.open { max-height: 100vh; overflow-y: auto; padding-top: 130px; }
    .nav-main ul { flex-direction: column; padding: 0 0 20px; gap: 0; }
    .nav-main li { border-bottom: 1px solid var(--line-dark); }
    .nav-main li:last-child { border-bottom: none; }
    .nav-main a { padding: 18px 24px; font-size: 13px; text-align: left; color: var(--silver); }
    .nav-main a::after { display: none; }
    .nav-main a:hover { background: var(--navy); color: var(--gold); }

    /* Показываем мобильные пункты */
    .nav-mobile-only { display: block; }

    .hero { padding: 48px 0 0; }
    .hero .container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .hero h1 .h1-sub { font-size: 20px; }
    .section-title { font-size: 28px; margin-bottom: 12px; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .services-tagline { font-size: 18px; }
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .about-preview-image img { max-height: none; height: auto; width: 100%; }
    .about-conferences { padding: 18px 20px; }
    .blog-grid { grid-template-columns: 1fr; }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .cookie-banner-inner { flex-direction: column; gap: 14px; align-items: stretch; }
    .cookie-banner-btn { width: 100%; }
    .cookie-banner-text { font-size: 12px; }
}

@media (max-width: 380px) {
    .logo-text { display: none; }
    .logo-img { height: 44px; }
    .header-top .container { gap: 8px; }
}

@media print {
    .header, .footer, .nav-main, .burger, .cookie-banner, .hero-buttons, .form-messengers, .video-section { display: none; }
    .hero { background: white; color: black; padding: 20px 0; }
    .hero h1 { color: black; }
    .section { padding: 20px 0; page-break-inside: avoid; }
}

/* ============================================================
   СТРАНИЦА КОНТАКТОВ
   ============================================================ */
.contacts-page { background: var(--bg-white); }

/* Сетка общих контактов */
.contacts-grid-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}
.contact-card {
    padding: 24px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
}
.contact-card-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-weight: 600;
}
.contact-card-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 6px;
    transition: color 0.3s;
}
.contact-card-value:hover { color: var(--gold); }
.contact-card-value--sm { font-size: 17px; }
.contact-card-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* Заголовок секции */
.contacts-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-light);
}

/* Сетка карточек команды */
.contacts-team { margin-bottom: 64px; }
.contacts-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contacts-person-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-top: 3px solid var(--gold);
    align-items: flex-start;
}
.contacts-person-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
}
.contacts-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contacts-person-info { flex: 1; }
.contacts-person-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
}
.contacts-person-pos {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 2px;
}
.contacts-person-city {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.contacts-person-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.contacts-person-phone,
.contacts-person-email {
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.contacts-person-phone:hover,
.contacts-person-email:hover { color: var(--gold); }
.contacts-person-note {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}
.contacts-person-icons {
    display: flex;
    gap: 10px;
}

/* Форма на странице контактов */
.contacts-form-section { margin-top: 16px; }
.contacts-form-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: stretch;
    padding: 40px;
    background: var(--bg-light);
    border-top: 3px solid var(--gold);
}
.contacts-form-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптив */
@media (max-width: 1100px) {
    .contacts-grid-page { grid-template-columns: repeat(2, 1fr); }
    .contacts-team-grid { grid-template-columns: 1fr; gap: 16px; }
    .contacts-form-wrap { grid-template-columns: 1fr; gap: 28px; }
    .contacts-form-right { display: none; }
}
@media (max-width: 768px) {
    .contacts-grid-page { grid-template-columns: 1fr; }
    .contacts-person-card { flex-direction: column; }
    .contacts-form-wrap { padding: 24px; }
}

/* Неактивные иконки (Telegram/MAX — уточняется) */
.person-contact-icon--inactive {
    opacity: 0.35;
    cursor: default;
    filter: grayscale(100%);
}

/* Кликабельное изображение карточки услуги */
a.service-card-img {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
a.service-card-img:hover { opacity: 0.85; }

/* Строка контакта с меткой */
.contacts-person-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 8px;
}
.contacts-person-label {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
}

/* Видео на главной */
.site-video {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 0;
    background: var(--navy);
}
.video-placeholder--hidden { display: none !important; }

/* Мессенджеры под формой — светлая версия */
.form-messengers--light {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
}
.form-messengers--light p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* ============================================================
   ОГРАНИЧЕНИЕ ТЕКСТА В КАРТОЧКАХ БЛОГА — 2 строки
   ============================================================ */
.blog-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.4em;
}
