@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700&display=swap");
html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: clip;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Heebo", Arial, sans-serif;
    /* overflow-x: hidden; */
}

body {
    position: relative;
    direction: rtl;
    background-color: #f4f4f4;
    color: #333;
    background-image: url("../fitness-club-banner-muscle.webp");
    background-color: #000303;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: top center;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    pointer-events: none;
}

.call-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    margin: 10px 0;

    color: #000303;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.call-btn img {
    width: 32px;
    height: 32px;
    background-color: #fed700;
    border-radius: 50%;
    margin-right: 10px;
}

.call-btn:hover img {
    transform: scale(1.1);
    background-color: rgb(108, 220, 45);
}

.call-btn:hover {
    background-color: #000303;
    color: #fed700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.call-btn:active {
    background-color: #fed700;
    color: #000303;
    border: #000303 2px solid;
}

/* === Общие стили для текста === */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
button {
    font-family: "Heebo", Arial, sans-serif;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

p {
    font-weight: 400;
}

/* === Хедер и навигация === */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    height: 80px;
    border-bottom: #000000 2px solid;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 1);
    background-color: #000303;
}

.navbar {
    width: 100%;
    height: 100%;
    display: flex;
}

ul {
    display: flex;
    justify-self: start;
    height: 100%;
    width: 100%;
    list-style-type: none;
    flex-direction: row;
}

ul li {
    height: 100%;
    max-width: 200px;
    flex: 1;
    background-color: rgba(0, 0, 0, 0.874);
}

li a {
    color: #fed700;
    transition: color 0.3s ease;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-wrap: nowrap;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    background-color: #0000007c;
    text-decoration: none;
}

li a:hover {
    background-color: #fed700;
    color: #000303;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.header-content {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.email-button img {
    background-color: #f44336;
    border-radius: 50%;
}
.facebok-button img {
    background-color: #1976d2;
    border-radius: 50%;
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.header-content .call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 200px;
    padding: 10px 15px;
    color: #fed700;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.call-button img {
    background-color: rgb(108, 220, 45);
    border-radius: 50%;
}

.header-content .call-button:hover {
    background-color: #fed700;
    color: #000303;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: #000000 2px solid;
}

.header-content img {
    width: auto;
    max-height: 100%;
    object-fit: contain;
}

.main {
    width: 96%;
    flex: 1;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    background-color: #000303b8;
    color: #fff;
    border-radius: 10px;
}
.welcome-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-section h1 {
    text-align: center;
    width: 100%;
    /* padding: 20px; */
    font-size: 4em;
    margin: 20px 0;
    font-weight: bold;
    color: #fed700;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 1);
    background-color: #000303;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.main-banner-img {
    width: 50%;
    height: auto;
}

.gallery-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background-color: #000303;
    color: #fed700;
    font: 1.5em sans-serif;
}
.welcome-content {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 20px 10%;
    text-align: center;
    gap: 20px;
    border-top: #fed700 2px solid;
    border-bottom: #fed700 2px solid;
}

.welcome-content .divider {
    display: block;
    width: 2px;
    height: auto;
    background-color: #fed700;
}

.horizontal-divider {
    display: block;
    margin: 50px 0;
    width: 100%;
    height: 2px;
    background-color: #fed700;
}

.welcome-content .welcome-info h2,
.welcome-content .working-hours h2 {
    color: #fed700;
    font-size: 2em;
}

.welcome-content .welcome-info p,
.welcome-content .working-hours p {
    color: #fff;
    font-size: 1.2em;
}

.welcome-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    color: #fff;
}

.welcome-info a {
    color: #fed700;
    background-color: transparent;
    border: 1px solid #fed700;
}
.welcome-info a:hover {
    color: #000303;
    background-color: #fed700;
}

.working-hours {
    display: flex;
    white-space: nowrap;
    flex-direction: column;
    align-items: center;
    width: 50%;
    color: #fff;
}

.swiper {
    width: 70%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80vw;
    gap: 10px;
    position: relative;
    border-radius: 10px;
}

.swiper-wrapper {
    border-radius: 10px;
}

.swiper-slide {
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 10px;
}

.swiper-button-prev::after {
    background-color: #fed700;
    border-radius: 50%;
    padding: 10px;
    color: #000303;
    cursor: pointer;
}
.swiper-button-next::after {
    background-color: #fed700;
    border-radius: 50%;
    padding: 10px;
    color: #000303;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fitness-training {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #000303;
    color: #fed700;
    font: 1.1em sans-serif;
}

.gym-photo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gym-photo img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fitness-training h2 {
    color: #fed700;
    font-size: 2em;
    margin-bottom: 20px;
}
.fitness-training p {
    color: #fff;
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
}

.fitness-gallery {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 20px;
    border-top: 2px solid #fed700;
}

