@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: #e8f5fd;
    --text: #0e3358;
    --text-secondary: #0e3358;
    --text-accent: #3b9fe0;
    --muted: #3d6288;

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

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 {
    text-decoration: none;
}
.logo img {
    display: block;
    width: 168px;
    height: auto;
}
.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;
    }
}
.langs {
    margin-left: 16px;
    display: flex;
    align-items: center;
}
.langs a {
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    padding: 4px;
    overflow: hidden;
}
.langs a:hover {
    background: var(--footer-bg);
}
.langs .flag {
    display: inline-block;
    width: 36px;
    height: 36px;
    padding: 2px;
    border-radius: 50%;
}
.langs .flag img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 980px) {
    .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;
}
/* ###### */

.hero .container {
    padding: 40px 15px;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}
.hero h1 {
    font-size: 38px;
    margin-bottom: 24px;
    max-width: 500px;
}
.hero p {
    font-size: 20px;
    max-width: 500px;
}
.hero img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
}
/* ### */
.about {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}
.about .container {
    padding: 40px 15px;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
}
.about h2 {
    font-size: 28px;
    margin-bottom: 16px;
    max-width: 500px;
}
.about p {
    font-size: 16px;
    max-width: 500px;
}
.about img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .about .container {
        grid-template-columns: 1fr;
    }
}
/* ### */
.features .container {
    padding: 40px 15px;
}
.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 24px;
}
.features-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 24px;
}
.features-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
}
.features-item img {
    display: block;
    width: 100%;
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.features-item h3 {
    font-size: 20px;
}
.features-item .f-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    color: #fff;
}
.features-item .f-icon svg {
    width: 28px;
    height: 28px;
}
.f-icon-ai,
.f-icon-game {
    background: #3b9fe0;
}
.f-icon-film {
    background: #7b6cf6;
}
.f-icon-music {
    background: #a855f7;
}
.f-icon-path {
    background: #155189;
}
.section-lead {
    text-align: center;
    max-width: 680px;
    margin: -8px auto 28px;
    font-size: 18px;
    color: var(--muted);
}
@media (max-width: 768px) {
    .features-box {
        grid-template-columns: 1fr;
    }
}
/* ### */
.pros .container {
    padding: 60px 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.pros-item img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto 12px;
}
.pros-item h2 {
    font-size: 22px;
    text-align: center;
}

@media (max-width: 768px) {
    .pros .container {
        grid-template-columns: 1fr;
    }
}
/* ### */
.courses .container {
    padding: 40px 15px;
}
.courses h2 {
    font-size: 32px;
    margin-bottom: 24px;
    text-align: center;
}
.courses-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.courses-item {
    width: 100%;
    max-width: 250px;
}
.courses-box img {
    display: block;
    width: 100%;
    max-width: 100px;
    margin: 0 auto 12px;
}
.courses-box h3 {
    font-size: 20px;
    text-align: center;
}
/* ### */
.steps {
    background: #fff;
}
.steps .container {
    padding: 40px 15px 64px;
}
.steps h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}
.steps-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.steps-item img {
    width: auto;
    max-width: 100%;
    max-height: 280px;
    margin: 0 auto 16px;
    object-fit: contain;
}
.steps-item h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 8px;
}
.steps-item p {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--muted);
}
/* ### */
.playground {
    background: var(--footer-bg);
}
.playground .container {
    padding: 40px 15px 64px;
}
.playground h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}
.playground-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.playground-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e3eef6;
}
.playground-item img {
    width: 100%;
    height: auto;
    display: block;
}
.playground-item h3 {
    font-size: 18px;
    margin: 14px 14px 8px;
}
.playground-item p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 14px 16px;
}
/* ### */
.stories .container {
    padding: 40px 15px 64px;
}
.stories h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}
.stories-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stories-item {
    margin: 0;
    padding: 20px;
    border-radius: 16px;
    background: var(--footer-bg);
    border: 1px solid #e3eef6;
}
.stories-item p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 16px;
}
.stories-item footer {
    display: grid;
    gap: 2px;
}
.stories-item strong {
    font-size: 15px;
}
.stories-item span {
    font-size: 13px;
    color: var(--muted);
}
@media (max-width: 980px) {
    .steps-box,
    .playground-box {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .stories-box {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .steps-box,
    .playground-box {
        grid-template-columns: 1fr;
    }
}
/* ###### */
.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;
    }
}