
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f6f8;
    color: #101c2e;
}

/* Шапка сайта */
.header {
    width: 100%;
    height: 85px;
    background-color: #14263d;
}

.header-container {
    width: 84%;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

/* Навигация */
.navigation {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #f28c28;
}

/* Переключатель языка */
.language {
    display: flex;
    gap: 8px;
}

.language button {
    padding: 8px 13px;
    border: 1px solid #ffffff;
    border-radius: 5px;

    background: transparent;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

.language button:hover,
.language button.active {
    border-color: #f28c28;
    color: #f28c28;
}

/* Главный экран */
.hero {
    min-height: 740px;
    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(16, 28, 46, 0.97) 0%,
            rgba(16, 28, 46, 0.85) 30%,
            rgba(16, 28, 46, 0.35) 65%,
            rgba(16, 28, 46, 0.10) 100%
        ),
        url("images/road-background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    width: 84%;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-content {
    max-width: 700px;
}

/* Надпись над заголовком */
.hero-label {
    display: inline-block;
    margin-bottom: 30px;

    color: #f28c28;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Заголовок */
.hero h1 {
    max-width: 700px;
    margin-bottom: 30px;

    color: #ffffff;
    font-size: clamp(40px, 4.5vw, 72px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2px;
}

/* Описание */
.hero p {
    max-width: 480px;
    margin-bottom: 35px;

    color: #d0d8e3;
    font-size: 18px;
    line-height: 1.7;
}

/* Главная кнопка */
.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    padding: 18px 35px;
    border-radius: 5px;

    background-color: #f28c28;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    text-decoration: none;

    transition: background-color 0.3s,
                transform 0.3s;
}

.main-button:hover {
    background-color: #d97516;
    transform: translateY(-3px);
}

/* Следующие разделы */
.content-section {
    padding: 100px 8%;
    min-height: 300px;
}

.content-section:nth-of-type(odd) {
    background-color: #ffffff;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.content-section p {
    color: #657080;
    line-height: 1.7;
}

/* Планшеты */
@media (max-width: 1000px) {

    .header-container {
        width: 90%;
        gap: 20px;
    }

    .navigation {
        gap: 15px;
    }

    .navigation a {
        font-size: 12px;
    }

    .hero-container {
        width: 90%;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        max-width: 600px;
    }
}

/* Телефоны */
@media (max-width: 700px) {

    .header {
        height: auto;
        padding: 20px 0;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navigation {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero {
        min-height: 650px;
        padding: 70px 0;

        background-position: 65% center;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .main-button {
        padding: 16px 25px;
        font-size: 14px;
    }

    .content-section {
        padding: 70px 5%;
    }
}

/* Раздел услуг */
.services {
    padding: 110px 8%;
    background-color: #f5f6f8;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-label {
    color: #f28c28;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 18px 0;
    color: #101c2e;
    font-size: 46px;
    font-weight: 800;
}

.section-heading p {
    color: #657080;
    font-size: 17px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Карточки услуг */
.service-card {
    min-height: 260px;
    padding: 35px 28px;
    background-color: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: #f28c28;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(16, 28, 46, 0.08);
}

.service-number {
    display: block;
    margin-bottom: 45px;
    color: #f28c28;
    font-size: 14px;
    font-weight: 700;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #101c2e;
    font-size: 20px;
    font-weight: 700;
}

.service-card p {
    color: #657080;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services {
        padding: 70px 5%;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 220px;
    }
}

/* Предварительный расчёт */
.calculator {
    padding: 110px 8%;
    background-color: #14263d;
    color: #ffffff;
}

.calculator-heading {
    max-width: 700px;
    margin-bottom: 45px;
}

.calculator-heading h2 {
    margin: 18px 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
}

.calculator-heading p {
    color: #c5ceda;
    font-size: 17px;
    line-height: 1.7;
}

.calculator-form {
    max-width: 1000px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #14263d;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #d9dee6;
    border-radius: 5px;
    background-color: #ffffff;
    color: #14263d;
    font: inherit;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #f28c28;
    outline-offset: 1px;
}

.calculate-button {
    padding: 17px 35px;
    border: none;
    border-radius: 5px;
    background-color: #f28c28;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-button:hover {
    background-color: #d97516;
}

.form-note {
    margin-top: 18px;
    color: #657080;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .calculator {
        padding: 70px 5%;
    }

    .calculator-form {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calculate-button {
        width: 100%;
    }
}

/* Дополнительные услуги */
.extra-service {
    max-width: 480px;
    margin-bottom: 30px;
}

.form-group input::placeholder {
    color: #9aa5b3;
}

.form-group select {
    cursor: pointer;
}

/* Возможности перевозки */
.transport {
    padding: 110px 8%;
    background-color: #ffffff;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.transport-card {
    min-height: 340px;
    padding: 35px;
    border-radius: 8px;
    background-color: #14263d;
    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.transport-card:hover {
    transform: translateY(-6px);
}

.transport-number {
    color: #f28c28;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Содержимое карточек */
.transport-info {
    position: relative;
    z-index: 2;
}

.transport-info h3 {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 800;
}

.transport-info p {
    max-width: 380px;
    margin-bottom: 25px;
    color: #c5ceda;
    font-size: 15px;
    line-height: 1.7;
}

.transport-info a {
    color: #f28c28;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.transport-info a:hover {
    text-decoration: underline;
}

/* Декоративная геометрия */
.transport-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -75px;
    top: -75px;

    border: 1px solid rgba(242, 140, 40, 0.35);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 700px) {
    .transport {
        padding: 70px 5%;
    }

    .transport-grid {
        grid-template-columns: 1fr;
    }

    .transport-card {
        min-height: 290px;
        padding: 28px;
    }

    .transport-info h3 {
        font-size: 24px;
    }
}

/* О компании */
.about {
    padding: 120px 8%;
    background-color: #eef1f5;
}

.about-container {
    max-width: 1440px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.about-left h2 {
    max-width: 560px;
    margin-top: 25px;

    color: #101c2e;
    font-size: clamp(36px, 3.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.about-line {
    width: 85px;
    height: 4px;
    margin-top: 35px;
    background-color: #f28c28;
}

/* Текст о компании */
.about-right {
    padding-top: 35px;
}

.about-right p {
    margin-bottom: 22px;
    color: #657080;
    font-size: 16px;
    line-height: 1.9;
}

.about-right .about-intro {
    color: #14263d;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.6;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 15px;

    color: #14263d;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;

    border-bottom: 2px solid #f28c28;
    padding-bottom: 8px;
    transition: color 0.3s;
}

.about-link:hover {
    color: #f28c28;
}

@media (max-width: 800px) {
    .about {
        padding: 75px 5%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-left h2 {
        font-size: 36px;
    }

    .about-right {
        padding-top: 0;
    }

    .about-right .about-intro {
        font-size: 19px;
    }
}

/* Контакты */
.contacts {
    padding: 110px 8%;
    background-color: #101c2e;
    color: #ffffff;
}

.contacts-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contacts-info h2 {
    margin: 22px 0;
    max-width: 520px;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.contacts-info > p {
    max-width: 480px;
    color: #c5ceda;
    font-size: 16px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 45px;
    display: grid;
    gap: 25px;
}

.contact-item span,
.panel-label {
    color: #f28c28;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-item p {
    margin-top: 10px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
}

.contact-panel {
    padding: 50px;
    background-color: #203650;
    border: 1px solid #344b66;
    border-radius: 8px;
}

.contact-panel h3 {
    margin: 25px 0 15px;
    font-size: 32px;
    font-weight: 800;
}

.contact-panel p {
    margin-bottom: 30px;
    color: #c5ceda;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 800px) {
    .contacts {
        padding: 75px 5%;
    }

    .contacts-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-panel {
        padding: 30px;
    }
}

/* Подвал сайта */
.footer {
    padding: 30px 8%;
    background-color: #0b1523;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.footer p,
.footer span {
    color: #9aa5b3;
    font-size: 13px;
}

@media (max-width: 700px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
=================================== */

/* Общие улучшения */
img {
    max-width: 100%;
    height: auto;
}

section {
    scroll-margin-top: 20px;
}

.hero h1,
.section-heading h2,
.about-left h2,
.calculator-heading h2,
.contacts-info h2 {
    overflow-wrap: break-word;
}

/* Кнопка мобильного меню */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #344b66;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Планшеты и телефоны */
@media (max-width: 1050px) {

    .header {
        height: 76px;
        padding: 0;
    }

    .header-container {
        width: 90%;
        height: 100%;
        position: relative;
        flex-wrap: nowrap;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
        margin-right: auto;
    }

    .language {
        flex-shrink: 0;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* Выпадающее меню */
    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: -5.56%;
        width: 111.12%;
        z-index: 100;

        padding: 20px 5%;
        background-color: #14263d;
        border-top: 1px solid #344b66;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);

        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        display: block;
        padding: 15px 10px;
        font-size: 15px;
        border-bottom: 1px solid #344b66;
    }

    .navigation a:last-child {
        border-bottom: none;
    }

    /* Анимация кнопки */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Общая сетка */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-container,
    .contacts-container {
        gap: 35px;
    }
}

/* Узкие телефоны */
@media (max-width: 600px) {

    .hero {
        min-height: 600px;
        padding: 80px 0;
        background-position: 62% center;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 46px);
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .hero-content {
        max-width: 100%;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .services-grid,
    .transport-grid,
    .about-container,
    .contacts-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card {
        min-height: 200px;
    }

    .transport-card {
        min-height: 270px;
    }

    .calculator-form {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-group {
        min-width: 0;
    }

    .form-group input,
    .form-group select {
        min-width: 0;
        font-size: 16px;
    }

    .contact-panel {
        padding: 28px 22px;
    }

    .contact-panel h3 {
        font-size: 27px;
    }

    .main-button,
    .calculate-button {
        max-width: 100%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {

    .logo {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .language {
        gap: 4px;
    }

    .language button {
        padding: 7px 9px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 33px;
    }

    .main-button {
        gap: 12px;
        padding: 15px 18px;
    }
}

/* Исправление мобильной ширины */

html,
body {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1050px) {

    .header-container {
        width: 90%;
    }

    .navigation {
        left: 0;
        width: 100%;
    }

    .hero-container {
        width: 90%;
        max-width: 100%;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .services-grid,
    .transport-grid,
    .about-container,
    .contacts-container {
        min-width: 0;
    }
}
