/* ============================================
   ATRIMUT — Landing (Точный референс)
   ============================================ */

:root {
    --bg-0: #060912;
    --bg-1: #0a0f1c;
    --bg-2: #0f1524;
    --panel-bg: rgba(12, 18, 33, 0.55);
    --panel-border: rgba(74, 163, 255, 0.22);
    --panel-border-strong: rgba(74, 163, 255, 0.4);

    --text: #ffffff;
    --text-strong: #ffffff;
    --text-muted: #8892a8;
    --text-faint: #5b6478;

    --accent: #4aa3ff;
    --accent-2: #7cc7ff;
    --accent-glow: rgba(74, 163, 255, 0.5);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-full: 999px;

    --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* Диаграмма — единая система координат.
       Меняйте --diagram-size / --node-radius чтобы синхронно двигать всё. */
    --diagram-size: 660px;
    --node-radius: 260px;   /* Радиус окружности, на которой стоят центры плашек */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-0);
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.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;
}

/* ============================================
   ФОН
   ============================================ */
body {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(30, 60, 130, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(20, 50, 110, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(40, 80, 150, 0.22) 0%, transparent 60%),
        linear-gradient(180deg, #060912 0%, #0a0f1c 50%, #050810 100%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 163, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 163, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 90%);
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(74, 163, 255, 0.15) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Canvas с частицами: тор-эллипсы + потоки данных + звёзды */
.bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
}

/* ============================================
   PAGE
   ============================================ */
.page {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 36px 32px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   HEADER + LOGO
   ============================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(74, 163, 255, 0.28));
}

.logo-mark {
    width: auto;
    height: 58px;
    display: block;
    object-fit: contain;
}

.logo-svg {
    width: auto;
    height: 58px;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 44px;
    flex: 1;
    justify-content: center;
}
.nav a {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    position: relative;
}
.nav a:hover { color: var(--accent-2); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--r-full);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.btn-ghost {
    background: rgba(15, 22, 40, 0.5);
    border-color: rgba(120, 145, 190, 0.25);
    color: #fff;
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(30, 50, 90, 0.6); border-color: var(--accent); }
.btn-primary {
    background: linear-gradient(180deg, #2b7ad9 0%, #1e5cb0 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 92, 176, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 22px rgba(74, 163, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.2); }

/* ============================================
   HERO
   ============================================ */
.hero {
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    gap: 28px;
    align-items: stretch;
    flex: 1;
    min-height: 640px;
}

/* -------- LEFT column -------- */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-title {
    font-size: 46px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 520px;
    width: 560px;
    position: relative;
    z-index: 2;
}
.hero-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 290px;
    margin-top: -6px;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(74, 163, 255, 0.08);
    border: 1px solid rgba(74, 163, 255, 0.2);
    display: grid;
    place-items: center;
    color: var(--accent-2);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.feature-text strong { color: #fff; font-weight: 600; }
.feature-text span { color: var(--text-muted); }

.approach-card {
    margin-top: auto;
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: rgba(12, 20, 38, 0.55);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
}
.approach-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--accent-2); }
.approach-icon svg { width: 100%; height: 100%; }
.approach-body h3 { font-size: 15px; line-height: 1.25; font-weight: 600; color: #fff; margin-bottom: 8px; }
.approach-body p { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); margin-bottom: 12px; }
.approach-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--accent); }
.approach-link:hover { color: var(--accent-2); }

/* ============================================
   CENTER — ДИАГРАММА
   Плашки размещены строго по окружности радиусом R = --node-radius
   от центра диаграммы. Углы задаются CSS-переменной --angle.
   ============================================ */
.hero-center {
    display: grid;
    place-items: center;
    padding: 10px 0;
    position: relative;
}

.diagram {
    position: relative;
    width: 100%;
    max-width: var(--diagram-size);
    aspect-ratio: 1 / 1;
}

.diagram-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.diagram-center-img {
    position: absolute;
    top: 50%; left: 50%;
    width: 55%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 40px rgba(74, 163, 255, 0.35));
    mix-blend-mode: screen;
    mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 55%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 55%, transparent 85%);
    pointer-events: none;
}
.diagram-center-img img { width: 100%; height: 100%; object-fit: contain; }

