* {
    box-sizing: border-box;
}

body {
    font-family: Montserrat, Roboto, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    background-color: #F3F4F7;
}

h1 {
    font-weight: 800;
    font-size: 40px;
    line-height: 1.2;
    margin-top: 0;
}

h2 {
    font-weight: 800;
    font-size: 30px;
    margin-top: 0;
    line-height: 1.2;
}

h3 {
    font-weight: 800;
    font-size: 25px;
    line-height: 1.2;
    margin-top: 0;
}

h4 {
    font-weight: 800;
    line-height: 1.2;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
    padding-left: 0;
}


/* container */
.container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding-top: 85px;
}


/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 30px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo {
    flex: 0 0 25%;
    text-align: left;
    font-size: 24px;
    font-weight: 800;
}

/* phone */
.header-phone {
    flex: 0 0 25%;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
}

.phone-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transition: transform 0.3s ease;
}

.phone-icon {
    width: 25px;
    height: 25px;
    margin-right: 5px;
}

.phone-link:hover {
    transform: scale(1.1);
}

/* nav */
.nav {
    flex: 0 0 50%;
    text-align: center;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}

.nav-item {
    transition: transform 0.3s ease;
}

.nav-item:hover {
    transform: scale(1.1);
}

/* hero */
.hero {
    padding-top: 100px;
}

.hero-info {
    display: flex;
    flex-direction: column;
}

.hero-container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding-top: 85px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.hero-subtitle {
    padding-bottom: 20px;
}

.hero-images {
    width: 100%;
}

.hero-image {
    width: 100%;
    border-radius: 15px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}


/* services */
.services-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.services-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-item:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.services-item-title {
    border-radius: 15px;
    padding: 15px;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    min-height: 110px;
}

