/* ============================================================
   ОБЩИЕ НАСТРОЙКИ СТРАНИЦЫ
   ============================================================ */
body {
    font-family: Arial, sans-serif;  /* Основной шрифт */
    margin: 0 auto;                  /* Центрируем содержимое */
    padding: 20px;                   /* Отступы вокруг контента */
    background: #222222;             /* Тёмный фон */
    color: #cdcdcd;                  /* Светлый текст */
    max-width: 1200px;               /* Максимальная ширина контента */
    border-radius: 10px;             /* Скруглённые углы основного блока */
    box-sizing: border-box;          /* Корректное вычисление ширины */
}

/* ============================================================
   ШАПКА И НАВИГАЦИЯ
   ============================================================ */
header {
    text-align: center;              /* Центрируем логотип и меню */
    margin-bottom: 30px;             /* Отступ снизу */
}

/* === НАВИГАЦИЯ === */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* === СТИЛЬ КНОПОК === */
.nav-btn {
    position: relative;
    display: inline-block;
    padding: 12px 26px;
    background: #333;
    color: #cdcdcd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* === АНИМАЦИЯ ПРИ НАВЕДЕНИИ === */
.nav-btn:hover {
    color: #c3f4b9;
    background: #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}

/* === ЭФФЕКТ ВОЛНЫ / СИЯНИЯ === */
.nav-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(195,244,185,0.3), transparent);
    transition: all 0.6s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

/* === ЭФФЕКТ АКТИВНОЙ КНОПКИ === */
.nav-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ============================================================
   ЛОГОТИП
   ============================================================ */
.logo_main_top {
    width: 100%;                     /* Занимает всю доступную ширину блока */
    max-width: 700px;                /* Но не больше 700px */
    height: auto;                    /* Пропорциональное масштабирование */
    margin: 10px auto;               /* Центрирование и отступы */
    display: block;                  /* Чтобы margin работал корректно */
}

/* ============================================================
   ОСНОВНОЕ СОДЕРЖИМОЕ И ФОРМЫ
   ============================================================ */
form {
    width: 100%;
    max-width: 700px;                /* Не растягиваем форму слишком сильно */
    margin: 0 auto;                  /* Центрируем форму */
    display: flex;
    flex-direction: column;          /* Элементы идут вертикально */
}

/* Поля ввода и текстовые области */
form input,
form textarea {
    width: 100%;                     /* Растягиваются по ширине формы */
    margin: 5px 0 15px;              /* Отступы между полями */
    padding: 10px;                   /* Внутренние отступы */
    box-sizing: border-box;          /* Корректная ширина */
    background: #333333;             /* Тёмный фон */
    color: #eaeaea;                  /* Светлый текст */
    border: 1px solid #444444;       /* Тонкая рамка */
    border-radius: 6px;              /* Скруглённые углы */
    resize: vertical;                /* Разрешаем изменять высоту textarea */
}

/* ============================================================
   КНОПКИ
   ============================================================ */
button {
    background: #0077cc;             /* Основной синий цвет */
    color: white;                    /* Белый текст */
    padding: 10px 20px;              /* Отступы */
    border: none;                    /* Без рамки */
    border-radius: 8px;              /* Скруглённые углы */
    font-size: 1em;                  /* Средний размер текста */
    cursor: pointer;                 /* Курсор "рука" */
    transition: background 0.3s ease;
}

/* Эффект при наведении */
button:hover {
    background: #005fa3;             /* Более тёмный синий */
}

/* ============================================================
   FLASH-СООБЩЕНИЯ (уведомления)
   ============================================================ */
.flash {
    background: #2f4f2f;             /* Тёмно-зелёный фон */
    border: 1px solid #66bb66;       /* Светло-зелёная рамка */
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #d9ffd9;                  /* Светлый текст */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   АДАПТИВНОСТЬ (мобильные устройства, планшеты)
   ============================================================ */
@media (max-width: 768px) {
    body {
        padding: 10px;               /* Уменьшаем отступы на маленьких экранах */
    }

    nav a {
        display: block;              /* Ссылки — каждая на новой строке */
        margin: 10px 0;
        font-size: 1em;
    }

    .logo_main_top {
        max-width: 90%;              /* Уменьшаем логотип для мобильных */
    }

    form {
        width: 95%;                  /* Чуть уже форма */
    }

    button {
        width: 100%;                 /* Кнопка на всю ширину экрана */
    }
}


/* ==== КАРТОЧКИ УСЛУГ ==== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-card {
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
  color: #c3f4b9;
  margin-bottom: 10px;
}

.service-card p {
  color: #ccc;
  line-height: 1.4;
  font-size: 14px;
}

/* ==== МОДАЛЬНОЕ ОКНО ==== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* скрыто по умолчанию */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #2a2a2a;
  color: #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  animation: modalFadeIn 0.3s ease;
  position: relative;
}

.modal-content h3 {
  color: #c3f4b9;
  margin-bottom: 15px;
}

.modal-content p {
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-content button {
  background: #0077cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.modal-content button:hover {
  background: #005fa3;
}

/* Анимация появления */
@keyframes modalFadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==== Контактная информация ==== */
.contact-info {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    color: #cdcdcd;
    text-align: center;
}

.contact-info p {
    margin: 8px 0;
    line-height: 1.5em;
}

.contact-details a {
    color: #c3f4b9;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #aaf0a0;
}

/* Разделительная линия */
.divider {
    border: 0;
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(to right, transparent, #444, transparent);
}

/* ==== Форма ==== */
.contact-form {
    background: #262626;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin: 8px 0 15px;
    padding: 10px;
    background: #333;
    border: 1px solid #555;
    color: #eee;
    border-radius: 8px;
}

.contact-form button {
    background: #0077cc;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.contact-form button:hover {
    background: #005fa3;
    transform: translateY(-1px);
}

/* ==== Контактная информация ==== */
.contact-info {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    color: #cdcdcd;
    text-align: center;
}

.contact-info p {
    margin: 8px 0;
    line-height: 1.5em;
}

.contact-details a {
    color: #c3f4b9;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #aaf0a0;
}

/* Разделительная линия */
.divider {
    border: 0;
    height: 1px;
    margin: 30px 0;
    background: linear-gradient(to right, transparent, #444, transparent);
}

/* ==== Форма ==== */
.contact-form {
    background: #262626;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin: 8px 0 15px;
    padding: 10px;
    background: #333;
    border: 1px solid #555;
    color: #eee;
    border-radius: 8px;
}

.contact-form button {
    background: #0077cc;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.contact-form button:hover {
    background: #005fa3;
    transform: translateY(-1px);
}

/* ==== Иконки ==== */
.contact-details i {
    color: #c3f4b9;          /* мягкий светло-зелёный оттенок в твоём стиле */
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
    transition: color 0.2s;
}

.contact-details p:hover i {
    color: #aaf0a0;          /* чуть ярче при наведении */
}

.contact-details p {
    margin: 10px 0;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==== О компании ==== */
.about-section {
    background: #2a2a2a;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    margin-bottom: 40px;
    color: #cdcdcd;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #c3f4b9;
    font-size: 1.8em;
}

.about-section p {
    line-height: 1.6em;
    font-size: 1.05em;
    margin-bottom: 15px;
    text-align: justify;
}

/* Центрирование карточек */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Сами карточки */
.service-card {
    background: #2a2a2a;
    padding: 20px;
    width: 280px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    background: #2f2f2f;
}

/* Заголовки карточек */
.service-card h3 {
    color: #c3f4b9;
    margin-bottom: 10px;
}

/* ==== ВСТУПЛЕНИЕ ==== */
.intro {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  animation: fadeInUp 1.2s ease-out;
}

.intro-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-color, #fff);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

/* ==== РАЗДЕЛИТЕЛЬ ==== */
.section-divider {
  width: 60%;
  margin: 40px auto;
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #666, transparent);
}

/* ==== ЗАГОЛОВОК РАЗДЕЛА ==== */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--accent-color, #fff);
  letter-spacing: 0.5px;
}

/* ==== АНИМАЦИИ ==== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}
