:root {
    --primary: #8b0000;
    --bg: #f8fafc;
    --nav-bg: #e2e8f0; 
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #cbd5e1;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER & NAVIGATION --- */
header {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu { 
    list-style: none; 
    display: flex; 
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: #475569;
    font-weight: 700;
    transition: 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover, .nav-menu a.active { 
    color: var(--primary); 
    transform: scale(1.05);
}

.brand { display: flex; align-items: center; gap: 20px; }

.logo-box {
    width: 70px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; }
.m-title { font-weight: 700; font-size: 1.3rem; letter-spacing: 1px; color: #0f172a; }
.s-title { font-size: 0.7rem; color: var(--primary); font-weight: 600; letter-spacing: 2.5px; }

/* --- HERO & CONTACT SECTION --- */
.contact-page {
    overflow-x: hidden;
}

.hero-contact {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 60px 20px;
}

.contact-glass-card {
    background: #ffffff;
    width: 100%;
    max-width: 550px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
}

.contact-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* --- FORM STYLES --- */
.form-v2 input, .form-v2 textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: #a50000;
    transform: translateY(-2px);
}

.direct-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- MAIN SECTIONS & FEATURES --- */
.main-hero { padding: 5rem 5%; }
.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1.5rem; color: #0f172a; font-family: 'Montserrat', sans-serif; font-weight: 700; }
p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2rem; }

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.features-section { padding: 5rem 5%; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.5rem; color: #0f172a; font-family: 'Montserrat', sans-serif; font-weight: 700; }

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

.feature-card { 
    padding: 3rem 2rem; 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    text-align: center; 
    transition: 0.3s ease;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); 
}

.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }

/* Обновени заглавия в картите */
.feature-card h3 { 
    margin-bottom: 1rem; 
    font-size: 1.4rem; 
    color: #0f172a; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.feature-card p { font-size: 0.95rem; line-height: 1.7; color: var(--text-light); }

/* --- BUTTONS --- */
.btn-fill {
    background: var(--primary);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-outline {
    padding: 0.9rem 2.2rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    margin-left: 1rem;
    transition: 0.3s;
}

.btn-fill:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .btn-outline { margin-left: 0; margin-top: 1rem; display: block; }
    .nav-container { flex-direction: column; gap: 1rem; }
    .nav-menu { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    h1 { font-size: 2rem; }
}