/* ======================================
   РОВД — Design System
   ====================================== */

:root {
    --primary: #0d2d4f;
    --primary-mid: #163d6b;
    --accent: #d4a520;
    --accent-light: #f0c040;
    --bg: #f4f6fb;
    --bg-dark: #091c33;
    --white: #ffffff;
    --text: #1a2b3c;
    --text-muted: #6c7a8a;
    --border: #dde3ed;
    --shadow-sm: 0 2px 8px rgba(13, 45, 79, 0.08);
    --shadow: 0 6px 24px rgba(13, 45, 79, 0.12);
    --shadow-lg: 0 16px 56px rgba(13, 45, 79, 0.18);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
body.no-scroll {
    overflow: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t);
}
a:hover {
    color: var(--accent-light);
    text-decoration: none;
}
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.5em;
}
p {
    margin-bottom: 1em;
}
p:last-child {
    margin-bottom: 0;
}
strong {
    font-weight: 600;
}

/* ── HEADER ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition:
        border-color var(--t),
        box-shadow var(--t);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--primary) !important;
    letter-spacing: -0.04em;
    line-height: 1;
}
.site-logo span {
    color: var(--accent);
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition:
        background var(--t),
        color var(--t);
}
.site-nav a:hover {
    background: var(--bg);
    color: var(--primary);
}
.site-nav .nav-lang {
    background: var(--primary);
    color: var(--white) !important;
    padding: 7px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-left: 8px;
}
.site-nav .nav-lang:hover {
    background: var(--primary-mid);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition:
        transform var(--t),
        opacity var(--t);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── MOBILE DRAWER ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 28, 51, 0.6);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--t),
        visibility var(--t);
}
.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100dvh;
    background: var(--white);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.drawer.open {
    transform: translateX(0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.drawer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary) !important;
    letter-spacing: -0.04em;
}
.drawer-logo span {
    color: var(--accent);
}
.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: background var(--t);
}
.drawer-close:hover {
    background: var(--border);
}
.drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.drawer-nav li {
    border-bottom: 1px solid var(--border);
}
.drawer-nav li:first-child {
    border-top: 1px solid var(--border);
}
.drawer-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--t);
}
.drawer-nav a:hover {
    color: var(--primary);
}
.drawer-lang {
    display: inline-block;
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-mid) 55%,
        #1a5276 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(212, 165, 32, 0.08) 0%,
            transparent 40%
        );
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-eyebrow {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
}
.hero-headline {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 24px;
}
.hero-headline em {
    font-style: normal;
    color: var(--accent);
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 460px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    transition: all var(--t);
    box-shadow: 0 4px 24px rgba(212, 165, 32, 0.35);
}
.btn-hero-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(212, 165, 32, 0.5);
}
.btn-hero-outline {
    display: inline-block;
    background: transparent;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--t);
}
.btn-hero-outline:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white) !important;
}
.hero-image-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-img {
    max-width: 100%;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.35));
    margin: 0 auto;
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--white);
    box-shadow: 0 4px 32px rgba(13, 45, 79, 0.1);
    position: relative;
    z-index: 10;
}
.stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child {
    border-right: none;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: lining-nums;
}
.stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── SECTION HELPERS ── */
.section-pad {
    padding: 80px 0;
}
@media (min-width: 768px) {
    .section-pad {
        padding: 104px 0;
    }
}

.section-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(212, 165, 32, 0.1);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 14px;
}


/* ── NOTICE SECTION ── */
.notice-section {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-mid) 55%,
        #1a5276 100%
    );
}
.notice-card {
    background: #fffbef;
    border: 1px solid rgba(212, 165, 32, 0.25);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 40px 44px;
    margin-bottom: 20px;
}
.notice-card h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.notice-card p {
    color: var(--text);
    font-size: 0.975rem;
}
.notice-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.notice-phone {
    display: inline-block;
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all var(--t);
}
.notice-phone:hover {
    background: var(--primary-mid);
    transform: translateY(-1px);
}
.regulation-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 44px;
}
.regulation-card p {
    color: var(--text);
    font-size: 0.975rem;
}
.regulation-card a {
    color: var(--accent);
    font-weight: 600;
}
.regulation-card a:hover {
    text-decoration: underline;
    color: var(--accent-light);
}

/* ── BORROWERS / FINKELISIM SECTION ── */
.borrowers-section {
    background: var(--white);
}
.borrowers-header {
    text-align: center;
    margin-bottom: 48px;
}
.borrowers-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 900;
    color: var(--primary);
    margin: 12px 0 16px;
}
.borrowers-intro {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.75;
}
.borrowers-intro strong {
    color: var(--primary);
}
.borrower-card {
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: all var(--t);
}
.borrower-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 45, 79, 0.1);
}
.borrower-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    margin: 0 auto 20px;
}
.borrower-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.borrower-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}
.borrowers-cta {
    text-align: center;
    padding-top: 48px;
}
.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 100px;
    margin-top: 8px;
    transition: all var(--t);
    box-shadow: 0 4px 24px rgba(212, 165, 32, 0.3);
}
.platform-link:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(212, 165, 32, 0.5);
}

/* ── ABOUT SECTION ── */
.about-section {
    background: var(--bg);
}
.feature-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.feature-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(13, 45, 79, 0.25);
}
.feature-text h4 {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.about-note {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* Offices table */

/* ── FOOTER ── */
.site-footer {
    background: var(--bg-dark);
    padding: 80px 0 0;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white) !important;
    letter-spacing: -0.04em;
    display: inline-block;
    margin-bottom: 14px;
    line-height: 1;
}
.footer-logo span {
    color: var(--accent);
}
.footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.65;
    max-width: 280px;
}
.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}
.footer-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-info p:last-child {
    margin-bottom: 0;
}
.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color var(--t);
}
.footer-info a:hover {
    color: var(--accent);
}
.footer-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    transition: all var(--t);
}
.footer-lang-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.2);
}
.footer-bottom {
    margin-top: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 0;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
    margin: 0;
    text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .site-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        padding: 96px 0 56px;
    }
    .hero-image-wrap {
        margin-top: 40px;
    }
}
@media (max-width: 767.98px) {
    .hero-headline {
        font-size: 2.2rem;
    }
    .notice-card,
    .regulation-card {
        padding: 28px 24px;
    }
    .footer-logo {
        font-size: 1.7rem;
    }
    /* Stats: stack vertically on mobile */
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .stat-item:last-child {
        border-bottom: none;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.65rem;
    }
}
@media (max-width: 575.98px) {
    .section-pad {
        padding: 64px 0;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions .btn-hero-primary,
    .hero-actions .btn-hero-outline {
        text-align: center;
    }
    .notice-phones {
        flex-direction: column;
        gap: 8px;
    }
}
