/* =========================================
   1. ПЕРЕМЕННЫЕ (БЛАГОРОДНАЯ ТЁПЛАЯ ГАММА)
========================================= */
:root {
    --primary: #241e1a;       /* Глубокий тёплый антрацит/эспрессо (Заголовки) */
    --accent: #7d2420;        /* Благородный винно-бордовый акцент (Кнопки, важные акценты) */
    --accent-hover: #5e1916;  /* Тёмно-бордовый при наведении */
    --bronze: #9c7248;        /* Тёплая бронза/золото (Плашки, метки, как на референсе) */
    --bronze-light: #f3ece2;  /* Мягкий песочно-бронзовый фон для карточек и плашек */
    --text-dark: #36302c;     /* Основной текст */
    --text-muted: #6e655f;    /* Вторичный приглушённый текст */
    --text-light: #ffffff;    /* Белый текст */
    --bg-cream: #f6f1ea;      /* Тёплый кремово-сливочный фон (как на скриншоте) */
    --bg-light: #fbf9f6;      /* Светлый слоновой кости фон */
    --border-gray: #e5ddd3;   /* Тёплый оттенок разделительных линий */
}

/* =========================================
   2. БАЗОВЫЕ СТИЛИ СТРАНИЦЫ
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth;
    /* Отступ сверху при прокрутке к якорям, чтобы фиксированная шапка не перекрывала начало блока */
    scroll-padding-top: 105px;
    overflow-x: clip;
}

/* Дополнительная защита для всех блоков с id при якорном переходе */
section[id],
div[id] {
    scroll-margin-top: 105px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
}

h1, h2, h3, h4, .logo { 
    font-family: 'Playfair Display', serif; 
    color: var(--primary); 
    font-weight: 700; 
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
li { list-style: none; }

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

/* =========================================
   3. КНОПКИ
========================================= */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-light);
    padding: 15px 32px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(125, 36, 32, 0.2);
}
.btn:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(125, 36, 32, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--bronze);
    color: var(--primary);
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background-color: var(--bronze);
    color: var(--text-light);
}

/* =========================================
   4. ШАПКА И МЕНЮ (HEADER)
========================================= */
.header {
    background-color: rgba(251, 249, 246, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(36, 30, 26, 0.06);
    border-bottom: 1px solid var(--border-gray);
    padding: 14px 0;
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 24px;
}

/* Логотип с SVG-эмблемой */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.25s ease;
}
.logo:hover {
    transform: scale(1.03);
}
.logo-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 10px rgba(36, 30, 26, 0.14));
}

/* Навигация */
.nav-list {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--primary);
    padding: 6px 0;
    position: relative;
    white-space: nowrap; /* Не даём словам переноситься внутри кнопки */
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--bronze);
    transition: width 0.25s ease;
}
.nav-link:hover {
    color: var(--accent);
}
.nav-link:hover::after {
    width: 100%;
}

.dropdown-arrow {
    color: var(--bronze);
    transition: transform 0.25s ease;
}
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Кнопка бургера для мобильных (скрыта на ПК) */
.burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent);
}
.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent);
}

.nav-mobile-contacts {
    display: none;
}

/* Выпадающее меню (Dropdown) */
.dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    background-color: #ffffff;
    min-width: 280px;
    padding: 6px 0;
    box-shadow: 0 16px 36px rgba(36, 30, 26, 0.14);
    border: 1px solid var(--border-gray);
    border-top: 3px solid var(--bronze);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s ease;
    z-index: 101;
}
.dropdown:hover .dropdown-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0);
}
.dropdown-menu li a { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px; 
    border-bottom: 1px solid rgba(229, 221, 211, 0.6); 
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
}
.dropdown-menu li:last-child a {
    border-bottom: none;
}
.dropdown-menu li a::after {
    content: '→';
    font-size: 13px;
    color: var(--bronze);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}
.dropdown-menu li a:hover {
    background-color: var(--bg-cream);
    color: var(--accent);
    padding-left: 24px;
}
.dropdown-menu li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Блок контактов в шапке */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-phone-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.phone-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bronze-light);
    color: var(--bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.header-phone-block:hover .phone-icon {
    background-color: var(--bronze);
    color: #ffffff;
}
.phone-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.15;
}
.phone {
    font-weight: 700;
    color: var(--primary);
    font-size: 15.5px;
    transition: color 0.2s ease;
    display: block;
    white-space: nowrap; /* Запрещаем разрыв номера телефона на дефисах */
}
.phone:hover {
    color: var(--accent);
}
.phone-second {
    color: var(--text-dark);
    font-size: 14.5px;
    opacity: 0.9;
    white-space: nowrap;
}
.phone-second:hover {
    color: var(--accent);
    opacity: 1;
}