.fitness-img-description {
    overflow: hidden;
    width: 100%;
    max-height: 600px;
    gap: 20px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
}
.fitness-img-item {
    position: relative;
    width: 30%;
    height: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #f4f4f4;
    overflow: hidden;
    border-radius: 10px;
}

.fitness-img-item h3 {
    overflow-y: hidden;
    color: #f4f4f4;
    font-size: 1.5em;
}

.fitness-img-item img {
    width: auto;
    /* height: 100%; */
    max-height: 80%;
    object-fit: cover;
    cursor: pointer;
    flex: 1 1 auto; /*это сокращённая запись для свойств flex-grow, flex-shrink и flex-basis в flex-контейнере. */
    border-radius: 10px;
    display: block;
}

.fitness-gallery .fitness-img-item:hover {
    transform: scale(1.05);
}

.price-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    height: fit-content;
    padding: 20px;
    border-top: 2px solid #fed700;
}

.price-item1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding: 10px;
    background-color: #fed700;
    color: #000303;
    border-radius: 10px;
}

.price-item1 h2 {
    color: #000303;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0px 5px rgb(0, 0, 0);
}

.price-item1 p {
    color: #000303;
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
}

.price-item1 a {
    color: #000303;
    border: 1px solid #000;
}

.price-item2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding: 10px;
    background-color: #000303;
    border-radius: 10px;
    color: #f4f4f4;
    text-align: center;
}

.price-item2 a {
    color: #fed700;
    border: 1px solid #fed700;
    background-color: transparent;
}
.price-item2 a:hover {
    color: #000303;
    border: 1px solid #fed700;
    background-color: #fed700;
}

.price-item2 h2 {
    color: #fed700;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0px 5px rgb(255, 255, 255);
}

.price-item2 p {
    color: #fff;
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
}

.hamburger-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
    margin: 4px 0;
}

.contact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px;
    padding: 30px 20px;
    background-color: #000303;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    border-radius: 12px;
    margin-inline: auto;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #fed700;
}

.faq-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font: sans-serif;
}

.qustions-box {
    background-color: #000303;
    color: #fed700;
    width: 100%;
    padding: 20px;
    background-color: #000303;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.qustions-box h2 {
    font-size: 1.8em;
}

.faq-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    min-width: 100%;
    height: fit-content;
    background-color: #222;
    color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.faq-item button {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: transparent;
    color: #fed700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
}
.faq-item button:hover {
    background-color: #333;
}

.faq-question {
    width: 100%;
    font-size: 1.2em;
    font-weight: bold;
    color: #fed700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-answer {
    display: none;
    font-size: 1em;
    color: #f4f4f4;
    padding: 10px;
    margin-top: 10px;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.contact-section input,
.contact-section textarea {
    direction: rtl;
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: #fed700;
    outline: none;
}

.contact-section button {
    padding: 12px;
    background-color: #000303;
    color: #fed700;
    border: 1px solid #fed700;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-section button:hover {
    background-color: #fed700;
    color: #000303;
}

.map-section {
    padding: 40px 20px;
    background-color: #000303;
    text-align: center;
    width: 90%;
    margin: 20px;
    border-radius: 12px;
}

.map-section iframe {
    max-height: 400px;
    border-radius: 12px;
}

.map-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fed700;
}

.map-container {
    width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.contact-buttons-bottom {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.contact-buttons-bottom a img {
    width: 32px;
    height: 32px;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.contact-buttons-bottom a img:hover {
    transform: scale(1.15);
}

.contact-buttons-top {
    display: none;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* background-color: #ffffff; */
    color: #f4f4f4;
    font-size: 30px;
    text-decoration: none;
    border: 1px solid #f4f4f4;
    padding: 1px 15px;
    border-radius: 50%;
    opacity: 0.5;
    transition: 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    opacity: 1;
    scale: 1.2;
    color: #000303;
    border: 1px solid #000303;
    background-color: #fed700;
}

.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    min-height: 60px;
    background-color: #000303;
    color: #fff;
    text-align: center;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fed700;
    text-decoration: underline;
}

.footer-author-ref {
    margin-top: 10px;
}
.footer-content #author-ref {
    margin-top: 10px;
    color: #000303;
    background-color: #fed700;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    padding: 0 5px 0;
}
/* Контейнер строки согласия */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
    direction: rtl; /* так как текст на иврите */
}

/* Скрываем стандартный чекбокс и стилизуем свой */
.consent-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fed700;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.consent-row input[type="checkbox"]:checked {
    background-color: #000000;
    border-color: #fed700;
}

.consent-row input[type="checkbox"]:checked::after {
    content: "✔";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 1px;
    left: 2px;
}

/* Подпись */
.consent-row label {
    cursor: pointer;
    color: #fff; /* можно сменить под твой дизайн */
}

.consent-row label a {
    color: #fed700;
    text-decoration: underline;
}

