/**
 * Stars Advisory - Main Stylesheet
 * Структура: Base → Components → Sections → Animations
 */

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F3F4F6;
    color: #1F2937;
    overflow-x: hidden;
    --footer-bg: #111827;
    --footer-text: #FFFFFF;
    --footer-muted: #9CA3AF;
    --footer-border: #1F2937;
    --footer-link-hover: #FFFFFF;
}

body::selection {
    background-color: #1B3666;
    color: white;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== ICON STYLES ========== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
}

.icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


.header__theme-btn .material-symbols-outlined {
    font-size: 20px;
}

.hero__icon .material-symbols-outlined {
    font-size: 32px;
}

.hero__cta-link .material-symbols-outlined {
    font-size: 12px;
}

.visual-card__icon .material-symbols-outlined {
    font-size: 48px;
}

.global-ops__badge .material-symbols-outlined {
    font-size: 14px;
}

.global-ops__icon-inner .material-symbols-outlined {
    font-size: 80px;
    color: white;
    opacity: 0.4;
}

.footer__brand-icon .material-symbols-outlined {
    font-size: 24px;
}

/* ========== HEADER STYLES ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header__content {
    display: flex;
    height: 5rem;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header__logo-icon {
    height: 2.5rem;
    width: 2.5rem;
}

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

/* На самых узких экранах от логотипа остаётся значок, чтобы поместилась «Консультация» */
@media (max-width: 359px) {
    .header__logo-text {
        display: none;
    }
}

.header__logo-title {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    letter-spacing: -0.025em;
    color: #1B3666;
    line-height: 1;
}

.header__logo-subtitle {
    font-size: 0.625rem;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-top: 0.25rem;
}

.header__nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .header__nav {
        display: flex;
    }
}

.header__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.header__nav-link:hover {
    color: #1B3666;
}

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

.header__theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 9999px;
    color: #6B7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header__theme-btn:hover {
    background-color: #F3F4F6;
}

.header__login-btn {
    display: flex;
    height: 2.5rem;
    padding: 0 1.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
    color: #374151;
    background: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.125rem;
    cursor: pointer;
    transition: all 0.3s;
}

/* Кнопка видна на любой ширине (меню в шапке нет), на телефоне — компактная */
@media (max-width: 639px) {
    .header__login-btn {
        height: 2.25rem;
        padding: 0 0.625rem;
        font-size: 0.75rem;
    }
}

.header__login-btn:hover {
    background-color: #F3F4F6;
    border-color: #9CA3AF;
    color: #111827;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #111827;
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        padding-top: 0;
    }
}

.hero__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo-circle {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 80px rgba(255, 255, 255, 0.4),
        0 0 120px rgba(255, 255, 255, 0.3);
    animation: logoGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out, background 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, -webkit-backdrop-filter 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .hero__logo-circle {
        width: 10rem;
        height: 10rem;
    }
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 40px rgba(255, 255, 255, 0.5),
            0 0 80px rgba(255, 255, 255, 0.4),
            0 0 120px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 60px rgba(255, 255, 255, 0.7),
            0 0 100px rgba(255, 255, 255, 0.6),
            0 0 150px rgba(255, 255, 255, 0.5);
    }
}

@keyframes logoGlowBlue {
    0%, 100% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 40px rgba(27, 54, 102, 0.7),
            0 0 80px rgba(27, 54, 102, 0.5),
            0 0 120px rgba(27, 54, 102, 0.4);
    }
    50% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 60px rgba(27, 54, 102, 0.9),
            0 0 100px rgba(27, 54, 102, 0.7),
            0 0 150px rgba(27, 54, 102, 0.6);
    }
}

@keyframes logoGlowOrange {
    0%, 100% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 40px rgba(224, 93, 68, 0.7),
            0 0 80px rgba(224, 93, 68, 0.5),
            0 0 120px rgba(224, 93, 68, 0.4);
    }
    50% {
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 60px rgba(224, 93, 68, 0.9),
            0 0 100px rgba(224, 93, 68, 0.7),
            0 0 150px rgba(224, 93, 68, 0.6);
    }
}

