@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000D21;
    --bg-accent: #000;
    --bg-secondary: #000;
    --text: #fff;
    --text-2: #9ca3af;
    --text-accent: #0063FF;

    --header-bg: #000;
    --footer-bg: #000;

    --fitnes-bg: #fff;
    --fitnes-text: #000;
    --fitnes-accent: #76FA9F;
    --fitnes-card: #BAFCCE;

    --media-bg: #333333;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: var(--text);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    display: block;
    width: 100%;
}

.container {
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}
/* ###### */
.brg {
    cursor: pointer;
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    display: none;
}
.brg div {
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background-color: var(--text);
}
.header {
    background-color: var(--header-bg);
    width: 100%;
}
.header .container {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo img {
    display: block;
    width: 100px;
}
.header ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.header li a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text);
    transition: filter 0.2s ease-out;
    &:hover {
        text-decoration: underline;
    }
}
@media (max-width: 768px) {
    .brg {
        display: flex;
    }
    .header nav {
        display: none;
    }
}
/* ###### */
.footer {
    background-color: var(--footer-bg);
    margin-top: auto;
}
.footer .container {
    padding: 48px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    justify-items: center;
}
.footer-info h2 {
    font-size: 24px;
    color: transparent;
    background: var(--text-accent);
    background-clip: text;
    margin-bottom: 16px;
}
.footer-info p {
    font-size: 14px;
    margin-bottom: 16px;
}
.footer-nav h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 16px;
}
.footer-nav ul  {
    list-style: none;
    display: grid;
    gap: 8px;
}
.footer-nav svg {
    display: inline-block;
    width: 16px;
    height: 16px;
}
.footer-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease-out;

    &:hover {
        color: var(--text-accent);
    }
}
.footer-rights {
    font-size: 12px;
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 64px;
    gap: 16px;
}
.footer-rights a {
    color: inherit;
}
.footer-rights p:nth-child(2) {
    justify-self: end;
}
.footer-rights-bot {
    grid-column: span 2;
    text-align: center;
}
@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: start;
    }
    .footer-rights {
        margin-top: 32px;
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-rights-bot {
        grid-column: span 1;
    }
    .footer-rights p:nth-child(2) {
        justify-self: center;
    }
}
/* ###### */
/* ###### */
.nav {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 60px 16px;
    background-color: var(--bg);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}
.nav.open {
    transform: translateX(0);
}
.nav-close {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav ul {
    list-style: none;
    display: grid;
    gap: 20px;
    text-align: center;
}
.nav a {
    color: inherit;
    text-decoration: none;
}
/* ###### */
.text h1,
.text h2,
.text h3,
.text h4 {
    font-family: "Inter", sans-serif;
}
.text .container {
    padding: 40px 16px;
}
.text h1 {
    font-size: 32px;
    margin-bottom: 16px;
}
.text h2,
.text h3 {
    font-size: 22px;
    margin-bottom: 8px;
    margin-top: 32px;
}
.text p {
    font-size: 16px;
}
.text p + p {
    margin-bottom: 16px;
}
.text ul {
    list-style-position: inside;
}
.text a {
    color: inherit;
}
.text .rtl-text {
    direction: rtl;
    text-align: right;
}
/* ###### */
img,
video {
    display: block;
    width: 100%;
}

.wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
}

.title {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.desc {
    font-size: 18px;
    padding-bottom: 25px;
    margin: 0 auto 10px;
    position: relative;
    max-width: 500px;
    text-align: center;
}

.desc::before {
    content: "";
    display: block;
    width: 100%;
    height: 20px;
    background-color: var(--text-accent);
    position: absolute;
    bottom: 0;
    left: 0;
}

.hero .wrapper,
.app .wrapper,
.fitnes .wrapper,
.future .wrapper {
    display: grid;
    padding: 40px 15px;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    text-align: center;
}

@media (min-width: 769px) {
    .hero .wrapper,
    .app .wrapper,
    .fitnes .wrapper,
    .future .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .future img {
        grid-column: 1 / 2;
        grid-row: 1/ 2;
    }
}

.video .wrapper {
    padding: 40px 15px;
    text-align: center;
}
.video video {
    max-width: 400px;
    margin: 0 auto;
}

.reasons-box {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.reasons-item {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: var(--text);
    color: var(--bg);
    justify-items: center;
}
@media (max-width: 768px) {
    .reasons-box {
        grid-template-columns: 1fr;
    }
}
.reasons-item img {
    display: block;
    width: 100%;
    max-width: 70px;
}
/* #### */
.competitions {
    padding: 40px 0;
}
.competitions-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px 0;
}
.competitions-box img {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .competitions-box {
        grid-template-columns: 1fr;
    }
}
/* ### */
.fitnes {
    padding: 40px 0;
    background-color: var(--fitnes-bg);
    color: var(--fitnes-text);
}
.fitnes .desc::before {
    background-color: var(--fitnes-accent);
}
/* #### */
.media-title {
    font-size: 38px;
    margin-top: 12px;
    margin-bottom: 24px;
    font-style: italic;
    text-align: center;
}
.media .container {
    padding: 40px 15px;
}
.media h2 {
    font-size: 24px;
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 5px solid var(--text-accent);
}
.media-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-items: center;
}
.media-item {
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--media-bg);
    max-width: 450px;
}
.media-item img {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.media-item h3 {
    padding: 10px;
    font-size: 24px;
    text-align: center;
}
.media-item p {
    padding: 10px;
    font-size: 16px;
}
@media (max-width: 768px) {
    .media-box {
        grid-template-columns: 1fr;
    }
}

.w-bg {
    background-color: var(--fitnes-bg);
    color: var(--fitnes-text);
}
.w-bg .desc::before {
    background-color: var(--fitnes-accent);
}

.w-bg .reasons-item {
    background-color: var(--fitnes-card);
}