:root {
    --blue: #0084ff;
    --dark: #1a1a1a;
}

html {
    /* По умолчанию 16px. Ставим 20px или 22px, чтобы всё стало крупнее */
    font-size: 20px; 
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;

    /* Путь к картинке */
    background-image: url('капли-Photoroom.png'); 
    
    /* ГЛАВНАЯ МАГИЯ: фон замирает при скролле */
    background-attachment: fixed; 
    
    /* Растягиваем на весь экран без повторов */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    /* Цвет-запас, если картинка не загрузится */
    background-color: #fff; 
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0; /* Было 60px. Увеличиваем вертикальные отступы между блоками */
}

/* ШАПКА: Фон с каплями и магнитные края */
.header {
    padding: 15px 20px; /* Фиксированный отступ 20px от краев */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('Group 3.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-wrap {
    display: flex;
    justify-content: space-between; /* Магнитит лого влево, телефон вправо */
    align-items: center;
}

/* ЛОГОТИП И ТЕКСТУРА */
.logo {
    font-size: 50px;
    font-weight: 800;
}

.texture-text {
    background-image: url('Водчика.png') !important;
    background-size: cover;
    background-position: center;
    background-color: var(--blue); /* Запасной цвет */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    /* Цвета: темно-серый -> светло-серый -> темно-серый */
    background: linear-gradient(to bottom, #161616 0%, #eee 50%, #1d1d1d 100%);
    
    /* Магия, которая накладывает фон только на буквы */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Добавим четкости */
    font-weight: bold;
    display: inline-block;
    
    /* Можно добавить легкую тень для объема */
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.9));
}

.blue-part {
    color: var(--blue);
    -webkit-text-fill-color: var(--blue);
}

.phone {
    font-weight: bold;
    font-size: 50px;
    color: #fff; /* Белый, чтобы читался на темном фоне */
}

/* ГЛАВНЫЙ ЭКРАН */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('Group 2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.2;
    margin-bottom: 40px;
    padding-left: 20px;
}

.hero-btns {
    padding-left: 20px;
    display: flex;
    gap: 15px;
}

/* КНОПКИ */
.btn-outline {
    display: inline-block;
    text-decoration: none;
    padding: 20px 45px;
    border: 2px solid var(--blue);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
    border-radius: 8px; 
    transition: all 0.3s ease; 
    cursor: pointer;
    background: transparent;
}

.btn-outline:hover {
    transform: scale(1.08); 
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.4);
    background-color: var(--blue);
    color: #fff;
}

.btn-outline:active {
    transform: scale(0.95);
}

/* УСЛУГИ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    height: 350px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: scale(1.03);
}

.service-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

/* ТИПЫ СКВАЖИН */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 40px;
}

/* ФУТЕР */

.footer-wrap {
    /* Если вы используете обертку, она должна занимать всю ширину */
    width: 100%;
    display: flex;
    justify-content: center; 
}

.footer {
    /* 1. Настройка фона: прозрачный черный */
    background: rgba(0, 0, 0, 0.4); 
    
    /* 2. Убираем лишние пробелы */
    padding: 20px 20px; /* Сверху/снизу всего 20px вместо 80px */
    margin: 0;          /* Убираем внешние отступы, чтобы прилипал к контенту выше */
    
    /* 3. Центрирование */
    display: flex;
    justify-content: center; 
    align-items: center;
    
    /* 4. Граница (опционально, можно удалить) */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* СТИЛЬ ПОДПИСИ */
/* Сам блок футера */
.footer {
    background: rgba(0, 0, 0, 0.4); /* Затемнение */
    padding: 20px 20px;
    margin: 0;
    display: flex;
    justify-content: center; /* Центрирует всё по горизонтали */
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Контейнер, который ставит надпись ПОД логотип */
.footer-content {
    display: flex;
    flex-direction: column; /* Элементы один под другим */
    align-items: center;    /* Центрирует лого и ссылку друг относительно друга */
    gap: 5px;               /* Расстояние между ними */
}

/* Стили большой надписи */
.logo-large {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1; /* Убирает лишние отступы букв */
}

/* Стили твоей подписи-ссылки */
.made-by {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Verdana', sans-serif;
    text-decoration: none;
    transition: 0.3s ease;
}

.made-by:hover {
    color: var(--blue); /* Подсветка при наведении */
    opacity: 1;
}

.logo-large {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1; /* Чтобы у букв не было пустого места сверху и снизу */
    display: inline-block;
}

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: #333;
}

form input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #0056b3;
}

/* Стили для страниц услуг */
.service-detail {
    padding: 40px 0 100px;
    min-height: 70vh;
}