/* Logo glow color transitions */
.hero__logo-circle.glow-blue {
    animation: logoGlowBlue 3s ease-in-out infinite;
    transition: box-shadow 0.3s ease-in-out, background 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, -webkit-backdrop-filter 0.3s ease-in-out, border-color 0.3s ease-in-out;
    background: rgba(27, 54, 102, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(27, 54, 102, 0.4);
}

.hero__logo-circle.glow-orange {
    animation: logoGlowOrange 3s ease-in-out infinite;
    transition: box-shadow 0.3s ease-in-out, background 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, -webkit-backdrop-filter 0.3s ease-in-out, border-color 0.3s ease-in-out;
    background: rgba(255, 140, 118, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 140, 118, 0.4);
}

.hero__logo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Плавный переход градиента при смене цвета блюра */
.hero__logo-circle.glow-blue .hero__logo-gradient {
    background: linear-gradient(to top right, rgba(27, 54, 102, 0.2), transparent);
}

.hero__logo-circle.glow-orange .hero__logo-gradient {
    background: linear-gradient(to top right, rgba(255, 140, 118, 0.2), transparent);
}

.hero__logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    font-weight: 500;
    letter-spacing: -0.025em;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

@media (min-width: 768px) {
    .hero__logo-text {
        font-size: 3.75rem;
    }
}

.hero__side {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 50%;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

@media (min-width: 768px) {
    .hero__side {
        width: 50%;
        height: 100%;
        border-bottom: none;
    }

    .hero__side--left {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Рамка фокуса рисуется псевдоэлементом поверх фона: собственный outline ссылки
   Chromium отрисовывает под абсолютно позиционированными слоями .hero__bg-* */
.hero__side:focus-visible {
    outline: none;
}

.hero__side:focus-visible::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 2px solid #FFFFFF;
    z-index: 20;
    pointer-events: none;
}

.hero__side.expanding {
    transform: scale(1.1);
    z-index: 100;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.4;
    transform: scale(1);
    /* Оптимизация производительности */
    will-change: opacity, transform;
    content-visibility: auto;
}

.hero__bg-image--legal {
    background-image: url('../assets/hero-legal-1200.webp');
}

.hero__bg-image--creative {
    background-image: url('../assets/hero-creative-1200.webp');
}

@media (min-width: 768px) {
    .hero__bg-image--legal {
        background-image: url('../assets/hero-legal.webp');
    }

    .hero__bg-image--creative {
        background-image: url('../assets/hero-creative.webp');
    }
}

.hero__side:is(:hover, :focus-visible) .hero__bg-image {
    opacity: 0.7;
    transform: scale(1.05);
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    mix-blend-mode: multiply;
    transition: opacity 0.5s;
}

.hero__side--left .hero__bg-overlay {
    background: linear-gradient(to top, rgba(27, 54, 102, 0.9), rgba(67, 56, 202, 0.6));
}

@media (min-width: 768px) {
    .hero__side--left .hero__bg-overlay {
        background: linear-gradient(to right, rgba(27, 54, 102, 0.9), rgba(67, 56, 202, 0.6));
    }
}

.hero__side--right .hero__bg-overlay {
    background: linear-gradient(to bottom, rgba(255, 140, 118, 0.9), rgba(154, 52, 18, 0.6));
}

@media (min-width: 768px) {
    .hero__side--right .hero__bg-overlay {
        background: linear-gradient(to left, rgba(255, 140, 118, 0.9), rgba(154, 52, 18, 0.6));
    }
}

.hero__side:is(:hover, :focus-visible) .hero__bg-overlay {
    opacity: 0.8;
}

.hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero__side:is(:hover, :focus-visible) .hero__content {
    transform: translateY(0);
}

/* Приглушение до наведения задано частям, а не всему .hero__content: предок с opacity < 1 отрезает
   backdrop-filter плашки иконки от фона, и размытие появлялось рывком только в конце наведения */
.hero__icon,
.hero__title,
.hero__subtitle {
    opacity: 0.8;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero__side:is(:hover, :focus-visible) :is(.hero__icon, .hero__title, .hero__subtitle) {
    opacity: 1;
}

/* flex: высоту круга задаёт сама иконка, а не строка текста, иначе под иконкой остаётся пустая полоса */
.hero__icon {
    display: flex;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__title {
    font-size: 2.25rem;
    font-family: 'Playfair Display', serif;
    color: white;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

.hero__subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.125rem;
    }
}

.hero__side--left .hero__subtitle {
    color: #C7D2FE;
}

.hero__side--right .hero__subtitle {
    color: #FED7AA;
}

.hero__cta {
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(1rem);
}

.hero__side:is(:hover, :focus-visible) .hero__cta {
    opacity: 1;
    transform: translateY(0);
}

.hero__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid white;
    padding-bottom: 0.25rem;
    text-decoration: none;
    cursor: pointer;
}

/* Hero до 1024px: круг SA не закрывает текст, содержимое половин не уходит под шапку и не обрезается.
   Если содержимое не помещается, половины растут, и hero становится выше экрана */
@media (max-width: 1023px) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .hero__side {
        height: auto;
    }
}

/* Телефон: половины — две равные строки сетки. Пока содержимое помещается, они делят экран под шапкой
   поровну, иначе обе растут до высоты большего содержимого. Круг скрыт: места для него между половинами нет,
   а логотип есть в шапке */
@media (max-width: 767px) {
    .hero {
        display: grid;
        grid-template-rows: 1fr 1fr;
    }

    .hero__logo {
        display: none;
    }
}

/* 768–1023px: содержимое центрируется ниже шапки (5rem), круг — вместе с ним. Круг и заголовки меньше,
   а заголовок уже содержимого на 4rem, поэтому его края не ближе 1rem к кругу 6rem */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero__logo {
        top: calc(50% + 2.5rem);
    }

    .hero__logo-circle {
        width: 6rem;
        height: 6rem;
    }

    .hero__logo-text {
        font-size: 2.25rem;
    }

    .hero__content {
        padding-top: calc(5rem + 2rem);
    }

    .hero__title {
        font-size: 2.25rem;
        max-width: calc(100% - 4rem);
    }
}

/* От 1024px: заголовок уже содержимого на 8rem, поэтому его края не ближе 1rem к кругу 10rem.
   Длинный заголовок переносится на две строки, пока в одну строку с таким зазором не помещается */
@media (min-width: 1024px) {
    .hero__title {
        max-width: calc(100% - 8rem);
    }
}

/* 1024–1099px: слово «Юридическая» шрифтом 3rem шире такого заголовка, поэтому шрифт чуть меньше.
   Высота строки прежняя (1.5 × 3rem): иначе подзаголовок поднимается ближе к кругу */
@media (min-width: 1024px) and (max-width: 1099px) {
    .hero__title {
        font-size: 2.75rem;
        line-height: 4.5rem;
    }
}

/* Сенсорный экран: наведения нет, поэтому содержимое половин и подпись «Войти в … портал» видны сразу */
@media (hover: none) {
    .hero__content,
    .hero__cta {
        transform: none;
    }

    .hero__icon,
    .hero__title,
    .hero__subtitle,
    .hero__cta {
        opacity: 1;
    }
}

/* ========== ECOSYSTEM SECTION ========== */
.ecosystem {
    background-color: #F3F4F6;
}

.protected-growth {
    padding: 6rem 0;
    border-bottom: 1px solid #E5E7EB;
    background-color: white;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.two-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .two-column {
        flex-direction: row;
    }
}

.column {
    width: 100%;
}

@media (min-width: 1024px) {
    .column {
        width: 50%;
    }
}

.section-label {
    color: #1B3666;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-label--secondary {
    color: #FF8C76;
}

.section-title {
    font-size: 2.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-text {
    color: #4B5563;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background-color: rgba(27, 54, 102, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    color: #1B3666;
    border-radius: 9999px;
    border: 1px solid rgba(27, 54, 102, 0.1);
}

.visual-card {
    position: relative;
    padding: 3rem;
    background-color: #F9FAFB;
    border-radius: 1rem;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background-color: rgba(27, 54, 102, 0.05);
    border-radius: 9999px;
    filter: blur(3rem);
    margin-right: -4rem;
    margin-top: -4rem;
    transition: background-color 0.3s;
}

.visual-card:hover::before {
    background-color: rgba(27, 54, 102, 0.1);
}

.visual-card__icon {
    position: relative;
    z-index: 10;
    width: 6rem;
    height: 6rem;
    background-color: #1B3666;
    color: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(27, 54, 102, 0.3);
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background-color: #1B3666;
    width: 100%;
    transform-origin: left;
    transition: transform 1s;
}

.progress-bar--75 {
    width: 75%;
}

.progress-bar--50 {
    width: 50%;
}

.visual-card__quote {
    margin-top: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1F2937;
    font-style: italic;
}

/* ========== STATISTICS SECTION ========== */
.stats {
    width: 100%;
    background-color: #111827;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

@media (min-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    position: relative;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .stat-card {
        border-bottom: none;
    }

    .stat-card:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (min-width: 1024px) {
    .stat-card:nth-child(4) {
        border-right: none;
    }
}

.stat-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: all 0.7s;
    transform: scale(1);
    filter: grayscale(100%);
    mix-blend-mode: overlay;
    /* Оптимизация производительности */
    will-change: opacity, transform;
    content-visibility: auto;
}

.stat-card__bg--1 {
    background-image: url('../assets/stat-card-1.webp');
}

.stat-card__bg--2 {
    background-image: url('../assets/stat-card-2.webp');
}

.stat-card__bg--3 {
    background-image: url('../assets/stat-card-3.webp');
}

.stat-card__bg--4 {
    background-image: url('../assets/stat-card-4.webp');
}

.stat-card:hover .stat-card__bg {
    opacity: 0.2;
    transform: scale(1.05);
}

.stat-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.5), rgba(17, 24, 39, 0.8));
    pointer-events: none;
}

