/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.center-text {
    text-align: center; /* Центрирует текст */
}
  
body {
    font-family: 'Roboto', sans-serif; /* Шрифт Google Fonts */
    line-height: 1.6;
    background: url('images/mountains-6540497_1280.jpg') no-repeat center center fixed; /* Фоновое изображение */
    background-size: cover;
    color: #333; /* Цвет текста */
}

.container {
    width: 90%;
    max-width: 1200px;

}

/* Хедер */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 1rem 2rem;
    flex-wrap: wrap; /* Позволяет элементам перестраиваться на маленьких экранах */
    color: #ffffff; /* Цвет текста в хедере */
}

.logo-text {
    font-size: 1.8rem; /* Размер текста логотипа */
}

/* Ensure sections have a transparent background */
section {
    background: transparent;
}

/* Навигация */
.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.nav ul li {
    padding: 5px 0;
}

.nav ul li a {
    color: #fff; /* Цвет текста ссылок в навигации */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Подчеркивание при наведении */
.nav ul li a:hover {
    color: #ff6f61; /* Цвет текста ссылок при наведении */
}

/* Герой-секция */
.hero {
    color: #ffffff; /* Цвет текста в герое */
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero h2 {
    font-size: 3rem; /* Размер заголовка в герое */
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.5rem; /* Размер текста в герое */
    margin-bottom: 2rem;
}

.hero .btn {
    background: #ff6f61; /* Фоновый цвет кнопки */
    color: #fff; /* Цвет текста кнопки */
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: #e65a50; /* Фоновый цвет кнопки при наведении */
}

.about p {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff; /* Цвет текста в секции "Про мікрокальцит" */
    box-shadow: #000;   
    /* Мікрокальцит у цих процесах підвищує ефективність видобутку, знижує витрати та покращує довговічність обладнання й матеріалів. */
}

/* Секция "Переваги" */
.benefits {
    padding: 4rem 1rem;
    background: transparent;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 2рем;
    font-size: 2.5rem; /* Размер заголовка в секции "Переваги" */
    color: #003366; /* Цвет заголовка в секции "Переваги" */
}

.benefits-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    flex: 1 1 calc(33% - 1rem);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.benefit-item h3 {
    font-size: 1.8rem; /* Размер заголовка в карточке "Переваги" */
    margin-bottom: 1rem;
}

.benefit-item p {
    font-size: 1rem; /* Размер текста в карточке "Переваги" */
    color: #777;
}

/* Кнопка "Повернутися на головну" */
.btn-back {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #003366; /* Фоновый цвет кнопки */
    color: #fff; /* Цвет текста кнопки */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #ff6f61; /* Фоновый цвет кнопки при наведении */
}

.contact {
    text-align: center; /* Центрируем текст */        
    margin-top: 20px; /* Отступ сверху */
    padding: 20px; /* Внутренние отступы */
    background-color: #ffffff; /* Светлый фон */        
    border-radius: 10px; /* Сглаженные углы */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для визуального эффекта */
    font-size: 16px; /* Размер текста */
}

/* Стрелочка вверх */
.scroll-up-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff6f61; /* Фоновый цвет кнопки */
    color: white; /* Цвет текста кнопки */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-up-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Секция "Логотипы" */
.logo-container {
    text-align: center; /* Центрируем текст */
    margin-top: 20px; /* Отступ сверху */
    padding: 20px; /* Внутренние отступы */
    background-color: #ffffff; /* Светлый фон */
    border-radius: 10px; /* Сглаженные углы */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для визуального эффекта */
    font-size: 16px; /* Размер текста */
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem; /* Размер заголовка в секции "Контакты" */
    color: #003366; /* Цвет заголовка в секции "Контакты" */
    margin-bottom: 2рем;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #ff6f61;
}

.contact button {
    padding: 1rem;
    background: #003366; /* Фоновый цвет кнопки */
    color: #fff; /* Цвет текста кнопки */
    font-size: 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #ff6f61; /* Фоновый цвет кнопки при наведении */
}

.footer {
    background: #003366; /* Фоновый цвет футера */
    color: #fff; /* Цвет текста в футере */
    padding: 1rem 0;
    text-align: center;
}

.contact li {
    list-style: none; /* Убираем маркеры списка */
    margin: 5px 0; /* Отступ между строками */
}

html {
    scroll-behavior: smooth;
}

.contact a {
    text-decoration: none; /* Убирает подчёркивание */
    color: #6e4c4c; /* Цвет ссылки */
    font-weight: bold; /* Делаем ссылку жирной, как и текст */
}

/* Сітка для секції "Про нас" */
.about-grid {
    display: grid; /* Використовуємо CSS Grid для розташування елементів */
    grid-template-columns: repeat(3, 1fr); /* Три колонки однакової ширини */
    gap: 20px; /* Відступи між елементами сітки */
    margin-top: 20px; /* Відступ зверху */
}

/* Карточка в секції "Про нас" */
.about-card {
    background: #f9f9f9; /* Фоновий колір карточки */
    border: 1px solid #ddd; /* Сіра рамка навколо карточки */
    border-radius: 10px; /* Закруглені кути */
    overflow: hidden; /* Обрізає контент, що виходить за межі карточки */
    text-align: center; /* Вирівнювання тексту по центру */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тінь для карточки */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавний перехід для тіні та трансформації */
    position: relative; /* Позиціонування для внутрішніх елементів */
    padding-bottom: 40px;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Зображення в карточці */
.about-img {
    width: 100%; /* Ширина зображення на всю карточку */
    height: 150px; /* Фіксована висота зображення */
    object-fit: cover; /* Обрізає зображення, щоб воно заповнило контейнер */
}

/* Текстовий блок в карточці */
.about-text {
    padding: 15px; /* Внутрішні відступи */
    text-shadow: none !important; /* Видалення тіні для тексту */;
}

/* Заголовок в текстовому блоці */
.about-text h3 {
    font-size: 1.2em; /* Розмір шрифту заголовка */
    margin-bottom: 10px; /* Відступ знизу */
    text-shadow: none !important; /* Видалення тіні для тексту */;
}

/* Кнопка "Дізнатись більше" */
.learn-more-btn {
    position: absolute; /* Абсолютне позиціонування */
    bottom: 10px; /* Відступ знизу */
    left: 50%; /* Вирівнювання по центру */
    transform: translateX(-50%); /* Центрування по горизонталі */
    background-color: #003366; /* Фоновий колір кнопки */
    color: #fff; /* Колір тексту кнопки */
    padding: 10px 20px; /* Внутрішні відступи */
    border: none; /* Без рамки */
    border-radius: 5px; /* Закруглені кути */
    cursor: pointer; /* Курсор у вигляді руки */
    transition: background-color 0.3s ease; /* Плавний перехід для фону */
}

/* Ефект при наведенні на кнопку */
.learn-more-btn:hover {
    background-color: #ff6f61; /* Зміна фону при наведенні */
}

.about-text p {
    font-size: 0.95em;
    color: #555;
    text-shadow: none !important; /* Видалення тіні для тексту */;
    padding: 10px;
}

input[type="text"] {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    width: 450px; /* Размер логотипа */
    height: auto;
}

/* Секция "Про мікрокальцит" */
.about {
    margin-top: 2rem;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1рем;
}

.about .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1рем;
    justify-content: center; /* Центрирование карточек */
    margin-top: 2рем;
}

.card {
    background: #fff;
    padding: 1рем;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 1рем); /* Три карточки в ряд */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5рем;
}

.card p {
    font-size: 1рем;
    color: #555;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
    background-color: #f2f2f2;
} 
th, td { 
    border: 1px solid #000; 
    padding: 8px; 
    text-align: left; 
} 
th { 
    background-color: #f2f2f2; 
}

.modal {
    display: none; /* Приховує модальне вікно за замовчуванням */
    position: fixed; /* Фіксує модальне вікно на екрані */
    z-index: 1; /* Забезпечує, що модальне вікно буде поверх інших елементів */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Додає прокрутку, якщо контент перевищує висоту вікна */
    background-color: rgb(0,0,0); /* Чорний фон з прозорістю */
    background-color: rgba(0,0,0,0.4); /* Чорний фон з прозорістю */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% від верхнього краю і центр по горизонталі */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ширина модального вікна */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo-img{
        flex-direction: column; /* Логотип и текст в столбик */
        align-items: center; /* Центрируем элементы */
        width: 200px;
        height: auto;
    }
    .logo-text {
        font-size: 1.5rem; /* Уменьшение текста на мобильных */
    }
    .about-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Две карточки в ряд */
        gap: 1rem;
    }
    body {
        background: url('images/171353-gora-alpy-zasnezhennye_gory-gornyj_hrebet-sneg-1080x1920.jpg') no-repeat center center fixed; /* Фоновое изображение для мобильных */
        background-size: cover;
    }
    .about-card {
        width: 100%; /* Полная ширина в сетке */
    }
    .card {
        width: calc(50% - 1rem); /* Две карточки в ряд */
    }
}

.hero,
.header,
.about h2,
.about p {
    text-shadow: 1px 1px 4px #000 ; /* Тень текста */
}