/* styles.css */
:root {
    --color-white: #ffffff;
    --color-black: #0A1A2A;
    --color-blue: #0047AB;      /* Глубокий синий */
    --color-blue-light: #2A6FD1;
    --color-red: #e21a59;        /* Насыщенный красный */
    --color-red-light: #df3e5e;
    --color-gray-100: #F5F7FA;
    --color-gray-200: #E9ECF2;
    --color-gray-300: #DDE1E7;
    --color-gray-400: #B0BEC5;
    --color-gray-500: #78909C;
    --color-gray-600: #546E7A;
    --color-gray-700: #37474F;
    --color-gray-800: #263238;
    --color-gray-900: #0d1953;
    
    --shadow-sm: 0 4px 6px rgba(0, 71, 171, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 71, 171, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 71, 171, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 50px rgba(233, 131, 131, 0.2), 0 15px 30px rgba(0, 71, 171, 0.1);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Хедер */
.header {
    position: relative;
    width: 100%;
    background: var(--color-white);
}

/* Верхняя полоса */
.header-top {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 0.75rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--color-red);
}

.header-top__wrapper {
    display: flex;
    justify-content: space-between;
}

.header-top__info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.header-top__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top__item i {
    color: var(--color-red);
    font-size: 1rem;
}

.header-top__item a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.header-top__item a:hover {
    color: var(--color-red-light);
}

/* Основной хедер */
.header-main {
    background: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-main.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-main__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.header__top-logo {
    height: 80px;
    width: auto;
    display: block;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo-link:hover {
    transform: translateY(-2px);
}

/* Навигация (десктоп) */
.desktop-nav {
    display: block;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-blue);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Дропдаун меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 280px;
    list-style: none;
    padding: 1rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 100;
    border: 1px solid var(--color-gray-200);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--color-gray-700);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(0, 71, 171, 0.05), rgba(211, 47, 47, 0.05));
    color: var(--color-blue);
    padding-left: 2rem;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.burger-line {
    width: 30px;
    height: 3px;
    background: var(--color-gray-800);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-gray-900), var(--color-gray-800));
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu__title {
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background var(--transition-fast);
}

.mobile-menu__close:hover {
    background: var(--color-red);
}

.mobile-menu__nav {
    flex: 1;
    padding: 1.5rem;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.mobile-nav-link {
    color: var(--color-gray-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 0;
    display: block;
    transition: color var(--transition-fast);
}

.mobile-nav-link.active {
    color: var(--color-blue);
}

.mobile-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown__toggle {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--color-gray-600);
    cursor: pointer;
    padding: 1rem;
    transition: transform var(--transition-fast);
}

.mobile-dropdown__toggle.active {
    transform: rotate(180deg);
    color: var(--color-red);
}

.mobile-dropdown__menu {
    list-style: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.mobile-dropdown__menu.active {
    max-height: 500px;
}

.mobile-dropdown__menu li a {
    color: var(--color-gray-600);
    text-decoration: none;
    padding: 0.75rem 0;
    display: block;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.mobile-dropdown__menu li a:hover {
    color: var(--color-red);
}

.mobile-menu__footer {
    padding: 1.5rem;
    background: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
}

.mobile-menu__phone,
.mobile-menu__email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-700);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.mobile-menu__phone:hover,
.mobile-menu__email:hover {
    color: var(--color-red);
}

.mobile-menu__phone i,
.mobile-menu__email i {
    color: var(--color-blue);
    width: 20px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== PREMIUM HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-gray-900);
    isolation: isolate;
}

/* Продвинутый фон с эффектом стекла */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background__media {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    animation: kenBurns 25s infinite alternate;
    filter: saturate(1.2) contrast(1.1);
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, -1%); }
    100% { transform: scale(1.2) translate(2%, 1%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0,71,171,0.4) 0%, rgba(211,47,47,0.4) 100%);
    mix-blend-mode: overlay;
    backdrop-filter: blur(2px);
}

/* Частицы */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(5px);
    animation: floatParticle 15s infinite linear;
}

.particle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(0,71,171,0.2) 0%, transparent 70%);
    animation-delay: 0s;
}

.particle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 10%;
    background: radial-gradient(circle, rgba(211,47,47,0.15) 0%, transparent 70%);
    animation-delay: -5s;
}

.particle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation-delay: -2s;
}