/* =========================================
   5. СЕКЦИЯ 1: ФЕМИДА (ГЛАВНЫЙ ЭКРАН)
========================================= */
.hero-section {
    background: url('../img/femida.jpg') center right / cover no-repeat;
    padding: 80px 0;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: ''; 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(24, 18, 15, 0.76) 0%, rgba(24, 18, 15, 0.38) 55%, rgba(24, 18, 15, 0.05) 100%);
}
.hero-section .container { position: relative; z-index: 2; width: 100%; }

.hero-card {
    background-color: rgba(251, 249, 246, 0.97);
    max-width: 640px;
    padding: 45px 50px;
    border-left: 6px solid var(--bronze);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 25px 55px rgba(18, 13, 10, 0.35);
    backdrop-filter: blur(6px);
}
.subtitle { 
    display: inline-block;
    color: var(--bronze);
    background-color: var(--bronze-light);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600; 
    margin-bottom: 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px; 
}
.hero-card h1 { font-size: 42px; margin-bottom: 18px; line-height: 1.2; }

.hero-lead {
    font-size: 16.5px;
    line-height: 1.65;
    margin-bottom: 24px;
    color: var(--text-dark);
}
.hero-lead strong {
    color: var(--primary);
    font-weight: 600;
}

.hero-remote {
    background-color: var(--bronze-light);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
}
.hero-remote-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.hero-remote-title svg {
    flex-shrink: 0;
}
.hero-remote p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

.achievements { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    border-top: 1px solid var(--border-gray); 
    padding-top: 24px; 
}
.achieve-item strong { 
    display: block; 
    font-family: 'Playfair Display', serif; 
    font-size: 21px; 
    color: var(--accent); 
    margin-bottom: 4px;
}
.achieve-item span { 
    display: block;
    font-size: 12.5px; 
    line-height: 1.4;
    color: var(--text-muted); 
    font-weight: 500; 
}

/* =========================================
   6. СЕКЦИЯ 2: БАНКРОТСТВО ГРАЖДАН (В СТИЛЕ РЕФЕРЕНСА)
========================================= */
.bankruptcy-section {
    background-color: var(--bg-cream);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    position: relative;
    margin-bottom: 55px;
    z-index: 2;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--bronze);
    margin-bottom: 12px;
}
.tag-dot {
    width: 8px;
    height: 8px;
    background-color: var(--bronze);
    display: inline-block;
    border-radius: 1px;
}
.section-header h2 {
    font-size: 46px;
    color: var(--primary);
    line-height: 1.15;
    position: relative;
    z-index: 2;
}
.section-subtitle {
    margin-top: 14px;
    max-width: 680px;
    font-size: 16.5px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}
.section-watermark {
    position: absolute;
    right: 0;
    bottom: -18px;
    font-family: 'Playfair Display', serif;
    font-size: 110px;
    font-weight: 700;
    color: rgba(156, 114, 72, 0.07);
    letter-spacing: 6px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.bankruptcy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.bankruptcy-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}
.bankruptcy-card:hover {
    transform: translateY(-6px);
}

.bankruptcy-card-img {
    position: relative;
    height: 230px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    background-color: #d8ccb8;
    box-shadow: 0 12px 28px rgba(36, 30, 26, 0.1);
}
.bankruptcy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.18) contrast(1.04) brightness(0.95);
    transition: transform 0.5s ease;
}
.bankruptcy-card:hover .bankruptcy-card-img img {
    transform: scale(1.05);
}

.step-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: rgba(36, 30, 26, 0.82);
    backdrop-filter: blur(4px);
    color: #f6f1ea;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bankruptcy-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bankruptcy-card-body h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--primary);
}
.bankruptcy-card-body p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}
.card-link span {
    transition: transform 0.25s ease;
    color: var(--bronze);
}
.card-link:hover {
    color: var(--accent);
}
.card-link:hover span {
    transform: translateX(4px);
}

.bankruptcy-summary {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 36px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid var(--border-gray);
    border-left: 6px solid var(--bronze);
    box-shadow: 0 15px 35px rgba(36, 30, 26, 0.06);
    position: relative;
    z-index: 2;
}