/* УЗЛЫ — базовый стиль */
.node {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    padding: 14px 14px 14px;
    border-radius: var(--r-lg);
    background: rgba(11, 17, 32, 0.72);
    border: 1px solid rgba(74, 163, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 0 0 0 rgba(74, 163, 255, 0);
    cursor: pointer;
    z-index: 3;

    /* Позиция по полярным координатам:
       угол задаётся --angle (0° = вверх, растёт по часовой),
       радиус = --node-radius (в px).
       x = sin(angle)*R, y = -cos(angle)*R */
    --tx: calc(sin(var(--angle)) * var(--node-radius));
    --ty: calc(cos(var(--angle)) * var(--node-radius) * -1);

    transform:
        translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)));

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

/* HOVER — плашка приподнимается, подсвечивается и мягко пульсирует */
.node:hover,
.node:focus-visible {
    background: rgba(20, 40, 80, 0.85);
    border-color: var(--accent-2);
    box-shadow:
        0 12px 40px rgba(74, 163, 255, 0.35),
        0 0 0 1px rgba(124, 199, 255, 0.4) inset,
        0 0 60px rgba(74, 163, 255, 0.25);
    outline: none;
    transform:
        translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
        scale(1.06);
    z-index: 5;
}

.node:hover .node-icon,
.node:focus-visible .node-icon {
    border-color: var(--accent-2);
    filter: drop-shadow(0 0 12px var(--accent-glow)) brightness(1.12);
    transform: translateY(-2px) scale(1.03);
}

.node:hover .node-title,
.node:focus-visible .node-title {
    color: var(--accent-2);
}

/* Позиции узлов по кругу — 5 точек через 72°.
   Начало сверху (0°), далее по часовой стрелке. */
.node-pos-top       { --angle: 0deg;   }   /* Российское ПО */
.node-pos-right-top { --angle: 72deg;  }   /* Реинжиниринг */
.node-pos-right-bot { --angle: 144deg; }   /* ИТ-сервис */
.node-pos-left-bot  { --angle: 216deg; }   /* 3D-печать */
.node-pos-left-top  { --angle: 288deg; }   /* 3D-сканирование */

.node-icon {
    width: 100%;
    max-width: 168px;
    aspect-ratio: 16 / 10;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 40, 80, 0.4), rgba(10, 20, 45, 0.5));
    border: 1px solid rgba(74, 163, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
    transition: border-color 0.3s, filter 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.node-icon img,
.node-icon svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.node-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    transition: color 0.3s;
}
.node-desc {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Пульсация точек на линиях */
@keyframes pulseDot {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50%      { opacity: 1;    transform: scale(1.2); }
}
.pulse-dot {
    transform-origin: center;
    transform-box: fill-box;
    animation: pulseDot 2.6s ease-in-out infinite;
}
.pulse-dot:nth-child(2n) { animation-delay: 0.6s; }
.pulse-dot:nth-child(3n) { animation-delay: 1.2s; }
.pulse-dot:nth-child(5n) { animation-delay: 1.8s; }

/* ============================================
   Шевроны между плашками — мерцать по очереди ("бегущая волна")
   ============================================ */
@keyframes chevronPulse {
    0%, 100% { opacity: 0.3; filter: none; }
    /* Окно активности: 20% цикла (как раз на 5 шевронов, чтобы не перекрывались) */
    10%      { opacity: 1;    filter: drop-shadow(0 0 6px rgba(124, 199, 255, 0.9)); }
    20%      { opacity: 0.3;  filter: none; }
}

.chevron-set {
    animation: chevronPulse 3.5s ease-in-out infinite;
    opacity: 0.3;
    transform-origin: center;
}
/* Последовательный запуск: шаг = 3.5s / 5 = 0.7s.
   Направление по часовой стрелке — как идут сами шевроны. */
.chevron-set-1 { animation-delay: 0s; }
.chevron-set-2 { animation-delay: 0.7s; }
.chevron-set-3 { animation-delay: 1.4s; }
.chevron-set-4 { animation-delay: 2.1s; }
.chevron-set-5 { animation-delay: 2.8s; }

@media (prefers-reduced-motion: reduce) {
    .chevron-set { animation: none; opacity: 0.7; }
    .pulse-dot { animation: none; }
}

/* ============================================
   RIGHT column
   ============================================ */
.hero-right { display: flex; }

.product-card {
    display: flex;
    flex-direction: column;
    padding: 24px 24px 22px;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(15, 25, 48, 0.75) 0%, rgba(10, 16, 30, 0.7) 100%);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 100%;
}
.product-badge {
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: var(--r-full);
    background: rgba(74, 163, 255, 0.08);
    border: 1px solid rgba(74, 163, 255, 0.35);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}