.particle-4, .particle-5 {
    display: none;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 3%) rotate(120deg); }
    66% { transform: translate(-3%, 1%) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Динамическая сетка */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    opacity: 0.1;
}

.grid-line {
    height: 100%;
    border-left: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.grid-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -1px;
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, var(--color-red), transparent);
    animation: scanLine 8s infinite;
}

.grid-line:nth-child(2)::after {
    background: linear-gradient(to top, var(--color-blue), transparent);
    animation-delay: 2s;
}

.grid-line:nth-child(3)::after {
    background: linear-gradient(to top, var(--color-red), transparent);
    animation-delay: 4s;
}

.grid-line:nth-child(4)::after {
    background: linear-gradient(to top, var(--color-blue), transparent);
    animation-delay: 6s;
}

@keyframes scanLine {
    0% { transform: translateY(100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-1000%); opacity: 0; }
}

/* Контент */
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    max-width: 900px;
    padding: 4rem 0;
}

/* Бейдж */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideInLeft 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* Заголовок */
.hero-title {
    margin-bottom: 2rem;
    animation: slideInRight 0.6s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

.title-line--gradient {
    background: linear-gradient(135deg, #fff, var(--color-blue-light), var(--color-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 3D Карточки */
.hero-buttons-container {
    margin: 3rem 0 4rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.3rem;
    justify-content: center;  /* Центрируем карточки */
}

.hero-card {
    flex: 1 1 250px;        /* Увеличиваем базовый размер */
    min-width: 240px;        /* Увеличиваем минимальную ширину */
    max-width: 300px;        /* Добавляем максимальную ширину */
    height: 120px;
    perspective: 1000px;
    text-decoration: none;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    border-radius: 16px;
}

.hero-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-front {
    background: linear-gradient(135deg, rgba(0,71,171,0.2), rgba(211,47,47,0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hero-card:hover .card-shine {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-white) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-back {
    background: linear-gradient(135deg, var(--color-blue), var(--color-red));
    transform: rotateY(180deg);
    color: var(--color-white);
}

.card-back-text {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-back-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Метрики */
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.metric-item {
    min-width: 180px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.metric-number {
    background: linear-gradient(135deg, #fff, var(--color-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-plus, .metric-percent {
    font-size: 1.5rem;
    color: var(--color-red);
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.metric-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-red));
    border-radius: 2px;
    transform-origin: left;
    animation: progressFill 1.5s ease-out forwards;
}

@keyframes progressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.metric-item--accent .metric-number {
    background: linear-gradient(135deg, #fff, var(--color-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Декоративные элементы */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Орбы (светящиеся сферы) */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat 20s infinite alternate;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 15s infinite alternate-reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
    top: 30%;
    left: 30%;
    animation: orbFloat 12s infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.2); }
}

/* Флоу-линии */
.flow-line {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--color-red), var(--color-blue), transparent);
    opacity: 0.3;
}

.flow-line-1 {
    top: 20%;
    right: 15%;
    transform: rotate(15deg);
    animation: flowMove 8s infinite;
}

.flow-line-2 {
    bottom: 20%;
    left: 10%;
    transform: rotate(-10deg);
    animation: flowMove 6s infinite reverse;
}

@keyframes flowMove {
    0% { transform: translateY(-100%) rotate(15deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(500%) rotate(15deg); opacity: 0; }
}

/* Геометрические фигуры */
.shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.05);
    animation: shapeRotate 30s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -100px;
    left: -100px;
    border-color: rgba(0,71,171,0.2);
}

.shape-2 {
    width: 200px;
    height: 200px;
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
    bottom: 50px;
    right: 10%;
    border-color: rgba(211,47,47,0.2);
    animation-delay: -15s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 40%;
    right: 20%;
    border-color: rgba(255,255,255,0.1);
    animation-delay: -7s;
}

@keyframes shapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Индикатор скролла */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-red), var(--color-blue));
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.3; }
}

