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

:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #1e40af;
    --accent-blue: #2563eb;
    --light-blue: #3b82f6;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Top Utility Bar */
.top-bar {
    background-color: var(--primary-blue);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
}

.contact-item svg {
    flex-shrink: 0;
}

.office-dropdown {
    margin-left: auto;
}

.office-btn {
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.office-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Navigation */
.main-nav {
    background-color: var(--white);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

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

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

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

/* Кнопка «гамбургер» — только на мобильных, одна иконка из трёх линий */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-blue);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}
.mobile-menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
}
.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}
.mobile-menu-icon::before {
    top: -7px;
}
.mobile-menu-icon::after {
    top: 7px;
}

/* Чтобы при скролле по якорю блок с плашками не уходил под шапку */
.cargo-section {
    scroll-margin-top: 90px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1e3a8a; /* Основной темно-синий фон */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Базовый градиентный фон с переходом от светлого к темному */
    background: linear-gradient(
        90deg,
        #2563eb 0%,
        #1e40af 30%,
        #1e3a8a 50%,
        #1e40af 70%,
        #1e3a8a 100%
    );
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Диагональный сегмент более светлого синего с мягкими краями */
    background: linear-gradient(
        140deg,
        transparent 0%,
        transparent 32%,
        rgba(96, 165, 250, 0.15) 36%,
        rgba(147, 197, 253, 0.35) 42%,
        rgba(191, 219, 254, 0.45) 48%,
        rgba(147, 197, 253, 0.35) 54%,
        rgba(96, 165, 250, 0.15) 60%,
        transparent 64%,
        transparent 100%
    );
    /* Создаем эффект мягкого затенения по краям диагонали */
    filter: blur(0.5px);
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Вертикальный градиент для дополнительной глубины */
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.4) 0%,
        rgba(30, 64, 175, 0.3) 20%,
        rgba(29, 78, 216, 0.2) 50%,
        rgba(30, 64, 175, 0.3) 80%,
        rgba(30, 58, 138, 0.4) 100%
    );
    /* Дополнительный диагональный акцент */
    background-image: 
        linear-gradient(
            140deg,
            transparent 0%,
            transparent 35%,
            rgba(59, 130, 246, 0.2) 40%,
            rgba(96, 165, 250, 0.3) 45%,
            rgba(59, 130, 246, 0.2) 50%,
            transparent 55%,
            transparent 100%
        );
    background-blend-mode: overlay;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px 50px;
    max-width: 650px;
    margin-top: 100px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    margin-bottom: 30px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-blue);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    font-weight: 300;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border-color: var(--accent-blue);
    background-color: var(--white);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    stroke: var(--accent-blue);
}

.service-icon-img,
.service-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.service-card_with-subtitle p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Cargo section: "Перевезем любой груз" */
.cargo-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.cargo-section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cargo-section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Блок «Грузоперевозки по городам» — скрыт от пользователей, оставлен в HTML для SEO */
.cities-seo {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cities-seo .section-title {
    margin-bottom: 24px;
}

.cities-seo-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: center;
}

.cities-seo-text strong {
    color: var(--primary-blue);
}

.cities-seo-list {
    max-width: 900px;
    margin: 20px auto 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
}

.cities-seo-keywords {
    max-width: 800px;
    margin: 24px auto 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-gray);
}

.cargo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(260px, 300px);
    grid-auto-flow: dense;
    gap: 8px;
}

/* Высокая плашка (на 2 строки) */
.cargo-card-size-tall {
    grid-row: span 2;
}

/* Широкая плашка (на 2 колонки) */
.cargo-card-size-wide {
    grid-column: span 2;
}

/* Плашка с изображением — макет как на образце: текст сверху слева, картинка снизу справа, синяя линия */
.cargo-card-fit-image {
    /* без фиксированного размера — одинаковый зазор со всеми */
}


.cargo-card {
    display: block;
    position: relative;
    height: 100%;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    background-color: #fafafa;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.15);
    touch-action: pan-y;
}

.cargo-card:hover {
    transform: translateY(-2px);
}

.cargo-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #f5f5f5 0%, #eeeeee 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.cargo-card-image-domashnie {
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cargo-card-fit-image .cargo-card-image-domashnie,
.cargo-card-fit-image .cargo-card-image-corner {
    padding: 0;
    align-items: flex-end;
    justify-content: flex-end;
}

.cargo-card-image-domashnie .cargo-card-img-no-bg,
.cargo-card-image-corner .cargo-card-img-no-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Картинка в правом нижнем углу, слегка выходит за границы и обрезается (Домашние вещи + Грузоперевозки + Международные) */
.cargo-card-fit-image .cargo-card-image-corner .cargo-card-img-no-bg {
    top: auto;
    left: auto;
    right: -5%;
    bottom: -4%;
    width: auto;
    height: 92%;
    max-width: 80%;
    object-fit: contain;
    object-position: right bottom;
    z-index: 1;
}

