@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: #fff;
    --bg-secondary: #f35748;
    --text: #003979;
    --text-secondary: #fff;
    --text-accent: #f35748;

    --header-bg: #fff;
    --footer-bg: #F5F9FB;
}

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: 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: 140px;
}
.header ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.header nav {
    margin-left: auto;
}
.header li a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text);
    transition: filter 0.2s ease-out;
    &:hover {
        text-decoration: underline;
    }
}
.langs {
    display: flex;
    align-items: center;
    margin-left: 16px;
    flex: 0 0 auto;
}
.langs .flag {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}
.langs .flag img {
    width: 32px;
    height: 32px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .brg {
        display: flex;
    }
    .header nav {
        display: none;
    }
    .langs {
        margin-left: auto;
    }
}
/* ###### */
.footer {
    background-color: var(--footer-bg);
    margin-top: auto;
}
.footer .container {
    padding: 48px 16px;
    display: grid;
    grid-template-columns: repeat(4, 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;
}
/* ###### */

.service {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 12px 16px 56px;
}
.svc-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 28px;
}
.svc-hero h1 {
    font-size: 52px;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #10244d;
    margin-bottom: 18px;
}
.svc-hero h1 span {
    font-weight: 700;
}
.svc-kicker {
    font-size: 18px;
    font-weight: 700;
    color: #10244d;
}
.svc-meta {
    margin-top: 2px;
    font-size: 16px;
    color: #6d7c90;
}
.svc-hero-art {
    width: 168px;
    height: auto;
    object-fit: contain;
}
.svc-levels {
    display: grid;
    gap: 18px;
}
.level {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 22px 24px 18px;
    color: #243044;
}
.level-beginner { background: #c9f4ea; }
.level-elementary { background: #f8e59a; }
.level-intermediate { background: #eea6f6; }
.level-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.level h2 {
    display: inline;
    font-size: 28px;
    line-height: 1.15;
    color: #10244d;
}
.level-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}
.level-beginner .level-badge { background: #8fd9d2; color: #10343a; }
.level-elementary .level-badge { background: #e7c56a; color: #3d3208; }
.level-intermediate .level-badge { background: #d984ea; color: #3d1248; }
.level-top p {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
}
.level ul {
    margin: 14px 0 8px 18px;
    max-width: 78%;
    display: grid;
    gap: 4px;
}
.level li {
    font-size: 15px;
}
.level-go {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(16, 36, 77, 0.08);
    text-decoration: none;
}
.level-go:hover {
    background: #f7f4ef;
}
.level-go::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 3px solid #1d2433;
    border-bottom: 3px solid #1d2433;
    transform: rotate(-45deg) translate(-1px, -1px);
}
.level-num {
    position: absolute;
    right: -6px;
    bottom: -28px;
    font-size: 148px;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 0;
}
.level-elementary .level-num { color: rgba(196, 154, 32, 0.45); }
.svc-dictionary {
    margin-top: 42px;
}
.wod-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.wod-head h2,
.wod-examples h2,
.svc-videos-head h2 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #2b2b2b;
}
.wod-date {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 168px;
    padding: 10px 14px 10px 8px;
    border-radius: 18px;
    background: #d7f6ef;
}
.wod-day {
    font-size: 52px;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #10244d;
}
.wod-day sup {
    font-size: 16px;
    font-weight: 700;
    margin-left: 1px;
}
.wod-when {
    display: grid;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    color: #10244d;
}
.wod-card {
    border-radius: 22px;
    padding: 28px 28px 22px;
    background: #0d2342;
    color: #fff;
}
.wod-card h3 {
    font-size: 28px;
    margin-bottom: 6px;
}
.wod-type {
    font-style: italic;
    margin-bottom: 14px;
    color: #d5deea;
}
.wod-card p + p {
    margin-top: 12px;
}
.wod-accents {
    display: flex;
    gap: 18px;
    margin-top: 22px;
}
.wod-pron {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wod-flag {
    display: block;
    width: 42px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.wod-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}
.wod-speak {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.wod-speak svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: currentColor;
}
.wod-speak svg path[fill="none"] {
    fill: none;
}
.wod-speak:hover,
.wod-speak.is-playing {
    background: #fff;
    color: #0d2342;
}
.wod-examples {
    margin-top: 28px;
}
.wod-examples h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.wod-examples h2 span {
    width: 10px;
    height: 46px;
    border-radius: 8px;
    background: #8fd9d2;
}
.wod-examples p {
    margin: 0 8px 16px 24px;
    color: #66758a;
    font-size: 18px;
}
.videos {
    margin-top: 48px;
}
.videos-title {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #10244d;
    text-align: center;
}
.videos-desc {
    margin: 8px auto 24px;
    max-width: 520px;
    text-align: center;
    font-size: 16px;
    color: #4a6f94;
}
.videos-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 1024px) {
    .videos {
        width: min(1080px, calc(100vw - 32px));
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.videos-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e4ee;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s ease-out;
}
.videos-item:hover {
    box-shadow: 0 10px 24px rgba(16, 36, 77, 0.08);
}
.videos-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #10244d;
}
.videos-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}
.videos-item:hover .videos-img img {
    transform: scale(1.04);
}
.videos-img::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(16, 36, 77, 0.28);
}
.videos-time {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: #10244d;
    font-size: 13px;
    font-weight: 700;
}
.videos-time svg,
.videos-views svg,
.videos-date svg,
.videos-watch svg {
    width: 14px;
    height: 14px;
}
.videos-watch {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    color: #10244d;
    font-size: 14px;
    font-weight: 700;
    transform: translate(-50%, -50%);
}
.videos-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 14px 16px 16px;
}
.videos-category {
    grid-column: 1 / -1;
    width: max-content;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e7f4f1;
    color: #10244d;
    font-size: 12px;
    font-weight: 700;
}
.videos-info h3 {
    grid-column: 1 / -1;
    font-size: 18px;
    color: #10244d;
}
.videos-item:hover .videos-info h3 {
    color: var(--text-accent);
}
.videos-views,
.videos-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4a6f94;
    font-size: 14px;
}
.videos-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    font-size: 0;
    color: transparent;
}
.item-download {
    position: absolute;
    z-index: 4;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--text-accent);
    color: #fff;
    text-decoration: none;
}
.item-download svg {
    width: 20px;
    height: 20px;
}
.item-download:hover {
    transform: scale(1.06);
}
.videos-item:has(.item-download) .videos-info {
    padding-bottom: 64px;
}
.downloads-page h1 {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #10244d;
    text-align: center;
}
.video-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.video-download svg {
    width: 18px;
    height: 18px;
}
.video-download:hover {
    filter: brightness(0.95);
}
.video-page {
    padding-top: 28px;
}
.video-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #4a6f94;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.video-back:hover {
    color: var(--text-accent);
}
.video-page h1 {
    margin: 10px 0 16px;
    font-size: 32px;
    line-height: 1.1;
    color: #10244d;
}
.video-page video {
    display: block;
    width: 100%;
    border-radius: 16px;
    background: #111;
}
.video-desc {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.5;
    color: #243044;
}
.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: #4a6f94;
    font-size: 14px;
}
.video-page h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 22px;
    color: #10244d;
}
.level-detail-list {
    display: grid;
    gap: 8px;
    margin-left: 18px;
    color: #243044;
    font-size: 16px;
}
@media (max-width: 768px) {
    .svc-hero {
        grid-template-columns: 1fr 120px;
        align-items: end;
    }
    .svc-hero h1,
    .wod-head h2,
    .wod-examples h2,
    .videos-title,
    .video-page h1 {
        font-size: 40px;
    }
    .svc-hero-art {
        width: 120px;
    }
    .wod-head {
        align-items: flex-start;
    }
    .wod-day {
        font-size: 42px;
    }
    .level h2 {
        font-size: 24px;
    }
    .level ul {
        max-width: 100%;
    }
}
/* ###### */
.help .container {
    padding: 40px 16px;
}
.help h1 {
    font-size: 30px;
    margin-bottom: 24px;
}
.help-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.help-item {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d7e4ee;
}
.help-item h2 {
    font-size: 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.help-item h2 svg {
    color: var(--text);
    width: 20px;
    height: 20px;
}
.help-item p {
    font-size: 16px;
    color: #4a6f94;
}
.help-link {
    border-radius: 8px;
    border: 1px solid #d7e4ee;
    padding: 8px 12px;
    display: block;
    font-size: 14px;
    margin-top: 16px;
    text-decoration: none;
    color: var(--text);

    transition: background-color 0.2s ease-out;
    &:hover {
        background-color: var(--footer-bg);
    }
}
.help-link-2 {
    margin-top: 16px;
    text-decoration: none;
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d7e4ee;

    transition: border-color 0.2s ease-out;
    &:hover {
        border-color: var(--text-accent);
    }
}
.help-link-2 svg {
    color: var(--text-accent);
    grid-row: span 2;
    width: 20px;
    height: 20px;
}
.help-link-2 h3 {
    font-size: 16px;
    color: var(--text);
}
.help-link-2 p {
    font-size: 14px;
    color: #4a6f94;
}
.help-faq {
    margin-top: 32px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d7e4ee;
}
.help-faq h2 {
    font-size: 24px;
}
.help-faq h3 {
    font-size: 16px;
    margin-bottom: 8px;
    margin-top: 24px;
}
.help-faq p {
    font-size: 14px;
    color: #4a6f94;
}
@media (max-width: 768px) {
    .help-box {
        grid-template-columns: 1fr;
    }
}