.bankruptcy-summary-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 600px;
}
.summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background-color: var(--bronze-light);
    color: var(--bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.summary-text h4 {
    font-size: 21px;
    margin-bottom: 6px;
    color: var(--primary);
}
.summary-text p {
    font-size: 15.5px;
    color: var(--text-dark);
    line-height: 1.55;
    margin: 0;
}

.bankruptcy-summary-action {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}
.summary-price {
    text-align: right;
}
.price-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.price-value {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--accent);
    line-height: 1.1;
}

/* =========================================
   7. СЕКЦИЯ 3: ЮРИДИЧЕСКИЕ УСЛУГИ
========================================= */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.branches-block {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}
.block-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.block-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-muted);
}
.universal-price-pill {
    background-color: var(--bronze-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(156, 114, 72, 0.25);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.branch-card {
    background-color: #ffffff;
    padding: 32px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    border-bottom: 4px solid var(--bronze);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(36, 30, 26, 0.03);
}
.branch-card:hover {
    border-bottom-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(36, 30, 26, 0.08);
}

.branch-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: var(--bronze-light);
    color: var(--bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.branch-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.branch-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}
.branch-price {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
    margin-top: auto;
}

.branch-card-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}
.branch-card-wide .branch-icon {
    margin-bottom: 0;
    width: 54px;
    height: 54px;
}
.branch-card-wide-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.branches-cta {
    margin-top: 24px;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.branches-cta p {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}
.branches-cta .btn {
    flex-shrink: 0;
}

/* ЧАСТЬ 2: Два выделенных отдельных блока (ФССП и Арбитраж) */
.special-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.special-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-gray);
    border-left: 6px solid var(--bronze);
    border-radius: 14px;
    padding: 38px 36px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(36, 30, 26, 0.05);
    transition: transform 0.3s ease;
}
.special-card:hover {
    transform: translateY(-4px);
}

.special-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bronze);
    background-color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    border: 1px solid var(--border-gray);
}
.special-card h3 {
    font-size: 25px;
    line-height: 1.28;
    margin-bottom: 14px;
}
.special-card p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 26px;
    flex: 1;
}
.special-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}
.special-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.special-card-dark {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: #382f2a;
    border-left: 6px solid var(--bronze);
}
.special-card-dark .special-badge {
    background-color: rgba(156, 114, 72, 0.18);
    color: #e2be98;
    border-color: rgba(156, 114, 72, 0.35);
}
.special-card-dark h3 {
    color: #ffffff;
}
.special-card-dark p {
    color: #d5cbc3;
}
.special-card-dark .special-card-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}
.special-card-dark .special-price {
    color: #e2be98;
}
.special-card-dark .card-link {
    color: #ffffff;
}
.special-card-dark .card-link:hover {
    color: #e2be98;
}

/* ЧАСТЬ 3: Отдельные виды юридических услуг */
.procedural-box {
    background-color: #ffffff;
    border: 1px solid var(--border-gray);
    border-top: 5px solid var(--accent);
    border-radius: 14px;
    padding: 45px 48px;
    box-shadow: 0 18px 40px rgba(36, 30, 26, 0.06);
    position: relative;
    z-index: 2;
}

.procedural-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding-bottom: 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-gray);
}
.procedural-header h3 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 6px;
}
.procedural-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
}

.procedural-price-tag {
    background-color: var(--bronze-light);
    padding: 14px 24px;
    border-radius: 10px;
    text-align: right;
    flex-shrink: 0;
    border-left: 4px solid var(--accent);
}
.procedural-price-tag span {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.procedural-price-tag strong {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--accent);
}

.standalone-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    margin-bottom: 32px;
}
.standalone-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.25s ease;
}
.standalone-item:hover {
    border-color: var(--bronze);
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(36, 30, 26, 0.06);
    transform: translateY(-2px);
}
.standalone-num {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--bronze);
    background-color: var(--bronze-light);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.standalone-item p {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}
.standalone-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    background-color: rgba(125, 36, 32, 0.07);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.procedural-footer {
    background-color: var(--bg-cream);
    border-radius: 10px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.procedural-footer p {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

/* =========================================
   8. СЕКЦИЯ 4: ФОРМА КОНТАКТОВ (ОСТАВИТЬ ЗАЯВКУ)
========================================= */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-cream);
    border-top: 1px solid var(--border-gray);
}
.contact-container {
    display: flex;
    align-items: stretch;
    gap: 60px;
}
.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-text h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 18px;
}
.contact-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