.product-title {
    font-size: 30px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 14px;
}
.product-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.product-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.product-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.check-circle {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--accent);
    display: grid;
    place-items: center;
    color: var(--accent);
    margin-top: 2px;
}
.check-circle svg { width: 12px; height: 12px; }
.product-image {
    margin: 8px 0 18px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: rgba(6, 10, 20, 0.4);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(74, 163, 255, 0.15), 0 8px 24px rgba(0,0,0,0.4);
}
.product-image img,
.product-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; font-weight: 500;
    color: var(--accent); align-self: flex-start;
}
.product-link:hover { color: var(--accent-2); }

/* ============================================
   STATS
   ============================================ */
.stats {
    margin-top: 40px;
    padding: 28px 4px 0;
    border-top: 1px solid rgba(74, 163, 255, 0.15);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
}
.stat { display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 56px; height: 56px; flex-shrink: 0; color: var(--accent); opacity: 0.9; }
.stat-icon svg { width: 100%; height: 100%; }
.stat-map {
    width: 130px;
    height: 70px;
    flex-shrink: 0;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-map svg { width: 100%; height: 100%; }
.stat-map .map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Окрашиваем чёрный SVG (fill в исходнике) в синий accent-цвет через CSS-фильтр.
       hue-rotate + saturate + brightness дают оттенок близкий к #4aa3ff. */
    filter:
        brightness(0)
        invert(53%)
        sepia(60%)
        saturate(1800%)
        hue-rotate(190deg)
        brightness(1.05)
        drop-shadow(0 0 6px rgba(74, 163, 255, 0.4));
    opacity: 0.85;
}
.stat-body { display: flex; flex-direction: column; gap: 4px; }
.stat-value { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.stat-num { font-size: 39px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.stat-suffix { font-size: 15px; font-weight: 500; color: var(--accent-2); }
.stat-value-region { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--accent-2); letter-spacing: -0.01em; }
.stat-desc { font-size: 11.5px; line-height: 1.35; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    :root { --diagram-size: 580px; --node-radius: 230px; }
    .page { padding: 20px 24px 32px; }
    .hero { grid-template-columns: 260px 1fr 300px; gap: 20px; }
    .hero-title { font-size: 40px; width: auto; max-width: 100%; }
    .nav { gap: 28px; }
    .stat-num { font-size: 32px; }
    .logo-svg,
    .logo-mark { height: 52px; }
    .node { width: 188px; padding: 14px 10px 12px; }
}

@media (max-width: 1024px) {
    :root { --diagram-size: 560px; --node-radius: 220px; }
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .hero-title { font-size: 44px; width: auto; }
    .diagram { max-width: var(--diagram-size); margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; }
    .header-actions .btn-ghost { display: none; }
    .logo-svg,
    .logo-mark { height: 46px; }
}

@media (max-width: 640px) {
    :root { --diagram-size: 380px; --node-radius: 145px; }
    .page { padding: 16px 16px 24px; }
    .header { flex-wrap: wrap; }
    .logo-svg,
    .logo-mark { height: 40px; }
    .hero-title { font-size: 32px; }
    .product-title { font-size: 24px; }
    .stats { grid-template-columns: 1fr; gap: 20px; }
    .stat-num { font-size: 29px; }
    .node { width: 130px; padding: 10px 6px 8px; }
    .node-title { font-size: 12px; }
    .node-desc { font-size: 9.5px; }
    .node-icon { width: 32px; height: 26px; margin-bottom: 6px; }
}

/* Fallback для браузеров без поддержки trig-функций CSS.
   Статические полярные координаты пяти точек на окружности R=260px:
   0°:   (0,     -260)
   72°:  (247,   -80)   → sin72=0.951, cos72=0.309
   144°: (153,    210)  → sin144=0.588, cos144=-0.809
   216°: (-153,   210)
   288°: (-247,  -80)   */
@supports not (top: calc(sin(1deg) * 1px)) {
    .node-pos-top       { transform: translate(calc(-50% + 0px),      calc(-50% - 260px)); }
    .node-pos-right-top { transform: translate(calc(-50% + 247px),    calc(-50% - 80px)); }
    .node-pos-right-bot { transform: translate(calc(-50% + 153px),    calc(-50% + 210px)); }
    .node-pos-left-bot  { transform: translate(calc(-50% - 153px),    calc(-50% + 210px)); }
    .node-pos-left-top  { transform: translate(calc(-50% - 247px),    calc(-50% - 80px)); }

    .node-pos-top:hover, .node-pos-top:focus-visible             { transform: translate(calc(-50% + 0px),   calc(-50% - 260px)) scale(1.06); }
    .node-pos-right-top:hover, .node-pos-right-top:focus-visible { transform: translate(calc(-50% + 247px), calc(-50% - 80px)) scale(1.06); }
    .node-pos-right-bot:hover, .node-pos-right-bot:focus-visible { transform: translate(calc(-50% + 153px), calc(-50% + 210px)) scale(1.06); }
    .node-pos-left-bot:hover, .node-pos-left-bot:focus-visible   { transform: translate(calc(-50% - 153px), calc(-50% + 210px)) scale(1.06); }
    .node-pos-left-top:hover, .node-pos-left-top:focus-visible   { transform: translate(calc(-50% - 247px), calc(-50% - 80px)) scale(1.06); }
}

/* ============================================
   FOOTER — реквизиты и копирайт
   ============================================ */
.footer {
    margin-top: 32px;
    padding: 20px 4px 4px;
    border-top: 1px solid rgba(74, 163, 255, 0.12);
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
}
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-req {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-req span { color: var(--text-muted); }
.footer-req b {
    color: var(--accent-2);
    font-weight: 600;
    margin-right: 4px;
    letter-spacing: 0.02em;
}
.footer-copy {
    color: var(--text-faint);
    font-size: 12px;
}

/* ============================================
   MODAL — контакты
   ============================================ */
.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.modal-card {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 32px 26px;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(18, 28, 52, 0.98) 0%, rgba(10, 16, 30, 0.98) 100%);
    border: 1px solid var(--panel-border-strong);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(74, 163, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(74, 163, 255, 0.05);
    border: 1px solid rgba(74, 163, 255, 0.15);
    transition: all 0.2s;
}
.modal-close:hover {
    color: #fff;
    background: rgba(74, 163, 255, 0.15);
    border-color: var(--accent);
}

.modal-badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: var(--r-full);
    background: rgba(74, 163, 255, 0.1);
    border: 1px solid rgba(74, 163, 255, 0.35);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent-2);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}
