/*
Theme Name: Veretenov Partners
Theme URI: https://xn--d1achcyjfchw0b0fya.net/
Author: Veretenov
Author URI: https://xn--d1achcyjfchw0b0fya.net/
Description: Премиальная юридическая тема WordPress для сайта «Веретёнов & партнёры». Адаптивный дизайн, встроенный cookie-баннер, модальные окна, интеграция с Contact Form 7 и полное управление текстами через Customizer.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veretenov-partners
Tags: business, one-page, dark, custom-menu, custom-logo
*/

/* ============================================ */
/* ПЕРЕМЕННЫЕ И БАЗА                            */
/* ============================================ */
:root {
    --bg-main: #111723;
    --bg-hero: #1b253c;
    --bg-card: #1e293b;
    --bg-about: #24344d;
    --accent-color: #c5a46e;
    --accent-hover: #b3925f;
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Golos Text', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .post-title {
    font-family: 'Playfair Display', serif;
}

a {
	color: var(--text-main);
}
/* ============================================ */
/* НАВИГАЦИЯ                                    */
/* ============================================ */
.navbar {
    background-color: var(--bg-hero);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.navbar-brand img { max-height: 42px; width: auto; }
.navbar-brand { display: inline-flex; align-items: center; }
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--accent-color) !important; }

/* --- ВЫПАДАЮЩЕЕ МЕНЮ (2-й уровень) --- */
.navbar-nav .dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        min-width: 320px;
        width: max-content;
        max-width: 480px;
    }
}

.navbar-nav .dropdown-item {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem 0.6rem 2.5rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: normal;
    position: relative;
}

.navbar-nav .dropdown-item::before {
    content: '›';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(197, 164, 110, 0.1);
    color: var(--accent-color);
}

.navbar-nav .dropdown-item:hover::before,
.navbar-nav .dropdown-item:focus::before {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

.navbar-nav .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.3em;
    border-top-color: currentColor;
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
        width: 100%;
    }
    .navbar-nav .dropdown-item {
        color: var(--text-muted);
        padding-left: 1.5rem;
    }
    .navbar-nav .dropdown-item::before {
        left: 0.5rem;
        font-size: 1.1rem;
    }
    .navbar-nav .dropdown-item:hover {
        background-color: transparent;
        color: var(--accent-color);
    }
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero-section {
    background-position: 65% center;
    background-size: cover;
    color: var(--text-main);
    padding: 7rem 0 7.5rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.hero-title span { color: var(--accent-color); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: pre-line;
}
.hero-badge {
    background: rgba(197, 164, 110, 0.07);
    color: var(--accent-color);
    border: 1px solid rgba(197, 164, 110, 0.2);
    padding: 0.6rem 1.4rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(4px);
}
.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.hero-image-wrapper:hover { transform: translateY(-5px); }
.hero-image { width: 100%; height: auto; display: block; }

/* ============================================ */
/* КНОПКИ                                       */
/* ============================================ */
.btn-premium {
    background-color: var(--accent-color);
    color: #111723;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium:hover {
    background-color: var(--accent-hover);
    color: #111723;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 164, 110, 0.2);
}
.btn-outline-premium {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-outline-premium:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ============================================ */
/* СЕКЦИИ                                       */
/* ============================================ */
section { padding: 7.5rem 0; background-color: var(--bg-main); }
.section-title {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}
.section-title span { color: var(--accent-color); }
.gold-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 0 3.5rem 0;
}

/* ============================================ */
/* ПРИНЦИПЫ                                     */
/* ============================================ */
.principle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
}
.principle-card:hover {
    border-color: rgba(197, 164, 110, 0.5);
    transform: translateY(-5px);
}
.principle-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: 'Golos Text', sans-serif;
}
.principle-card h4 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.principle-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================ */
/* ABOUT                                        */
/* ============================================ */
.about-section {
    background-color: var(--bg-about);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.lawyer-photo-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.lawyer-photo-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(36, 52, 77, 0.9) 100%);
    pointer-events: none;
}
.lawyer-photo { width: 100%; height: auto; display: block; }
.exp-badge {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1.5rem 1.5rem;
    color: var(--text-main);
    text-align: center;
    z-index: 2;
    border-bottom: 2px solid var(--accent-color);
}

.timeline-modern {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.timeline-node {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-node:last-child { padding-bottom: 0; }
.timeline-node::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 4.5px);
    top: 8px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(197, 164, 110, 0.6);
}
.timeline-node h6 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}
.timeline-node p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================ */
/* ПРАКТИКА                                     */
/* ============================================ */
.practice-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: 4px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}
.practice-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.practice-card h4 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}
.practice-card h4 svg { color: var(--accent-color); flex-shrink: 0; }
.practice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.other-practices {
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
    margin-top: 4rem;
}
.practice-tag {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
    margin: 0.35rem;
    color: var(--text-main);
    transition: border-color 0.3s ease;
}
.practice-tag:hover { border-color: var(--accent-color); }