/* Анимации появления */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ПРЕМИУМ АДАПТИВ 4K ========== */
@media (min-width: 1921px) {

  .hero-card {
    flex: 1 1 300px;        /* Увеличиваем базовый размер */
    min-width: 330px;        /* Увеличиваем минимальную ширину */
    max-width: 350px;        /* Добавляем максимальную ширину для контроля */
    height: 160px;           /* Немного увеличиваем высоту пропорционально */
    perspective: 1200px;
    text-decoration: none;
    cursor: pointer;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  /* Также можно немного увеличить шрифт для пропорциональности */
  .card-title {
    font-size: 1.3rem;
  }

  /* Масштабирование декоративных элементов */
  .orb-1 {
    width: 800px;
    height: 800px;
  }

  .orb-2 {
    width: 600px;
    height: 600px;
  }

  .particle-1 {
    width: 500px;
    height: 500px;
  }
}

/* ========== DESKTOP WIDE ========== */
@media (min-width: 1441px) and (max-width: 1920px) {
  .container {
    max-width: 1400px;
  }

  .hero-content {
    max-width: 1000px;
    padding: 5rem 0;
  }

  .hero-title .title-line {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
  }
}

/* ========== DESKTOP ========== */
@media (min-width: 1025px) and (max-width: 1440px) {
  .container {
    max-width: 1200px;
    padding: 0 2rem;
  }

  .hero-content {
    max-width: 900px;
    padding: 5rem 0;
  }

  .hero-title .title-line {
    font-size: clamp(3rem, 4.5vw, 4rem);
  }

  .nav-list {
    gap: 1.5rem;
  }
}

/* ========== LAPTOP ========== */
@media (min-width: 993px) and (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 2rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header__top-logo {
    height: 70px;
  }

  .hero-content {
    max-width: 800px;
    padding: 5rem 0;
  }

  .hero-title .title-line {
    font-size: clamp(2.8rem, 4vw, 3.5rem);
  }

  .hero-buttons-wrapper {
    gap: 1rem;
  }

  .hero-card {
    min-width: 180px;
    height: 110px;
  }
}

/* ========== TABLET LANDSCAPE ========== */
@media (min-width: 769px) and (max-width: 992px) {
  .container {
    max-width: 720px;
    padding: 0 2rem;
  }

  /* Шапка - горизонтальное расположение */
  .header-top__wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .header-top__info {
    flex-direction: row;
    gap: 1.5rem;
  }

  .header-top__item {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .header-top__item--location span {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header__top-logo {
    height: 60px;
  }

  /* Hero секция - вертикальное расположение контента */
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 2rem auto;
    display: inline-flex;
  }

  .hero-title {
    max-width: 600px;
    margin: 0 auto 2rem auto;
  }

  .hero-title .title-line {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    text-align: center;
  }

  .title-line--gradient {
    font-size: clamp(2.4rem, 4.5vw, 3rem);
  }

  /* Карточки вертикально */
  .hero-buttons-container {
    width: 100%;
    margin: 2rem 0;
  }

  .hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
    min-width: 100%;
    max-width: 400px;
    height: 100px;
  }

  /* Метрики вертикально */
  .hero-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
  }

  .metric-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .metric-value {
    justify-content: center;
    font-size: 2.2rem;
  }

  .metric-progress {
    width: 100%;
  }

  /* Оптимизация декора */
  .orb-1 {
    width: 350px;
    height: 350px;
    opacity: 0.2;
  }

  .orb-2 {
    width: 250px;
    height: 250px;
    opacity: 0.2;
  }

  .orb-3 {
    display: none;
  }

  .particle-1 {
    width: 200px;
    height: 200px;
  }

  .particle-2 {
    width: 250px;
    height: 250px;
  }

  .particle-3 {
    display: none;
  }

  .flow-line-2 {
    display: none;
  }

  .shape-3 {
    display: none;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

/* ========== TABLET ========== */
@media (min-width: 577px) and (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 1.5rem;
  }

  /* Шапка - горизонтальное расположение */
  .header-top__wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .header-top__info {
    flex-direction: row;
    gap: 1rem;
  }

  .header-top__item {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .header-top__item--location span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header__top-logo {
    height: 50px;
  }

  /* Hero секция - вертикальное расположение контента */
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 1.5rem auto;
    display: inline-flex;
  }

  .hero-title {
    max-width: 450px;
    margin: 0 auto 1.5rem auto;
  }

  .hero-title .title-line {
    font-size: clamp(2rem, 5vw, 2.4rem);
    text-align: center;
  }

  .title-line--gradient {
    font-size: clamp(2.2rem, 5.5vw, 2.7rem);
  }

  /* Карточки вертикально */
  .hero-buttons-container {
    width: 100%;
    margin: 1.5rem 0;
  }

  .hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
    min-width: 100%;
    max-width: 350px;
    height: 95px;
  }

  .card-icon {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-back-text {
    font-size: 1.2rem;
  }

  /* Метрики вертикально */
  .hero-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
  }

  .metric-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .metric-value {
    justify-content: center;
    font-size: 2rem;
  }

  .metric-progress {
    width: 100%;
  }

  /* Скрываем декоративные элементы */
  .orb-3,
  .particle-3,
  .particle-4,
  .particle-5,
  .flow-line-2,
  .shape-2,
  .shape-3,
  .hero-scroll-indicator {
    display: none;
  }

  .orb-1 {
    width: 250px;
    height: 250px;
    opacity: 0.15;
  }

  .orb-2 {
    width: 200px;
    height: 200px;
    opacity: 0.15;
  }
}