.modal-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 10px;
}
.modal-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--r-lg);
    background: rgba(74, 163, 255, 0.05);
    border: 1px solid rgba(74, 163, 255, 0.15);
    transition: all 0.2s;
    color: var(--text);
    text-decoration: none;
}
a.contact-row:hover {
    background: rgba(74, 163, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
}
a.contact-row:hover .contact-arrow { color: var(--accent-2); transform: translateX(3px); }

.contact-row-static { cursor: default; }

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(74, 163, 255, 0.1);
    border: 1px solid rgba(74, 163, 255, 0.25);
    color: var(--accent-2);
}
.contact-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}
.contact-label {
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}
.contact-value-address {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255,255,255,0.92);
    letter-spacing: normal;
}
.contact-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(74, 163, 255, 0.12);
    font-size: 12px;
    color: var(--text-muted);
}
.modal-meta b {
    color: var(--accent-2);
    font-weight: 600;
    margin-right: 4px;
    letter-spacing: 0.02em;
}

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .footer-legal { gap: 12px; }
    .footer-req { gap: 14px; }
    .modal-card { padding: 26px 22px 22px; }
    .modal-title { font-size: 22px; }
    .contact-row { padding: 14px 14px; gap: 12px; }
    .contact-icon { width: 40px; height: 40px; }
    .contact-value { font-size: 15px; }
    .contact-value-address { font-size: 12.5px; }
}

.nav-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.menu-toggle,
.mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    .header {
        position: relative;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        width: 46px;
        height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
        border: 1px solid rgba(120, 145, 190, 0.32);
        border-radius: 12px;
        background: rgba(12, 20, 38, 0.76);
        color: #fff;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        border-color: var(--accent);
        background: rgba(25, 48, 88, 0.84);
        box-shadow: 0 0 18px rgba(74, 163, 255, 0.22);
        outline: none;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        transition: transform .22s ease, opacity .18s ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu {
        position: absolute;
        z-index: 50;
        top: calc(100% - 10px);
        right: 0;
        width: min(320px, calc(100vw - 32px));
        padding: 10px;
        border: 1px solid rgba(74, 163, 255, 0.26);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(18, 28, 52, 0.98), rgba(8, 14, 28, 0.98));
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46), 0 0 34px rgba(74, 163, 255, 0.10);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .mobile-menu:not([hidden]) {
        display: flex;
        flex-direction: column;
        animation: mobileMenuIn .2s ease-out;
    }

    .mobile-menu-link {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        padding: 12px 14px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.2;
        text-align: left;
        text-decoration: none;
        transition: background .18s ease, color .18s ease;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:focus-visible {
        background: rgba(74, 163, 255, 0.14);
        color: var(--accent-2);
        outline: none;
    }
}

@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
