* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.logo img {
  height: 60px;   /* было 40 — стало крупнее */
  margin-right: 14px;
}

.logo-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f172a;
  text-transform: uppercase;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #0f172a;
}

.burger { display: none; font-size: 26px; cursor: pointer; }

/* Общие стили Hero */
.hero {
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  color: white;
}

/* Контейнер с контентом */
.hero-content {
    position: relative; /* чтобы текст был поверх затемнения */
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Заголовок с "обводкой" через text-shadow */
.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    /* черный абрис через text-shadow */
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 2px rgba(0,0,0,0.5); /* мягкая тень для глубины */
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Подзаголовок */
.hero-content p {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px black; /* тень для читаемости */
}

/* Кнопки */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.hero-buttons button,
.hero-buttons a.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* расстояние между иконкой и текстом */
    background-color: #0088cc;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-buttons a.telegram-btn img.telegram-icon {
    width: 20px;  /* размер логотипа */
    height: 20px;
}

.hero-buttons a.telegram-btn:hover {
    background-color: #007ab8;
}

/* Основная кнопка */

.hero-buttons button {
    background-color: #ff9900; /* ярко-оранжевый, хорошо контрастирует с голубым фоном */
    color: white;
}

.hero-buttons button:hover {
    background-color: #e68a00; /* чуть темнее при наведении */
}


/* Кнопка Telegram */
.hero-buttons a.telegram-btn {
    background-color: #0088cc;
    color: white;
}

.hero-buttons a.telegram-btn:hover {
    background-color: #007ab8;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 42px;
    }
    .hero-content p {
        font-size: 18px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

section {
  padding: 80px 0;
}

.cards, .image-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
}

.card, .image-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: transform .35s ease, box-shadow .35s ease;
}

.image-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
}


.image-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.contacts-list {
  list-style: none;
  padding: 0;
}

.contacts-list a {
     color: #4659a5;
     text-decoration: none;
}

.map {
  margin-top: 40px; /* расстояние от кнопки */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

form input, form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

footer {
  background: #0f172a;
  color: #cbd5f5;
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 768px) 
{nav a {
    font-size: 12px; /* уменьшаем текст */
  }
  
  nav { display: none; flex-direction: column; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  .logo img {
    height: 50px;
  }

  .logo-text {
    font-size: 12px;
  }
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.btn {
    display: inline-flex;          /* flex для выравнивания текста и иконки */
    align-items: center;           /* центр по вертикали */
    justify-content: center;       /* центр по горизонтали */
    gap: 8px;                      /* если есть иконка */
    padding: 12px 25px;            /* размер кнопки */
    font-size: 16px;               /* размер текста */
    font-weight: bold;
    border-radius: 8px;            /* скруглённые углы */
    border: none;                  /* убираем рамку */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    color: white;                  /* цвет текста */
}

.btn-form {
    background-color: #4659a5;}
.btn-form:hover {
    background-color: #364180;
}
 
 @media (hover: hover) {
  .image-card:hover,
  .adv-card:hover {
    cursor: pointer;
  }
}
  /* ADVANTAGES CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  padding: 22px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
  line-height: 1.5;
}

/* hover только для устройств с мышью */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
  }
}
.form-success {
  margin-bottom: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  background: #e6f9ee;
  color: #065f46;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