.stat-card__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-card__number {
    font-size: 3.75rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    transition: color 0.3s;
}

@media (min-width: 1024px) {
    .stat-card__number {
        font-size: 4.5rem;
    }
}

.stat-card:hover .stat-card__number {
    color: #A5B4FC;
}

.stat-card__divider {
    height: 1px;
    width: 4rem;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin-bottom: 1.5rem;
    transition: all 0.5s;
}

.stat-card:hover .stat-card__divider {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #D1D5DB;
    margin-bottom: 0.5rem;
}

.stat-card__description {
    font-size: 0.6875rem;
    color: #9CA3AF;
    font-weight: 500;
    max-width: 180px;
    line-height: 1.5;
}

/* ========== GLOBAL OPERATIONS BANNER ========== */
.global-ops {
    position: relative;
    padding: 8rem 0;
    background-color: #112244;
    overflow: hidden;
}

.global-ops__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('../assets/cubes.svg');
}

.global-ops__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #112244, #1B3666, transparent);
    opacity: 0.8;
}

.global-ops__content {
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .global-ops__content {
        flex-direction: row;
    }
}

.global-ops__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #C7D2FE;
    font-size: 0.625rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.global-ops__title {
    font-size: 2.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .global-ops__title {
        font-size: 3.75rem;
    }
}

