@font-face {
    font-family: 'Mulish';
    src: url(../fonts/Mulish-r.woff2);
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url(../fonts/Mulish-m.woff2);
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url(../fonts/Mulish-sb.woff2);
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'icon';
    src: url(../fonts/icon.woff2);
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
:root {
    --main-dark: #121212;
    --white: #FFFFFF;
    --white-4: rgba(255, 255, 255, 0.04);
    --white-5: rgba(255, 255, 255, 0.05);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-20: rgba(255, 255, 255, 0.2);
    --dark-40: rgba(18, 18, 18, 0.4);
    --grey: #7E7E7E;
    --grey-light: #A0A0A0;
    --grey-mid: #9A9A9C;
    --grey-pale: #B7B7B7;
    --light-gray: #F4F4F6;
    --round: 64px;
    --orange: #FF7A29;
    --orange-hover: #FF672D;
    --orange-dark: #F0620C;
    --green: #58A452;
    --stroke: #EDEDED;
    --grey-dark: #636363;
    --violet: #5E33FF;
    --pink: #FF3965;
    --text: var(--main-dark);
    --main-bg: var(--main-dark);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: 0;
    font-family: 'Mulish', sans-serif;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
}
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    min-height: 100dvh;
}
body {
    position: relative;
    min-height: 100dvh;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--main-bg);
}
a {
    text-decoration: none;
    transition: .3s linear;
}
img {
    display: block;
    width: 100%;
    object-fit: cover;
}
input,
button {
    border-radius: 0;
    touch-action: manipulation;
    appearance: none;
}
label, button {
    cursor: pointer;
    appearance: none;
    border: none;
}
button {
    cursor: pointer;
}
textarea {
    appearance: none;
    resize: none;
    overflow: auto;
    border: none;
}
input[type="submit"] {
    border: none;
    cursor: pointer;
}
input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 50px var(--main-bg) !important;
    box-shadow: inset 0 0 0 50px var(--main-bg) !important;
}
input.error {
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, var(--error-text-2), var(--error-text-2), var(--error-text-2)) border-box;
}
input::placeholder, textarea::placeholder {
    opacity: 1;
    transition: opacity 0.3s ease;
}
input:focus::placeholder, textarea:focus::placeholder {
    opacity: 0; 
}
*::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
*::-webkit-scrollbar-track {
    background: var(--main-bg);
}
*::-webkit-scrollbar-thumb {
    border-radius: 4px;
    border: 2px solid var(--main-bg);
    background-color: var(--green-bg-2);
}
html.lock {
    overflow: hidden;
}
.wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}
.round {
    position: relative;
    margin-top: calc(var(--round) * -1);
    border-radius: var(--round) var(--round) 0 0;
}
.headline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    h2 {
        font-size: 44px;
        line-height: 1.2;
        font-weight: 600;
        letter-spacing: -0.02em;
    }
    p {
        font-size: 20px;
        line-height: 26px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--grey);
    }
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 40px 4px;
    border-radius: 50px;
    background: var(--orange);
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
    transition: background-color .3s linear, border-color .3s linear;
    &.secondary {
        border: 1px solid var(--white-20);
        background: var(--white-5);
    }
    &.white {
        background: var(--white);
        color: var(--orange);
    }
}
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    .wrapper {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 40px;
        height: 80px;
        padding: 0 40px;
        border-bottom: 1px solid transparent;
        transition: border-color .3s linear;
    }
    .logo {
        flex-shrink: 0;
        display: block;
        width: 92px;
        height: 32px;
        img {
            height: 100%;
            object-fit: contain;
        }
    }
    .ws-menu {
        display: flex;
        gap: 3px;
    }
    a {
        color: var(--white);
        font-weight: 500;
    }
    .menu a {
        display: flex;
        align-items: center;
        height: 40px;
        padding: 0 32px;
        border-radius: 50px;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }
    .phone {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 40px;
        margin-left: auto;
        padding: 0 32px;
        border-radius: 50px;
        background: var(--white-4);
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
        &::before {
            content: '\e001';
            font-family: 'icon';
            font-size: 24px;
            line-height: 1;
            color: var(--white);
        }
    }
    .burger {
        display: none;
        position: relative;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background: var(--white-5);
        span, span::before, span::after {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 18px;
            height: 1.4px;
            margin: -0.7px 0 0 -9px;
            border-radius: 1px;
            background: var(--white);
            transition: transform .3s ease, background-color .3s ease;
        }
        span::before, span::after {
            content: '';
            margin: 0;
            left: 0;
            top: 0;
        }
        span::before {
            transform: translateY(-6px);
        }
        span::after {
            transform: translateY(6px);
        }
    }
    .panel, .overlay {
        display: none;
    }
    &.open {
        .wrapper {
            border-bottom-color: var(--white-10);
        }
        .burger span {
            background: transparent;
            &::before {
                transform: rotate(45deg);
            }
            &::after {
                transform: rotate(-45deg);
            }
        }
        .panel {
            transform: none;
            opacity: 1;
            visibility: visible;
        }
        .overlay {
            opacity: 1;
            visibility: visible;
        }
    }
}
.teacher-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-height: 524px;
    height: 100%;
    padding: 20px 20px 48px;
    border-radius: 32px;
    background: var(--light-gray);
    .top {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
    .photo {
        position: relative;
        flex-shrink: 0;
        width: 160px;
        height: 160px;
        overflow: hidden;
        border-radius: 16px;
        background: var(--white);
        img {
            height: 100%;
        }
    }
    .video {
        position: absolute;
        left: 8px;
        bottom: 8px;
        display: flex;
        align-items: center;
        gap: 4px;
        height: 32px;
        padding: 0 16px;
        border: 1px solid var(--stroke);
        border-radius: 50px;
        background: var(--white);
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        &::before {
            content: '\e002';
            font-family: 'icon';
            font-size: 14px;
            line-height: 1;
            color: var(--orange);
        }
    }
    .tags {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
    .row {
        display: flex;
        gap: 8px;
    }
    .favorite, .level, .price {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 56px;
        border: 1px solid var(--stroke);
        border-radius: 50px;
        background: var(--white);
    }
    .favorite {
        width: 56px;
        padding-top: 2px;
        &::before {
            content: '\e003';
            font-family: 'icon';
            font-size: 20px;
            line-height: 1;
            color: var(--stroke);
            transition: color .3s linear, transform .3s ease;
        }
        &[aria-pressed="true"]::before {
            color: var(--orange);
        }
    }
    .level {
        padding: 0 32px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        &.pro {
            border-color: rgba(255, 122, 41, 0.2);
            color: var(--orange);
        }
        &.expert {
            border-color: rgba(94, 51, 255, 0.2);
            color: var(--violet);
        }
        &.new {
            border-color: rgba(88, 164, 82, 0.2);
            color: var(--green);
        }
    }
    .price {
        flex-direction: column;
        padding: 0 32px 2px;
        font-size: 10px;
        line-height: 14px;
        color: var(--grey);
        b {
            font-size: 22px;
            line-height: 28px;
            font-weight: 600;
            white-space: nowrap;
        }
    }
    .info {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .text {
        display: flex;
        flex-direction: column;
        gap: 8px;
        p {
            font-size: 16px;
            line-height: 22px;
            font-weight: 500;
            color: var(--grey-dark);
        }
    }
    h3 {
        font-size: 24px;
        line-height: 28px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }
    .rating {
        display: flex;
        align-items: center;
        gap: 12px;
        span {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 16px;
            line-height: 22px;
            font-weight: 500;
            &::before {
                content: '\e004';
                font-family: 'icon';
                font-size: 16px;
                line-height: 1;
            }
        }
        button {
            background: none;
            font-size: 16px;
            line-height: 22px;
            font-weight: 500;
            color: var(--orange-dark);
        }
    }
    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        list-style: none;
        li {
            display: flex;
            align-items: center;
            gap: 4px;
            height: 36px;
            padding: 0 16px;
            border-radius: 50px;
            background: var(--white);
            font-size: 10px;
            line-height: 14px;
            &::before {
                font-family: 'icon';
                line-height: 1;
            }
        }
        .free-time::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--orange);
        }
        .trial::before {
            content: '\e005';
            font-size: 10px;
            color: var(--green);
        }
    }
    > .button {
        width: 100%;
    }
}
@media screen and (max-width: 1023px) {
    .teacher-card {
        min-height: 0;
        .photo {
            width: 148px;
            height: 148px;
        }
        .favorite, .level {
            height: 44px;
        }
        .favorite {
            width: 44px;
            &::before {
                font-size: 16px;
            }
        }
        .level {
            padding: 0 24px;
            font-size: 12px;
            line-height: 16px;
        }
        .price {
            height: 44px;
            padding: 0 24px 2px;
            b {
                font-size: 18px;
                line-height: 22px;
            }
        }
        h3 {
            font-size: 20px;
            line-height: 24px;
        }
        .text p, .rating span, .rating button {
            font-size: 14px;
            line-height: 20px;
        }
        .chips li {
            padding: 0 10px;
        }
    }
}
@media (hover:hover) {
    .teacher-card {
        .favorite:hover::before {
            transform: scale(1.15);
        }
        .rating button:hover {
            color: var(--orange);
        }
    }
}
.faq {
    padding: 120px 0;
    background: var(--white);
    .items {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 56px;
    }
    .item {
        border-radius: 32px;
        background: var(--light-gray);
    }
    .question {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 96px;
        padding: 16px 160px 16px 48px;
        background: none;
        font-size: 22px;
        line-height: 28px;
        font-weight: 500;
        text-align: left;
        overflow-wrap: anywhere;
        transition: min-height .4s cubic-bezier(.4, 0, .2, 1), padding-bottom .4s cubic-bezier(.4, 0, .2, 1);
    }
    .icon {
        position: absolute;
        right: 48px;
        top: 16px;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--white);
        transition: transform .4s cubic-bezier(.4, 0, .2, 1);
        &::before, &::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            width: 26px;
            height: 2px;
            margin: -1px 0 0 -13px;
            border-radius: 1px;
            background: var(--text);
            transition: background-color .3s linear;
        }
        &::after {
            transform: rotate(90deg);
        }
    }
    .answer {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1);
        > div {
            overflow: hidden;
        }
        p {
            padding: 0 160px 16px 48px;
            font-size: 16px;
            line-height: 22px;
            color: var(--grey);
            opacity: 0;
            transition: opacity .3s linear;
        }
    }
    .open {
        .question {
            min-height: 52px;
            padding-bottom: 8px;
        }
        .answer p {
            opacity: 1;
            transition-delay: .1s;
        }
        .icon {
            transform: rotate(45deg);
            &::before, &::after {
                background: var(--orange);
            }
        }
        .answer {
            grid-template-rows: 1fr;
        }
    }
}

