/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #2c2b3d, #000);
    color: white;
    text-align: center;
}

/* Хедер */
header {
    background: url('img/header-bg.jpg') no-repeat center/cover;
    padding: 20px 10px;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}


h1 {
    font-size: 72px;
    color: #FF4136;
}

.text-container {
  max-width: 800px; /* Ограничение ширины */
  margin: 0 auto; /* Центрирует блок */
  padding: 20px; /* Отступы для красоты */
  margin-bottom: 0px;
}


/* Контейнер для телефона и кнопки */
.contact-form {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 500px; /* Ограничиваем ширину */
    margin: 0 auto; /* Центрируем */
}

/* Стили для input и кнопки */
.contact-form input,
.contact-form button {
    height: 45px;
    width: 220px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    text-align: center;
}

.contact-form input {
    background: white;
    color: black;
     cursor: pointer;
    font-weight: bold; /* Чтобы телефон выглядел как кнопка */
}

.contact-form button {
    background: #007BFF;
    color: white;
    cursor: pointer;
}

/* Телефон как кнопка */
.phone-number {
    width: 220px;
    background: white;
    color: #2c2b3d;
    border-radius: 20px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}


/* Стили для текста в кнопке */
button a {
  text-decoration: none; /* Убирает подчеркивание */
  color: inherit; /* Наследует цвет от родительского элемента */
}

button a:visited {
  color: white !important; /* Белый цвет для посещенных ссылок */
}

button a:hover,
button a:focus {
  color: inherit; /* Сохраняет цвет при наведении и фокусе */
}

/* Раздел с горелками */
.burners {
    margin: 50px auto;
    padding: 20px;
}

h2 {
    text-transform: uppercase;
    border-bottom: 3px solid #FF4136;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 0;
}

/* Карточки горелок */
.burner-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

.burner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px;
    height: 100%;
    min-height: 480px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.burner img {
    width: 100%;
    border-radius: 5px;
}

.burner h3 {
    margin: 10px 0;
    font-size: 18px;
    color: black;
}

.burner p {
    flex-grow: 1;
    color: black;
    font-size: 13px;
    margin-bottom: 10px;
}

.details-btn {
    background: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: auto;
}

/* Футер */
footer {
    background: #2c2b3d;
    padding: 15px;
    margin-top: 20px;
}

/* Затемнённый фон */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Видимое модальное окно */
.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

/* Форма (модальное окно) */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
    position: relative;
    color: black;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: black;
}
