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

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #111;
    font-size: 16px;
    font-weight: 500;
}

/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 120px;   /* ← ВАЖНО */
    padding: 0 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #7b1e2b;

}


.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo img {
    height: 96px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    color: #111;
    font-size: 18px;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: #7b1e23;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.divider {
    width: 1px;
    height: 20px;
    background: #ccc;
}

/* ================= HERO ================= */
.hero {
    width: 100%;
    max-width: 1200px;
    height: clamp(420px, 60vh, 520px);

    margin: 24px auto 0 auto;
    padding: 12px 60px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    align-items: stretch;
}
.hero {
    margin-top: 30px;
}


/* ЛОГОТИП СЛЕВА */
.logo {
    display: flex;
    align-items: center;
}

/* МЕНЮ ПРИЖИМАЕМ ВПРАВО */
.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
/* ===== ШАПКА ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;

    padding: 20px 60px;

    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-datetime {
    margin-left: 24px;
    margin-right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7b1e2b;
    font-weight: 600;
}

.header-datetime--inline {
    align-self: center;
}

.clock-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clock-face {
    width: 26px;
    height: 26px;
    border: 2px solid #7b1e2b;
    border-radius: 50%;
    position: relative;
}

.clock-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    background: #7b1e2b;
    transform-origin: bottom center;
}

.clock-hand.hour {
    height: 7px;
}

.clock-hand.minute {
    height: 10px;
}

.clock-center {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #7b1e2b;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.clock-time {
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.calendar-icon {
    width: 42px;
    height: 32px;
    border: 2px solid #7b1e2b;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.calendar-month {
    background: #7b1e2b;
    color: #fff;
    font-size: 9px;
    text-align: center;
    padding: 2px 0 1px;
    letter-spacing: 0.5px;
}

.calendar-day {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* ====== Меню О НАС (выпадающее) ====== */
.about-menu {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid #7b1e2b;
    display: none;
    transform: translateY(-6px);
    transition: transform 0.3s ease;
    z-index: 2200;
}

.about-menu.is-open {
    display: block;
    transform: translateY(0);
}

.about-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 60px 22px;
    position: relative;
}

.about-menu-close {
    position: absolute;
    top: 12px;
    right: 60px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #444;
}

.about-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.about-menu-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    width: fit-content;
}

.about-menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.about-menu-link:hover::after {
    opacity: 1;
}

.about-menu-overlay {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    display: none;
    transition: opacity 0.2s ease;
    z-index: 2100;
}

.about-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

/* ====== Меню УСЛУГИ (выпадающее) ====== */
.services-menu {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid #7b1e2b;
    display: none;
    transform: translateY(-6px);
    transition: transform 0.3s ease;
    z-index: 2200;
}

.services-menu.is-open {
    display: block;
    transform: translateY(0);
}

.services-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 60px 22px;
    position: relative;
}

.services-menu-close {
    position: absolute;
    top: 12px;
    right: 60px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #444;
}

.services-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.services-menu-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    width: fit-content;
}

.services-menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.services-menu-link:hover::after {
    opacity: 1;
}

.services-menu-overlay {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    display: none;
    transition: opacity 0.2s ease;
    z-index: 2100;
}

.services-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    display: block;
}

/* ЛОГО СЛЕВА */
.logo img {
    height: 82px;
    width: auto;
    display: block;
}

/* МЕНЮ СПРАВА */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    position: relative;
    padding: 0 18px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
}

/* Бордовые разделители между ВСЕМИ пунктами */
.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 1px;
    background-color: #7b1e2b;
}

/* У последнего пункта линии НЕТ */
.main-nav a:last-child::after {
    display: none;
}

/* Hover-подчеркивание — для ВСЕХ пунктов */
.main-nav a::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -6px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.main-nav a:hover::before {
    opacity: 1;
}

/* ФИКС РАЗМЕРА ЛОГОТИПА */
.header .logo img {
    width: 200px;
    height: auto;
    display: block;
}
/* === ИСПРАВЛЕНИЕ: убираем бордовые разделители между пунктами меню === */

/* Убираем любые border у пунктов меню */
.menu li,
.menu a {
    border: none !important;
}

