/* ============================================================
   SVAROG — CSS
   ============================================================ */

@font-face {
    font-family: 'Play';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/css/fonts/play-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Play';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/css/fonts/play-bold.ttf') format('truetype');
}

:root {
    --bg:         #eef6ff;
    --bg-alt:     #f8fbff;
    --accent:     #03c640;
    --accent-dark:#01a030;
    --dark:       #0b1f33;
    --dark2:      #132d47;
    --blue:       #1565c0;
    --text:       #1a2a3a;
    --muted:      #607d8b;
    --white:      #ffffff;
    --border:     #dde8f5;
    --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
    --shadow:     0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 40px rgba(0,0,0,.15);
    --radius:     10px;
    --radius-lg:  16px;
    --bg-light:   #f4f8ff;
    --primary:    #0b1f33;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Play', 'Segoe UI', sans-serif;
    background: var(--bg-alt);
    color: var(--text);
    margin: 0;
    line-height: 1.65;
    font-size: 15px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

/* ── Навигация ─────────────────────────────────────────────── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark) !important;
    letter-spacing: .3px;
    padding: 1rem 0;
}

.navbar-brand .brand-accent { color: var(--accent); }

.nav-link {
    color: var(--text) !important;
    font-weight: 400;
    font-size: .9rem;
    padding: .5rem .9rem !important;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.nav-link:hover, .nav-link.active {
    background: var(--bg);
    color: var(--dark) !important;
}

.navbar .btn-nav {
    background: var(--accent);
    color: var(--white) !important;
    font-weight: 700;
    font-size: .85rem;
    padding: .4rem 1.1rem !important;
    border-radius: 6px;
}

.navbar .btn-nav:hover { background: var(--accent-dark); }

/* ── Кнопки ────────────────────────────────────────────────── */
.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: var(--white) !important;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: .7rem 1.8rem;
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3,198,64,.35);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white) !important;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    padding: .7rem 1.8rem;
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    transition: all .2s;
    text-decoration: none !important;
}

.btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}

.btn-outline-dark {
    display: inline-block;
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: .65rem 1.6rem;
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    transition: all .2s;
    text-decoration: none !important;
}

.btn-outline-dark:hover {
    background: var(--accent);
    color: var(--white) !important;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(150deg, #071628 0%, #0b2540 50%, #0d3158 100%);
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(3,198,64,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(21,101,192,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(3,198,64,.15);
    color: var(--accent);
    border: 1px solid rgba(3,198,64,.3);
    border-radius: 20px;
    padding: .3rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--accent); }

.hero .lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.7);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}

.hero-stat .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-top: .25rem;
    display: block;
}

/* ── Логотипы / Trust ──────────────────────────────────────── */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.trust-bar .trust-text {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Секции ────────────────────────────────────────────────── */
.section { padding: 70px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--bg); }
.section-dark  { background: var(--dark); }

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .6rem;
    line-height: 1.25;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ── Карточки объектов ─────────────────────────────────────── */
.card-svarog {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card-svarog:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(3,198,64,.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(3,198,64,.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-svarog h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--dark);
}

.card-svarog p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

/* ── Feature list ──────────────────────────────────────────── */
.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: box-shadow .2s;
}

.feature-item:hover { box-shadow: var(--shadow-sm); }

.feature-item .fi-icon {
    font-size: 1.5rem;
    color: var(--accent);
    min-width: 36px;
    margin-top: .1rem;
}

.feature-item h4 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    color: var(--dark);
}

.feature-item p {
    font-size: .88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Статистика ────────────────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, #071628 0%, #0b2540 100%);
    padding: 60px 0;
}

.stat-block {
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    margin-top: .5rem;
    display: block;
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Интеграции ────────────────────────────────────────────── */
.integration-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s;
}

.integration-item:hover { border-color: rgba(3,198,64,.4); }

.integration-item .ii-check {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: .1rem;
    flex-shrink: 0;
}

.integration-item .ii-text { font-size: .9rem; line-height: 1.5; }
.integration-item .ii-title { font-weight: 700; color: var(--dark); display: block; }
.integration-item .ii-desc  { color: var(--muted); font-size: .85rem; }

