@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap&subset=cyrillic');

/* ── Base ─────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.serif {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
}

/* ── Brand Colors ─────────────────────────────────── */
.gold-gradient {
    background: linear-gradient(135deg, var(--orange-base) 0%, var(--orange-hover) 100%);
}

/* Primary accent — royal blue */
.navy-blue-bg {
    background-color: var(--text-primary) !important;
}

.text-navy {
    color: var(--text-primary);
}

/* ── Header ───────────────────────────────────────── */
header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid #e8edf5;
}

/* ── Hero Overlay ─────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(135deg, rgba(18, 42, 82, 0.88) 0%, rgba(29, 78, 143, 0.60) 100%);
}

.text-shadow-strong {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatY {

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

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

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(245, 158, 11, 0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeInUp 0.9s ease both;
}

.hero-desc {
    animation: fadeInUp 0.9s 0.2s ease both;
}

.hero-buttons {
    animation: fadeInUp 0.9s 0.4s ease both;
}

/* ── Scroll reveal ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ── Stat Cards ───────────────────────────────────── */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(29, 78, 143, 0.14) !important;
}

.stat-card:hover::before {
    opacity: 2;
}

.stat-number {
    font-variant-numeric: tabular-nums;
    animation: countUp 0.6s ease both;
}

/* ── Feature Cards ────────────────────────────────── */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: #fff;
}

.feature-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 32px rgba(29, 78, 143, 0.10) !important;
    border-color: var(--orange-base) !important;
}

.feature-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    background-color: var(--orange-base) !important;
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

/* ── Arbitrator Cards ─────────────────────────────── */
.arb-avatar {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.group:hover .arb-avatar {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.35);
}

.arb-card-name {
    transition: color 0.3s ease;
}

.group:hover .arb-card-name {
    color: var(--orange-base);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-gold {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.45);
}

.btn-gold:hover::after {
    opacity: 1;
}

.btn-gold:active {
    transform: translateY(0);
}

/* ── Form ─────────────────────────────────────────── */
.form-input {
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    border-color: var(--orange-base);
}

/* ── Footer links ─────────────────────────────────── */
footer li {
    transition: transform 0.2s ease;
}

footer li:hover {
    transform: translateX(4px);
}

/* ── Language switcher ────────────────────────────── */
.lang-link {
    transition: color 0.2s, border-color 0.2s;
}

.lang-link.active {
    color: var(--orange-base);
    border-bottom: 2px solid var(--orange-base);
}

/* ── View transitions ─────────────────────────────── */
.view-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-hidden {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

/* ── Modals ───────────────────────────────────────── */
#arbitrator-modal,
#success-modal,
#admin-auth-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-hidden {
    opacity: 0;
    visibility: hidden;
    display: flex !important;
    pointer-events: none;
}

/* ── Loader ───────────────────────────────────────── */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ── Glassmorphism card ───────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Gold shimmer on hover ────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.gold-shimmer {
    background: linear-gradient(90deg, var(--orange-base) 25%, #FDE68A 50%, var(--orange-base) 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ── Nav link underline animation ─────────────────── */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-base);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ── Floating scroll indicator ────────────────────── */
.scroll-indicator {
    animation: floatY 2.5s ease-in-out infinite;
}

/* ── Registry search ──────────────────────────────── */
#registrySearch:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    border-color: var(--orange-base);
}

/* ── Arbitrator grid cards ────────────────────────── */
#arbitratorsGrid>div {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#arbitratorsGrid>div:hover {
    transform: translateY(-4px);
}

/* ── Light section backgrounds ────────────────────── */
.section-light {
    background-color: #f1f5f9;
}

.section-white {
    background-color: #ffffff;
}

/* ── Documents View ───────────────────────────────── */
.doc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.doc-card:hover {
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.10);
    border-color: var(--orange-base);
    transform: translateY(-2px);
}

.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* --- PASTEL SAGE OVERRIDES --- */