/* Оставляем только аккуратные текстовые разделители */
.menu li:not(:last-child)::after {
    content: "|";
    margin: 0 18px;
    color: rgba(255, 255, 255, 0.6); /* светлый, аккуратный */
}
/* === 1. Убираем ВСЕ старые разделители между пунктами меню === */
.header nav ul li::before,
.header nav ul li::after {
    content: none !important;
}

/* Оставляем ОДИН аккуратный разделитель */
.header nav ul li:not(:last-child)::after {
    content: "|";
    margin: 0 20px;
    color: rgba(255, 255, 255, 0.6);
}
/* === 2. Верхняя разделительная линия под шапкой === */
.header {
    border-bottom: 1px solid #7b1e2b; /* бордовый */
}
/* === 3. Нижняя разделительная линия под главным экраном === */
.hero {
    border-bottom: 1px solid #7b1e2b; /* тот же бордовый */
    padding-bottom: 40px;            /* симметрия с верхом */
    margin-bottom: 40px;
}
/* === FIX 1: убираем дублирующие линии между пунктами меню === */

/* Убираем ВСЕ border-разделители */
.header nav ul li,
.header nav ul li a {
    border: none !important;
}

/* Убираем любые старые псевдоэлементы */
.header nav ul li::before {
    content: none !important;
}

/* Оставляем ОДИН разделитель и делаем его БОРДОВЫМ */
.header nav ul li:not(:last-child)::after {
    content: "|";
    margin: 0 22px;
    color: #7b1e2b; /* бордовый */
    font-weight: 300;
}
/* === FIX 2: верхняя разделительная линия === */
.header {
    border-bottom: 1px solid #7b1e2b !important;
}

/* На случай если линия была у контейнера */
body > header,
.site-header {
    border-bottom: 1px solid #7b1e2b !important;
}
/* === FIX 3: нижняя бордовая линия на всю ширину === */

/* Убираем линию с hero */
.hero {
    border-bottom: none !important;
}

/* Новый блок-разделитель */
.hero-divider {
    width: 100%;
    height: 1px;
    background-color: #7b1e2b;
    margin: 40px 0; /* тот же отступ, что и сверху */
}
/* =========================================================
   RESET ВСЕХ ЛИНИЙ И АККУРАТНАЯ НАСТРОЙКА (ФИНАЛ)
   ========================================================= */

/* ---------- 1. МЕНЮ: убиваем ВСЕ старые линии ---------- */

/* Убираем любые border и псевдо-линии */
.header nav ul li,
.header nav ul li a {
    border: none !important;
}

.header nav ul li::before,
.header nav ul li::after {
    content: none !important;
}

/* ---------- 2. МЕНЮ: добавляем ОДНУ бордовую линию ---------- */

.header nav ul li:not(:last-child)::after {
    content: "|";
    margin: 0 24px;
    color: #7b1e2b;      /* бордовый */
    font-weight: 400;
    opacity: 1;
}

/* ---------- 3. ШАПКА: ОДНА толстая бордовая линия ---------- */

/* Убираем все линии где бы они ни были */
.header,
.site-header,
body > header {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

/* Добавляем ОДНУ нужную */
.header {
    border-bottom: 2px solid #7b1e2b !important;
}

/* ---------- 4. HERO: убираем всё лишнее ---------- */

.hero {
    border: none !important;
    margin-bottom: 0 !important;
}

/* ---------- 5. НИЖНЯЯ ЛИНИЯ ПОСЛЕ КАРТИНКИ ---------- */

.hero-divider {
    width: 100%;
    height: 2px;
    background-color: #7b1e2b;
    margin: 40px 0; /* такой же отступ, как сверху */
}
/* ===== ШАГ 1: ПОЛНОСТЬЮ УБИРАЕМ ВСЕ ЛИНИИ В МЕНЮ ===== */

/* убираем все borders */
.header nav ul li,
.header nav ul li a {
    border: none !important;
}

/* убираем все псевдо-линии */
.header nav ul li::before,
.header nav ul li::after,
.header nav ul li a::before,
.header nav ul li a::after {
    content: none !important;
}
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    position: relative;
    padding: 0 18px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}

.main-nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 1px;
    background-color: #7b1e2b;
}

/* ====== Главный экран: разделительные линии и отступы ====== */
/* Убираем линию у шапки, чтобы оставалась только отдельная разделительная */
.site-header {
    border-bottom: none !important;
}

