/* ==================== CSS Variables ==================== */
:root {
    --bg-dark: #0a1628;
    --accent-cyan: #00d9ff;
    --accent-gold: #ffd700;
    --accent-cyan-light: rgba(0, 217, 255, 0.3);
    --text-light: #ffffff;
    --text-secondary: #a0b0c0;
    --transition-smooth: all 0.3s ease;
    --animation-slow: 120s linear infinite;
    --animation-medium: 3s ease-in-out infinite;
    --animation-fast: 2s ease-in-out infinite;
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: linear-gradient(rgba(10, 22, 40, 0.55), rgba(10, 22, 40, 0.55)), url("../beck.webp") center / cover no-repeat fixed;
}

/* ==================== Container & Layout ==================== */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    gap: 50px;
}

/* ==================== Language Switcher ==================== */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.lang-btn {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--accent-cyan);
    background: transparent;
    color: var(--accent-cyan);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: scale(1.05);
}

.lang-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

/* ==================== Network Canvas ==================== */
.network-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#networkCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==================== Central Card ==================== */
.central-card {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: pulse-center var(--animation-fast);
}

.card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    color: var(--accent-gold);
    animation: float-icon 3s ease-in-out infinite;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--accent-gold));
}

.card-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 400px;
}

/* ==================== Buttons Container ==================== */
.buttons-container {
    display: flex;
    gap: 70px;
    z-index: 10;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

/* ==================== Button Styles ==================== */
.btn {
    display: flex;
    /* было inline-flex */
    flex-direction: column;
    /* новое: колонка */
    align-items: center;
    /* центр по X */
    justify-content: center;
    /* центр по Y */
    width: 240px;
    /* чуть “дороже” по размеру */
    height: 190px;
    padding: 18px 22px;
    /* вместо 0 30px */
    gap: 12px;
    /* расстояние иконка/текст */
    border: 2px solid;
    border-radius: 16px;
    /* чуть мягче */
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    /* важно для текста */
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(255, 215, 0, 0.08));
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.15) inset;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.3) inset, 0 5px 25px rgba(0, 217, 255, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

/* Button Icon Styles */
.btn-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(255, 215, 0, 0.2));
    padding: 10px;
    transition: var(--transition-smooth);
}

.btn-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.4), rgba(255, 215, 0, 0.4));
}

.btn:hover .btn-icon svg {
    color: var(--text-light);
}

.btn-text {
    color: var(--text-light);
    /* белый, читаемый */
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    /* аккуратное свечение как у остального интерфейса */
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.35);
}

/* Primary Button (Interactive Board) */
.btn-primary {
    border-color: var(--accent-cyan);
    border-image: linear-gradient(135deg, var(--accent-cyan), rgba(0, 217, 255, 0.5)) 1;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.4) inset, 0 5px 30px rgba(0, 217, 255, 0.3);
    border-color: var(--accent-cyan);
}

.btn-primary .btn-icon svg {
    color: var(--accent-cyan);
}

/* Secondary Button (Partner Catalog) */
.btn-secondary {
    border-color: var(--accent-gold);
    border-image: linear-gradient(135deg, var(--accent-gold), rgba(255, 215, 0, 0.5)) 1;
}

.btn-secondary:hover {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3) inset, 0 5px 30px rgba(255, 215, 0, 0.25);
    border-color: var(--accent-gold);
}

.btn-secondary .btn-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(0, 217, 255, 0.2));
}

.btn-secondary .btn-icon svg {
    color: var(--accent-gold);
}

/* ==================== Animations ==================== */
@keyframes pulse-center {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        gap: 22px;
        max-width: 420px;
    }

    .btn {
        width: 100%;
        max-width: 360px;
        height: 190px;
        /* как на ПК */
        padding: 18px 22px;
        /* как на ПК */
        display: flex;
        flex-direction: column;
        /* ВАЖНО */
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .btn-icon {
        width: 52px;
        height: 52px;
    }

    .btn-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .btn {
        height: 170px;
        padding: 16px 18px;
    }

    .btn-icon {
        width: 48px;
        height: 48px;
    }

    .btn-text {
        font-size: 15px;
    }
}

/* ==================== FINAL POLISH (append at end) ==================== */
/* 1) Чуть лучше рендер шрифтов + единые радиусы/тени */
:root {
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .28);
    --shadow-glow-cyan: 0 0 28px rgba(0, 217, 255, .18);
    --shadow-glow-gold: 0 0 28px rgba(255, 215, 0, .14);
    --glass-bg: rgba(255, 255, 255, .05);
    --glass-border: rgba(255, 255, 255, .12);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2) Читаемость фона (деликатная виньетка + легкая подсветка центра) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 45%, rgba(0, 217, 255, .10), transparent 55%), radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .00), rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .55) 100%);
}

.container {
    z-index: 1;
}

/* 3) Центрируем и “собираем” композицию */
.content-wrapper {
    gap: 44px;
}

/* 4) Языковой переключатель — как UI-компонент */
.language-switcher {
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.lang-btn {
    border-radius: 10px;
    padding: 10px 14px;
    letter-spacing: .2px;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.lang-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 217, 255, .12);
}

.lang-btn.active {
    background: rgba(0, 217, 255, .95);
    color: #06101e;
    border-color: rgba(0, 217, 255, .95);
}

/* 5) Кнопки — стекло, ровная рамка, приятный hover */
.buttons-container {
    gap: 56px;
    max-width: 900px;
}

.btn {
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    transition: transform .20s ease, box-shadow .20s ease, border-color .20s ease;
}

.btn::before {
    opacity: .9;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Лёгкая подсветка по типу кнопки */
.btn-primary {
    border-color: rgba(0, 217, 255, .40);
    box-shadow: var(--shadow-soft), var(--shadow-glow-cyan);
}

.btn-secondary {
    border-color: rgba(255, 215, 0, .38);
    box-shadow: var(--shadow-soft), var(--shadow-glow-gold);
}

/* 6) Иконка — чуть аккуратнее и “дороже” */
.btn-icon {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
}

.btn-primary .btn-icon {
    box-shadow: 0 0 18px rgba(0, 217, 255, .18) inset;
}

.btn-secondary .btn-icon {
    box-shadow: 0 0 18px rgba(255, 215, 0, .14) inset;
}

/* 7) Текст — типографика и контраст */
.btn-text {
    font-size: 16px;
    letter-spacing: .2px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* 8) Доступность: focus для клавиатуры */
.btn:focus-visible,
.lang-btn:focus-visible {
    outline: 2px solid rgba(0, 217, 255, .9);
    outline-offset: 3px;
}

/* 9) Мобилка — чуть больше воздуха и стабильная читаемость */
@media (max-width: 768px) {
    .buttons-container {
        gap: 18px;
    }

    .btn {
        height: 84px;
        border-radius: 16px;
    }
}

/* 10) Уважение к “reduce motion” */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== Force mobile buttons to look like desktop ===== */
@media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        gap: 22px;
        max-width: 420px;
    }

    .btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 360px !important;
        min-height: 180px !important;
        /* ключевое: не 70-80px */
        height: auto !important;
        padding: 18px 20px !important;
        /* ключевое: не 0 25px */
        gap: 12px !important;
    }

    .btn-icon {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 4px !important;
    }

    .btn-text {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .btn {
        min-height: 165px !important;
        padding: 16px 18px !important;
    }

    .btn-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .btn-text {
        font-size: 15px !important;
    }
}

/* ==================== SEO Block ==================== */
.seo-block{
  z-index: 2;
  position: relative;
  max-width: 980px;
  width: calc(100% - 40px);
  margin: 18px auto 0;
  padding: 14px 18px;

  /* ближе к общему фону сайта */
  background: rgba(0, 217, 255, 0.06);
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 18px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.seo-title{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.seo-text{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  text-align: center;
}

@media (max-width: 520px){
  .seo-block{ width: calc(100% - 24px); padding: 12px 14px; }
  .seo-title{ font-size: 15px; }
  .seo-text{ font-size: 12.5px; }
}