.btn-back {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--blue);
}

.content-white-box {
    background: rgba(255, 255, 255, 0.95); /* Почти белый фон, чтобы текст читался идеально */
    padding: 40px;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.service-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: center;
}

.text-side { flex: 1; }
.image-side { flex: 1; }

.image-side img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

.blue-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.blue-list li::before {
    content: "✓";
    color: var(--blue);
    font-weight: bold;
    margin-right: 10px;
}

/* Стили для поля комментария */
form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box; /* Чтобы паддинги не раздували ширину */
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    min-height: 80px; /* Высота поля */
    resize: vertical; /* Разрешаем менять размер только по высоте */
    transition: border-color 0.3s;
}

form textarea:focus {
    border-color: var(--blue);
    outline: none;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .service-layout { flex-direction: column; }
    .content-white-box { padding: 20px; }
}
.calc-form {
    text-align: left;
    margin-top: 20px;
}

form textarea {
        font-size: 14px;
        min-height: 60px;
    }

.calc-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.calc-form select, .calc-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 16px;
}

.result-box {
    background: var(--blue);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

#totalPrice {
    font-size: 32px;
}
/* АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 768px) {
    /* 1. Уменьшаем заголовки, чтобы они не вылезали за края */
    .hero h1 {
        font-size: 28px;
        margin-left: 0;
        text-align: center;
    }
    .gallery-grid {
        gap: 10px;
        /* Если хочешь, чтобы на телефоне фото были друг под другом, 
           раскомментируй строку ниже: */
        /* grid-template-columns: 1fr; */
    }
    
    .service-gallery h3 {
        font-size: 18px;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
    }

    /* 2. Кнопки ставим друг под друга */
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        margin-left: 0;
        align-items: center;
    }

    .btn-outline {
        width: 100%; /* Кнопки на всю ширину экрана */
        max-width: 280px;
        box-sizing: border-box;
        text-align: center;
    }

    /* 3. Логотип в футере уменьшаем, чтобы не скроллился вбок */
    .logo-large {
        font-size: 35px;
    }

    /* 4. Сетки услуг и типов скважин переводим в одну колонку */
    .services-grid, .types-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .service-card, .type-item {
        width: 100%;
        max-width: 320px;
    }

    /* 5. Шапка: скрываем или уменьшаем лого, чтобы влез телефон */
    .header-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .phone {
        font-size: 18px;
    }

    .floating-contacts {
        bottom: 20px;
        right: 20px;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    .contact-icon img {
        width: 30px;
        height: 30px;
    }
}

.schema img {
    width: 100%;
    margin-top: 30px;
    display: block;
    
    /* ЗАКРУГЛЕНИЕ КРАЕВ */
    border-radius: 20px; 
    
    /* ДОПОЛНИТЕЛЬНО: мягкая тень, чтобы схема "отрывалась" от фона */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
}
.service-gallery {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.service-gallery h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

/* Контейнер сетки */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 15px;
    margin-top: 20px;
    align-items: start; /* Картинки выравниваются по верхнему краю */
}

/* Рамка картинки */
.gallery-item {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #fff; /* Фон на случай загрузки */
    height: auto;     /* Рамка подстроится под высоту контента */
}

/* Сама картинка */
.gallery-item img {
    width: 100%;      /* Растягивается на всю ширину рамки */
    height: auto;     /* Высота считается автоматически по пропорциям фото */
    display: block;   /* Убирает лишние отступы снизу */
    object-fit: contain; /* Гарантирует, что фото не обрезается */
    transition: transform 0.3s ease;
}

/* Эффект при наведении */
.gallery-item:hover img {
    transform: scale(1.03);
}
/* Контейнер для полноэкранного фото */
.image-viewer {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 2000; /* Выше всех окон */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Темный фон */
    justify-content: center;
    align-items: center;
}

/* Само увеличенное фото */
.viewer-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease; /* Эффект появления */
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Кнопка закрытия */
.close-viewer {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-viewer:hover { color: var(--blue); }

/* Контейнер для кнопок */
.floating-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column; /* Располагаем одну под другой */
    gap: 15px;
    z-index: 9999; /* Чтобы были поверх всего */
}

/* Общие стили для иконок */
.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: #fff; /* Белый фон вокруг иконки */
}

.contact-icon img {
    width: 35px;
    height: 35px;
}

/* Эффект при наведении */
.contact-icon:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.4);
}

/* Цвета для кнопок (опционально, если хочешь цветной фон) */
.whatsapp:hover { background-color: #25D366; }
.telegram:hover { background-color: #0088cc; }