/* ================= VARIABLES ================= */
:root {
    --bg-main: #12121a;
    --bg-surface: #262631;
    --bg-card: #3f3f4c;
    --bg-card-hover: #4a4a58;
    --text-main: rgba(255,255,255,0.92);
    --text-muted: rgba(255,255,255,0.50);
    --accent: #fa6400;
    --accent-dark: #d95500;
    --gradient: linear-gradient(135deg, #d95500 0%, #fa6400 100%);
    --border-color: rgba(255,255,255,0.10);
    --radius: 8px;
    --font-heading: 'Onest', sans-serif;
    --font-text: 'Inter', sans-serif;
}

/* ================= FONTS ================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/onest-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/onest-700.woff2') format('woff2');
}

/* ================= RESET & BASE ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
strong { font-weight: 600; color: #fff; }
a { color: var(--accent); text-decoration: none; transition: 0.2s ease; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 15px;
    transition: background 0.2s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff !important;
    border: none;
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff !important;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main) !important;
}
.btn-ghost:hover { border-color: var(--accent); color: #fff !important; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ================= HEADER ================= */
.header {
    background: #20202a;
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header .logo img { height: 34px; width: auto; }
.nav-list {
    list-style: none;
    display: flex;
    gap: 24px;
}
.nav-list a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}
.nav-list a:hover { color: var(--accent); }
.hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
}

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

/* Партнёрская строка */
.footer-partners {
    padding: 26px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.footer-partners-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.footer-partner-logo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    flex: 1 1 64px;
    min-width: 58px;
    max-width: 110px;
    transition: border-color 0.2s;
}
.footer-partner-logo:hover { border-color: var(--accent); }
.footer-partner-logo img { height: 30px; max-width: 100%; width: auto; object-fit: contain; display: block; }
.footer-partner-logo.is-empty { border-style: dashed; cursor: default; }
.footer-partner-logo.is-empty span { font-size: 10px; color: rgba(255,255,255,0.22); text-transform: uppercase; letter-spacing: 0.5px; }

.footer-main { padding: 36px 0 24px; }
.footer-main img { height: 32px; width: auto; }
.footer-title {
    margin-bottom: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 7px; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}
.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.footer-legal-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.footer-legal-icons img { height: 32px; width: auto; opacity: 1; display: block; }

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: rgba(255,255,255,0.7);
    font-size: 19px;
    transition: 0.2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-disclaimer-text {
    font-size: 11px;
    color: rgba(255,255,255,0.30);
    line-height: 1.55;
    flex: 1;
    min-width: 200px;
}
.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    text-align: right;
}
.footer-copyright a { color: var(--accent); }

/* ================= MEDIA QUERIES ================= */
@media (min-width: 768px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
}
@media (max-width: 991px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        display: none;
        padding: 20px;
    }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; align-items: center; }
    .hamburger { display: block; }
}
@media (max-width: 768px) {
    .footer-bottom-row { flex-direction: column; align-items: flex-start; }
    .footer-copyright { text-align: left; }
}