/* ========== MOBILE LARGE ========== */
@media (min-width: 426px) and (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 1.25rem;
    margin: 0 auto;
  }

  /* Шапка - горизонтальное расположение */
  .header-top {
    display: none; /* Скрываем для экономии места */
  }

  .header-main {
    padding: 0.75rem 0;
  }

  .header-main__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header__top-logo {
    height: 45px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero секция - вертикальное расположение контента */
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 1.5rem auto;
    display: inline-flex;
    padding: 0.35rem 1.1rem;
  }

  .badge-dot {
    width: 6px;
    height: 6px;
  }

  .badge-text {
    font-size: 0.75rem;
  }

  .hero-title {
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
  }

  .hero-title .title-line {
    font-size: clamp(1.9rem, 5vw, 2.2rem);
    text-align: center;
  }

  .title-line--gradient {
    font-size: clamp(2.1rem, 5.5vw, 2.4rem);
  }

  /* Карточки вертикально */
  .hero-buttons-container {
    width: 100%;
    margin: 1.5rem 0;
  }

  .hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
    min-width: 100%;
    max-width: 340px;
    height: 90px;
  }

  .card-icon {
    font-size: 1.4rem;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-back-text {
    font-size: 1.15rem;
  }

  /* Метрики вертикально */
  .hero-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
  }

  .metric-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .metric-value {
    justify-content: center;
    font-size: 2rem;
  }

  .metric-plus,
  .metric-percent {
    font-size: 1.2rem;
  }

  .metric-label {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .metric-progress {
    width: 100%;
    height: 4px;
  }

  /* Скрываем декоративные элементы */
  .hero-particles,
  .hero-grid,
  .orb-1,
  .orb-2,
  .orb-3,
  .shape-1,
  .shape-2,
  .flow-line,
  .hero-scroll-indicator {
    display: none;
  }
}

/* ========== MOBILE ========== */
@media (min-width: 376px) and (max-width: 425px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
  }

  /* Шапка */
  .header-top {
    display: none;
  }

  .header-main {
    padding: 0.75rem 0;
  }

  .header__top-logo {
    height: 40px;
  }

  /* Hero секция */
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 1.25rem auto;
    padding: 0.3rem 1rem;
    display: inline-flex;
  }

  .badge-dot {
    width: 5px;
    height: 5px;
  }

  .badge-text {
    font-size: 0.7rem;
  }

  .hero-title {
    max-width: 320px;
    margin: 0 auto 1.25rem auto;
  }

  .hero-title .title-line {
    font-size: 1.7rem;
    text-align: center;
  }

  .title-line--gradient {
    font-size: 1.9rem;
  }

  /* Карточки вертикально */
  .hero-buttons-container {
    width: 100%;
    margin: 1.25rem 0;
  }

  .hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
    height: 85px;
  }

  .card-icon {
    font-size: 1.3rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-back-text {
    font-size: 1.1rem;
  }

  /* Метрики вертикально */
  .hero-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.25rem;
  }

  .metric-item {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .metric-value {
    justify-content: center;
    font-size: 1.8rem;
  }

  .metric-plus,
  .metric-percent {
    font-size: 1.1rem;
  }

  .metric-label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .metric-progress {
    width: 100%;
    height: 4px;
  }

  /* Скрываем декоративные элементы */
  .hero-particles,
  .hero-grid,
  .orb-1,
  .orb-2,
  .orb-3,
  .shape-1,
  .shape-2,
  .flow-line,
  .hero-scroll-indicator {
    display: none;
  }
}