.contact-perks {
    margin-bottom: 34px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dark);
}
.perk-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bronze-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Плашка прямого звонка в секции контактов */
.contact-direct-card {
    background-color: #ffffff;
    border: 1px solid var(--border-gray);
    border-left: 5px solid var(--bronze);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 25px rgba(36, 30, 26, 0.04);
}
.direct-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--bronze-light);
    color: var(--bronze);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.direct-card-info {
    display: flex;
    flex-direction: column;
}
.direct-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}
.contact-phone:hover {
    color: var(--accent);
}
.direct-person {
    font-size: 14px;
    font-weight: 500;
    color: var(--bronze);
    margin-top: 2px;
}

/* Правая карточка с формой */
.contact-form {
    flex: 1;
    max-width: 520px;
    background-color: #ffffff;
    padding: 44px 42px;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    border-top: 5px solid var(--accent);
    box-shadow: 0 20px 45px rgba(36, 30, 26, 0.08);
}
.form-card-header {
    margin-bottom: 26px;
}
.form-card-header h3 {
    font-size: 26px;
    margin-bottom: 6px;
}
.form-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 7px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 15px;
    color: var(--bronze);
    pointer-events: none;
}
.form-group input { 
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid var(--border-gray); 
    background-color: var(--bg-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--primary);
    outline: none;
    transition: all 0.25s ease; 
}
.form-group input::placeholder {
    color: #9e948c;
}
.form-group input:focus {
    border-color: var(--bronze);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(156, 114, 72, 0.12);
}
.contact-form .btn {
    width: 100%;
    font-size: 16px;
    margin-top: 8px;
    padding: 16px 30px;
}
.form-privacy {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
}