/* === Пастельный Мятный === */
:root {
    --text-primary: #064E3B;
    --text-secondary: #065F46;
    --text-highlight: #047857;
    --accent: #10B981;
    --accent-hover: #059669;
    --orange-base: #F59E0B;
    --orange-hover: #D97706;
    --bg-main: #F6F8F6;
    --bg-hero: #DCFCE7;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

header h1 {
    color: var(--text-primary) !important;
}

header .text-slate-500 {
    color: var(--accent) !important;
}

header nav a {
    color: var(--text-secondary) !important;
}

header nav a:hover {
    color: var(--accent) !important;
}

header button {
    background-color: var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

header button:hover {
    background-color: var(--accent-hover) !important;
}

/* Hero - Added Semi-Transparent Overlay for Contrast */
.navy-blue-bg {
    background-color: var(--bg-hero) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-title {
    color: var(--text-primary) !important;
    text-shadow: none !important;
    position: relative;
    z-index: 10;
}

.hero-desc {
    color: var(--text-secondary) !important;
    text-shadow: none !important;
    position: relative;
    z-index: 10;
    font-weight: 500;
}

/* REMOVED GOLD SHIMMER - Replaced with a solid, professional highlight color */
.gold-shimmer {
    color: var(--text-highlight) !important;
    text-shadow: none !important;
    position: relative;
    z-index: 10;
    font-weight: 700;
}

/* The hero content container needs an elevated z-index so buttons are clickable over the absolute overlay */
.navy-blue-bg .container {
    position: relative;
    z-index: 10;
}

/* Primary Buttons */
.primary-gradient {
    background: var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.primary-gradient:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
}

.btn-accent {
    color: #FFFFFF !important;
}

/* Secondary Button */
.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.glass-card:hover {
    background: #FFFFFF !important;
    color: #0F172A !important;
}

/* Cards */
.stat-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    border-bottom: 3px solid var(--accent) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05) !important;
}

.stat-card .text-navy {
    color: var(--text-primary) !important;
}

.feature-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

.feature-card:hover {
    border-color: var(--accent) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05) !important;
}

.feature-icon {
    background-color: var(--bg-main) !important;
}

.feature-icon i {
    color: var(--accent) !important;
}

.lang-link.active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
}

section.bg-slate-50,
.bg-slate-50 {
    background-color: #FFFFFF !important;
}

footer {
    background-color: #FFFFFF !important;
    color: var(--text-primary) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

footer .text-slate-400 {
    color: var(--text-secondary) !important;
}

footer h4 {
    color: var(--text-primary) !important;
}

footer footer .border-slate-800 {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Steps */
.group div.w-20 {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #FFFFFF !important;
}

.group div.w-20 i {
    color: var(--accent) !important;
}

.group:hover div.w-20 {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.group:hover div.w-20 i {
    color: #FFFFFF !important;
}

.group h4 {
    color: var(--text-primary) !important;
}

.border-amber-500 {
    border-color: var(--orange-base) !important;
}

.text-accent {
    color: var(--orange-base) !important;
}

.hover\:text-accent:hover {
    color: var(--orange-hover) !important;
}

.bg-accent-light {
    background-color: var(--bg-main) !important;
}

table thead tr.navy-blue-bg {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

table thead th.text-accent {
    color: var(--accent) !important;
}

table {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: #FFFFFF !important;
}



.btn-accent {
    color: #FFFFFF !important;
}

header button {
    color: #FFFFFF !important;
}

.primary-gradient i {
    color: #FFFFFF !important;
}


/* HERO V3 - TRI-COLOR (FOREST, MUSTARD, WHITE) */
.navy-blue-bg {
    background-color: #064E3B !important;
}

/* Deep Forest Green */
.hero-overlay {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9) 0%, rgba(4, 120, 87, 0.6) 100%) !important;
    backdrop-filter: blur(4px) !important;
}

.hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
}

.hero-desc {
    color: #E2E8F0 !important;
    /* Soft White */
    font-weight: 400 !important;
    font-size: 1.25rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Main Button: Bold Mustard/Sunshine Yellow for strong contrast against Forest */
.btn-accent {
    background: var(--orange-base) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4) !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-accent:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.6) !important;
}

/* Secondary Button: Clean White wireframe */
.glass-card {
    background: transparent !important;
    backdrop-filter: none !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    font-weight: 700 !important;
}

.glass-card:hover {
    background: #FFFFFF !important;
    color: #0F172A !important;
}

.hero-highlight {
    color: #FFFFFF !important;
    font-weight: bold;
}

/* Cleaned up duplicate .text-accent */

.bg-accent-light {
    background-color: var(--bg-hero) !important;
}

.bg-accent-light0 {
    background-color: var(--bg-main) !important;
}