.global-ops__text {
    color: #C7D2FE;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.75;
    max-width: 42rem;
}

.global-ops__icon-wrapper {
    display: none;
}

@media (min-width: 1024px) {
    .global-ops__icon-wrapper {
        display: block;
    }
}

.global-ops__icon-outer {
    width: 12rem;
    height: 12rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.global-ops__icon-inner {
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ========== ABOUT SECTION ========== */
.about {
    padding: 6rem 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333%;
    height: 100%;
    background-color: rgba(249, 250, 251, 0.5);
    transform: skewX(-12deg) translateX(8rem);
    z-index: 0;
}

/* Расширяем левую колонку в секции about для размещения заголовка */
@media (min-width: 1024px) {
    .about .column:first-child {
        width: 55%;
    }
    
    .about .column:last-child {
        width: 45%;
    }
}

@media (min-width: 1280px) {
    .about .column:first-child {
        width: 50%;
    }
    
    .about .column:last-child {
        width: 50%;
    }
}

.about__title {
    line-height: 1.15;
}

/* Адаптивный размер шрифта для заголовка about */
@media (min-width: 768px) and (max-width: 1023px) {
    .about__title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .about__title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1280px) {
    .about__title {
        font-size: 3rem;
    }
}

.about__title-highlight {
    position: relative;
    display: inline-block;
    font-style: italic;
    isolation: isolate; /* Создаем новый stacking context для z-index */
}

/* Предотвращаем перенос выделенных слов на отдельные строки на больших экранах */
.about__title-line {
    display: inline;
}

@media (min-width: 640px) {
    .about__title-line {
        white-space: nowrap;
    }
}

.about__title-highlight--primary {
    color: #1B3666;
}

.about__title-highlight--secondary {
    color: #FF8C76;
}

.about__title-underline {
    position: absolute;
    bottom: 0.25rem; /* 4px от низа - соответствует bottom-1 в Tailwind */
    left: 0;
    width: 100%;
    height: 0.5rem; /* 8px высота - соответствует h-2 в Tailwind */
    z-index: -1;
}

.about__title-underline--primary {
    background-color: rgba(27, 54, 102, 0.1); /* Синий с прозрачностью 10% - bg-primary/10 */
}

.about__title-underline--secondary {
    background-color: rgba(255, 140, 118, 0.1); /* Оранжевый с прозрачностью 10% - bg-secondary/10 */
}

.about__stats {
    display: flex;
    gap: 1.5rem;
}

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

.about__stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1F2937;
    font-family: 'Playfair Display', serif;
}

.about__stat-label {
    font-size: 0.75rem;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.about__stat-divider {
    width: 1px;
    height: 3rem;
    background-color: #E5E7EB;
}

.about__images {
    position: relative;
    height: 500px;
    width: 100%;
}

.about__image-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 75%;
    background-color: #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.about__image-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background-color: #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 20;
    border: 4px solid white;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Улучшение качества изображений в секции About */
#about img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.about__image--grayscale {
    filter: grayscale(100%);
    transition: filter 0.7s;
}

.about__image--grayscale:hover {
    filter: grayscale(0%);
}

.about__decoration {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 8rem;
    height: 8rem;
    border: 2px solid rgba(27, 54, 102, 0.2);
    border-radius: 9999px;
    z-index: 0;
}

/* ========== SITE FOOTER ========== */
 .site-footer {
     background-color: var(--footer-bg);
     color: var(--footer-text);
     border-top: 1px solid var(--footer-border);
 }

 .site-footer__container {
     margin-left: auto;
     margin-right: auto;
     max-width: 80rem;
     padding: 2rem 1.5rem 1rem;
 }

 .site-footer__contacts {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     margin-bottom: 2rem;
     padding-bottom: 2rem;
     border-bottom: 1px solid var(--footer-border);
 }

 @media (min-width: 768px) {
     .site-footer__contacts {
         grid-template-columns: 1fr 1fr;
         gap: 3rem;
     }
 }

 .site-footer__contact-group {
     display: flex;
     flex-direction: column;
     gap: 1rem;
 }

 .site-footer__contact-title {
     font-size: 1rem;
     font-weight: 600;
     color: var(--footer-text);
     margin: 0;
 }

 .site-footer__contact-items {
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
 }

 .site-footer__contact-link {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--footer-muted);
     text-decoration: none;
     transition: color 0.2s;
     font-size: 0.875rem;
 }

 .site-footer__contact-link .material-symbols-outlined {
     font-size: 18px;
 }

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

 .site-footer__contact-address {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--footer-muted);
     font-size: 0.875rem;
     line-height: 1.5;
 }

 .site-footer__contact-address .material-symbols-outlined {
     font-size: 18px;
     flex-shrink: 0;
 }

 .site-footer__row {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     font-size: 0.875rem;
 }

 @media (min-width: 768px) {
     .site-footer__row {
         flex-direction: row;
     }
 }

 .site-footer__nav {
     display: flex;
     align-items: center;
     gap: 1.5rem;
 }

 .site-footer__left {
     color: var(--footer-muted);
 }

 .site-footer__link,
 .site-footer__top {
     color: var(--footer-muted);
     text-decoration: none;
     transition: color 0.2s;
 }

 .site-footer__link:hover,
 .site-footer__top:hover {
     color: var(--footer-link-hover);
 }

 .modal-overlay {
     position: fixed;
     inset: 0;
     z-index: 9999;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 1rem;
     background: var(--modal-overlay-bg, rgba(255, 255, 255, 0.12));
     backdrop-filter: blur(var(--modal-overlay-blur, 12px));
     -webkit-backdrop-filter: blur(var(--modal-overlay-blur, 12px));
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
 }

 .modal-overlay.is-open {
     opacity: 1;
     visibility: visible;
 }

 .modal-container {
     position: relative;
     width: 100%;
     max-width: 52rem;
     max-height: 90vh;
     background-color: #0F172A;
     font-family: "Inter", sans-serif;
     border-radius: 1rem;
     box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
     border: 1px solid var(--modal-border, rgba(255, 255, 255, 0.1));
     overflow-y: auto;
     overflow-x: hidden;
     isolation: isolate;
     backface-visibility: hidden;
     transform: translateZ(0) scale(0.95) translateY(20px);
     transition: transform 0.3s ease;
 }

 .modal-container::before,
 .modal-container::after {
     content: '';
     position: absolute;
     inset: 0;
     z-index: 0;
     pointer-events: none;
     will-change: opacity;
     backface-visibility: hidden;
     transform: translateZ(0);
     transition: opacity 0.45s ease;
 }

 .modal-container::before {
     background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
     opacity: 1;
 }

 .modal-container::after {
     background: linear-gradient(135deg, #1a1412 0%, #2d1f1a 100%);
     opacity: 0;
 }

 .modal-container[data-theme="smm"]::before {
     opacity: 0;
 }

 .modal-container[data-theme="smm"]::after {
     opacity: 1;
 }

 .modal-container[data-theme="legal"] {
     --modal-accent: #1B3666;
     --modal-accent-hover: #2a4a8a;
     --modal-muted: rgba(148, 163, 184, 0.9);
     --modal-muted-strong: rgba(148, 163, 184, 0.8);
     --modal-border: rgba(255, 255, 255, 0.1);
 }

 .modal-container[data-theme="smm"] {
     --modal-accent: #E05D44;
     --modal-accent-hover: #C94830;
     --modal-muted: rgba(251, 191, 171, 0.9);
     --modal-muted-strong: rgba(251, 191, 171, 0.8);
     --modal-border: rgba(224, 93, 68, 0.2);
 }

 .modal-overlay.is-open .modal-container {
     transform: scale(1) translateY(0);
 }

 .modal-noise {
     position: absolute;
     inset: 0;
     background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
     opacity: 0.03;
     pointer-events: none;
     z-index: 1;
 }

 .modal-header {
     position: relative;
     z-index: 10;
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     padding: 2rem 2rem 1rem;
 }

 .modal-title {
     font-family: 'Playfair Display', serif;
     font-size: 1.75rem;
     font-weight: 700;
     color: #FFFFFF;
     line-height: 1.2;
     margin-bottom: 0.25rem;
 }

 .modal-subtitle {
     font-size: 0.875rem;
     color: var(--modal-muted, rgba(148, 163, 184, 0.9));
     font-weight: 300;
 }

 .modal-close-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 2.5rem;
     height: 2.5rem;
     border-radius: 50%;
     background: transparent;
     border: none;
     color: var(--modal-muted-strong, rgba(148, 163, 184, 0.8));
     cursor: pointer;
     transition: all 0.2s ease;
 }

 .modal-close-btn:hover {
     background: rgba(255, 255, 255, 0.1);
     color: #FFFFFF;
 }

 .modal-content-wrapper {
     position: relative;
     z-index: 10;
     display: flex;
     flex-direction: column-reverse;
 }

 @media (min-width: 768px) {
     .modal-content-wrapper {
         flex-direction: row-reverse;
     }
 }

 .modal-contacts {
     position: relative;
     z-index: 20;
     width: 100%;
     background: rgba(0, 0, 0, 0.2);
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     padding: 2rem;
     flex-shrink: 0;
 }

 @media (min-width: 768px) {
     .modal-contacts {
         width: 20rem;
         border-bottom: none;
         border-left: 1px solid rgba(255, 255, 255, 0.1);
     }
 }

 .contacts-header {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin-bottom: 2rem;
 }

 .contacts-icon-wrapper {
     display: flex;
     height: 2rem;
     width: 2rem;
     align-items: center;
     justify-content: center;
     background: var(--modal-accent, #1B3666);
     background: color-mix(in srgb, var(--modal-accent, #1B3666) 20%, transparent);
     border-radius: 0.5rem;
     border: 1px solid color-mix(in srgb, var(--modal-accent, #1B3666) 30%, transparent);
 }

 .contacts-icon {
     font-size: 20px !important;
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 80%, white);
 }

 .contacts-title {
     font-size: 0.875rem;
     font-family: 'Playfair Display', serif;
     font-weight: 700;
     color: white;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .contacts-list {
     min-height: 10rem;
 }

 .contact-group {
     display: none;
     flex-direction: column;
     gap: 1.25rem;
 }

 .contact-group.active {
     display: flex;
 }

 .contact-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     text-decoration: none;
     transition: all 0.2s ease;
 }

 .contact-item:hover .contact-item-icon {
     background: rgba(255, 255, 255, 0.1);
 }

 .contact-item:hover .contact-item-value {
     color: white;
 }

 .contact-item-icon {
     width: 2rem;
     height: 2rem;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.05);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s ease;
 }

 .contact-item-icon .material-symbols-outlined {
     font-size: 14px !important;
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 70%, white);
 }

 .contact-item-label {
     font-size: 0.625rem;
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 60%, white);
     opacity: 0.6;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     margin-bottom: 0.125rem;
 }

 .contact-item-value {
     font-size: 0.875rem;
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 50%, white);
     font-weight: 500;
     transition: all 0.2s ease;
 }

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

 @media (min-width: 768px) {
     .contacts-address {
         margin-top: 0;
     }
 }

 .contacts-address-content {
     display: flex;
     align-items: flex-start;
     gap: 0.75rem;
 }

 .contacts-address-icon {
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 70%, white);
     font-size: 18px !important;
     margin-top: 0.125rem;
 }

 .contacts-address-label {
     font-size: 0.625rem;
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 60%, white);
     opacity: 0.6;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     font-weight: 700;
     margin-bottom: 0.25rem;
 }

 .contacts-address-value {
     font-size: 0.75rem;
     color: color-mix(in srgb, var(--modal-accent, #1B3666) 50%, white);
     line-height: 1.5;
     font-weight: 300;
 }

 .modal-form {
     position: relative;
     z-index: 10;
     padding: 0 2rem 2rem;
     flex: 1;
 }

 .form-toggle {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 0.5rem;
     padding: 0.25rem;
     background: rgba(0, 0, 0, 0.3);
     border-radius: 0.5rem;
     margin-bottom: 1.5rem;
 }

 .toggle-option {
     cursor: pointer;
 }

 .toggle-option input {
     position: absolute;
     opacity: 0;
     pointer-events: none;
 }

 .modal-overlay .toggle-label {
     text-align: center;
     padding: 0.75rem 1rem;
     border-radius: 0.375rem;
     font-size: 0.875rem;
     font-weight: 500;
     color: var(--modal-muted-strong, rgba(148, 163, 184, 0.8));
     transition: all 0.2s ease;
 }

 .toggle-option input:checked + .toggle-label {
     background: var(--modal-accent, #1B3666);
     color: #FFFFFF;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
 }

 .form-fields {
     display: flex;
     flex-direction: column;
     gap: 1rem;
 }

 .form-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1rem;
 }

 @media (max-width: 480px) {
     .form-row {
         grid-template-columns: 1fr;
     }
 }

 .form-group {
     display: flex;
     flex-direction: column;
     gap: 0.375rem;
 }

 .modal-overlay .form-label {
     font-size: 0.6875rem;
     font-weight: 500;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     color: var(--modal-muted, rgba(148, 163, 184, 0.9));
 }

 .modal-overlay .form-input {
     width: 100%;
     padding: 0.625rem 0.75rem;
     background: rgba(255, 255, 255, 0.05);
     border: none;
     border-bottom: 1px solid rgba(255, 255, 255, 0.15);
     border-radius: 0.25rem 0.25rem 0 0;
     color: #FFFFFF;
     font-size: 0.875rem;
     transition: all 0.2s ease;
 }

 .modal-overlay .form-input::placeholder {
     color: rgba(100, 116, 139, 0.8);
 }

 .modal-overlay .form-input:focus {
     outline: none;
     background: rgba(255, 255, 255, 0.08);
     border-bottom-color: var(--modal-accent, #1B3666);
 }

 .modal-overlay .form-textarea {
     resize: none;
     min-height: 80px;
 }

 .form-footer {
     margin-top: 1.5rem;
 }

 .modal-overlay .form-submit-btn {
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     padding: 1rem 1.5rem;
     background: var(--modal-accent, #1B3666);
     border: none;
     border-radius: 0.5rem;
     color: #FFFFFF;
     font-size: 0.9375rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.2s ease;
     box-shadow: 0 0 20px color-mix(in srgb, var(--modal-accent, #1B3666) 40%, transparent);
 }

 .modal-overlay .form-submit-btn:hover {
     background: var(--modal-accent-hover, #2a4a8a);
     box-shadow: 0 0 30px color-mix(in srgb, var(--modal-accent, #1B3666) 60%, transparent);
 }

 .form-submit-btn .material-symbols-outlined {
     font-size: 18px;
 }

 .form-disclaimer {
     margin-top: 1rem;
     text-align: center;
     font-size: 0.75rem;
     color: rgba(100, 116, 139, 0.6);
 }

 @media (max-width: 480px) {
     .modal-header {
         padding: 1.5rem 1.5rem 0.75rem;
     }

     .modal-title {
         font-size: 1.5rem;
     }

     .modal-form {
         padding: 0 1.5rem 1.5rem;
     }
 }