/* =========================================
   9. ПОДВАЛ (FOOTER)
========================================= */
.footer {
    background-color: #1c1714;
    color: #b5aba2;
    padding: 75px 0 0;
    font-size: 14.5px;
    border-top: 3px solid var(--bronze);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.1fr;
    gap: 55px;
    padding-bottom: 55px;
}
.footer-logo {
    margin-bottom: 18px;
}
.footer-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
}
.footer-about-text {
    line-height: 1.65;
    color: #9e9389;
    max-width: 380px;
}
.footer-heading {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-links li {
    margin-bottom: 11px;
}
.footer-links li a {
    color: #b5aba2;
    transition: all 0.2s ease;
}
.footer-links li a:hover {
    color: #e2be98;
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.footer-phone {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}
.footer-phone:hover {
    color: #e2be98;
}
.footer-location {
    color: #9e9389;
    line-height: 1.55;
}
.footer-callback-btn {
    border-color: var(--bronze);
    color: #e2be98;
    margin-top: 4px;
}
.footer-callback-btn:hover {
    background-color: var(--bronze);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #2e2621;
    padding: 22px 0;
    font-size: 13px;
    color: #847970;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================
   10. МОДАЛЬНОЕ ОКНО
========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(24, 18, 15, 0.72);
    backdrop-filter: blur(4px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: #ffffff;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    position: relative;
    border-radius: 14px;
    border-top: 5px solid var(--accent);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(-30px);
    transition: 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 32px; cursor: pointer; color: #999; line-height: 1;
}
.close-btn:hover { color: var(--primary); }
.modal-content h3 { font-size: 26px; margin-bottom: 10px; }
.modal-content p { color: var(--text-muted); margin-bottom: 24px; font-size: 14.5px; line-height: 1.55; }
.modal-content .btn { width: 100%; margin-top: 6px; }

/* =========================================
   10.1 ВСПЛЫВАЮЩАЯ ПЛАШКА (TOAST NOTIFICATION)
========================================= */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 18px 45px rgba(24, 18, 15, 0.22);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 420px;
    width: calc(100% - 40px);
    z-index: 9999;
    border-left: 5px solid var(--accent);
    border-top: 1px solid rgba(229, 221, 211, 0.8);
    border-right: 1px solid rgba(229, 221, 211, 0.8);
    border-bottom: 1px solid rgba(229, 221, 211, 0.8);
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease, visibility 0.35s ease;
}

.toast-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.toast-notification.toast-success {
    border-left-color: #27ae60;
}
.toast-notification.toast-error {
    border-left-color: var(--accent);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.toast-success .toast-icon {
    background-color: #eafaf1;
    color: #27ae60;
}
.toast-error .toast-icon {
    background-color: rgba(125, 36, 32, 0.1);
    color: var(--accent);
}

.toast-content {
    flex: 1;
}
.toast-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.toast-message {
    font-size: 13.5px;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #9e9389;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    transition: color 0.2s ease;
}
.toast-close:hover {
    color: var(--primary);
}

/* =========================================
   11. АДАПТИВНОСТЬ ДЛЯ ВСЕХ УСТРОЙСТВ
========================================= */

/* 1. Мелкие мониторы, ноутбуки и крупные планшеты (961px – 1240px, включая iPad Pro 13 и iPad в альбомной ориентации) */
@media (max-width: 1240px) {
    .container {
        padding: 0 20px;
    }
    .header {
        padding: 12px 0;
    }
    .header-inner {
        gap: 12px;
        flex-wrap: nowrap;
    }
    .logo-emblem svg {
        width: 36px;
        height: 36px;
    }
    .nav-list {
        gap: 15px;
    }
    .nav-link {
        font-size: 13px;
        white-space: nowrap;
    }
    .header-contacts {
        gap: 12px;
        flex-shrink: 0;
    }
    .header-phone-block {
        gap: 8px;
    }
    .phone-icon {
        width: 32px;
        height: 32px;
    }
    .phone {
        font-size: 13.5px;
        white-space: nowrap;
    }
    .phone-second {
        font-size: 12.5px;
        white-space: nowrap;
    }
    .header-contacts .btn-outline {
        padding: 8px 13px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .hero-section {
        min-height: auto;
        padding: 65px 0;
    }
    .hero-card {
        max-width: 580px;
        padding: 36px 40px;
    }
    .hero-card h1 {
        font-size: 35px;
    }

    .section-header h2 {
        font-size: 38px;
    }
    .section-watermark {
        font-size: 80px;
    }
    .bankruptcy-grid {
        gap: 24px;
    }
    .bankruptcy-summary {
        padding: 30px 32px;
        gap: 24px;
    }
}

/* 2. Планшеты в портретной ориентации и телефоны (до 960px) */
@media (max-width: 960px) {
    html {
        scroll-padding-top: 75px;
    }
    section[id],
    div[id] {
        scroll-margin-top: 75px;
    }

    .header {
        padding: 10px 0;
    }
    .header-inner {
        justify-content: space-between;
        gap: 12px;
    }

    /* Скрываем десктопный блок контактов в шапке (он перенесён внутрь бургер-меню) */
    .header-contacts {
        display: none;
    }

    /* Показываем кнопку бургер-меню */
    .burger-btn {
        display: flex;
    }

    /* Мобильное выпадающее меню под шапкой (без сдвига экрана вбок!) */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid var(--border-gray);
        border-bottom: 3px solid var(--bronze);
        box-shadow: 0 20px 40px rgba(24, 18, 15, 0.18);
        padding: 20px 24px 26px;
        flex-direction: column;
        z-index: 1001;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }
    .nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(229, 221, 211, 0.5);
    }
    .nav-list > li:last-child {
        border-bottom: none;
    }
    .nav-link {
        font-size: 15.5px;
        padding: 11px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-link::after {
        display: none;
    }

    .dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--bronze);
        border-radius: 0;
        background-color: var(--bg-cream);
        margin: 0 0 10px 8px;
        padding: 4px 0;
        min-width: 0;
        width: calc(100% - 8px);
        display: none;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
    .dropdown-menu li a {
        padding: 10px 14px;
        font-size: 13.5px;
    }

    /* Контакты внутри мобильного меню */
    .nav-mobile-contacts {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-top: 18px;
        border-top: 1px solid var(--border-gray);
        margin-top: 12px;
    }
    .nav-mobile-phones {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .mobile-phone {
        font-size: 16px;
        font-weight: 700;
        color: var(--primary);
    }
    .nav-mobile-contacts .btn-outline {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    /* Адаптив первого экрана и секций для планшетов */
    .hero-section {
        min-height: auto;
        padding: 50px 0;
        background-position: center;
    }
    .hero-section::before {
        background: rgba(24, 18, 15, 0.82);
    }
    .hero-card {
        margin: 0 auto;
        max-width: 100%;
        padding: 34px 30px;
        border-left: 5px solid var(--bronze);
        border-radius: 10px;
    }
    .hero-card h1 {
        font-size: 30px;
    }
    .achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .achieve-item strong {
        font-size: 18px;
    }

    .bankruptcy-section,
    .services-section,
    .contact-section {
        padding: 70px 0;
    }
    .section-header {
        margin-bottom: 38px;
    }
    .section-watermark {
        font-size: 54px;
        bottom: 0;
    }
    .section-header h2 {
        font-size: 32px;
    }
    .bankruptcy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    .bankruptcy-card:last-child {
        grid-column: span 2;
    }
    .bankruptcy-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
        gap: 22px;
    }
    .bankruptcy-summary-action {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 16px;
        border-top: 1px solid var(--border-gray);
    }
    .summary-price {
        text-align: left;
    }

    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .branch-card-wide {
        grid-column: span 2;
    }
    .branches-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 22px 24px;
    }
    .branches-cta .btn {
        width: 100%;
        text-align: center;
    }

    .special-services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .procedural-box {
        padding: 32px 26px;
    }
    .procedural-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .procedural-price-tag {
        width: 100%;
        text-align: left;
    }
    .standalone-services-grid {
        grid-template-columns: 1fr;
    }
    .procedural-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .procedural-footer .btn {
        width: 100%;
        text-align: center;
    }

    .contact-container {
        flex-direction: column;
        gap: 36px;
    }
    .contact-form {
        max-width: 100%;
        padding: 34px 28px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 34px;
    }
    .footer-about-text {
        margin: 0 auto;
    }
    .footer-contact-list {
        align-items: center;
    }
    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* 3. Смартфоны (до 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    .header {
        padding: 8px 0;
    }
    .logo-emblem svg {
        width: 34px;
        height: 34px;
    }

    .hero-section {
        padding: 28px 0 36px;
    }
    .hero-card {
        padding: 22px 18px;
        border-radius: 8px;
        border-left-width: 4px;
    }
    .hero-card h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 12px;
    }
    .subtitle {
        font-size: 10.5px;
        padding: 5px 10px;
        margin-bottom: 14px;
    }
    .hero-lead {
        font-size: 14.5px;
        margin-bottom: 18px;
    }
    .hero-remote {
        padding: 14px 15px;
        margin-bottom: 20px;
    }
    .hero-remote-title {
        font-size: 12px;
    }
    .hero-remote p {
        font-size: 13.5px;
    }
    .achievements {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 18px;
        text-align: left;
    }
    .achieve-item {
        display: flex;
        flex-direction: column;
    }

    .bankruptcy-section,
    .services-section,
    .contact-section {
        padding: 48px 0;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .section-subtitle {
        font-size: 14.5px;
    }
    .section-watermark {
        display: none;
    }
    .bankruptcy-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 32px;
    }
    .bankruptcy-card:last-child {
        grid-column: span 1;
    }
    .bankruptcy-card-img {
        height: 190px;
        margin-bottom: 16px;
    }
    .bankruptcy-card-body h3 {
        font-size: 19px;
    }
    .bankruptcy-summary {
        padding: 22px 18px;
        gap: 18px;
    }
    .bankruptcy-summary-info {
        flex-direction: column;
        gap: 12px;
    }
    .bankruptcy-summary-action {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .summary-price {
        text-align: left;
    }
    .price-value {
        font-size: 24px;
    }
    .bankruptcy-summary-action .btn {
        width: 100%;
        text-align: center;
    }

    .block-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .universal-price-pill {
        align-self: flex-start;
        font-size: 12.5px;
    }
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .branch-card {
        padding: 22px 18px;
    }
    .branch-card-wide {
        grid-column: span 1;
        flex-direction: column;
        gap: 16px;
    }
    .branch-card h3 {
        font-size: 19px;
    }
    .special-card {
        padding: 24px 18px;
    }
    .special-card h3 {
        font-size: 20px;
    }
    .special-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .procedural-box {
        padding: 24px 16px;
    }
    .procedural-header h3 {
        font-size: 22px;
    }
    .standalone-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .standalone-price {
        align-self: flex-start;
    }

    .contact-text h2 {
        font-size: 26px;
    }
    .contact-direct-card {
        padding: 18px 16px;
        gap: 14px;
    }
    .contact-phone {
        font-size: 18px;
    }
    .contact-form {
        padding: 26px 18px;
    }
    .form-card-header h3 {
        font-size: 22px;
    }

    .toast-notification {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 14px 16px;
    }
    .modal-content {
        padding: 28px 18px;
    }
}
