/* ========================================
   ОСНОВНЫЕ СТИЛИ ДЛЯ САЙТА "СЛУЖБА ПО КОНТРАКТУ"
   ======================================== */

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
    --primary-color: #0a4d8c;
    --primary-dark: #062b50;
    --secondary-color: #1a6eb8;
    --accent-color: #ff6b00;
    --accent-light: #ffd700;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8f9fa;
    --gray-bg: #ebebeb;
    --success-color: #28a745;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

/* ---------- БАЗОВЫЕ СТИЛИ ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'TildaSans', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-color);
}

/* ---------- ШАПКА (HEADER) ---------- */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.slogan {
    font-size: 13px;
    color: var(--text-light);
    margin-top: -2px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-item i {
    color: var(--accent-color);
    font-size: 18px;
    min-width: 25px;
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent-color);
}

.btn-apply {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    color: var(--white);
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    color: var(--white);
}

/* ---------- ГЕРОЙ СЕКЦИЯ (Hero Section) ---------- */
.hero-section {
    /* Картинка на весь блок */
    background-image: url('/assets/img/fone.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Растягиваем на всю высоту экрана */
    width: 100%;
    min-height: 100vh; /* 100% высоты окна браузера */
    
    display: flex; /* Для центрирования контента */
    align-items: center; /* Вертикальное центрирование */
    padding: 40px 0; /* Отступы сверху/снизу для запаса */
    position: relative;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

/* Затемнение фона */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* затемнение 50% */
    z-index: 1;
}

/* Декоративный слой (можно объединить с затемнением или убрать) */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.payment-summary .label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.payment-summary .total-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.payment-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 16px;
    margin: 10px 0;
    transition: transform 0.3s;
    height: 100%;
}

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

.payment-card .amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.payment-card .desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.payment-card.highlight {
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid var(--accent-color);
}

.payment-card.highlight .amount {
    color: var(--accent-light);
}

.hero-bottom-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-bottom-info span {
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- БЕЛЫЙ БЛОК ---------- */
.white-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

.spec-card {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--white);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.spec-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.spec-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.spec-card ul li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    gap: 10px;
}

.icon-comm { background: #e3f2fd; color: #0d6efd; }
.icon-eng { background: #f3e5f5; color: #6f42c1; }
.icon-ew { background: #ffebee; color: #dc3545; }
.icon-log { background: #e8f5e9; color: #198754; }

/* ---------- ТРЕБОВАНИЯ ---------- */
.requirements-block {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
    border: 1px solid #eee;
}

.requirements-block ul {
    list-style: none;
    padding-left: 0;
}

.requirements-block ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- ФИНАНСЫ ---------- */
.finance-grid .finance-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.finance-grid .finance-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.finance-grid .finance-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ---------- ЛОГИСТИКА (Поезд) ---------- */
.train-block {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 35px;
    margin: 50px 0;
    border-left: 5px solid var(--accent-color);
}

.train-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.train-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.highlight-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
}

/* ---------- HELP SECTION ---------- */
.help-section {
    background-color: var(--gray-bg);
    padding: 80px 0;
}

.help-card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--white);
    overflow: hidden;
    height: 100%;
    text-align: center;
    padding: 30px 20px;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.help-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.admin-benefits-card {
    border: 2px solid #ffc107;
    border-radius: 16px;
    background: var(--white);
    overflow: hidden;
}

.admin-benefits-card .card-header {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px;
    border-bottom: none;
}

.admin-list {
    list-style: none;
    padding-left: 0;
}

.admin-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-list li:last-child {
    border-bottom: none;
}

.admin-list i {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* ---------- ФОРМА ---------- */
.form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.form-wrapper {
    max-width: 550px;
    margin: 0 auto;
    background: var(--white);
    padding: 45px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.form-control-lg {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 16px;
}

.form-control-lg:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* ---------- КОНТАКТЫ ---------- */
.contacts-section {
    background-color: var(--gray-bg);
    padding: 80px 0;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    height: 100%;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .payment-summary .total-amount { font-size: 2.5rem; }
    .payment-card .amount { font-size: 1.4rem; }
    .section-title { font-size: 26px; }
    .train-header { flex-direction: column; text-align: center; }
    .form-wrapper { padding: 25px; }
    .header .logo { font-size: 20px; }
    .map-wrapper { height: 250px; }
    .hero-section { min-height: auto; padding: 80px 0; }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }
}