/* Rus Cargo - China Edition CSS */

:root {
    /* Новая цветовая палитра: Deep Indigo + Terracotta */
    --primary: #2e4057;           /* Deep Indigo */
    --primary-light: #4a6fa5;     /* Light Indigo */
    --primary-dark: #1a2b3c;      /* Dark Indigo */
    --accent: #d2691e;            /* Terracotta (China Red) */
    --accent-light: #e67e22;      /* Light Terracotta */
    --accent-dark: #b8651b;       /* Dark Terracotta */
    
    --text: #2c3e50;
    --text-light: #5d6d7e;
    --bg: #ffffff;
    --gray: #f8f9fa;
    --gray-light: #f1f3f4;
    --dark: #2c3e50;
    --light-gray: #e9ecef;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size: 14px;
    --h1-size: 36px;
    --h2-size: 28px;
    --h3-size: 20px;
    
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(46, 64, 87, 0.1);
    --shadow-hover: 0 8px 30px rgba(46, 64, 87, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(46, 64, 87, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

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

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid var(--light-gray);
    background: var(--bg);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 12px;
}

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

/* Currency Widget */
.currency-widget {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-label {
    opacity: 0.9;
}

.currency-value {
    font-weight: 700;
    font-size: 18px;
}

.currency-change {
    color: #2ecc71;
    font-size: 12px;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero .container {
    width: 100%;
    padding-top: 20px; /* Добавляем отступ сверху для мобильной версии */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 15px;
        padding-top: 30px; /* Дополнительный отступ для мобильной версии */
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 10px;
        padding-top: 40px; /* Больше отступ для очень маленьких экранов */
    }
}

.hero h1 {
    font-size: var(--h1-size);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Новая структура заголовка */
.hero-title-block {
    margin-bottom: 20px;
}

.hero-main-title {
    font-size: var(--h1-size);
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.hero-sub-title {
    font-size: calc(var(--h1-size) * 0.9);
    font-weight: 600;
    opacity: 0.95;
    margin: 0;
}

.hero-description {
    margin-bottom: 40px;
}

.hero-description-line {
    font-size: 18px;
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.hero-description-line:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .hero-main-title {
        font-size: 28px;
    }
    .hero-sub-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 22px;
        margin-bottom: 5px;
    }
    .hero-sub-title {
        font-size: 20px;
    }
    .hero-description-line {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 18px;
        margin-bottom: 3px;
    }
    .hero-sub-title {
        font-size: 16px;
    }
    .hero-description-line {
        font-size: 14px;
        margin-bottom: 5px;
    }
}

/* Убрали старые стили .hero p - теперь используем .hero-description-line */

/* Segments */
.segments-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.segment-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .segments-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .segment-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .segments-container {
        gap: 10px;
    }
    
    .segment-card {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .segment-icon {
        font-size: 36px;
    }
    
    .segment-card h3 {
        font-size: 16px;
    }
    
    .segment-card p {
        font-size: 12px;
    }
}

.segment-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.segment-card:hover,
.segment-card.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.segment-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.segment-card h3 {
    font-size: var(--h3-size);
    margin-bottom: 10px;
}

.segment-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.segment-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Content Blocks */
.segment-content {
    padding: 60px 0;
}

.content-block {
    display: none;
}

.content-block.active {
    display: block;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(46, 64, 87, 0.2);
}

.feature-card h3 {
    font-size: var(--h3-size);
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Warehouses Section */
.warehouses-section {
    padding: 60px 0;
    background: var(--gray);
}

.warehouses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.warehouse-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.warehouse-card:hover {
    transform: translateY(-5px);
}

.warehouse-card img {
    margin-bottom: 20px;
}

.warehouse-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: var(--h3-size);
}

.warehouse-card p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.warehouse-status {
    display: inline-block;
    padding: 5px 15px;
    background: var(--success);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

/* Packaging Section */
.packaging-section {
    padding: 60px 0;
}

.packaging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.packaging-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.packaging-item:hover {
    transform: translateY(-5px);
}

.packaging-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.packaging-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.packaging-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-orange {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-group select,
.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: var(--font-size);
    transition: var(--transition);
    font-family: var(--font-family);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Quick Form */
.quick-form {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.quick-form .section-title {
    color: white;
    margin-bottom: 40px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.quick-form .form-row {
    grid-template-columns: 1fr 1fr;
}

.quick-form .btn {
    width: 100%;
    margin-top: 20px;
}

/* Tracking Section */
.tracking-section {
    padding: 40px 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: var(--h2-size);
    margin-bottom: 50px;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

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

/* Mobile Styles */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav {
        margin: 15px 0;
        gap: 15px;
    }
    
    .hero {
        margin-top: 120px;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .segments-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quick-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .warehouses-grid {
        grid-template-columns: 1fr;
    }
    
    .packaging-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        flex-wra