/* ── Релизы ────────────────────────────────────────────────── */
.release-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: box-shadow .2s;
}

.release-item:hover { box-shadow: var(--shadow-sm); }

.release-version {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    min-width: 70px;
    font-family: monospace;
}

.release-date {
    color: var(--muted);
    font-size: .85rem;
    min-width: 110px;
}

/* ── Формы ─────────────────────────────────────────────────── */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Play', sans-serif;
    font-size: .9rem;
    padding: .6rem .9rem;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(3,198,64,.12);
    outline: none;
}

.form-label { font-weight: 700; font-size: .88rem; margin-bottom: .3rem; color: var(--dark); }

/* ── CTA секция ────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #071628 0%, #0d3158 100%);
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 { color: var(--white); font-size: 2rem; font-weight: 700; margin-bottom: .75rem; }
.cta-section p  { color: rgba(255,255,255,.65); margin-bottom: 2rem; }

/* ── Подвал ────────────────────────────────────────────────── */
footer {
    background: #060f1a;
    color: rgba(255,255,255,.55);
    padding: 50px 0 24px;
    font-size: .88rem;
}

footer a { color: rgba(255,255,255,.55); }
footer a:hover { color: var(--accent); }

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.footer-brand span { color: var(--accent); }

.footer-title {
    color: rgba(255,255,255,.9);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1rem;
}

footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: .4rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.3);
}

/* ── Badges ────────────────────────────────────────────────── */
.badge-accent {
    background: rgba(3,198,64,.12);
    color: var(--accent);
    border: 1px solid rgba(3,198,64,.25);
    border-radius: 20px;
    padding: .2rem .75rem;
    font-size: .78rem;
    font-weight: 700;
}

/* ── Flash ─────────────────────────────────────────────────── */
.flash-success { background: #f0fdf4; border-left: 4px solid var(--accent); padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; color: #166534; }
.flash-error   { background: #fef2f2; border-left: 4px solid #dc2626; padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; color: #991b1b; }
.flash-info    { background: #eff6ff; border-left: 4px solid var(--blue); padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; color: #1e40af; }
.alert-info-bar { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: .9rem 1.25rem; color: #1e40af; font-size: .9rem; }
.alert-info-bar a { color: var(--accent); font-weight: 700; }

/* ── Страница контента ─────────────────────────────────────── */
.page-header {
    background: linear-gradient(150deg, #071628 0%, #0b2540 100%);
    padding: 50px 0 40px;
    color: var(--white);
}

.page-header h1 { font-size: 2rem; font-weight: 700; margin: 0; }
.page-header p  { color: rgba(255,255,255,.65); margin: .5rem 0 0; }

/* ── Таблицы ───────────────────────────────────────────────── */
.table-svarog { width: 100%; border-collapse: collapse; }
.table-svarog th { background: var(--dark); color: var(--white); padding: .75rem 1rem; font-size: .85rem; text-align: left; }
.table-svarog td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.table-svarog tr:hover td { background: var(--bg); }

/* ── Архитектурная сетка ───────────────────────────────────── */
.arch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.arch-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.arch-item i {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: .1rem;
    flex-shrink: 0;
}

.arch-item strong {
    display: block;
    font-size: .88rem;
    color: var(--dark);
    margin-bottom: .1rem;
}

.arch-item span {
    font-size: .8rem;
    color: var(--muted);
}

/* ── Hero diagram ───────────────────────────────────────────── */
.hero-diagram {
    text-align: center;
    color: rgba(255,255,255,.7);
}

.hd-node {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: .75rem 1.1rem;
    font-size: .8rem;
}

.hd-node i { font-size: 1.5rem; color: var(--accent); }
.hd-node.hd-top { margin-bottom: .5rem; }
.hd-node.hd-mid { font-size: .75rem; }
.hd-node.hd-dim { opacity: .5; }
.hd-connector {
    width: 2px;
    height: 24px;
    background: rgba(255,255,255,.2);
    margin: 0 auto .5rem;
}

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 1.8rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .stat-value { font-size: 2.2rem; }
    .hero-stats { gap: 1rem; }
}
