/* --- 1. Базові налаштування та змінні --- */
:root {
    --orange: #f97316;
    --dark-blue: #0a192f;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* --- 2. Шапка сайту (Header) --- */
header {
    background: white;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text .brand {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.logo-text .slogan {
    font-size: 10px;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--orange);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 15px;
}

.btn-login {
    background: var(--dark-blue);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 3. Головний екран (Hero Section) --- */
.hero {
    height: 650px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background-color: var(--dark-blue);
    overflow: hidden;
}

/* Фото вантажівки, вставлене через HTML <img> */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 1;
}

/* Градієнтне затемнення, щоб текст зліва було видно */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.95) 20%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    color: white;
}

.hero .label {
    background: var(--orange);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 3px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin: 25px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-features span {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features i {
    color: var(--orange);
    font-size: 16px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-orange {
    background: var(--orange);
    color: white;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-orange:hover {
    background: #e6640d;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- 4. Статистика (Stats Bar) --- */
.stats-bar {
    position: absolute;
    bottom: 0;
    right: 5%;
    background: var(--orange);
    display: flex;
    z-index: 20;
}

.stat-item {
    padding: 25px 35px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child { border-right: none; }

.stat-item strong {
    font-size: 24px;
    display: block;
}

.stat-item div {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
}

/* --- 5. Блок Послуг (Services Section) --- */
.services-section {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-header h2 {
    font-size: 38px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.services-header p {
    color: #666;
    margin-bottom: 30px;
}

.btn-blue-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--orange);
}

.service-card i {
    font-size: 45px;
    color: var(--dark-blue);
    margin-bottom: 25px;
    display: block;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: #777;
}

/* --- 6. Адаптивність --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 40px; }
    .services-section { grid-template-columns: 1fr; }
    .stats-bar { position: relative; right: 0; width: 100%; justify-content: center; }
}



/* Базовий контейнер для центрування (якщо його немає в загальних стилях) */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Секція калькулятора */
.calculator-section {
    padding: 60px 0;
    background-color: #f8fafc; /* Світлий фон секції */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calc-header {
    text-align: center;
    margin-bottom: 35px;
}

.calc-header h2 {
    color: #002147;
    font-size: 28px;
    margin-bottom: 8px;
}

.calc-header p {
    color: #64748b;
}

/* Головна сітка калькулятора */
.calc-grid {
    display: flex; /* Розміщує ввід та результат поруч */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Ліва частина: Ввід даних */
.calc-inputs {
    flex: 1.2; /* Трохи ширша за праву частину */
    padding: 40px;
}

.input-field {
    margin-bottom: 20px;
}

.input-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.input-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Гарантує правильну ширину */
    transition: border-color 0.3s ease;
}

.input-field input:focus {
    border-color: #ff6b00;
    outline: none;
}

/* Кнопка */
.btn-orange {
    background-color: #ff6b00;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.btn-orange:hover {
    background-color: #e66000;
}

/* Права частина: Результат */
.calc-result {
    flex: 0.8;
    background-color: #002147; /* Темно-синій корпоративний колір */
    color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.calc-result h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.price-display {
    font-size: 48px;
    font-weight: 800;
    color: #ff6b00; /* Помаранчевий акцент на ціні */
    margin-bottom: 15px;
}

.calc-note {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Адаптивність для телефонів */
@media (max-width: 768px) {
    .calc-grid {
        flex-direction: column; /* На мобільних блоки стають один під одним */
    }
    .calc-inputs, .calc-result {
        padding: 30px;
    }
}



/* Стилі для сторінки контактів */
.contacts-page {
    padding: 80px 0;
    background: #fff;
}

.contacts-page h1 {
    text-align: center;
    color: #002147;
    font-size: 36px;
    margin-bottom: 10px;
}

.contacts-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.contacts-grid {
    display: flex;
    gap: 40px;
    align-items: start;
}

.contacts-info {
    flex: 1;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f4f7f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-card i {
    font-size: 24px;
    color: #ff6b00;
    background: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-card h3 {
    margin: 0 0 5px 0;
    color: #002147;
    font-size: 18px;
}

.info-card p {
    margin: 0;
    color: #555;
}

.contact-form-container {
    flex: 1;
    background: #002147;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #f4f7f9;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: none;
}

/* Карта */
.map-section {
    height: 400px;
    background: #eee;
    margin-top: 50px;
}

.map-placeholder {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e6ed;
    color: #7a8ba3;
    font-size: 20px;
}

/* Адаптивність */
@media (max-width: 768px) {
    .contacts-grid {
        flex-direction: column;
    }
}


/* Стилі для сторінки Прайс */
.prices-page {
    padding: 80px 0;
    background-color: #fff;
}

.prices-header {
    text-align: center;
    margin-bottom: 50px;
}

.prices-header h1 {
    color: #002147;
    font-size: 32px;
    text-transform: uppercase;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-table th {
    background-color: #002147;
    color: #fff;
    text-align: left;
    padding: 20px;
    font-weight: 700;
}

.price-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.price-table tr:hover {
    background-color: #f9fbfd;
}

.price-table i {
    color: #ff6b00;
    margin-right: 10px;
    width: 20px;
}

.price-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff8f0;
    border-left: 4px solid #ff6b00;
    border-radius: 4px;
}

.price-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.price-info a {
    color: #ff6b00;
    font-weight: 700;
    text-decoration: none;
}


/* --- СТИЛІ СТОРІНКИ ПРО КОМПАНІЮ --- */
.about-hero {
    background: linear-gradient(rgba(0,33,71,0.8), rgba(0,33,71,0.8)), url('images/trck.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.about-content {
    padding: 80px 0;
}

.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #002147;
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #ff6b00;
}

.stat-desc {
    font-size: 14px;
    color: #777;
}

.about-image {
    flex: 1;
}

.advantages-section {
    padding: 80px 0;
    background-color: #f4f7f9;
}

.adv-grid {
    display: flex;
    gap: 30px;
}

.adv-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    transition: 0.3s;
}

.adv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.adv-card i {
    font-size: 40px;
    color: #ff6b00;
    margin-bottom: 20px;
}

.adv-card h3 {
    color: #002147;
    margin-bottom: 15px;
}

.adv-card p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .about-grid, .adv-grid {
        flex-direction: column;
    }
}

/* --- СТИЛІ СТОРІНКИ ПОСЛУГ --- */
.services-hero {
    background-color: #002147;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.services-hero h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.services-list {
    padding: 60px 0;
}

.service-detail-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.service-detail-card.reverse {
    flex-direction: row-reverse;
    background-color: #f9fbfd;
}

.service-icon-box {
    flex: 0 0 150px;
    height: 150px;
    background: #ff6b00;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    border-radius: 30px;
}

.service-info {
    flex: 1;
}

.service-info h2 {
    color: #002147;
    font-size: 26px;
    margin-bottom: 15px;
}

.service-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-info ul {
    list-style: none;
    padding: 0;
}

.service-info ul li {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.service-info ul li i {
    color: #ff6b00;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .service-detail-card, .service-detail-card.reverse {
        flex-direction: column;
        text-align: center;
    }
    .service-icon-box {
        margin-bottom: 20px;
    }
}

/* Модальне вікно */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0, 33, 71, 0.9); 
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.modal-icon {
    font-size: 50px;
    color: #ff6b00;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
    transition: 0.3s;
}

.close-btn:hover { color: #ff6b00; }

#loginForm input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit-modal {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-modal:hover { background: #e65a00; }

/* Стиль кнопки входу в хедері */
.btn-login {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    background: #002147;
    color: #fff;
}