/* ============================================================
   Legal Finance — New Design
   ============================================================ */

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

:root {
    --navy:     #030d1c;
    --navy2:    #071428;
    --navy3:    #0d1f35;
    --blue:     #0a8fc4;
    --blue2:    #0066cc;
    --accent:   #00d2ff;
    --white:    #ffffff;
    --light:    #f0f6fc;
    --muted:    #8fabc7;
    --border:   rgba(255,255,255,0.08);
    --radius:   16px;
    --shadow:   0 20px 60px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Shared ---- */
.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,210,255,0.1);
    border: 1px solid rgba(0,210,255,0.25);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.section-tag.centered { display: block; text-align: center; }

.section-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 56px;
    color: var(--white);
}

.section-title.centered { text-align: center; }

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 8px 30px rgba(10,143,196,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(10,143,196,0.5);
    color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.35s, padding 0.35s, backdrop-filter 0.35s;
}

.navbar.scrolled {
    background: rgba(3,13,28,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-lang {
    font-size: 13px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50px !important;
}

.btn-pay {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(10,143,196,0.4);
    white-space: nowrap;
}

.btn-pay:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(10,143,196,0.5);
    color: #fff;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/tild6437-6361-4561-a666-396564313431__stoimost-vzyskaniya-.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3,13,28,0.55) 0%,
        rgba(3,13,28,0.7) 60%,
        rgba(3,13,28,0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(0,210,255,0.12);
    border: 1px solid rgba(0,210,255,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(56px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 24px 40px;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    animation: bounce 2s infinite;
    transition: color 0.2s;
}

.scroll-down:hover { color: rgba(255,255,255,0.8); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   NOTICE
   ============================================================ */
.notice {
    background: linear-gradient(135deg, #020a17 0%, #0a1e36 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.notice-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 100px 24px;
    text-align: center;
}

.notice-badge {
    display: inline-block;
    background: rgba(255,200,0,0.12);
    border: 1px solid rgba(255,200,0,0.3);
    color: #ffcc00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.notice h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.notice-desc {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

.notice-desc strong { color: var(--accent); }

.notice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
    text-align: left;
}

.n-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.n-card:hover {
    background: rgba(10,143,196,0.1);
    border-color: rgba(10,143,196,0.3);
    transform: translateY(-4px);
}

.n-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.n-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.n-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
}

.notice-cta {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.notice-cta p {
    font-size: 17px;
    color: var(--muted);
}

/* ============================================================
   RIGHTS
   ============================================================ */
.rights {
    background: var(--navy2);
}

.rights-box {
    display: flex;
    gap: 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.rights-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(10,143,196,0.35);
    color: #fff;
}

.rights-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 16px;
}

.rights-text p:last-child { margin-bottom: 0; }

.rights-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    background: var(--navy);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fact {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(10,143,196,0.15);
    border: 1px solid rgba(10,143,196,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.fact p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    padding-top: 10px;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card-big {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: border-color 0.3s, background 0.3s;
}

.about-card-big:hover {
    border-color: rgba(10,143,196,0.4);
    background: rgba(10,143,196,0.07);
}

.about-card-big.accent {
    background: linear-gradient(135deg, rgba(10,143,196,0.15), rgba(0,102,204,0.15));
    border-color: rgba(10,143,196,0.3);
}

.acb-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(10,143,196,0.35);
}

.about-card-big h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-card-big p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages {
    background: var(--navy2);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.adv-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.adv-card:hover {
    background: rgba(10,143,196,0.1);
    border-color: rgba(10,143,196,0.35);
    transform: translateY(-4px);
}

.adv-num {
    font-size: 52px;
    font-weight: 900;
    color: rgba(10,143,196,0.15);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 20px;
    font-variant-numeric: tabular-nums;
}

.adv-icon {
    width: 52px;
    height: 52px;
    background: rgba(10,143,196,0.15);
    border: 1px solid rgba(10,143,196,0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.adv-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.adv-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
}

/* ============================================================
   OFFICES
   ============================================================ */
.offices {
    background: var(--navy);
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.offices-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.offices-table thead th {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 16px 20px;
    text-align: left;
    white-space: nowrap;
}

.offices-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.offices-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }

.offices-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.offices-table tbody tr:last-child { border-bottom: none; }

.offices-table tbody tr:hover { background: rgba(10,143,196,0.08); }

.offices-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.offices-table tbody tr:nth-child(even):hover { background: rgba(10,143,196,0.08); }

.offices-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    vertical-align: middle;
}

.offices-table td:first-child {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.city-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent);
}

.offices-table td a {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.offices-table td a:hover { opacity: 0.75; }

/* ============================================================
   MAP
   ============================================================ */
.map-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.map-wrap {
    line-height: 0;
}

.map-wrap iframe,
.map-wrap > * {
    display: block;
    width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(135deg, #010810 0%, #071428 100%);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-lang {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 50px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-lang:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.footer-contact h3,
.footer-pay h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.contact-item a {
    color: var(--muted);
    transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

.footer-pay p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pay-cards {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.pay-cards img {
    height: 28px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.pay-cards img:hover { opacity: 1; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #0d1f35;
    border: 1px solid rgba(10,143,196,0.3);
    border-radius: 24px;
    padding: 48px;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.visible .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(10,143,196,0.15);
    border: 1px solid rgba(10,143,196,0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
}

.modal-box h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

.modal-box p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.modal-box p a {
    color: var(--accent);
    font-weight: 600;
}

.modal-ok {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.adv-card:nth-child(2) { transition-delay: 0.08s; }
.adv-card:nth-child(3) { transition-delay: 0.16s; }
.adv-card:nth-child(4) { transition-delay: 0.08s; }
.adv-card:nth-child(5) { transition-delay: 0.16s; }
.adv-card:nth-child(6) { transition-delay: 0.24s; }

.n-card:nth-child(2) { transition-delay: 0.08s; }
.n-card:nth-child(3) { transition-delay: 0.16s; }
.n-card:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 70px 20px;
    }

    .section-title {
        font-size: 30px;
        margin-bottom: 36px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(3,13,28,0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 999;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        font-size: 20px;
        padding: 14px 32px;
        color: #fff;
    }

    .burger { display: flex; }

    .btn-pay { display: none; }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .adv-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rights-box {
        flex-direction: column;
        gap: 20px;
    }

    .modal-box {
        padding: 32px 24px;
    }

    .hero-stats .stat-num {
        font-size: 22px;
    }

    .notice-inner {
        padding: 70px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 { letter-spacing: -1px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions a {
        text-align: center;
        justify-content: center;
    }

    .notice-cta {
        padding: 28px 20px;
    }
}