.consent-row label a:hover {
    text-decoration: none;
}

/* Подсказка об ошибке */
.form-hint {
    display: block;
    color: #f87171; /* красный */
    font-size: 12px;
    margin-top: 4px;
}
/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    background: #fed700;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10000;
}

/* Видимый фокус для клавиатуры */
:focus-visible {
    outline: 3px solid #fed700;
    outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
.call-btn:focus-visible,
.call-button:focus-visible {
    outline: 3px solid #fed700;
    outline-offset: 3px;
}

/* Чёткий фокус у кастомного чекбокса */
.consent-row input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(254, 215, 0, 0.6);
}

/* Скрытое через hidden */
.faq-answer[hidden] {
    display: none !important;
}
/* ответ получает видимую рамку, когда на нём фокус */
.faq-answer:focus-visible {
    outline: 3px solid #fed700;
    outline-offset: 4px;
    border-radius: 8px;
}

/* на всякий случай — скрытый ответ точно не участвует в рендере */
.faq-answer[hidden] {
    display: none !important;
}

@media (max-width: 1200px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 999; /* обязательно для перекрытия контента */
        max-height: 60px;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding: 0;
        margin: 0;
        background-color: #fed700;
    }

    .gallery-section {
        padding: 10px;
    }

    .h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1em;
    }

    p {
        font-size: 0.8em;
    }

    .header-content .call-button {
        display: flex;
        font-size: 10px;
        flex-wrap: nowrap;
        flex-direction: row;
        white-space: nowrap;
        width: 100px;
        justify-content: center;
        align-items: center;
        background-color: #000303;
        color: #fed700;
        border: #fed700 2px solid;
    }

    .header-content .call-button:active {
        background-color: #fed700;
        color: #000303;
        border: #000303 2px solid;
    }

    .welcome-section h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .header-content {
        width: 100%;
        justify-content: space-between;
    }

    .header-content img {
        width: 100%;
        object-fit: contain;
        flex: 1;
    }

    .navbar {
        width: fit-content;
        position: relative;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .navbar ul {
        z-index: 10;
        position: absolute;
        flex-direction: column;
        width: fit-content;
        height: auto;

        top: 100%;
        right: 0;
        max-height: 0;
        transform: translateY(0px);
        transition: max-height 0.4s ease, transform 0.4s ease;
        overflow: hidden;
    }

    .navbar ul.active {
        max-height: 500px;
        transform: translateY(0);
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
    }

    .navbar ul li a {
        padding: 15px;
        font-size: 1.2em;
        margin: 0;
    }

    .hamburger-menu-toggle {
        display: flex;
        background-color: transparent;
        border: none;
    }

    .swiper {
        width: 90%;
        height: 80%;
    }
    .swiper-slide {
        width: 100%;
        height: 100%;
        max-height: 300px;
        overflow-y: hidden;
        border-radius: 10px;
    }
    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px; /* размер стрелки */
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    h2 {
        font-size: 1em;
        text-align: center;
    }
    .welcome-content .welcome-info h2,
    .welcome-content .working-hours h2 {
        color: #fed700;
        font-size: 1.5em;
    }

    .welcome-content .welcome-info p,
    .welcome-content .working-hours p {
        color: #fff;
        font-size: 1em;
    }

    .fitness-gallery {
        height: 300px;
        padding-top: 20px;
    }

    .fitness-img-description img {
        border-radius: 10px;
    }
    .fitness-img-item img {
        height: 150px;
        border-radius: 10px;
        flex-grow: inherit;
    }

    .fitness-gallery .fitness-img-item:hover {
        transform: none;
    }
    .fitness-img-item h3 {
        font-size: 1em;
    }

    .working-hours {
        white-space: initial;
    }

    .call-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        font-size: 0.8em;
        white-space: nowrap;
        padding: 5px;
        margin: 10px 0;
    }

    .fitness-training p {
        font-size: 1em;
    }

    .fitness-training h2 {
        font-size: 1.5em;
    }
    .gym-photo img {
        max-height: 150px;
    }

    .price-list {
        flex-direction: column;
        width: 100%;
    }
    .price-list h2 {
        font-size: 1.2em;
    }
    .price-list p {
        font-size: 0.8em;
    }

    .price-item1,
    .price-item2 {
        width: 100%;
        /* justify-content: space-between; */
    }
    .contact-buttons-bottom {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: center;
        margin: 10px;
    }

    .contact-buttons-top {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        align-items: center;
        margin: 20px;
    }
    .contact-buttons-top a {
        background-color: #fed700;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .contact-buttons-top a img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .contact-buttons-top a img:active {
        transform: scale(1.15);
    }

    .qustions-box h2 {
        font-size: 1.2em;
    }
    .faq-question {
        font-size: 0.8em;
    }
    .faq-answer {
        font-size: 0.8em;
    }
}
/* Уважение prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
