:root {
    --primary: #0066FF;
    --secondary: #00D1FF;
    --accent: #FF6B00;
    --dark: #0F172A;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-btn:hover:not(.active) {
    background: var(--light);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-full {
    width: 100%;
    background: var(--primary);
    color: white;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero .subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); color: white; }

/* About Section */
.grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats-card {
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.stat p {
    opacity: 0.8;
}

/* Distances Grid */
.distance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.distance-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.distance-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.distance-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.distance-card.accent {
    background: var(--primary);
    color: white;
}

.distance-card.accent .distance-val {
    color: white;
}

.category {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    position: relative;
    padding-top: 2rem;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
}

.step h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Registration Section */
.reg-section {
    background: linear-gradient(45deg, #0066FF, #00D1FF);
    display: flex;
    justify-content: center;
}

.reg-container {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 30px;
    color: var(--dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: var(--light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Grids */
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }

/* Limits section — 2 карточки по центру */
#limits .grid-three {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .grid, .grid-two, .grid-three { grid-template-columns: 1fr; }
    #limits .grid-three { grid-template-columns: 1fr; max-width: 100%; }
    .nav-links { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-details { flex-direction: column; gap: 1rem; }
}

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.text-white { color: white !important; }

.translator-container {
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.translator-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.translator-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    background: var(--light);
    padding: 1rem;
    border-radius: 12px;
}

.translator-controls select {
    padding: 0.5rem;
    border: none;
    background: white;
    font-weight: 600;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    resize: vertical;
}

.output-box {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    min-height: 80px;
    border: 1px dashed var(--primary);
    color: var(--dark);
    font-weight: 500;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.doc-item {
    padding: 2rem;
    background: var(--light);
    border-radius: 20px;
    transition: var(--transition);
}

.doc-item:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.limit-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 20px;
}

.limit-card .icon { font-size: 2rem; display: block; margin-bottom: 1rem; }

.info-block h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.alert { background: rgba(255, 107, 0, 0.1); color: var(--accent); padding: 1.5rem; border-radius: 12px; margin-top: 1.5rem; font-weight: 600; }
.docs ul { list-style: none; margin-top: 1rem; }
.docs li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.docs li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }