/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F8F9FA;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #1E3A5F; /* тёмно-синий */
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
}

nav a {
    margin-left: 20px;
    color: white;
    font-weight: 500;
}

/* Hero — Исправленный блок: фон + изображение */
.hero {
    min-height: 100vh; /* Занимает всю высоту экрана */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), /* затемнение */
        url('images/hero_main.png'); /* главное изображение */
    background-size: cover; /* заполняет весь блок */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* фиксированный фон при прокрутке */
    padding: 100px 20px;
    text-align: center;
    color: white;
    position: relative;
}

/* Убрали ::before, потому что затемнение уже в фоне.
   Но если хочешь оставить — можно оставить, но тогда будет двойное затемнение.
   Ниже закомментировано — при необходимости раскомментируй. */

/* 
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
*/

.hero h2,
.hero p,
.hero a.btn {
    position: relative;
    z-index: 2; /* над фоном */
}

/* Стили контента внутри Hero */
.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero a.btn {
    display: inline-block;
    background-color: #1E3A5F;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero a.btn:hover {
    background-color: #FF7F27; /* оранжевый при наведении */
}

/* Section-top */
sectiont{
    padding: 50px 20px;
    margin: auto;
}

/* Section */
section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: auto;
}

section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1E3A5F;
}

/* Services */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
    margin-bottom: 10px;
    color: #1E3A5F;
}

/* Advantages */
.advantages ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: auto;
}

.advantages li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.advantages li::before {
    content: "✔";
    margin-right: 10px;
    color: #FF7F27;
    font-weight: bold;
}

/* Prices */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

table th {
    background-color: #E6EBF0;
    color: #1E3A5F;
}

/* WhatsApp Button */
.whatsapp-button {
    display: block;
    margin: 40px auto 0;
    background-color: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
    width: fit-content;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #1ebd58;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #f1f1f1;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #777;
}

/* Анимации */
.animate {
    opacity: 0;
    transform: translateY(30px);
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 {
    transition-delay: 0.2s;
}
.delay-2 {
    transition-delay: 0.4s;
}
.delay-3 {
    transition-delay: 0.6s;
}

/* Кнопки в углу */
.float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.float-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366; /* WhatsApp зелёный */
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.float-btn a.call-btn {
  background-color: #007bff; /* Синий для звонка */
}

.float-btn a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.float-btn svg {
  width: 28px;
  height: 28px;
}

}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: #1E3A5F;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 15px;
    }
    nav a {
        margin: 10px 0;
    }
    nav.show {
        display: flex;
    }
    .burger {
        display: flex;
    }
}
