/* Переменные для быстрой настройки «дорогого» дизайна */
:root {
    --bg-dark: #0a1118;      /* Солидный глубокий темный цвет */
    --accent-gold: #c5a059;  /* Благородный золотой акцент */
    --text-light: #ffffff;
    --text-dark: #1c252c;
    --card-bg: #ffffff;
    --gray-light: #f8f9fa;
}

/* Общие сбросы отступов */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--gray-light);
    color: var(--text-dark);
    overflow-x: hidden; /* Защита от появления горизонтального скролла при анимациях */
}

/* ==========================================================================
   МОБИЛЬНЫЕ СТИЛИ (По умолчанию, подход Mobile-First)
   ========================================================================== */

.top-bar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.top-bar .phone {
    display: block;
    margin-bottom: 8px;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: white;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

.header {
    background-color: #ffffff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--bg-dark);
    margin-bottom: 12px;
}

.nav-links {
    display: flex;
    flex-direction: column; /* Элементы меню строятся друг под другом на телефоне */
    gap: 12px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
}

/* Главный экран */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero p {
    font-size: 14px;
    color: #a0aab2;
    margin-bottom: 25px;
}

.btn-gold-large {
    background-color: var(--accent-gold);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* Кнопка на всю ширину мобильного экрана */
    max-width: 280px;
}

/* Секции и карточки */
.services-section, .news-section {
    padding: 40px 20px;
}

.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

.services-grid, .news-container {
    display: grid;
    grid-template-columns: 1fr; /* Одна колонка на мобильном */
    gap: 20px;
}

.service-card, .news-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-bottom: 3px solid var(--accent-gold); /* Красивая золотая полоска при наведении */
}

.service-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3, .news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: #626e7a;
    line-height: 1.5;
}

/* Настройки стилей для будущих новостей */
.news-card {
    text-align: left;
}
.news-date {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: bold;
}
.more-link {
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
}

/* ==========================================================================
   НАСТРОЙКА CSS-АНИМАЦИИ ПРИ СКРОЛЛЕ
   ========================================================================== */
.anim-scroll {
    opacity: 0;
    transform: translateY(40px); /* Изначально карточка опущена вниз и прозрачна */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Этот класс автоматически добавится через JavaScript */
.anim-scroll.show {
    opacity: 1;
    transform: translateY(0); /* Карточка плавно встает на свое место */
}


/* ==========================================================================
   СТИЛИ ДЛЯ БОЛЬШИХ ЭКРАНОВ (Планшеты и Компьютеры)
   ========================================================================== */
@media (min-width: 768px) {
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 50px;
    }
    .top-bar .phone {
        display: inline;
        margin-bottom: 0;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 50px;
    }
    .logo {
        margin-bottom: 0;
    }
    .nav-links {
        flex-direction: row; /* Меню выстраивается в линию на ПК */
        gap: 25px;
    }

    .hero {
        padding: 120px 20px;
    }
    .hero h1 {
        font-size: 44px;
    }
    .hero p {
        font-size: 20px;
    }
    .btn-gold-large {
        width: auto;
    }

    /* На компьютере услуги становятся в сетку из 4-х колонок */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 30px;
    }

    /* Новости становятся в 2 колонки */
    .news-container {
        grid-template-columns: 1fr 1fr;
        padding: 0 30px;
    }
}