/* ============================================ */
/* АРХИВЫ И БЛОГ (Карточки записей)             */
/* ============================================ */
.archive-section {
    min-height: 70vh;
}
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.post-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.post-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.post-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-card:hover .post-title a {
    color: var(--accent-color);
}
.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Прижимает кнопку к низу */
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}
.read-more:hover {
    gap: 0.8rem;
    color: var(--accent-hover);
}

/* Стили пагинации */
.custom-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.custom-pagination .page-numbers:hover,
.custom-pagination .page-numbers.current {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #111723;
}
.custom-pagination .page-numbers.dots {
    background-color: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

/* ============================================ */
/* CTA / ФОРМА                                  */
/* ============================================ */
.cta-section {
    background-color: var(--bg-hero);
    color: var(--text-main);
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.premium-form-box {
    background: var(--bg-card);
    color: var(--text-main);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}
.form-control {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-main);
}
.form-control::placeholder { color: #8892b0; }
.form-control:focus {
    background-color: var(--bg-main);
    border-color: var(--accent-color);
    box-shadow: none;
    color: var(--text-main);
}
.form-check-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.form-check-label a { color: var(--accent-color); text-decoration: underline; }
.form-check-input { background-color: var(--bg-main); border-color: var(--border-color); }
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ============================================ */
/* КОНТАКТЫ                                     */
/* ============================================ */
.contacts-section { background-color: var(--bg-main); }
.contact-item { margin-bottom: 2rem; }
.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.contact-value {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-main);
}
.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-value a:hover { color: var(--accent-color); }

/* ============================================ */
/* ПОДВАЛ                                       */
/* ============================================ */
footer {
    background-color: #0b1018;
    color: var(--text-muted);
    padding: 4rem 0;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}
footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
footer a:hover { color: var(--accent-color); }
.legal-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
}

/* ============================================ */
/* МОДАЛКИ                                      */
/* ============================================ */
.modal-content {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.modal-header { border-bottom: 1px solid var(--border-color); }
.modal-footer { border-top: 1px solid var(--border-color); }
.btn-close { filter: invert(1); }
.modal-body h6 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-body p { color: var(--text-muted); }

/* ============================================ */
/* COOKIE BANNER                                */
/* ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1035;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(27, 37, 60, 0.98) 100%);
    border-top: 1px solid var(--accent-color);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
    padding: 1.35rem 0;
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s ease,
                visibility 0s linear 0.45s;
    backdrop-filter: blur(8px);
}
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s ease,
                visibility 0s linear 0s;
}
.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    align-items: flex-start;
}
@media (min-width: 992px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}
.cookie-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(197, 164, 110, 0.12);
    border: 1px solid rgba(197, 164, 110, 0.3);
    color: var(--accent-color);
    flex-shrink: 0;
    margin-right: 0.9rem;
}
.cookie-banner__text-wrap { display: flex; align-items: flex-start; flex: 1 1 auto; }
.cookie-banner__text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}
.cookie-banner__text strong { color: var(--text-main); font-weight: 600; }
.cookie-banner__text a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
.cookie-banner__text a:hover { color: var(--accent-hover); }
.cookie-banner__actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}
@media (min-width: 992px) { .cookie-banner__actions { width: auto; } }
.cookie-banner__actions .btn-premium {
    padding: 0.7rem 2.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    width: 100%;
}
@media (min-width: 992px) { .cookie-banner__actions .btn-premium { width: auto; } }

/* ============================================ */
/* МОБИЛЬНАЯ АДАПТАЦИЯ                          */
/* ============================================ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 2rem; }
    .hero-section { padding: 4rem 0 4.5rem 0; }
    section { padding: 4.5rem 0; }
    .premium-form-box { padding: 2rem; }
    .post-card { padding: 2rem; }
}
@media (max-width: 575px) {
    .hero-title { font-size: 1.9rem; }
    .section-title { font-size: 1.7rem; }
}

/* ============================================ */
/* CONTACT FORM 7 — премиальный стиль           */
/* ============================================ */
.premium-form-box .wpcf7 { margin: 0; }
.premium-form-box .wpcf7-form { margin: 0; }
.premium-form-box .wpcf7-form p { margin: 0; }
.premium-form-box .wpcf7-form br { display: none; }
.premium-form-box .wpcf7-form-control-wrap { display: block; }

.premium-form-box .wpcf7-form-control.wpcf7-not-valid {
    border-color: #ff6b6b !important;
}

.premium-form-box .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    display: block;
}