.section-divider {
    width: 100%;
    height: 2px;
    background-color: #7b1e2b;
}

/* Линия между шапкой и картинками + отступ до картинок */
.section-divider--top {
    margin: 12px 0 40px;
}

/* Линия после картинок + отступ от картинок */
.section-divider--bottom {
    margin: 24px 0 0;
}

/* Отступ сверху у картинок, чтобы линия была визуально выше */
.hero {
    margin-top: 0 !important;
}

.hero-content {
    flex: 1 1 55%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hero-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content p {
    margin-bottom: 14px;
    line-height: 1.5;
    font-size: 17px;
    color: #1a1a1a;
    text-align: justify;
    text-align-last: left;
}

.hero-content p:last-of-type {
    margin-bottom: 24px;
}

.hero-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 10px 18px;
    border: 1px solid #7b1e2b;
    color: #7b1e2b;
    text-decoration: none;
    font-weight: 500;
}

.hero-cta:hover {
    background: #7b1e2b;
    color: #ffffff;
}

.hero-media {
    flex: 0 0 40%;
    max-width: 420px;
    height: auto;
    min-height: 100%;
    max-height: none;

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 6px;

    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hero-media.is-animating {
    opacity: 0;
    transform: translateX(24px);
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    pointer-events: none;
}

.hero-media {
    position: relative;
}

.hero-quote {
    position: relative;
    z-index: 1;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-quote::before,
.hero-quote::after {
    color: rgba(255, 255, 255, 0.8);
}

.hero-quote::before {
    content: "«";
    margin-right: 4px;
}

.hero-quote::after {
    content: "»";
    margin-left: 4px;
}

.hero-dots {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background: #ffffff;
}

/* ====== Футер ====== */
.site-footer {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 60px;

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

.footer-text {
    color: #111;
    font-size: 14px;
    line-height: 1.4;
}

.footer-link {
    position: relative;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-link:hover::after {
    opacity: 1;
}

/* Логотип чуть больше, под размер заглавных букв меню */
.site-header .logo img {
    height: 104px;
    width: auto;
}

/* ====== Модальное окно ====== */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.modal.is-open {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal-dialog {
    position: relative;
    max-width: 720px;
    width: calc(100% - 40px);
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 8px;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #444;
}

.modal-title {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
    color: #1a1a1a;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field span {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #333;
}

.field-checkbox input {
    margin-top: 3px;
}

.policy-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #7b1e2b;
}

.policy-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.policy-link:hover::after {
    opacity: 1;
}

.modal-submit {
    align-self: flex-start;
    padding: 10px 22px;
    border: 1px solid #7b1e2b;
    background: #7b1e2b;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.modal-submit:hover {
    opacity: 0.9;
}

/* ====== О НАС ====== */
.about {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 60px;
}

.about-section h1,
.team-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.about-section p {
    margin-bottom: 14px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}

.team-section {
    margin-top: 28px;
}

.team-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.team-photo {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}

.team-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.team-role {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

/* ====== О НАС (фон + текст) ====== */
.about-hero {
    position: relative;
    background: url("/static/images/fon3.jpeg") center/cover no-repeat;
    padding: 36px 0 40px;
}

.values-hero {
    background-image: url("/static/images/fon4.JPG");
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.about-hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 60px;
    z-index: 1;
    color: #E6E6E6;
}

.about-hero-content h1 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #E6E6E6;
}

.about-hero-content h2 {
    font-size: 22px;
    margin: 18px 0 10px;
    color: #E6E6E6;
}

.about-hero-content p {
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    font-size: 17px;
    font-weight: 500;
    color: #DCDCDC;
    margin-bottom: 14px;
}

.about-divider {
    height: 2px;
    background: #7b1e2b;
    margin: 14px 0;
}

/* ====== УСЛУГИ ====== */
.services {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 60px;
    position: relative;
    z-index: 1;
}

.services-intro h1 {
    font-size: 26px;
    margin-bottom: 12px;
}

.services-intro p {
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: justify;
    text-align-last: left;
    font-size: 17px;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    border: 1px solid rgba(123, 30, 43, 0.15);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
}

/* В блоках с фоном убираем белую подложку карточек */
.services-hero .service-card {
    background: transparent;
    backdrop-filter: none;
}

.services-shell {
    position: relative;
    overflow: hidden;
    padding-bottom: 12px;
}

.services-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.42;
    transition: opacity 0.5s ease;
}

.services-bg.is-animating {
    opacity: 0;
}

.service-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-item + .service-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.service-title {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.service-text {
    font-size: 16px;
    line-height: 1.45;
    color: #333;
    text-align: justify;
    text-align-last: left;
    font-weight: 500;
}

.services-link {
    display: inline-block;
    margin-top: 10px;
    color: #7b1e2b;
    text-decoration: none;
    position: relative;
}

.services-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.services-link:hover::after {
    opacity: 1;
}

.services-single {
    grid-template-columns: 1fr;
}

.services-divider {
    height: 2px;
    background: #7b1e2b;
    margin: 16px 0;
}

.services-note {
    margin-top: 18px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}

.services-cta {
    display: inline-block;
    margin-top: 10px;
    color: #7b1e2b;
    text-decoration: none;
    position: relative;
}

.services-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.services-cta:hover::after {
    opacity: 1;
}

/* ====== Услуги (фон + описание) ====== */
.services-hero {
    position: relative;
    padding: 32px 0 24px;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.services-hero-content {
    position: relative;
    z-index: 1;
    padding: 18px 0;
    color: #E6E6E6;
    max-width: 720px;
    margin: 0 auto;
}

.services-desc {
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    margin-bottom: 12px;
    color: #DCDCDC;
    margin-bottom: 14px;
}

.services-hero .service-card,
.services-hero .service-title,
.services-hero h1,
.services-hero h2,
.services-hero .services-note,
.services-hero .services-cta {
    color: #E6E6E6;
}

.services-hero .service-text {
    color: #DCDCDC;
}

.services-hero .service-icon {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

/* 3D рамки на страницах с фоном (полупрозрачные) */
.services-hero .service-card,
.about-hero-content,
.how-hero-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}

.business-hero {
    background: url("/static/images/fon1.jpeg") center/cover no-repeat;
}

.private-hero {
    background: url("/static/images/fon5.jpeg") center/cover no-repeat;
}

.international-hero {
    background: url("/static/images/fon6.jpeg") center/cover no-repeat;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.service-icon {
    width: 30px;
    height: 30px;
    color: #7b1e2b;
    flex: 0 0 auto;
    background: rgba(123, 30, 43, 0.08);
    border: 1px solid rgba(123, 30, 43, 0.25);
    border-radius: 6px;
    padding: 4px;
    margin-top: 1px;
}

.service-icon .accent {
    fill: #111;
    stroke: #111;
}

/* ====== БЛОГ ====== */
.blog {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 60px;
}

.blog-intro h1 {
    font-size: 26px;
    margin-bottom: 12px;
}

.blog-intro p {
    line-height: 1.6;
    margin-bottom: 14px;
    text-align: justify;
    text-align-last: left;
    font-size: 17px;
    font-weight: 500;
}

.blog-list {
    margin-top: 18px;
    padding: 18px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.blog-placeholder {
    color: #666;
    font-size: 14px;
}

/* ====== ПОЛИТИКА ====== */
.policy {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 60px;
}

.policy h1 {
    font-size: 26px;
    margin-bottom: 14px;
}

.policy h2 {
    font-size: 20px;
    margin: 18px 0 8px;
}

.policy p {
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    font-size: 16px;
    font-weight: 500;
}

.policy ul {
    margin: 8px 0 12px 18px;
}

.policy li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.policy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 6px;
    font-size: 13px;
    color: #333;
}

.policy-consent input {
    margin-top: 3px;
}

/* ====== ЦЕНЫ ====== */
.prices {
    max-width: 1000px;
    margin: 24px auto 0;
    padding: 0 60px;
    position: relative;
    z-index: 1;
}

.prices h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.prices-table {
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 8px;
}

.prices-table img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    opacity: 0.8;
    /* Срезаем белую рамку внутри картинки */
    width: calc(100% + 32px);
    margin: -16px 0 0 -16px;
}

.prices-text p {
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
}

.prices-text h2 {
    font-size: 18px;
    margin: 14px 0 8px;
}

.prices-text ul {
    margin: 8px 0 12px 18px;
}

.prices-text li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.prices-cta {
    display: inline-block;
    margin-top: 6px;
    color: #7b1e2b;
    text-decoration: none;
    position: relative;
}

.prices-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.prices-cta:hover::after {
    opacity: 1;
}

/* ====== СТРАТЕГИЯ ====== */
.strategy {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 60px 40px;
}

.strategy h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.strategy-block {
    margin: 18px 0 22px;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.strategy-divider {
    height: 2px;
    background: #7b1e2b;
    margin: 14px 0;
}

.strategy-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.strategy-row.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.strategy-row.reverse .strategy-text {
    order: 2;
}

.strategy-row.reverse .strategy-media {
    order: 1;
}

.strategy-text h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.strategy-text p {
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
    text-align-last: left;
    font-size: 16px;
}

.strategy-lead {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 18px;
    font-style: italic;
}

.strategy-sub {
    font-weight: 600;
    margin-top: 8px;
}

.strategy-text ul {
    margin: 6px 0 0 18px;
}

.strategy-text li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.strategy-media img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.strategy-slogan {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 22px;
    font-style: italic;
    margin: 8px 0 14px;
}

.strategy-cta {
    display: inline-block;
    color: #7b1e2b;
    text-decoration: none;
    position: relative;
}

.strategy-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.strategy-cta:hover::after {
    opacity: 1;
}

/* ====== КАК МЫ РАБОТАЕМ ====== */
.how-hero {
    position: relative;
    background: url("/static/images/fon7.jpeg") center/cover no-repeat;
    padding: 40px 0 32px;
}

.how-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.how-hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 60px;
    color: #E6E6E6;
}

.how-hero-content h1 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #E6E6E6;
}

.how-hero-content p {
    line-height: 1.6;
    color: #DCDCDC;
    text-align: justify;
    text-align-last: left;
    margin-bottom: 14px;
}

.how-lead {
    font-size: 18px;
    font-weight: 600;
}

.how {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 0 60px 40px;
}

.how-section {
    margin-bottom: 22px;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.how-divider {
    height: 2px;
    background: #7b1e2b;
    margin: 14px 0;
}

.how-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.how-step {
    margin-bottom: 12px;
}

.how-step-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.how-section p {
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    margin-bottom: 10px;
}

.how-section ul {
    margin: 6px 0 10px 18px;
}

.how-section li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.how-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 10px 0 14px;
}

.how-column-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.how-cta {
    display: inline-block;
    margin-top: 10px;
    color: #7b1e2b;
    text-decoration: none;
    position: relative;
}

.how-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.how-cta:hover::after {
    opacity: 1;
}

/* ====== КОНТАКТЫ ====== */
.contacts {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 60px 40px;
}

.contacts-intro h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.contacts-intro p {
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 18px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.contacts-block h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.contacts-item {
    margin-bottom: 12px;
}

.contacts-label {
    font-weight: 700;
    margin-bottom: 4px;
}

.contacts-value {
    line-height: 1.5;
}

.contacts-cta {
    display: inline-block;
    margin-top: 8px;
    color: #7b1e2b;
    text-decoration: none;
    position: relative;
}

.contacts-cta::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: #7b1e2b;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contacts-cta:hover::after {
    opacity: 1;
}

/* ====== Главная: стабильная позиция кнопки ====== */
.hero {
    height: auto !important;
    min-height: clamp(420px, 60vh, 520px);
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-cta {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 980px) {
    .hero {
        padding: 12px 24px 0;
        gap: 24px;
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: 0;
        flex-direction: column;
    }

    .hero-content,
    .hero-media {
        max-width: none;
        width: 100%;
    }

    .hero-media {
        min-height: 300px;
    }
}

.contacts-map iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 8px;
}

/* ====== НАША ПРАКТИКА ====== */
.practice {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 0 60px 40px;
}

.practice h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.practice-subtitle {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.practice-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.practice-card p {
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    margin-bottom: 12px;
}

.prices-shell {
    position: relative;
    overflow: hidden;
    padding-bottom: 12px;
}

.prices-bg {
    position: absolute;
    inset: 0;
    background: url("/static/images/fonprice.jpeg") center/cover no-repeat;
    opacity: 0.22;
}