/* Домашние вещи — изображение меньше, чтобы не перекрывать текст */
.cargo-card-fit-image .cargo-card-image-domashnie .cargo-card-img-no-bg {
    height: 62%;
    max-width: 50%;
    right: -4%;
    bottom: -3%;
}

.cargo-card-image-2 { background: linear-gradient(145deg, #f5f5f5 0%, #efefef 100%); }
.cargo-card-image-3 { background: linear-gradient(145deg, #f4f4f4 0%, #eeeeee 100%); }
.cargo-card-image-4 { background: linear-gradient(145deg, #f3f3f3 0%, #ededed 100%); }

/* Опасные грузы — изображение крупно, целиком в плашке */
.cargo-card-fit-image .cargo-card-image-4.cargo-card-image-corner .cargo-card-img-no-bg {
    height: 98%;
    max-width: 98%;
    right: 0;
    bottom: 0;
    object-fit: contain;
    object-position: right bottom;
}

.cargo-card-image-5 { background: linear-gradient(145deg, #f5f5f5 0%, #eeeeee 100%); }

/* Негабаритные грузы — изображение крупно, целиком в плашке */
.cargo-card-fit-image .cargo-card-image-5.cargo-card-image-corner .cargo-card-img-no-bg {
    height: 98%;
    max-width: 98%;
    right: 0;
    bottom: 0;
    object-fit: contain;
    object-position: right bottom;
}

.cargo-card-image-6 { background: linear-gradient(145deg, #f6f6f6 0%, #efefef 100%); }
.cargo-card-image-7 { background: linear-gradient(145deg, #f4f4f4 0%, #eeeeee 100%); }
.cargo-card-image-8 { background: linear-gradient(145deg, #f5f5f5 0%, #efefef 100%); }

/* Контейнерные и жд перевозки — изображение */
.cargo-card-fit-image .cargo-card-image-8.cargo-card-image-corner .cargo-card-img-no-bg {
    height: 78%;
    max-width: 72%;
    right: 0;
    bottom: 0;
    object-fit: contain;
    object-position: right bottom;
}

.cargo-card-image-9 { background: linear-gradient(145deg, #f5f5f5 0%, #eeeeee 100%); }

/* Строительные грузы — изображение чуть крупнее */
.cargo-card-fit-image .cargo-card-image-9.cargo-card-image-corner .cargo-card-img-no-bg {
    height: 96%;
    max-width: 88%;
    right: 0;
    bottom: 0;
    object-fit: contain;
    object-position: right bottom;
}

.cargo-card-blue-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(145deg, var(--primary-blue) 0%, var(--dark-blue) 50%, var(--accent-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.cargo-card:hover .cargo-card-blue-overlay {
    opacity: 1;
}

.cargo-card:hover .cargo-card-image {
    opacity: 0;
}

.cargo-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 28px 28px 28px;
    background: transparent;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.cargo-card:hover .cargo-card-content {
    background: transparent;
}

.cargo-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    padding: 4px 0;
    max-width: calc(100% - 8px);
    line-height: 1.35;
    transition: color 0.3s ease;
    text-align: left;
}

.cargo-card:hover .cargo-card-title {
    color: var(--white);
}

.cargo-card-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 17px;
    font-weight: 600;
    border-radius: 9999px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.3s ease;
}

.cargo-card:hover .cargo-card-btn {
    opacity: 1;
    transform: translateY(0);
}

.cargo-card:hover .cargo-card-btn:hover {
    background-color: var(--bg-light);
    color: var(--dark-blue);
}

/* На мобильных: тап по плашке показывает заливку (как hover на ПК), не скрывается пока пользователь листает или тапнет снаружи */
.cargo-card-mobile-active .cargo-card-blue-overlay {
    opacity: 1;
}
.cargo-card-mobile-active .cargo-card-image {
    opacity: 0;
}
.cargo-card-mobile-active .cargo-card-content {
    background: transparent;
}
.cargo-card-mobile-active .cargo-card-title {
    color: var(--white);
}
.cargo-card-mobile-active .cargo-card-btn {
    opacity: 1;
    transform: translateY(0);
}

.cargo-card .cargo-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* News Section */
.news {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    border-color: var(--accent-blue);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-blue), #0099b8);
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

.news-content {
    padding: 30px;
}

.news-date {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.news-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.news-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.news-link:hover {
    color: var(--dark-blue);
}

/* Пагинация новостей */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--dark-blue);
}

.pagination-btn:disabled {
    background-color: var(--bg-light);
    color: var(--text-gray);
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
}

/* Модальное окно для новостей */
.news-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.news-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.news-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-gray);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: all 0.3s;
}

.news-modal-close:hover {
    background-color: var(--accent-blue);
    color: white;
}

#news-modal-body {
    padding: 40px;
}

#news-modal-body .modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

#news-modal-body .modal-date {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

#news-modal-body .modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.3;
}

#news-modal-body .modal-description {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
    font-weight: 500;
}

#news-modal-body .modal-full-text {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
}

/* Модальное окно «Сделать заказ» */
.order-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.order-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-modal-content {
    background-color: var(--white);
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: orderModalFadeIn 0.3s ease;
}

@keyframes orderModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.order-modal-header {
    background-color: var(--primary-blue);
    padding: 24px 56px 24px 24px;
    position: relative;
}

.order-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

.order-modal-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--dark-blue);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.order-modal-close:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.order-form {
    padding: 28px 24px 24px;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.order-form input::placeholder,
.order-form textarea::placeholder {
    color: var(--text-gray);
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.order-form textarea {
    resize: vertical;
    min-height: 100px;
}

.order-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.order-submit-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

.order-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.order-form-message.show {
    display: block;
}

.order-form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.order-form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.order-form-message.loading {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background-color: var(--white);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border: 2px solid var(--bg-light);
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-gray);
}

.submit-btn {
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.form-message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.form-message-loading {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

.form-message-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    display: block;
}

.form-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    gap: 20px;
    align-items: start;
}

.contact-detail svg {
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-detail h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.contact-detail p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-version {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 4px !important;
}

.footer-counter {
    display: inline-block;
    line-height: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contacts-content {
        grid-template-columns: 1fr;
    }

    .cargo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(260px, 300px);
        gap: 8px;
    }

    .cargo-card-size-wide {
        grid-column: span 2;
    }

    .cargo-card-size-tall .cargo-card-image {
        padding-bottom: 75%;
    }

    /* Планшеты: картинки в карточках не меньше этого размера */
    .cargo-card-fit-image .cargo-card-image-corner .cargo-card-img-no-bg {
        min-height: 100px;
        min-width: 90px;
    }

    .cargo-card-fit-image .cargo-card-image-domashnie .cargo-card-img-no-bg {
        min-height: 95px;
        min-width: 80px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .nav-content {
        flex-wrap: nowrap;
        position: relative;
    }

    .logo {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 16px 20px 20px;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border-top: 1px solid var(--bg-light);
        z-index: 1000;
    }

    .main-nav.nav-open .nav-links {
        display: flex !important;
    }

    .nav-links li {
        border-bottom: 1px solid var(--bg-light);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .cargo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(170px, 200px);
        gap: 6px;
    }

    .cargo-card-fit-image {
        width: 100%;
        height: 100%;
        min-height: 170px;
        max-height: none;
    }

    .cargo-card-size-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cargo-card-size-wide {
        grid-column: span 2;
    }

    .cargo-grid > .cargo-card:first-child {
        grid-column: span 2;
    }

    .cargo-card-size-tall .cargo-card-image,
    .cargo-card-size-wide .cargo-card-image {
        padding-bottom: 0;
    }

    .cargo-card-content {
        padding: 16px;
    }

    .cargo-card-title {
        font-size: 14px;
        margin: 0 0 8px 0;
    }

    .cargo-card-fit-image .cargo-card-image-corner .cargo-card-img-no-bg {
        min-height: 80px;
        min-width: 70px;
        height: 80%;
        max-width: 65%;
    }

    .cargo-card-fit-image .cargo-card-image-domashnie .cargo-card-img-no-bg {
        min-height: 80px;
        min-width: 70px;
        height: 70%;
        max-width: 55%;
    }

    .cargo-card-fit-image .cargo-card-image-3.cargo-card-image-corner .cargo-card-img-no-bg {
        height: 80%;
        max-width: 65%;
        right: 0;
        bottom: 0;
    }

    .cargo-card-fit-image .cargo-card-image-5.cargo-card-image-corner .cargo-card-img-no-bg {
        height: 85%;
        max-width: 80%;
    }

    .cargo-card-fit-image .cargo-card-image-4.cargo-card-image-corner .cargo-card-img-no-bg {
        height: 85%;
        max-width: 80%;
    }

    .cargo-card-fit-image .cargo-card-image-6.cargo-card-image-corner .cargo-card-img-no-bg,
    .cargo-card-fit-image .cargo-card-image-7.cargo-card-image-corner .cargo-card-img-no-bg {
        height: 80%;
        max-width: 70%;
        right: 0;
        bottom: 0;
    }

    .cargo-card-fit-image .cargo-card-image-8.cargo-card-image-corner .cargo-card-img-no-bg,
    .cargo-card-fit-image .cargo-card-image-9.cargo-card-image-corner .cargo-card-img-no-bg {
        height: 80%;
        max-width: 70%;
    }

    .cargo-card-btn {
        min-height: 40px;
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cargo-section-title {
        font-size: 32px;
    }

    .footer-logo {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .hero-content {
        padding: 30px 20px;
        margin-top: 50px;
    }

    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .contact-item {
        font-size: 12px;
    }

    .office-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .footer-logo {
        font-size: 20px;
    }
}