/* ========== MOBILE SMALL ========== */
@media (min-width: 321px) and (max-width: 375px) {
  .container {
    max-width: 100%;
    padding: 0 0.75rem;
    margin: 0 auto;
  }

  /* Шапка */
  .header-top {
    display: none;
  }

  .header-main {
    padding: 0.5rem 0;
  }

  .header__top-logo {
    height: 35px;
  }

  /* Hero секция */
  .hero {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .hero-content {
    text-align: center;
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 1rem auto;
    padding: 0.25rem 0.8rem;
    display: inline-flex;
  }

  .badge-text {
    font-size: 0.65rem;
  }

  .hero-title {
    max-width: 280px;
    margin: 0 auto 1rem auto;
  }

  .hero-title .title-line {
    font-size: 1.5rem;
    text-align: center;
  }

  .title-line--gradient {
    font-size: 1.7rem;
  }

  /* Карточки вертикально */
  .hero-buttons-container {
    width: 100%;
    margin: 1rem 0;
  }

  .hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
    height: 80px;
  }

  .card-icon {
    font-size: 1.2rem;
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-back-text {
    font-size: 1rem;
  }

  /* Метрики вертикально */
  .hero-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  .metric-item {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }

  .metric-value {
    justify-content: center;
    font-size: 1.6rem;
  }

  .metric-plus,
  .metric-percent {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }

  .metric-progress {
    width: 100%;
    height: 3px;
  }

  /* Скрываем декоративные элементы */
  .hero-particles,
  .hero-grid,
  .orb-1,
  .orb-2,
  .orb-3,
  .shape-1,
  .shape-2,
  .flow-line,
  .hero-scroll-indicator {
    display: none;
  }
}

/* ========== MOBILE XS ========== */
@media (max-width: 320px) {
  .container {
    max-width: 100%;
    padding: 0 0.5rem;
    margin: 0 auto;
  }

  /* Шапка */
  .header-top {
    display: none;
  }

  .header-main {
    padding: 0.5rem 0;
  }

  .header__top-logo {
    height: 30px;
  }

  /* Hero секция */
  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  .hero-content {
    text-align: center;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin: 0 auto 0.75rem auto;
    padding: 0.2rem 0.6rem;
    display: inline-flex;
  }

  .badge-dot {
    width: 4px;
    height: 4px;
  }

  .badge-text {
    font-size: 0.6rem;
  }

  .hero-title {
    max-width: 220px;
    margin: 0 auto 0.75rem auto;
  }

  .hero-title .title-line {
    font-size: 1.3rem;
    text-align: center;
  }

  .title-line--gradient {
    font-size: 1.5rem;
  }

  /* Карточки вертикально */
  .hero-buttons-container {
    width: 100%;
    margin: 0.75rem 0;
  }

  .hero-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-width: 220px;
    margin: 0 auto;
  }

  .hero-card {
    width: 100%;
    height: 70px;
  }

  .card-icon {
    font-size: 1.1rem;
  }

  .card-title {
    font-size: 0.75rem;
  }

  .card-back-text {
    font-size: 0.9rem;
  }

  /* Метрики вертикально */
  .hero-metrics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
  }

  .metric-item {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .metric-value {
    justify-content: center;
    font-size: 1.4rem;
  }

  .metric-plus,
  .metric-percent {
    font-size: 0.9rem;
  }

  .metric-label {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }

  .metric-progress {
    width: 100%;
    height: 2px;
  }

  /* Скрываем декоративные элементы */
  .hero-particles,
  .hero-grid,
  .orb-1,
  .orb-2,
  .orb-3,
  .shape-1,
  .shape-2,
  .flow-line,
  .hero-scroll-indicator {
    display: none;
  }
}

/* ========== ПОДДЕРЖКА ЛАНДШАФТНОЙ ОРИЕНТАЦИИ ========== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .hero-content {
    padding: 1rem 0;
  }
  
  .hero-buttons-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  
  .hero-card {
    flex: 0 1 180px;
    height: 80px;
  }
  
  .hero-metrics {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .metric-item {
    flex: 0 1 160px;
  }

  /* Показываем декор в ландшафте? Нет, скрываем для единообразия */
  .hero-particles,
  .hero-grid,
  .orb-1,
  .orb-2,
  .orb-3,
  .shape-1,
  .shape-2,
  .flow-line,
  .hero-scroll-indicator {
    display: none;
  }
}