footer {
    margin-top: auto;
    padding: 80px 0 40px;
    border-top: 1px solid var(--white-10);
    .wrapper {
        padding: 0 40px;
    }
    p, a, button, li {
        font-size: 14px;
        line-height: 20px;
        color: var(--grey);
    }
    .top {
        display: flex;
        justify-content: space-between;
        gap: 40px;
        padding-bottom: 56px;
    }
    .about {
        max-width: 460px;
        p {
            margin-top: 20px;
            font-size: 16px;
            line-height: 22px;
        }
    }
    .logo {
        display: block;
        width: 92px;
        height: 32px;
        img {
            height: 100%;
            object-fit: contain;
        }
    }
    .social {
        display: flex;
        gap: 12px;
        margin-top: 16px;
        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--white-5);
            &::before {
                font-family: 'icon';
                font-size: 20px;
                line-height: 1;
                color: var(--white);
            }
        }
        .telegram::before {
            content: '\e007';
        }
        .instagram::before {
            content: '\e008';
        }
    }
    .columns {
        display: flex;
        gap: 80px;
    }
    .column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .title {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 22px;
        font-weight: 500;
        color: var(--white);
    }
    .ws-menu {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .column a {
        color: var(--grey-light);
    }
    .contacts {
        .phone {
            color: var(--white);
        }
        .contact {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 26px;
            background: none;
            font-size: 16px;
            line-height: 22px;
            color: var(--orange);
            &::after {
                content: '\e006';
                font-family: 'icon';
                font-size: 14px;
                color: var(--orange);
                transition: transform .3s ease;
            }
        }
    }
    .bottom {
        display: grid;
        grid-template-columns: minmax(0, 600px) auto;
        justify-content: space-between;
        align-items: center;
        gap: 24px 40px;
        padding-top: 24px;
        border-top: 1px solid var(--white-10);
    }
    .payments {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        list-style: none;
        li {
            display: flex;
            align-items: center;
            height: 36px;
            padding: 0 16px;
            border-radius: 8px;
            background: var(--white-5);
            font-size: 12px;
            line-height: 16px;
            color: var(--grey-light);
        }
    }
    .copyright {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 1400px) {

}
@media screen and (max-width: 1279px) {
    .wrapper {
        padding: 0 40px;
    }
    header {
        .wrapper {
            gap: 24px;
        }
        .menu a {
            padding: 0 14px;
        }
        .phone {
            padding: 0 16px;
        }
    }
    footer {
        .top {
            flex-direction: column;
            gap: 56px;
        }
        .about {
            display: grid;
            grid-template-columns: minmax(0, 460px) auto;
            justify-content: space-between;
            column-gap: 40px;
            max-width: none;
            .social {
                grid-column: 2;
                grid-row: 1 / 3;
                align-self: center;
                margin: 0;
            }
        }
        .columns {
            justify-content: space-between;
        }
    }
}
@media screen and (max-width: 1023px) {
    :root {
        --round: 40px;
    }
    .wrapper {
        padding: 0 40px;
    }
    .headline {
        gap: 12px;
        h2 {
            font-size: 32px;
        }
        p {
            font-size: 16px;
            line-height: 22px;
            font-weight: 400;
        }
    }
    header {
        .wrapper {
            gap: 12px;
            height: 72px;
            padding: 12px 64px 16px;
            .menu {
                display: none;
            }
        }
        .burger {
            display: block;
        }
        .panel {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 80px;
            width: 100%;
            padding: 120px 16px 128px;
            border-bottom: 1px solid var(--white-10);
            border-radius: 0 0 32px 32px;
            background: linear-gradient(200deg, rgba(94, 51, 255, 0.2), rgba(255, 57, 101, 0)), var(--main-dark);
            box-shadow: 0 20px 20px var(--dark-40);
            transform: translateY(-100%);
            opacity: 0;
            visibility: hidden;
            transition: transform .4s ease, opacity .4s ease, visibility .4s;
            .ws-menu {
                flex-direction: column;
                align-items: center;
                gap: 24px;
            }
            .menu a {
                height: auto;
                padding: 0;
                border-radius: 0;
                font-size: 22px;
                line-height: 28px;
                font-weight: 600;
                text-align: center;
            }
            .phone {
                gap: 10px;
                width: 320px;
                max-width: 100%;
                height: 56px;
                margin: 0;
                padding: 0 40px;
                border: 1px solid var(--white-20);
                background: var(--white-5);
                font-size: 16px;
                line-height: 22px;
            }
        }
        .overlay {
            position: fixed;
            inset: 0;
            z-index: 0;
            display: block;
            background: var(--dark-40);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            opacity: 0;
            visibility: hidden;
            transition: opacity .4s ease, visibility .4s;
        }
    }
    .faq {
        padding: 80px 0;
    }
    footer {
        .bottom {
            grid-template-columns: minmax(0, 1fr);
            padding-top: 40px;
        }
        .copyright {
            margin-top: 16px;
        }
    }
}
@media screen and (max-width: 767px) {
    :root {
        --round: 32px;
    }
    .wrapper {
        padding: 0 16px;
    }
    .headline h2 {
        font-size: 24px;
        line-height: 30px;
    }
    .faq {
        padding: 64px 0;
        .items {
            margin-top: 32px;
        }
        .item {
            border-radius: 20px;
        }
        .question {
            min-height: 72px;
            padding: 16px 84px 16px 20px;
            font-size: 16px;
            line-height: 22px;
        }
        .icon {
            right: 12px;
            width: 40px;
            height: 40px;
            &::before, &::after {
                width: 18px;
                height: 1.5px;
                margin: -0.75px 0 0 -9px;
            }
        }
        .answer p {
            padding: 0 48px 20px 20px;
            font-size: 14px;
            line-height: 20px;
        }
        .open .question {
            min-height: 46px;
        }
    }
    header .wrapper {
        padding: 12px 24px 16px;
        .phone {
            display: none;
        }
        .burger {
            margin-left: auto;
        }
    }
    footer {
        padding: 64px 0 72px;
        .wrapper {
            padding: 0 20px;
        }
        .top {
            gap: 40px;
            padding-bottom: 44px;
        }
        .about {
            display: block;
            p {
                font-size: 14px;
                line-height: 20px;
            }
            .social {
                margin-top: 16px;
            }
        }
        .logo {
            width: 66px;
            height: 23px;
        }
        .columns {
            flex-direction: column;
            gap: 32px;
        }
        .column, .ws-menu {
            gap: 8px;
        }
        .title {
            margin-bottom: 4px;
        }
        .contacts .contact {
            margin-top: 10px;
        }
        .bottom {
            gap: 16px;
        }
        .legal {
            font-size: 12px;
            line-height: 16px;
        }
        .payments {
            gap: 8px;
        }
        .copyright {
            margin-top: 24px;
        }
    }
}
@media (hover:hover) {
    .button:hover {
        background: var(--orange-hover);
    }
    .button.secondary:hover {
        border-color: var(--white-20);
        background: var(--white-10);
    }
    .button.white:hover {
        background: var(--orange);
        color: var(--white);
    }
    header {
        .wrapper .menu a:hover {
            background: var(--white-4);
        }
        .phone:hover {
            background: var(--white-10);
        }
        .panel .menu a:hover {
            color: var(--orange);
        }
    }
    footer {
        .column a:hover {
            color: var(--white);
        }
        .social a:hover {
            background: var(--white-10);
        }
        .contacts .contact:hover::after {
            transform: translateX(4px);
        }
    }
}