.premium-form-box .wpcf7-response-output:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.premium-form-box .wpcf7-response-output {
    margin: 1.25rem 0 0 !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 4px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

.premium-form-box .wpcf7-spinner {
    background-color: var(--accent-color);
}

.premium-form-box .wpcf7-acceptance { display: block; }
.premium-form-box .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.premium-form-box .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}
.premium-form-box .wpcf7-acceptance input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    width: 1em;
    height: 1em;
    margin: 0.2em 0 0;
    flex-shrink: 0;
    border-radius: 0.25em;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.premium-form-box .wpcf7-acceptance input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.premium-form-box .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #111723;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.premium-form-box .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 400;
}
.premium-form-box .wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.premium-form-box .wpcf7-submit {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ============================================ */
/* СТРАНИЦА "ОБО МНЕ"                           */
/* ============================================ */
.about-page-section {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Golos Text', sans-serif;
    padding: 5rem 1rem;
    line-height: 1.6;
}

.about-page-section h1,
.about-page-section h2,
.about-page-section h3,
.about-page-section .hero-number {
    font-family: 'Playfair Display', serif;
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Главный экран с фото и цифрой */
.hero-about {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.hero-about__content {
    flex: 1 1 50%;
    min-width: 300px;
}

.hero-about__image {
    flex: 1 1 40%;
    min-width: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.hero-about__image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.hero-about__image:hover img {
    filter: brightness(1);
}

.hero-number {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.hero-number span {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-main);
}

.hero-about__subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
    border-left: 2px solid var(--accent-color);
    padding-left: 1.5rem;
}

/* Секция с биографией и карьерой */
.biography-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3.5rem;
    margin-bottom: 3rem;
}

.biography-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

/* Стильный таймлайн */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2.5rem - 5px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(197, 164, 110, 0.6);
}

.timeline-item h4 {
    font-family: 'Golos Text', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Блок образования */
.education-card {
    background: linear-gradient(145deg, var(--bg-about) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 3.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.education-card svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.education-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.education-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Адаптивность для страницы Обо мне */
@media (max-width: 768px) {
    .hero-about {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .hero-number {
        font-size: 4rem;
    }
    .hero-number span {
        font-size: 1.8rem;
    }
    .biography-section {
        padding: 2rem;
    }
    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

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

.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}
/* Делаем ссылки светлыми с аккуратным подчеркиванием */
.entry-content a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 164, 110, 0.4); /* Полупрозрачное золотое подчеркивание */
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Золотой цвет при наведении */
.entry-content a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Делаем маркеры списков светлыми (или золотыми) */
.entry-content ul {
    color: var(--text-muted); /* Цвет маркеров */
    list-style-type: none;    /* Убираем стандартные точки */
    padding-left: 0;
}

/* Стильные кастомные маркеры (золотые квадратики) */
.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content ul li::before {
    content: '▪'; /* Строгий квадратик */
    position: absolute;
    left: 0;
    color: var(--accent-color); /* Золотой цвет маркера */
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}

/* Для нумерованных списков (ol) */
.entry-content ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
}
.entry-content ol li {
    margin-bottom: 0.75rem;
}
.practice-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.practice-card-link:hover {
    color: inherit;
    text-decoration: none;
}
/* ============================================ */
/* ПРАЙС-ЛИСТ (УСЛУГИ И ЦЕНЫ)                   */
/* ============================================ */

.price-list-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.price-section-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

.price-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Десктопный вид (в одну строку) */
@media (min-width: 768px) {
    .price-row {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.price-service-name {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.4;
}

.price-service-amount {
    color: var(--accent-color);
    font-size: 1.15rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.3rem;
    font-weight: 400;
}
.about-lawyer-wrapper {
    max-width: 1140px;
    margin: 0 auto;
}

/* Блок с текстом и фото */
.lawyer-intro-row {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: flex-start; /* Выравнивание по верхнему краю */
}

@media (min-width: 768px) {
    .lawyer-intro-row {
        flex-direction: row;
        justify-content: space-between;
    }
    .lawyer-intro-text {
        flex: 1 1 auto;
        padding-right: 3rem;
    }
    .lawyer-intro-image {
        flex: 0 0 440px; /* Фиксированная ширина фото, как в оригинале */
        max-width: 100%;
    }
}

.lawyer-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    display: block;
}

/* Заголовок секции сертификатов */
.certificates-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-main);
    margin-top: 5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Сетка сертификатов (в одну линию на десктопе) */
.certificates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(3, 1fr); /* Ровно 3 в ряд */
    }
}

/* Карточка сертификата */
.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: zoom-in; /* Курсор-лупа */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cert-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cert-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Стили для модального окна с сертификатом */
.modal-cert .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}
.modal-cert .modal-body {
    position: relative;
    padding: 0;
    text-align: center;
}
.modal-cert .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.modal-cert .btn-close:hover {
    opacity: 1;
}
.modal-cert img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}