/* Базовые настройки и переменные (Бело-коричневая гамма) */
:root {
    --primary-brown: #5D4037;
    --secondary-brown: #8D6E63;
    --dark-brown: #3E2723;
    --light-bg: #FDFBF7;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #F5F5F5;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Типографика */
h1, h2, h3, h4 { color: var(--dark-brown); margin-bottom: 15px; }
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 40px; }
p { margin-bottom: 15px; }
a { text-decoration: none; color: var(--primary-brown); transition: var(--transition); }
a:hover { color: var(--secondary-brown); }
.section-subtitle { text-align: center; max-width: 800px; margin: 0 auto 40px; font-size: 1.1rem; color: #555; }

/* Кнопки */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; border: none; text-align: center; transition: var(--transition); }
.btn-primary { background-color: var(--primary-brown); color: var(--white); }
.btn-primary:hover { background-color: var(--dark-brown); color: var(--white); }
.btn-secondary { background-color: transparent; border: 2px solid var(--primary-brown); color: var(--primary-brown); }
.btn-secondary:hover { background-color: var(--primary-brown); color: var(--white); }
.btn-full { width: 100%; margin-top: 10px; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Навигация */
.navbar { background-color: var(--white); border-bottom: 1px solid #EFEFEF; padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark-brown); }
.logo span { color: var(--secondary-brown); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-dark); font-weight: 600; }

/* Секции и сетки */
section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.bg-brown { background-color: var(--primary-brown); color: var(--white); }
.bg-brown h2, .bg-brown p { color: var(--white); text-align: center; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }

/* Карточки */
.card { background: var(--white); padding: 30px; border-radius: var(--border-radius); box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #EFEFEF; transition: var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.mini-card { padding: 20px; margin-bottom: 15px; }

/* Крупные карточки услуг */
.service-large-card { background: var(--white); border-radius: var(--border-radius); padding: 40px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-left: 5px solid var(--primary-brown); }
.lists-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.lists-grid ul { padding-left: 20px; color: #444; }
.lists-grid li { margin-bottom: 8px; }

/* Почему выбирают нас */
.trust-list { list-style: none; }
.trust-list li { margin-bottom: 15px; padding-left: 30px; position: relative; }
.trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-brown); font-weight: bold; }

/* Этапы работы */
.stages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stage-card { padding: 20px; }
.stage-num { width: 50px; height: 50px; background: var(--primary-brown); color: var(--white); font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 15px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--light-bg); padding: 20px; border-radius: var(--border-radius); margin-bottom: 15px; border: 1px solid #EFEFEF; }
.faq-item h4 { margin-bottom: 10px; color: var(--dark-brown); }
.faq-item p { margin-bottom: 0; color: #555; }

/* Главный экран */
/* Главный экран с фоновой картинкой */
.hero-background {
    position: relative;
    padding: 140px 0;
    /* Путь к картинке относительно файла style.css (выходим из папки css и заходим в images) */
    background-image: url('../images/hero.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Коричневый оверлей (затемнение), чтобы белый текст идеально читался */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 39, 35, 0.75); /* Наш темный коричневый цвет с прозрачностью 75% */
    z-index: 1;
}

/* Контент поверх оверлея */
.hero-background .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-background h1 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-background p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 35px;
}

.hero-background .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Белая кнопка для темного фона */
.btn-secondary-white {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    transition: var(--transition);
}

.btn-secondary-white:hover {
    background-color: var(--white);
    color: var(--dark-brown);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hero-background { padding: 100px 0; }
    .hero-background h1 { font-size: 2.2rem; }
    .hero-background p { font-size: 1.1rem; }
    .hero-background .hero-buttons { flex-direction: column; }
}
.hero p { max-width: 700px; margin: 0 auto 30px; font-size: 1.2rem; color: #555; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }

/* Форма заявки */
.lead-content { max-width: 500px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: var(--border-radius); color: var(--text-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.lead-content h2 { color: var(--dark-brown); }
.lead-content p { color: var(--text-dark); }
form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
input[type="text"], input[type="tel"] { padding: 12px; border: 1px solid #CCC; border-radius: var(--border-radius); font-size: 1rem; }
.checkbox-group { display: flex; gap: 10px; font-size: 0.8rem; margin-top: 10px; align-items: flex-start; }
.checkbox-group input { margin-top: 3px; }
.checkbox-group a { text-decoration: underline; }

/* Подвал */
footer { background-color: var(--dark-brown); color: var(--text-light); padding: 60px 0 30px; }
footer h4 { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, footer p { color: #CCCCCC; font-size: 0.9rem; }
.footer-disclaimers p { font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; margin-top: 20px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; background-color: var(--dark-brown); color: var(--white); padding: 20px; border-radius: var(--border-radius); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); z-index: 1000; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: #FFD54F; text-decoration: underline; }
.cookie-banner.hidden { display: none; }

/* Адаптив */
@media (max-width: 768px) {
    .lists-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .cookie-banner { flex-direction: column; gap: 15px; text-align: center; }
}

/* Главный экран с картинкой */

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-text { text-align: left; }
.hero-text h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 1.2rem; color: #555; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: flex-start; }
.hero-image img { width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); object-fit: cover; }

/* Адаптив для главного экрана */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; flex-direction: column; }
}
/* Навигация - Логотип */
.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; /* Расстояние между картинкой и текстом */
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--dark-brown); 
}

.logo span { 
    color: var(--secondary-brown); 
}

/* Стили для самой картинки логотипа */
.logo-img {
    height: 45px; /* Высота логотипа. Можешь увеличить или уменьшить по вкусу */
    width: auto;
    object-fit: contain;
}