/* --- ОСНОВНЫЕ ЦВЕТА --- */
:root {
    --blue-dark: #2c4c76;
    --blue-light: #4172b2;
    --green-accent: #a8d866;
    --bg-light: #f4f7fb;
    --text-main: #333;
    --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-main); line-height: 1.6; background: var(--white); }

/* ТИПОГРАФИКА */
h1, h2, h3, .title { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    text-align: center; /* ВСЕ ЗАГОЛОВКИ ПО ЦЕНТРУ */
}

.gradient-text {
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.title { font-size: 2.2rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.subtitle { text-align: center; color: #666; margin-bottom: 50px; font-size: 1.1rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- HEADER --- */
header { 
    position: fixed; top: 0; width: 100%; 
    background: rgba(255,255,255,0.98); 
    padding: 10px 0; z-index: 100; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-img-small { height: 50px; width: auto; }

nav a { 
    margin: 0 15px; font-weight: 700; color: var(--blue-dark); 
    text-decoration: none; text-transform: uppercase; font-size: 0.85rem; 
    transition: 0.3s; 
}
nav a:hover { color: var(--blue-light); }

/* --- HERO (С ЛОГОТИПОМ ПО ЦЕНТРУ) --- */
.hero {
    height: 100vh; min-height: 650px;
    background: url('../img/hero-bg.jpg') no-repeat center/cover;
    position: relative; display: flex; align-items: center; color: #fff; text-align: center;
}
.overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to bottom, rgba(44, 76, 118, 0.75), rgba(0,0,0,0.6)); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.center-align { display: flex; flex-direction: column; align-items: center; }

/* Большой логотип */
.hero-logo-wrapper { margin-bottom: 20px; }
.hero-logo-img { 
    max-width: 450px; /* Размер логотипа */
    height: auto; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); 
}

.hero h1 { font-size: 3rem; margin-bottom: 15px; text-transform: uppercase; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 700px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* КНОПКИ */
.btn-header {
    border: 2px solid var(--green-accent); color: var(--blue-dark);
    padding: 8px 20px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: 0.3s;
}
.btn-header:hover { background: var(--green-accent); color: #fff; }

.btn-main {
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
    color: #fff; padding: 15px 40px; border-radius: 50px;
    font-weight: 700; text-decoration: none; 
    box-shadow: 0 5px 15px rgba(44, 76, 118, 0.4); transition: transform 0.3s;
}
.btn-main:hover { transform: translateY(-3px); }

.btn-outline {
    border: 2px solid var(--green-accent); color: #fff; 
    padding: 13px 38px; border-radius: 50px; font-weight: 700; text-decoration: none; 
    transition: 0.3s;
}
.btn-outline:hover { background: var(--green-accent); border-color: var(--green-accent); }

/* --- PROCESS --- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.step-icon {
    width: 60px; height: 60px; background: var(--blue-light); color: #fff;
    font-size: 24px; font-weight: bold; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; border: 4px solid var(--green-accent);
}

/* --- TABS & PRICE --- */
.tabs-nav, .gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.tab-btn, .filter-btn {
    padding: 10px 25px; background: transparent; 
    border: 2px solid #ddd; border-radius: 30px;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; color: #555;
    transition: 0.3s;
}
.tab-btn.active, .filter-btn.active {
    border-color: var(--green-accent); background: var(--blue-dark); color: #fff;
}
.tab-content { display: none; animation: fadeIn 0.5s; }
.tab-content.active { display: block; }
.price-card {
    background: #fff; border-radius: 20px; padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee;
    max-width: 800px; margin: 0 auto; text-align: center;
}
.price-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #ddd; }
.price-list li span { font-weight: 800; color: var(--blue-light); }

/* --- GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { height: 250px; border-radius: 8px; overflow: hidden; cursor: pointer; transition: 0.3s; position: relative; }
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.hide { display: none; }

/* --- FAQ BLOCK --- */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { 
    background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; 
    margin-bottom: 15px; padding: 0; transition: 0.3s; 
}
.faq-item[open] { border-color: var(--green-accent); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-item summary { 
    padding: 20px; cursor: pointer; font-weight: 700; color: var(--blue-dark);
    display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.faq-item summary::after { content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900; transition: 0.3s; }
.faq-item[open] summary::after { transform: rotate(180deg); color: var(--green-accent); }
.faq-item p { padding: 0 20px 20px; color: #555; font-size: 0.95rem; }

/* --- DELIVERY & FOOTER --- */
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.delivery-item { background: #fff; padding: 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03); border-bottom: 4px solid var(--green-accent); }
.delivery-icon { font-size: 40px; color: var(--blue-light); margin-bottom: 20px; }

footer { background: var(--blue-dark); padding: 60px 0 30px; text-align: center; color: #fff; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; margin: 40px 0; flex-wrap: wrap; }
.contact-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 15px 40px; border-radius: 50px;
    font-weight: 700; text-decoration: none; color: #fff; font-size: 1.1rem; transition: 0.3s;
}
.whatsapp-btn { background: #25D366; } .whatsapp-btn:hover { background: #1ebe57; }
.vk-btn { background: #0077FF; } .vk-btn:hover { background: #0062d6; }
.max-btn { background: #a8d866; color: #2c4c76; } .max-btn:hover { background: #8ec94f; color: #2c4c76; }
.icon-max-footer { width: 24px; height: 24px; object-fit: contain; display: inline-block; vertical-align: middle; margin-right: 4px; }
.footer-info { margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #aaa; font-size: 0.9rem; }

/* --- LIGHTBOX --- */
.lightbox { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); z-index: 999; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 90vh; border: 4px solid #fff; border-radius: 5px; }
.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .nav-flex nav { display: none; }
    .hero-btns { flex-direction: column; }
    .cta-buttons { flex-direction: column; }
    .btn-main, .btn-outline { width: 100%; text-align: center; }
}

/* Добавляем отступ между кнопками в шапке */
.header-contacts { 
    display: flex; 
    align-items: center; 
    gap: 10px; /* Расстояние между кнопками */
}

/* На мобильных телефонах скрываем текст кнопок в шапке, оставляем только иконки, 
   чтобы всё влезло в одну строку */
@media (max-width: 600px) {
    .mobile-hide { display: none; }
    .btn-header { padding: 8px 12px; } /* Чуть меньше отступы на мобильном */
}

.header-contacts .btn-header {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  padding: 10px 16px !important;       /* Гарантированные отступы внутри кнопки */
  border-radius: 50px;                /* Скругление как на вашем макете */
  vertical-align: middle;              /* Страховка для старых браузеров */
}

.header-contacts .btn-header img.icon-max {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;                /* Убираем любые внешние отступы */
  line-height: 0;                    /* Убирает «невидимый» отступ снизу */
}

.header-contacts .btn-header .fa-solid.fa-phone {
  font-size: 20px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.header-contacts .btn-header .mobile-hide {
  white-space: nowrap !important;
  font-size: 16px !important;
  margin: 0 !important;
}