/* Устанавливаем фоновое изображение на весь сайт */
html, body {
    height: 100%; /* Чтобы фон занимал всю высоту страницы */
    margin: 0; /* Убираем стандартные отступы */
    background-image: url('images/'); /* Путь к вашему фоновому изображению */
    background-size: cover; /* Фон растягивается, чтобы покрыть всю область */
    background-position: center center; /* Фон будет выровнен по центру */
    background-attachment: fixed; /* Фон будет фиксирован относительно окна браузера */
    font-family: 'Roboto', sans-serif; /* Шрифт для всего сайта */
}

.gallery {
    margin-top: 50px;
    padding: 50px 20px;
    text-align: center;
}

.gallery-item {
    display: inline-block;
    margin: 10px;
}

.gallery-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}



/* Общие стили для раздела с ценами */
#price {
    padding: 40px;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
}

/* Стиль для вікна персонального тренування */
.price-info {
    background-color: #f9f9f9; /* Світлий фон */
    border: 2px solid #FF5733; /* Червона рамка */
    border-radius: 14px; /* Закруглені кути */
    padding: 1px 1px; /* Відступи всередині: зверху/знизу 10px, з боків 15px */
    text-align: center; /* Вирівнювання тексту по центру */
    font-size: 18px; /* Розмір шрифту */
    font-weight: bold; /* Жирний шрифт */
    color: #333; /* Колір тексту */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Легка тінь навколо вікна */
    opacity: 0; /* Початкова непрозорість (для анімації) */
    animation: fadeIn 1s forwards; /* Анімація появи */
     /* Фіксована ширина та максимальна ширина */
     width: 80%; /* Вікно займає 80% ширини батьківського елемента */
     max-width: 600px; /* Максимальна ширина вікна */
     margin: 0 auto; /* Центрування вікна по горизонталі */
}

/* Анімація для появи вікна */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px); /* Спочатку вікно буде знаходитися трохи вище */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Вікно стає на своє місце */
    }
}

#price h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Контейнер для абонементов */
.price-plan {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Стили для каждого абонемента */
.plan-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Общие стили для раздела с контактами */
#contact {
    padding: 40px;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
}

/* Стили для блока с адресом */
.address {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.address h4 {
    font-size: 1.2rem;
    color: #FF4C4C;
    margin-bottom: 10px;
}

.address p {
    font-size: 1rem;
    color: #555;
}

/* Стили для карты */
.map {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 80%;
    margin: 20px auto;
}

iframe {
    width: 100%;
    border-radius: 10px;
}

.plan-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.plan-item h4 {
    font-size: 1.5rem;
    color: #FF4C4C;
    margin-bottom: 10px;
}

.plan-item p {
    font-size: 1rem;
    line-height: 1.5;
}

.plan-item strong {
    font-size: 1.2rem;
    color: #333;
}

.plan-item p:first-of-type {
    margin-top: 10px;
}

/* Рамки и стили для текста */
.plan-item p {
    color: #555;
}

.plan-item {
    border: 2px solid #FF4C4C; /* Красная рамка */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    animation: fadeIn 1s ease-out; /* Плавное появление страницы */
}

header {
    background-color: #d32f2f;
    color: white;
    padding: 20px;
    text-align: center;
    animation: slideDown 1s ease-out; /* Плавное появление шапки */
}

header h1 {
    margin: 0;
    font-size: 36px;
    animation: fadeInUp 1s ease-out;
}

header p {
    margin: 5px 0;
    font-size: 18px;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.2s;
}

nav {
    background-color: #c62828;
    padding: 10px 0;
    animation: slideDown 1s ease-out;
    animation-delay: 0.5s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #ffeb3b;
    transform: scale(1.1);
}

.section {
    padding: 50px 20px;
    text-align: center;
    opacity: 0;
    animation: fadeInSection 1.5s forwards;
}

.about img, .services img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.9s ease;
}

.about img:hover, .services img:hover {
    transform: scale(1.05); /* Увеличение изображения при наведении */
}

.services h2, .about h2, .contact h2 {
    color: #d32f2f;
    animation: fadeInUp 1s ease-out;
}

.services ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.services ul li {
    font-size: 18px;
    margin: 10px 0;
    animation: fadeInUp 1s ease-out;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.contact form input:focus, .contact form textarea:focus {
    border-color: #d32f2f; /* Красная рамка при фокусе */
}

.contact form button {
    background-color: #d32f2f;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact form button:hover {
    background-color: #c62828;
    transform: scale(1.1);
}

footer {
    background-color: #d32f2f;
    color: white;
    padding: 20px;
    text-align: center;
    animation: fadeIn 1s ease-out;
    animation-delay: 1s;
}

/* Стили для блока формы */
.contact-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.contact-form h4 {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.contact-form label {
    font-size: 1em;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #FF4C4C;
    outline: none;
}

.contact-form button {
    background-color: #FF4C4C;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #D83F3F;
}

.contact-form button:active {
    background-color: #c23939;
}

.contact-form input, .contact-form textarea {
    font-family: 'Roboto', sans-serif;
}




/* Стили для секции наших постоянных клиентов */
#clients {
    background-color: #f8f5f5;
    padding: 50px 0;
    text-align: center;
}

#clients h2 {
    font-size: 2rem;
    margin-bottom: 100px;
}

.client-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 иконок в ряд */
    gap: 30px;
    justify-items: center;
}

.client-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-icon img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.client-icon p {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}

/* Анимации */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInSection {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Медиазапросы для адаптивности */
@media screen and (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-item {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 5px 0;
    }
}

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .price-info {
        font-size: 1rem;
    }

    .price-plan {
        flex-direction: column;
        align-items: center;
    }

    .plan-item {
        margin: 10px 0;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 5px 0;
    }

    .contact-form input, .contact-form textarea {
        padding: 8px;
    }

    .price-info {
        font-size: 0.9rem;
    }
}