:root {
    --primary-color: #004488;
    --accent-color: #f39c12;
    --bg-light: #f9f9f9;
    --text-dark: #333;
    --text-light: #fff;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* --- 1. ШАПКА И НАВИГАЦИЯ --- */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.phone-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #f0f4f8;
}

/* Кнопки переключения языка */
.lang-switcher button {
    background: none;
    border: 1px solid #ccc;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.lang-switcher button:hover {
    background: var(--primary-color);
    color: white;
}

/* --- 2. ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    background: linear-gradient(rgba(0,68,136,0.8), rgba(0,68,136,0.8)),
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin-top: 25px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* --- 3. СЕКЦИИ: ПРЕИМУЩЕСТВА И УСЛУГИ НА ГЛАВНОЙ --- */
.section-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: 2rem;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* РЯД ИЗ 4 КАРТОЧЕК (Преимущества) */
.advantages-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* РЯД ИЗ 3 КАРТОЧЕК (Услуги на главной) */
.services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Общий стиль для карточек на главной */
.card, .service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary-color);
    transition: 0.3s;
}

.card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h3, .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* --- 4. СТРАНИЦА УСЛУГ (ДЕТАЛЬНО) --- */
.services-detailed {
    padding: 80px 0;
    background: #f4f7f9;
}

.digital-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card-premium {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    transition: 0.3s;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,68,136,0.1);
}

.service-card-premium h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.service-card-premium ul {
    list-style: none;
    margin: 20px 0;
}

.service-card-premium ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.service-card-premium ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.price-tag {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

/* --- 5. ФОРМА ЗАКАЗА --- */
.contact-form-section {
    background: linear-gradient(rgba(0, 68, 136, 0.9), rgba(0, 68, 136, 0.9)),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    padding: 60px 0;
    color: var(--text-dark); /* Внутри карточки текст темный */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-weight: bold;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #ffffff;
    color: #333;
    width: 100%;
    font-family: inherit;
}

/* --- 6. ПЛАВАЮЩИЕ МЕССЕНДЖЕРЫ --- */
.messenger-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.messenger-main-btn {
    width: 60px; height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.messenger-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
}

.messenger-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.messenger-item {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 24px;
}

.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }

/* --- 7. ФУТЕР --- */
footer {
    background: var(--text-dark);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* --- 8. АДАПТИВНОСТЬ (ДЛЯ ТЕЛЕФОНОВ И ПЛАНШЕТОВ) --- */
@media (max-width: 992px) {
    /* На планшетах делаем по 2 в ряд */
    .advantages-row { grid-template-columns: repeat(2, 1fr); }
    .services-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    .nav-links { margin: 10px 0; }
    .hero h1 { font-size: 1.8rem; }
    .service-card-premium { padding: 25px; }
    .service-card-premium h3 { font-size: 1.2rem; }

    /* На мобильных делаем всё в 1 столбик */
    .advantages-row { grid-template-columns: 1fr; }
    .services-row { grid-template-columns: 1fr; }
}
html, body {
    height: 100%;
}


main {
    flex: 1;
}

.impressum-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.impressum-page h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.impressum-page p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.impressum-list {
    list-style: none;
    padding: 0;
}

.impressum-list li {
    margin-bottom: 14px;
    font-size: 1rem;
}

.impressum-list strong {
    color: #222;
}

.impressum-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.impressum-list a:hover {
    text-decoration: underline;
}
.impressum-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 80px;
}