.individual {
    background-image: url('../img/individual.png');
    background-size: auto 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.group {
    background-image: url('../img/group.png');
    background-size: auto 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.gymnastics {
    background-image: url('../img/gymnastics.png');
    background-size: auto 100%;
    background-position: right;
    background-repeat: no-repeat;
}

.services-individual-img {
    width: 100%;
}

.services-item-text {
    padding: 0 15px;
    margin-bottom: auto;
}


/* tariffs */
.tariffs-list-adults {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.tariffs-list-kids {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.tariffs-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    padding: 15px;
}

.tariffs-name {
    margin-top: auto;
}

.tariffs-description {
    margin: auto;
    font-weight: 700;
}

.tariffs-price {
    text-align: center;
    font-weight: 700;
    font-size: 30px;
}

.slider-container-tariffs {
    display: none !important;
}

.slider-container-tariffs.active {
    display: block !important;
}

.tab-button {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    background: transparent;
}

.tab-button.active {
    background: white;
}

.slider-btn-tariffs {
    display: none;
}


/* schedule */
.schedule-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    padding: 15px;
}

.schedule-item-time {
    display: flex;
    flex-direction: column;
    margin: 0px;
}


/* team */
.team-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.team-panorama {
    border-radius: 15px;
}

.panorama {
    width: 100%;
    /* aspect-ratio: 3 / 2; */
    margin-bottom: 15px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panorama:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.team-trainers {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.trainer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trainer-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.trainer-card a {
    margin-top: auto;
}

.trainer-photo {
    width: 100%;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.trainer-name {
    margin: 15px 0 0 0;
}

.slider-btn-team {
    display: none;
}


/* promotions */
.promotions-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.promotions-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promotions-item:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.promotions-item a {
    margin-top: auto;
}

.promotions-item-img {
    width: 100%;
    border-radius: 30px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.slider-btn-promotions {
    display: none;
}


/* gallery */
.gallery-container {
    margin: auto;
}

.gallery-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-content: space-between;
}

.gallery-image {
    border-radius: 15px;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.slider-btn-gallery {
    display: none;
}


/* contacts */
.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 85px;
}

.contacts-info {
    flex: 1;
}

.contacts-list {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contacts-img {
    width: 25px;
}

.map {
    flex: 1;
}

.map-link {
    width: 100%;
    min-width: 250px;
    border: 0;
    border-radius: 15px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}


/* footer */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 85px;
}

.footer-brand {
    flex: 1;
    text-align: center;
}

.footer-brand-list {
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
}

.footer-worktime {
    display: flex;
    flex-direction: column;
}

.footer-socials {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.social-img {
    width: 50px;
}

.footer-socials-list {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-locations {
    flex: 1;
    text-align: center;
}

.locations-img {
    width: 60px;
}

.footer-locations-list {
    margin-top: 25px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.qr-code {
    width: 50%;
    padding: 8px;
    border-radius: 15px;
}


/* button */
.btn {
    width: 100%;
    padding: 17px 45px;
    border-radius: 25px;
    font-size: 22px;
    text-align: center;
    cursor: pointer;
    border: 0;
    transition: opacity 0.3s ease;
    margin-top: auto;
}

.btn:hover {
    opacity: 0.8;
}


/*-----Burger-----*/
.header-burger-btn {
    position: relative;
    left: 0px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    z-index: 2;
    display: none;
}

.header-burger-btn span {
    position: absolute;
    width: 30px;
    height: 3px;
    left: 5px;
    border-radius: 5px;
    transition: transform .5s, opacity .5s, background-color .5s;
}

.header-burger-btn span:nth-child(1) {
    transform: translateY(-10px);
}

.header-burger-btn span:nth-child(3) {
    transform: translateY(10px);
}

.header.open .header-burger-btn span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.header.open .header-burger-btn span:nth-child(2) {
    opacity: 0;
}

.header.open .header-burger-btn span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}



/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Контент модального окна */
.modal-container {
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Кнопка закрытия */
.close {
    position: absolute;
    top: 3px;
    right: 15px;
    font-size: 35px;
    cursor: pointer;
}


@media (max-width: 1000px) {
    .schedule-list,
    .services-list,
    .team-container {
        display: flex;
        flex-wrap: wrap;
    }

    .hero-container {
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
    }

    .header-burger-btn {
        display: block;
    }

    .container {
        max-width: 90%;
    }
    .hero-container {
        max-width: 90%;
        padding-top: 0;
    }

    .modal-container {
        width: 90%;
        max-height: 90vh;
        padding: 15px;
    }

    .modal-title {
        max-width: 250px;
    }

    .header-logo {
        flex: 1;
        text-align: center;
        font-size: 15px;
        font-weight: 800;
    }

    .header-phone {
        flex: 1;
        font-size: 12px;
        font-weight: 700;
    }

    .phone-icon {
        width: 15px;
        height: 15px;
    }

    .nav {
        flex: 0;
    }

    .nav-link {
        display: block;
        background-color: #FFFFFF;
        padding: 15px;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 0;
        width: 100%;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }

    .header.open .nav-list {
        max-height: 500px;
    }

    .panorama {
        aspect-ratio: 3 / 2;
    }
}


/* Стили для мобильных устройств */
@media screen and (max-width: 768px) {

    .slider-container-tariffs,
    .slider-container-gallery,
    .slider-container-promotions,
    .slider-container-team {
        display: block;
        position: relative;
        overflow: hidden;
    }

    .slider-tariffs,
    .slider-gallery,
    .slider-promotions,
    .slider-team {
        display: flex;
        transition: transform 0.5s ease;
        gap: 0px;
    }

    .slider-inner-tariffs,
    .slider-inner-gallery,
    .slider-inner-promotions,
    .slider-inner-team {
        width: 100%;
        height: auto;
        min-width: 100%;
    }

    .slider-btn-tariffs,
    .slider-btn-gallery,
    .slider-btn-promotions,
    .slider-btn-team {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }

    .prev-tariffs,
    .next-tariffs,
    .prev-gallery,
    .next-gallery,
    .prev-promotions,
    .next-promotions,
    .prev-team,
    .next-team {
        pointer-events: all;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin: 5px;
    }

    .prev-team,
    .next-team,
    .prev-promotions,
    .next-promotions,
    .prev-tariffs,
    .next-tariffs,
    .prev-gallery,
    .next-gallery {
        background-color: rgba(32, 36, 57, 0.2);
    }
}