* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 1140px;
    margin: 0 auto;
}

.header {
    background: #0f172a;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

logo {
    color: white;
    font-size: 1.6rem;          /* уменьшен на 20% */
    font-weight: bold;
}

.logo span {
    color: #3b82f6;
}

/* Плавное уменьшение при скролле (опционально) */
.header.scrolled .logo {
    font-size: 1.4rem;
    transition: font-size 0.3s ease;
}

nav a {
    color: white;
    margin-left: 1.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #60a5fa;
}

.lang-switcher {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 4px;
}

.lang-btn {
    padding: 0.5rem 1.1rem;
    border: none;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.25s;
}

.lang-btn.active,
.lang-btn:hover {
    background: #3b82f6;
    color: white;
}

.lang-btn:not(.active):hover {
    background: rgba(59,130,246,0.3);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(15,23,42,0.75), rgba(15,23,42,0.65)),
                url("https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 14rem 0 10rem;
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.primary {
    background: #3b82f6;
    color: white;
}

.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.outline {
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.outline:hover {
    background: white;
    color: #0f172a;
}

/* Секции */
.section {
    padding: 8rem 0;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: #0f172a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.icon {
    color: #3b82f6;
    margin-bottom: 1.2rem;
    font-size: 3rem;
}

/* Шаги процесса */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.step {
    position: relative;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-6px);
}

.step-number {
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.8rem;
    height: 2.8rem;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Преимущества */
.advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.advantage i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

/* Раздел Quick Quote — строго по центру */
#contact {
    padding: 8rem 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#contact .container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.quote-form {
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.form-group {
    text-align: left;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.error-msg {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
    display: none;
}

.error-msg.visible {
    display: block;
}

.quote-form .btn {
    align-self: center;
    margin-top: 1.5rem;
    padding: 1rem 3rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
}

/* Анимации и плавный скролл */
html {
    scroll-behavior: smooth;
}

.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Красивый баннер после отправки */
.success-banner {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.success-banner.visible {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: white;
    padding: 3rem 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-banner.visible .success-content {
    transform: scale(1);
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.success-content h3 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: #111827;
}

.success-content p {
    font-size: 1.15rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.close-banner {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.close-banner:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero { padding: 10rem 0 7rem; }
    .hero h1 { font-size: 2.6rem; }
    .header-right { flex-direction: column; gap: 1rem; align-items: flex-end; }
    .lang-switcher { background: transparent; padding: 0; }
    #contact { padding: 6rem 1rem; }
}

/* ────────────────────────────────────────────────
   Живой фон с контейнерами и грузовиками (только для hero)
───────────────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden; /* чтобы элементы не вылезали */
    background: linear-gradient(rgba(15,23,42,0.65), rgba(15,23,42,0.55)),
                url("https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55") center/cover no-repeat;
}

/* Контейнеры и грузовики — несколько слоёв */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 1200px 100%;
    animation: moveBackground linear infinite;
    opacity: 0.25;
}

/* Слой 1 — дальние контейнеры (медленнее) */
.hero::before {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1200&auto=format&fit=crop&q=60');
    background-position: bottom left;
    animation-duration: 120s; /* очень медленно */
    z-index: 1;
}

/* Слой 2 — ближние грузовики (быстрее) */
.hero::after {
    background-image: url('https://images.unsplash.com/photo-1601581875039-e8d2d6b7c7e0?w=1200&auto=format&fit=crop&q=60');
    background-position: bottom right;
    animation-duration: 80s;
    opacity: 0.35;
    z-index: 2;
}

/* Анимация движения слева направо */
@keyframes moveBackground {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: -1200px;
    }
}

/* Чтобы контент hero был поверх фона */
.hero .container {
    position: relative;
    z-index: 10;
}

/* Опционально: добавить лёгкое движение вверх-вниз для глубины */
.hero {
    animation: subtleFloat 18s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.header {
    background: #0f172a;
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
}

.logo span {
    color: #3b82f6;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.lang-switcher button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.lang-switcher button.active {
    background: #2563eb;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #0f172a;
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    z-index: 2000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    color: white;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    text-decoration: none;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

/* Bank Info */
.company-info {
    padding: 4rem 0;
    background: #f8fafc;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.bank-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.bank-card .card-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(16,185,129,0.25);
}

.bank-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.bank-text {
    font-size: 1.1rem;
    line-height: 2.0;
    text-align: left;
    white-space: pre-line;
    word-wrap: break-word;
    margin: 0 auto;
    max-width: 90%;
    color: #333;
}

@media (max-width: 620px) {
    .bank-text {
        font-size: 1rem;
        text-align: center;
        line-height: 1.8;
    }
    .bank-card {
        padding: 2rem 1.5rem;
    }
}

.footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Самый важный блок — делает строки ровными как в коде */
.bank-text {
    font-size: 1.1rem;          /* Нормальный размер шрифта */
    line-height: 2.0;           /* Пробелы между строками — чтобы не слипалось */
    text-align: left;           /* На ПК слева, на телефоне можно центрировать */
    white-space: pre-line;      /* Сохраняет переносы строк из HTML */
    word-wrap: break-word;      /* Длинные строки переносятся */
    margin: 1.5rem 0 0;
    color: #333;
    letter-spacing: 0.3px;      /* Читаемость лучше */
}

/* Жирные выделения для важных частей (опционально, но красиво) */
.bank-text strong {
    font-weight: 620;
    color: #0f172a;
}

/* На телефоне — центрируем текст, уменьшаем шрифт */
@media (max-width: 620px) {
    .bank-text {
        font-size: 1rem;
        line-height: 1.8;
        text-align: center;     /* Центрируем на мобильном */
        padding: 0 1rem;
    }
    .bank-card {
        padding: 1.8rem 1.2rem;
    }
}

/* Увеличиваем отступы между блоками */
.bank-text p {
    margin-bottom: 1.2rem;      /* Пробел между абзацами */
}

/* Общая адаптивность для телефона */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* базовый шрифт */
    }

    .container {
        padding: 0 15px; /* воздух по бокам */
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    /* Все гриды в столбик */
    .grid, .services-grid, .company-grid, .steps {
        grid-template-columns: 1fr !important;
    }

    .card, .company-card, .step {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        display: block;
        font-size: 1.1rem;
        padding: 12px;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* Bank Info — текст не сливается */
.bank-text, .bank-card p {
    white-space: pre-line !important;      /* сохраняет переносы строк */
    line-height: 1.8 !important;
    word-break: break-word;
    font-size: 1rem !important;
    text-align: center !important;
    margin: 1.2rem 0 !important;
    padding: 0 10px !important;
}

/* Убираем лишние отступы и делаем карточку уже */
.bank-card {
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
}

.bank-card .card-icon {
    margin-bottom: 1.2rem !important;
}
/* Фиксируем header сверху — теперь он всегда виден и не скроллится */
.header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0f172a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ограничиваем ширину контейнера и убираем лишний скролл */
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* не даём элементам переноситься */
}

/* Кнопки языка — делаем их компактнее на телефоне */
.lang-switcher {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.lang-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0; /* не дают кнопке сжиматься */
}

/* Запрещаем горизонтальный скролл на всём сайте и header'е */
html, body, .header {
    overflow-x: hidden !important;
    width: 100%;
}

/* На телефоне уменьшаем всё, чтобы ничего не вылезало */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
    }
    .logo {
        font-size: 1.6rem;
    }
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .menu-toggle {
        font-size: 1.6rem;
    }
    .nav {
        font-size: 0.9rem;
    }
    .container {
        padding: 0 10px;
    }
}

/* Чтобы контент не уходил под header */
body {
    padding-top: 80px; /* высота header'а, подкорректируй если нужно */
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* меньше на телефоне */
    }
}