/* reset */
/* Minimal base styles */
/* Fonts */
@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/fonts/sf-pro-display/SFPRODISPLAYMEDIUM.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/fonts/sf-pro-display/SFPRODISPLAYSEMIBOLDITALIC.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/fonts/sf-pro-display/SFPRODISPLAYBOLD.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest/Onest-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest/Onest-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest/Onest-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest/Onest-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('/assets/fonts/onest/Onest-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --container-width: 1246px;
    --container-left-right-paddings: 14px;
    --text: #191919;
    --muted: #666;
    --bg: #fff;
    --border: #f2f2f2;
    --orange: #F85628;
    --orange-hover: #C7360D;
    --orange-active: #a02c0c;
    --orange-disabled: #F2D3CA;
    --light-orange: #FFE5D0;
    --background-orange: #FEF9F1;
    --black: #191919;
    --main-black: #2A1C14;
    --sub-black: #242526;
    --violet: #8E44AD;
    --gray: #666667;
    --dark-gray: #5E5E5E;
    --light-gray: #999999;
    --second-gray: #A7A8A8;
    --third-gray: #8A8A8A;
    --font-sf-pro-display: 'SF Pro Display';
    --font-onest: 'Onest', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --green-hover: #D5F5E3;
    --yellow-hover: #FFF5CC;
    --pink-hover: #E8DAF6;
    --light-blue-hover: #D6E4FF;
    --light-pink-hover: #FEDDD4;
    --light-orange-hover: #FEE9D9;

    /* Primary Colors */
    --primary-800: #242526;
    --primary-white: #ffffff;

    /* Neutral Colors / Grays */
    --gray-800: #242526;
    --gray-700: #3a3b3c;
    --gray-600: #505151;
    --gray-500: #666667;
    --gray-400: #7c7c7d;
    --gray-300: #919292;
    --gray-200: #a7a8ab;
    --gray-100: #bdbebe;
    --gray-50: #d3d3d3;
    --gray-25: #e9e9e9;
    --gray-15: #f8f9fa;
    --gray-0: #ffffff;

    /* Action Colors */
    --action-red: #FF1D1D;
    --action-green: #58B338;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-onest);
    color: var(--text);
    background: var(--bg);
}

a {
    text-decoration: none;
    cursor: pointer;
    transition: 0.4s;
}

button {
    cursor: pointer;
    transition: 0.4s;
}

img {
    width: 100%;
}

.container {
    max-width: calc(var(--container-width) + (var(--container-left-right-paddings) * 2));
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-left-right-paddings);
}

.site-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    position: relative;
}

/* app */
/* =========================
   Base utilities
   ========================= */

.body-no-scroll {
    overflow: hidden;
    width: 100%;
}

.br-12 {
    border-radius: 12px;
}

/* layout */
.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-col-min, 280px), 1fr));
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

/* visibility utilities */
@media (max-width: 767.98px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* motion */
.transform {
    transition: transform .2s ease, background-color .3s ease;
}

.transform:hover {
    transform: translateY(-1px);
}

/* visible */
.visible-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
}

.is-visible {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

.orange-text {
    color: var(--orange) !important;
}

/* =========================
   Typography / sections
   ========================= */

.section {
    position: relative;
    overflow: hidden;
}

.section--visible {
    overflow: visible;
}

.section__header {
    gap: 16px;
    text-align: center;
}

.title-section {
    --title-fs: 44px;
}

.title-section--medium {
    --title-fs: 40px;
}

.title-section,
.title-section--medium {
    font-size: var(--title-fs);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.subtitle-section {
    align-self: center;
    padding: 4px 6px;
    border-radius: 999px;

    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    color: var(--orange);
    background: var(--light-orange);
}

.text {
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.big-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
}

.small-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
}

.subtext {
    color: var(--light-gray);
}

.super-bold {
    font-weight: 800;
}

.extra-bold {
    font-weight: 700;
}

.bold-text {
    font-weight: 600;
}

.semibold-text {
    font-weight: 500;
}

.regular-text {
    font-weight: 400;
}

.text-link {
    color: var(--orange);
}

.text-link:hover {
    color: var(--orange-hover);
}

.resp-desktop {
    display: block;
}

.resp-mobile {
    display: none;
}

/* =========================
   Button
   ========================= */

.btn-transform {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all .4s ease, transform .25s ease;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .btn-transform:not(:disabled):hover {
        transform: scale(1.04);
    }
}

.btn-transform:active:not(:disabled) {
    transform: scale(0.95);
}

.primary-btn {
    --btn-gap: 10px;
    --btn-padding: 0 24px;
    --btn-width: auto;
    --btn-height: 56px;
    --btn-max-width: 100%;
    --btn-border-radius: 999px;
    --btn-border: 0;
    --btn-background: var(--orange);
    --btn-color: #ffffff;
    --btn-font-family: var(--font-onest);
    --btn-font-size: 16px;
    --btn-font-weight: 500;
    --btn-line-height: 1.2;
    --white-space: nowrap;
    --btn-transition: all 0.4s ease;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--btn-gap);
    padding: var(--btn-padding);
    width: var(--btn-width);
    height: var(--btn-height);
    max-width: var(--btn-max-width);
    border-radius: var(--btn-border-radius);
    border: var(--btn-border);
    background: var(--btn-background);
    color: var(--btn-color);
    font-family: var(--btn-font-family);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    line-height: var(--btn-line-height);
    white-space: var(--white-space);
    transition: var(--btn-transition);
    -webkit-tap-highlight-color: transparent;
}

.box-border {
    border-style: solid;
    border-color: #F2F2F2;
    border-top-width: 3px;
    border-right-width: 3px;
    border-left-width: 3px;
    border-bottom-width: 6px;
}

@media (hover: hover) and (pointer: fine) {
    .primary-btn:hover {
        --btn-background: var(--orange-hover);
    }
}

.primary-btn:active {
    --btn-background: var(--orange-active);
}

.close-modal {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background-color: #F3F3F3;
    -webkit-tap-highlight-color: transparent;
}

.close-modal img {
    width: 20px;
    height: 20px;
}

/* =========================
   Input
   ========================= */

.input {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #EBEDEF;
    outline: none;
    background: var(--bg);
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
}

.input::placeholder {
    color: #A7A8A8;
}

.input:focus {
    border-color: var(--orange);
}

/* =========================
   Textarea
   ========================= */

.textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    height: 128px;
    background: var(--bg);
    border: 1px solid #EBEDEF;
    resize: none;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
}

.textarea:focus,
.textarea:focus-visible {
    border-color: var(--orange);
    outline: 0;
}

/* =========================
   Label Checkbox
   ========================= */

.label-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox {
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.custom-checkbox {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--bg);
    border: 1px solid #A7A8A8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, border 0.4s ease;
    will-change: background, border;
}

.checkbox:checked+.custom-checkbox {
    background: var(--orange);
    border-color: var(--orange);
}

.checkbox+.custom-checkbox svg,
.checkbox+.custom-checkbox img {
    width: 14px;
    height: 14px;
    transition: transform .4s ease;
    transform: scale(0);
}

.checkbox:checked+.custom-checkbox svg,
.checkbox:checked+.custom-checkbox img {
    transform: scale(1);
}

.checkbox-text {
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

/* =========================
   Dropdown
   ========================= */

.dropdown-result {
    position: absolute;
    left: 0;
    right: 0;
    padding-top: 4px;
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.dropdown-result__container {
    background: var(--bg);
    border-radius: 20px;
    box-shadow: 0px 2.99px 10.47px 0px #14142B1A;
    border-top: 1px solid #F2F2F2;
    padding: 16px 12px 16px 16px;
}

.dropdown-result__content {
    padding-right: 8px;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--orange);
}

.dropdown-result__content::-webkit-scrollbar {
    width: 4px;
}

.dropdown-result__content::-webkit-scrollbar-track {
    background-color: var(--border);
    border-radius: 999px;
}

.dropdown-result__content::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 999px;
}

.dropdown-result__content::-webkit-scrollbar-track-piece {
    background: var(--border);
    border-radius: 999px;
}

.dropdown-result__option {
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 100px;
    background: transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.2;
    font-size: 16px;
    font-family: var(--font-onest);
    color: #A7A8A8;
    transition: background 0.4s ease;
    word-break: break-word;
}

.dropdown-result__option:hover {
    background: var(--border);
}

.dropdown-result__option.is-active {
    background: var(--border);
}

/* =========================
   Breakpoints
   ========================= */

@media (max-width: 1280px) {
    .title-section {
        --title-fs: 34px;
    }
}

@media (max-width: 768px) {
    .title-section {
        --title-fs: 24px;
    }

    .text--mobile {
        font-size: 16px;
    }

    .section__header {
        gap: 8px;
    }

    .resp-desktop {
        display: none;
    }

    .resp-mobile {
        display: block;
    }
}

/* =========================
    404
    ========================= */

.not-found {
    --nf-pt: 48px;
    --nf-pb: 96px;
    --size-404: 200px;

    position: relative;
}

.not-found__container {
    position: relative;
    padding-top: var(--nf-pt);
    padding-bottom: var(--nf-pb);
    align-items: center;
}

.not-found__flower {
    position: absolute;
    width: auto;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.not-found__flower.outside--container:nth-child(1) {
    bottom: -20px;
    left: 12px;
}

.not-found__flower.outside--container:nth-child(2) {
    bottom: -82px;
    right: 38px;
}

.not-found__flower.inside--container:nth-child(1) {
    top: 0;
    left: 85px;
}

.not-found__flower.inside--container:nth-child(2) {
    bottom: calc(var(--nf-pb) + 36px);
    left: 155px;
}

.not-found__flower.inside--container:nth-child(3) {
    top: 24px;
    right: 148px;
}

.not-found__flower.inside--container:nth-child(4) {
    bottom: calc(var(--nf-pb) + 40px);
    right: 164px;
}

.not-found__titles {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found__titles .title-section {
    font-family: var(--font-onest);
    font-size: var(--size-404);
    line-height: var(--size-404);
    color: transparent;
    -webkit-text-stroke: 1.5px #FF6B00;
}

.not-found__titles .title-section.duplicate {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translate(-50%);
}

.not-found__content {
    gap: 16px;
    align-items: center;
}

.not-found__content__info {
    max-width: 480px;
    gap: 8px;
    text-align: center;
}

.not-found__content__info .title {
    font-family: var(--font-onest);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.not-found__content__info .text {
    color: #747474;
    font-size: 16px;
}

.not-found__btn {
    --btn-padding: 14px 32px;
    --btn-border-radius: 100px;
}

@media screen and (max-width: 1024px) {

    .not-found__flower.outside--container:nth-child(1),
    .not-found__flower.outside--container:nth-child(2) {
        display: none;
    }

    .not-found__flower.inside--container {
        width: 64px;
        height: 64px;
    }

    .not-found__flower.inside--container:nth-child(1) {
        top: 0;
        left: -17px
    }

    .not-found__flower.inside--container:nth-child(2) {
        left: -23px;
        top: 111px;
        bottom: auto;
    }

    .not-found__flower.inside--container:nth-child(3) {
        top: 7px;
        right: -23px;
    }

    .not-found__flower.inside--container:nth-child(4) {
        right: -40px;
        top: 92px;
        bottom: auto;
    }
}

@media screen and (max-width: 768px) {
    .not-found {
        --nf-pt: 32px;
        --nf-pb: 32px;
        --size-404: 128px;
    }

    .not-found__container {
        gap: 16px;
    }

    .not-found__content__info .title {
        font-size: 24px;
    }

    .not-found__content__info .text {
        font-size: 16px;
    }

    .not-found__content {
        gap: 20px;
    }

    .not-found__content__info {
        gap: 16px;
    }

    .not-found__btn {
        --btn-width: 100%;
    }
}

/* partial-header */
/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
}

.header-container {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 11;
    transition: all .4s;
}

.header-main {
    border-top: 2px solid var(--main-black);
    padding-top: 0;
    padding-bottom: 0;
}

.header-main-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    display: inline-flex;
    font-family: var(--font-sf-pro-display);
}

.brand a {
    display: inline-block;
    color: inherit;
    text-transform: uppercase;
}

.brand-bo {
    color: var(--orange);
}

.brand.header-brand {
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    color: var(--black);
}

.brand.header-brand.mobile {
    display: none;
    font-weight: 600;
}

.header-top-list {
    display: flex;
    gap: 24px;
}

.header-top-list .header-list-item,
.header-top-meta .header-language {
    position: relative;
}

.header-top-list .header-item-title,
.header-top-meta .header-language .language-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.header-top-meta .header-language .language-title {
    font-family: var(--font-sf-pro-display);
    font-weight: 500;
    gap: 6px;
}

.header-top-list .header-item-title-icon,
.header-top-meta .header-language .title-icon {
    display: flex;
    align-items: center;
    width: 17px;
    height: 9px;
}

.header-top-list .header-item-title-icon img,
.header-top-meta .header-language .title-icon img {
    width: 100%;
    height: 100%;
    transition: 0.4s;
}

.header-top-meta .header-language .language-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-top-meta .header-language .language-code {
    color: inherit;
    flex: 0 0 auto;
    font: inherit;
    letter-spacing: normal;
}

.header-top-list .header-list-item:hover .header-item-title-icon img,
.header-top-meta .header-language.show .title-icon img {
    transform: rotate(180deg);
}

.header-top-list .dropdown-block,
.header-top-meta .header-language .dropdown-block {
    width: 320px;
    padding-top: 15px;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    z-index: 4;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.header-top-meta .header-language .dropdown-block {
    width: 175px;
}

.header-top-list .header-list-item:hover .dropdown-block,
.header-top-meta .header-language.show .dropdown-block {
    opacity: 1;
    visibility: visible;
}

.header-top-list .dropdown-container,
.header-top-meta .header-language .dropdown-container {
    border-radius: 12px;
    border: 1px solid #E4E7EC;
    background-color: #FFFFFF;
    overflow: hidden;
}

.header-top-meta .header-language .dropdown-container {
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}

.header-top-list .dropdown-list,
.header-top-meta .header-language .dropdown-list {
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 330px;
    overflow: auto;
}

.header-top-list .dropdown-item-link,
.header-top-meta .header-language .dropdown-item-link {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #242526;
    padding: 10px 16px;
    transition: 400ms;
}

.header-top-meta .header-language .dropdown-item-link {
    text-transform: uppercase;
}

.header-top-meta .header-language .dropdown-list {
    padding-top: 8px;
    padding-bottom: 8px;
}

.header-top-list .dropdown-item-link .check-icon,
.header-top-meta .header-language .dropdown-item-link .check-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    opacity: 0;
    transition: .4s;
}

/* Hover-ефекти — тільки для пристроїв з hover (desktop) */
@media (hover: hover) and (pointer: fine) {

    .header-top-list .dropdown-item-link:hover,
    .header-top-meta .header-language .dropdown-item-link:hover {
        background: #F9FAFB;
    }

    .header-top-list .dropdown-item-link:hover .check-icon,
    .header-top-meta .header-language .dropdown-item-link:hover .check-icon {
        opacity: 1;
    }
}

.header-top-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: 0.4s;
}

.header-top-meta .back-to-exams {
    color: var(--black);
    position: relative;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.header-top-meta .back-to-exams .underline {
    position: absolute;
    width: 100%;
    height: 1.5px;
    top: 100%;
    background-color: var(--black);
}

.header-top-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-top-buttons .log-in-btn,
.header-top-buttons .prices-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9.2px 16px;
    border: 1px solid var(--black);
    border-radius: 999px;
    color: var(--black);
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
}

.header-top-buttons .prices-btn {
    padding: 13px 16px;
    border: 0;
    background-color: var(--orange);
    color: var(--bg);
    transition: 0.4s ease;
}

.header-top-buttons .log-in-icon {
    width: 20px;
    height: 20px;
}

.header-top-buttons .prices-btn:hover {
    background-color: var(--orange-hover);
}

.close-mobile-menu {
    display: none;
}

.header-main-bottom {
    background: #F3F3F3;
}

.header-main-bottom-container {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-main-bottom-container .additional-nav {
    margin-left: auto;
}

.header-main-bottom-container .certificates-nav {
    margin-left: auto;
}

.header-bottom-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-list {
    gap: 16px;
}

.certificates-list {
    gap: 8px;
}

.header-bottom-list .item-link {
    color: var(--black);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.certificates-list .item-link {
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--bg);
}

.mobile-menu {
    display: none;
    opacity: 0;
    background: var(--bg);
    visibility: hidden;
    width: 100%;
    min-height: 100%;
    transition: all .4s;
    position: fixed;
    inset: 0 0 0 auto;
    overflow: auto;
    z-index: 10;
    pointer-events: none;
}

.menu-language-level {
    display: none;
    opacity: 0;
    background: #2A1C1466;
    visibility: hidden;
    width: 100%;
    min-height: 100%;
    transition: all .4s;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 11;
    pointer-events: none;
}

@media (max-width: 1140px) {
    .header-main {
        background: #F3F3F3;
        border-bottom: 1px solid #EBEDEF;
        overflow-x: clip;
    }

    .header-top-list,
    .header-top-meta .back-to-exams,
    .header-top-buttons .log-in-btn,
    .header-main-bottom {
        display: none;
    }

    .header-top-meta.mobile-menu-open {
        transform: translateX(calc(100% - (92px)));
    }

    .header-top-buttons .prices-btn.hide {
        opacity: 0;
        visibility: hidden;
        user-select: none;
        pointer-events: none;
    }

    .close-mobile-menu {
        position: absolute;
        right: -40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: transparent;
        border: 0.82px solid var(--orange);
        border-radius: 50%;
    }

    .close-mobile-menu.show {
        right: 16px;
    }

    .mobile-menu,
    .menu-language-level {
        display: block;
        padding: 84px 0 62px;
    }

    .mobile-menu.show,
    .menu-language-level.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-menu .container {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu .block-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .mobile-menu .block-item-1 {
        gap: 12px;
    }

    .mobile-menu .block-item-1 a {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
        color: var(--black);
    }

    .mobile-menu .block-item-1 .log-in-btn,
    .mobile-menu .block-item-1 .prices-btn {
        border-radius: 999px;
        border-width: 1px;
        border-style: solid;
    }

    .mobile-menu .block-item-1 .prices-btn {
        padding: 11px;
        background-color: var(--orange);
        border-color: var(--orange);
        color: var(--bg);
    }

    .mobile-menu .block-item-1 .log-in-btn {
        padding: 10px;
        gap: 8px;
        background-color: var(--bg);
        border-color: var(--black);
    }

    .mobile-menu .block-item-1 .log-in-btn img {
        width: 20px;
        height: 20px;
    }

    .mobile-menu .block-item-1 .back-to-exams {
        width: auto;
        position: relative;
        font-weight: 600;
        margin: 9px 0;
    }

    .mobile-menu .block-item-1 .back-to-exams .underline {
        position: absolute;
        width: 100%;
        height: 1.5px;
        top: 100%;
        background-color: var(--black);
    }

    .mobile-menu .block-item-2 {
        align-items: flex-start;
        flex-direction: row;
    }

    .mobile-menu .block-item-2 .list-items {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-menu .block-item-2 .item-title {
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 6px 0;
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
    }

    .mobile-menu .block-item-2 .item-title-icon {
        display: flex;
        width: 16px;
        height: 8px;
    }

    .mobile-menu .block-item-2 .item-title-icon img {
        height: 100%;
    }

    .mobile-menu .block-item-2 .dropdown-block {
        transition: all .4s;
        height: 0;
        overflow: hidden;
    }

    .mobile-menu .block-item-2 .dropdown-block-container {
        padding-top: 10px;
    }

    .mobile-menu .block-item-2 .dropdown-block .dropdown-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu .block-item-2 .dropdown-block .dropdown-item-link {
        display: inline-flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: #242526;
        padding: 10px 16px;
        transition: 400ms;
    }

    .mobile-menu .block-item-2 .dropdown-block .dropdown-item.active .dropdown-item-link {
        background: #F9FAFB;
    }

    .mobile-menu .block-item-2 .dropdown-block .dropdown-item-link .check-icon {
        width: 16px;
        height: 16px;
        display: inline-flex;
        opacity: 0;
        transition: .4s;
    }

    .mobile-menu .block-item-2 .dropdown-block .dropdown-item.active .check-icon {
        opacity: 1;
    }

    .mobile-menu .block-item-3 {
        padding: 0;
        margin: 0;
        list-style: none;
        gap: 0;
    }

    .mobile-menu .block-item-3 .item,
    .mobile-menu .block-item-3 .item .item-link {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .mobile-menu .block-item-3 .item-link {
        display: inline-flex;
        padding: 6px 0;
        color: var(--black);
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
    }

    .mobile-menu .block-item-4 {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
        gap: 8px;
        list-style: none;
    }

    .mobile-menu .block-item-4 .item-link {
        display: inline-flex;
        padding: 4px 12px;
        border-radius: 999px;
        background: #EBEDEF;
        color: var(--black);
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
    }

    .mobile-menu .divider {
        border-bottom: 1px solid #EBEDEF;
    }

    .menu-language-level {
        display: flex;
        align-items: flex-end;
    }

    .menu-language-level .container {
        position: relative;
        max-width: none;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 19px;
        background-color: var(--bg);
        border-top-left-radius: 28px;
        border-top-right-radius: 28px;
        transform: translateY(100%);
        transition: all .4s;
    }

    .menu-language-level.show .container {
        transform: translateY(0);
    }

    .menu-language-level .title {
        font-family: var(--font-onest);
        font-size: 26px;
        font-weight: 600;
        line-height: 1;
        color: var(--black);
    }
}

@media (max-width: 768px) {
    .brand.header-brand {
        font-size: 18px;
    }

    .brand a {
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

    .brand.header-brand .brand-bo {
        font-size: 19px;
    }

    /* .brand.header-brand.mobile {
        display: inline-flex;
    } */

    .header-top-meta {
        gap: 8px;
    }

    .header-top-buttons .prices-btn {
        padding: 10px 12px;
        font-size: 16px;
    }

    .mobile-menu {
        padding-top: 77px;
    }

    .mobile-menu-container {
        padding: 16px;
    }
}

/* partial-footer */
/* Footer */
.site-footer {
    --footer-surface: #2C2C2C;
    --footer-border: #FFFFFF1F;
    --footer-divider: #DDE3E91A;
    --footer-link: #BBBBBB;

    padding-top: 40px;
    background: var(--black);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.site-footer .footer-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

/* common */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* lists */
.site-footer .list-block-title {
    margin-bottom: 14px;
    color: var(--bg);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.site-footer .list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer .list-item-link {
    color: var(--footer-link);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

/* dropdowns */
.site-footer .dropdown-lists-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-footer .dropdown-lists-block .list-block {
    position: relative;
}

.site-footer .dropdown-lists-block .title {
    width: 120px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    padding: 12px 16px;
    border-radius: 14px;

    background: var(--footer-surface);
    border: 1px solid var(--footer-border);

    font-family: var(--font-sf-pro-display);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: var(--bg);
}

.site-footer .dropdown-lists-block .language-title {
    text-transform: uppercase;
}

.site-footer .dropdown-lists-block .title-icon {
    width: 16px;
    height: 8px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 16px;
}

.site-footer .dropdown-lists-block .title-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s;
}

.site-footer .dropdown-lists-block .list-block.show .title-icon img {
    transform: rotate(180deg);
}

.site-footer .dropdown-lists-block .dropdown-block {
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 2px;
    z-index: 4;

    visibility: hidden;
    opacity: 0;
}

.site-footer .dropdown-lists-block .list-block.language .dropdown-block {
    width: 100%;
    right: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.site-footer .dropdown-lists-block .list-block.show .dropdown-block {
    visibility: visible;
    opacity: 1;
}

.site-footer .dropdown-lists-block .dropdown-container {
    border-radius: 12px;
    border: 1px solid var(--footer-border);
    background: var(--footer-surface);
    overflow: hidden;
}

.site-footer .dropdown-lists-block .dropdown-list {
    max-height: 320px;
    overflow: auto;
}

.site-footer .dropdown-lists-block .dropdown-item-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 16px;
    color: var(--bg);
    transition: background 0.4s, color 0.4s;
}

.site-footer .dropdown-lists-block .list-block.language .dropdown-item-link {
    text-transform: uppercase;
}

.site-footer .dropdown-lists-block .list-block.language .language-code {
    color: inherit;
    flex: 0 0 auto;
    font: inherit;
    letter-spacing: normal;
}

.site-footer .dropdown-lists-block .check-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    opacity: 0;
    transition: opacity 0.4s;
}

@media (hover: hover) and (pointer: fine) {
    .site-footer .dropdown-lists-block .dropdown-item-link:hover {
        background: #3d3d3d;
    }

    .site-footer .dropdown-lists-block .dropdown-item-link:hover .check-icon {
        opacity: 1;
    }
}

/* brand & bottom */
.site-footer .footer-block-2 .brand {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer .footer-block-3 {
    padding: 32px 0;
    align-items: center;
    border-top: 1px solid var(--footer-divider);
}

.site-footer .footer-block-3 .text {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #FFFFFF66;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

/* breakpoints */
@media (max-width: 1140px) {
    .site-footer {
        padding-top: 24px;
        padding-bottom: 63px;
    }
}

@media (max-width: 768px) {
    .site-footer .container {
        gap: 21px;
    }

    .site-footer .footer-block-1 {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    }

    .site-footer .footer-block-1 .list-block.company { order: 2; }
    .site-footer .footer-block-1 .list-block.legal-information { order: 3; }
    .site-footer .footer-block-1 .socials { order: 4; }

    .site-footer .footer-block-1 .dropdown-lists-block {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        order: 1;
    }

    .site-footer .footer-block-1 .list-block.company,
    .site-footer .footer-block-1 .list-block.legal-information {
        text-align: center;
    }

    .site-footer .dropdown-lists-block .title {
        width: 156px;
        font-size: 16px;
    }

    .site-footer .footer-block-3 {
        padding: 24px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* partial-tab-bar */
/* Tab bar styles */
.tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 13;
    padding: 4px 12px;
    background: var(--bg);
    border-top: 1px solid #EBEDEF;
}

.tab-bar-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    transition: all .4s;
    word-break: break-word;
    padding-inline: 0px;
}

.tab-bar-btn-1,
.tab-bar-btn-4 {
    max-width: 68px;
}

.tab-bar-btn-2,
.tab-bar-btn-3 {
    flex: 1 1 0;
    border-width: 1px;
    border-style: solid;
    padding: 6px;
    max-width: none;
}

.tab-bar-btn-2 {
    border-color: var(--violet);
    background-color: var(--violet);
    border-radius: 999px;
}

.tab-bar-btn-3 {
    border-color: var(--orange);
    background-color: var(--orange);
    border-radius: 999px;
}

.tab-bar-btn-2:hover,
.tab-bar-btn-3:hover {
    background-color: var(--bg);
}

.tab-bar-btn svg {
    width: 24px;
    height: 24px;
}

.tab-bar-btn .log-in-icon {
    width: 24px;
    height: 24px;
}

.tab-bar-btn-text {
    font-family: var(--font-onest);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #2A1C14;
    transition: all .4s;
    text-align: center;
}

.tab-bar-btn-2 .tab-bar-btn-text,
.tab-bar-btn-3 .tab-bar-btn-text {
    color: var(--bg)
}

.tab-bar-btn-2:hover .tab-bar-btn-text {
    color: var(--violet);
}

.tab-bar-btn-3:hover .tab-bar-btn-text {
    color: var(--orange);
}

.tab-bar-btn-1:hover .tab-bar-btn-text,
.tab-bar-btn-4:hover .tab-bar-btn-text {
    color: #9F9995;
}

.tab-bar-btn svg path {
    transition: all .4s;
}

.tab-bar-btn-1:hover svg path,
.tab-bar-btn-4:hover svg path {
    stroke: #9F9995;
}

.tab-bar-btn-2:hover svg path {
    stroke: var(--violet);
}

.tab-bar-btn-3:hover svg path {
    stroke: var(--orange);
}

@media (max-width: 1140px) {
    .tab-bar {
        display: flex;
    }
}

@media screen and (max-width: 500px) {
    .tab-bar-btn-2,
    .tab-bar-btn-3 {
        max-width: 100%;
    }
}

/* partial-breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
}

.breadcrumbs__list {
    display: flex;
    white-space: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.breadcrumbs__list::-webkit-scrollbar {
    display: none;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 3px 0;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "";
    background: var(--muted);
    width: 4px;
    height: 4px;
    border-radius: 99px;
}

.breadcrumbs__link,
.breadcrumbs__current {
    text-decoration: none;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.breadcrumbs__link {
    position: relative;
    transition: all 0.4s;
}

.breadcrumbs__link::after {
    content: "";
    background-color: var(--muted);
    border-bottom: 2px solid var(--muted);
    transform-origin: center;
    width: 100%;
    transition: all 0.4s;
    position: absolute;
    bottom: -1px;
    left: 0;
    transform: scaleX(0);
}

@media (hover: hover) and (pointer: fine) {
    .breadcrumbs__link:hover::after {
        transform: scaleX(1);
    }
}

/* component-socials */
/* =========================
   Socials component
   ========================= */

.socials {
    --soc-gtc: repeat(2, minmax(0, 1fr));
    --soc-il-bg: #2C2C2C;
    --soc-title-tc: var(--bg);
    --soc-text-tc: var(--bg);
    --soc-con-width: auto;

    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: var(--soc-gtc);
    gap: 12px;
    width: var(--soc-con-width);
}

.socials--section {
    --soc-gtc: repeat(3, minmax(0, 1fr));
    --soc-il-bg: #F3F3F3;
    --soc-title-tc: var(--text);
    --soc-text-tc: var(--gray);
    --soc-con-width: 474px;
    align-self: center;
}

.socials--section .social-item {
    max-width: 100%;
}

/* item */
.social-item {
    max-width: 150px;
}

/* link card */
.social-item-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;
    border-radius: 12px;

    background: var(--soc-il-bg);
    color: inherit;
    text-decoration: none;

    transition: transform 0.4s;
    will-change: transform;
}

.social-item-link:hover {
    transform: scale(1.04);
}

/* icon */
.social-item-link .icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.social-item-link .icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* info */
.social-item-link .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.social-item-link .title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--soc-title-tc);
}

.social-item-link .text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--soc-text-tc);
    font-family: var(--font-serif);
}

/* Author variant */
.socials--author {
    --soc-gtc: repeat(3, minmax(0, 1fr));
    --soc-il-bg: #F3F3F3;
    --soc-title-tc: var(--text);
    --soc-con-width: 100%;
    max-width: 700px;
}

.socials--author .social-item {
    max-width: 100%;
}

.socials--author .social-item-link {
    justify-content: space-between;
}

.socials--author .social-item-link .text {
    display: none;
}

.socials--author .social-item-link::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url('/assets/img/svg/arrow-hyper.svg') center / contain no-repeat;
    flex-shrink: 0;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .socials {
        width: 100%;
        max-width: 328px;
        margin: 0 auto;
    }

    .social-item {
        max-width: none;
    }

    .socials--section {
        --soc-gtc: repeat(2, minmax(0, 1fr));
    }
}

/* component-level-cards */
/* =========================
    Level Cards (component)
    ========================= */

.level-cards{
    /* defaults (base) */
    --lc-gap: 8px;
    --lc-col-min: 142px;
    --lc-col-max: 142px;
    --lc-just-cont: center;

    --card-padding: 3px 3px 6px;
    --card-radius: 12px;
    --card-border-bg: var(--border);

    --inner-padding: 13px 15px 16px;
    --inner-gap: 8px;
    --inner-bg: var(--bg);

    --title-size: 40px;
    --subtitle-size: 16px;

    --link-size: 40px;
    --link-bg: var(--orange);
    --link-bg-hover: var(--orange-hover);

    display: grid;
    gap: var(--lc-gap);

    grid-template-columns: repeat(auto-fit, minmax(var(--lc-col-min), var(--lc-col-max)));
    align-items: start;
    justify-content: var(--lc-just-cont);
}

.level-card__wrapper__link{
    display: flex;
    color: var(--text);
}

.level-card{
    background: var(--card-border-bg);
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    min-width: 0;
    width: 100%;
    cursor: pointer;
}

.level-card__inner{
    background: var(--inner-bg);
    padding: var(--inner-padding);
    border-radius: calc(var(--card-radius) - 2px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--inner-gap);
    position: relative;
    min-width: 0;
    height: 100%;
    justify-content: center;
}

.level-card__title{
    font-size: var(--title-size);
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1;
}

.level-card__subtitle{
    font-size: var(--subtitle-size);
    color: var(--muted);
}

.level-card__read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.level-card__read-time img {
    width: 22px;
    height: 22px;
}

.level-card__read-time__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #A7A8A8;
}

.level-card__link{
    width: var(--link-size);
    height: var(--link-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--link-bg);
    border-radius: 999px;
    margin-top: 19px;
}

.level-card__link:hover{
    background: var(--link-bg-hover);
}

.level-card__icon{
    width: 12px;
    height: 12px;
}

.level-card__flower{
    position: absolute;
    top: -16px;
    right: -16px;
    width: 62px;
    height: 62px;
    pointer-events: none;
}

.level-card{ --card-hover-bg: var(--green-hover); }
.level-card--green{ --card-hover-bg: var(--green-hover); }
.level-card--yellow{ --card-hover-bg: var(--yellow-hover); }
.level-card--pink{ --card-hover-bg: var(--pink-hover); }
.level-card--blue{ --card-hover-bg: var(--light-blue-hover); }
.level-card--light-pink{ --card-hover-bg: var(--light-pink-hover); }
.level-card--orange{ --card-hover-bg: var(--light-orange-hover); }

.level-card:hover {
    background: var(--card-hover-bg);
}

/* =========================
    Variants
    ========================= */

.level-cards--hero{
    --lc-col-min: 142px;
    --lc-col-max: 142px;
}

.level-cards--compact{
    --lc-col-min: 142px;
    --lc-col-max: 1fr;
    --title-size: 34px;
    --inner-padding: 12px 14px 14px;
    grid-template-columns: repeat(2, minmax(var(--lc-col-min), var(--lc-col-max)));
}

.level-cards--section{
    --lc-col-min: 234px;
    --lc-col-max: 234px;
    --lc-gap: 16px;
    --lc-just-cont: center;
}

/* =========================
    Responsive
    ========================= */

@media (max-width: 1024px){
    .level-cards{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        --lc-col-min: 0px;
        --lc-col-max: 1fr;
    }

    .level-cards--section{
        --lc-gap: 8px;
    }

    .level-card__inner{
        --inner-gap: 10px;
    }

    .level-card__link{
        margin-top: 0;
    }
}

/* component-modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: #00000066;
    cursor: pointer;
    z-index: 0;
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--bg);
    border-radius: 16px;
    padding: 32px;
    outline: none;
    transition: transform 0.4s ease;
}

.exercise-ai-error-modal__dialog {
    max-width: 420px;
}

.exercise-ai-error-modal__title {
    margin: 0 40px 12px 0;
    font-family: var(--font-onest);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--main-black);
}

.exercise-ai-error-modal__text {
    margin: 0 0 24px;
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--dark-gray);
}

.exercise-ai-error-modal__button.primary-btn {
    --btn-width: 100%;
    --btn-height: 48px;
}

.free-access-modal__dialog {
    max-width: 460px;
}

.free-access-modal__title {
    margin: 0 40px 20px 0;
    color: var(--main-black);
    font-family: var(--font-onest);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.free-access-modal__list {
    display: grid;
    gap: 0;
    margin: 0 0 24px;
    padding-left: 22px;
    color: var(--main-black);
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.free-access-modal__list li::marker {
    color: var(--orange);
}

.free-access-modal__list strong {
    color: var(--orange);
    font-weight: 600;
}

.free-access-modal__action.primary-btn {
    --btn-width: 100%;
    --btn-height: 48px;
}

#paywall-limit-modal .modal__backdrop {
    backdrop-filter: blur(8px);
}

.paywall-limit-modal__dialog {
    max-width: 420px;
    padding: 24px;
    background: #ffffff;
    border-radius: 24px;
}

.paywall-limit-modal__title {
    font-family: var(--font-onest);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #191919;
    margin: 0 32px 14px 0;
}

.paywall-limit-modal__text {
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #A7A8A8;
    margin: 0 0 16px;
}

.paywall-limit-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paywall-limit-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.paywall-limit-modal__btn--primary {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: #ffffff;
}

.paywall-limit-modal__btn--secondary {
    background: transparent;
    border: 1px solid #EBEDEF;
    color: var(--orange);
    font-size: 14px;
}

.paywall-limit-modal__btn:hover {
    transform: scale(1.02);
}

@media screen and (max-width: 768px) {
    .modal {
        align-items: flex-end;
    }

    .modal > .modal__dialog[data-modal-dialog] {
        max-width: none;
        max-height: 85vh;
        border-radius: 28px 28px 0 0 !important;
        padding: 24px 16px;
        overflow: auto;
        width: 100%;
    }

    .modal.is-hidden .modal__dialog {
        transform: translateY(110%);
    }

    .paywall-limit-modal__dialog {
        max-width: none;
        padding: 20px 16px;
    }

    .paywall-limit-modal__title {
        font-size: 18px;
    }

    .free-access-modal__title {
        font-size: 20px;
    }

    .free-access-modal__list {
        font-size: 16px;
    }
}

/* component-provider-selection-modals */
.modal__dialog.home-selection-modal__dialog {
    max-width: 620px;
}

.modal__dialog.home-selection-modal__dialog--compact {
    max-width: 432px;
}

.home-selection-modal__title {
    max-width: 470px;
    margin: 0 40px 14px 0;
    color: var(--main-black);
}

.home-selection-modal__cards.level-cards--modal {
    --lc-gap: 8px;
    --inner-padding: 16px;
    --title-size: 22px;
    --subtitle-size: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

@media (min-width: 421px) {
    .home-selection-modal__cards.level-cards--modal.level-cards--count-1,
    .home-selection-modal__cards.level-cards--modal.level-cards--count-2,
    .home-selection-modal__cards.level-cards--modal.level-cards--count-3,
    .home-selection-modal__cards.level-cards--modal.level-cards--count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-inline: auto;
    }
}

.home-selection-modal__cards .level-card__wrapper__link,
.home-selection-modal__cards .level-card {
    height: 100%;
}

.home-selection-modal__cards .level-card__wrapper__link[hidden] {
    display: none !important;
}

.home-selection-modal__cards .level-card__title {
    padding-right: 30px;
}

.home-selection-modal__cards .level-card__flower {
    top: -12px;
    right: -12px;
    width: 42px;
    height: 42px;
}

@media (max-width: 768px) {
    .home-selection-modal__title {
        max-width: 320px;
    }
}

@media (max-width: 520px) {
    .home-selection-modal__cards.level-cards--modal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* component-live-chat */
.live-chat {
    --live-chat-bottom: 24px;
    position: fixed;
    right: 24px;
    bottom: calc(var(--live-chat-bottom) + env(safe-area-inset-bottom));
    z-index: 900;
    font-family: var(--font-onest);
    pointer-events: none;
}

.live-chat [hidden] {
    display: none !important;
}

.live-chat__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    display: flex;
    width: min(400px, calc(100vw - 32px));
    height: min(620px, calc(100dvh - var(--live-chat-bottom) - 96px));
    max-height: 620px;
    overflow: hidden;
    flex-direction: column;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(42, 28, 20, 0.12);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transform-origin: right bottom;
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
}

.live-chat__panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.live-chat__header {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 9px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, #ff683d 0%, var(--orange) 78%);
}

.live-chat__heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.live-chat__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.live-chat__subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.live-chat__avatar {
    position: relative;
    display: inline-flex;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    color: var(--orange);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

.live-chat__avatar--header {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border: 0;
    font-size: 15px;
}

.live-chat__online-dot {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #2bc947;
}

.live-chat__messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 24px 16px 14px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(248, 86, 40, 0.45) transparent;
    scrollbar-width: thin;
}

.live-chat__message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.live-chat__message-row--user {
    justify-content: flex-end;
}

.live-chat__message {
    max-width: 254px;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.live-chat__message p {
    margin: 0 0 8px;
}

.live-chat__message ul,
.live-chat__message ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

.live-chat__message li + li {
    margin-top: 4px;
}

.live-chat__message blockquote,
.live-chat__message pre {
    margin: 0 0 8px;
}

.live-chat__message blockquote {
    padding-left: 8px;
    border-left: 2px solid rgba(248, 86, 40, 0.45);
}

.live-chat__message pre {
    overflow-x: auto;
    white-space: pre-wrap;
}

.live-chat__message code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.92em;
}

.live-chat__message > :last-child {
    margin-bottom: 0;
}

.live-chat__message a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.live-chat__message--assistant a {
    color: var(--orange);
}

.live-chat__message--assistant {
    border-bottom-left-radius: 0px;
    color: var(--gray-600);
    background: #FFDAD1;
}

.live-chat__message--user {
    border-bottom-right-radius: 0px;
    color: #fff;
    background: var(--orange);
}

.live-chat__onboarding {
    flex: 0 0 auto;
}

.live-chat__email-form {
    display: flex;
    width: 100%;
    max-width: 254px;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    border-bottom-left-radius: 0px;
    color: var(--gray-600);
    background: #FFDAD1;
}

.live-chat__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-chat__field-label {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.2;
}

.live-chat__field-label span {
    color: #d92d20;
}

.live-chat__input,
.live-chat__textarea {
    width: 100%;
    border: 1px solid var(--gray-25);
    outline: 0;
    color: var(--gray-800);
    background: #fff;
    font: inherit;
    transition: border-color 160ms ease;
}

.live-chat__input {
    height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 14px;
}

.live-chat__input:focus,
.live-chat__textarea:focus {
    border-color: var(--orange);
    box-shadow: none;
}

.live-chat__input::placeholder,
.live-chat__textarea::placeholder {
    color: var(--gray-200);
}

.live-chat__input {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-chat__textarea:placeholder-shown {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-chat__start-button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--orange);
    font: 500 14px/1 var(--font-onest);
}

.live-chat__start-button:hover {
    background: var(--orange-hover);
}

.live-chat__start-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.live-chat__composer {
    flex: 0 0 auto;
    padding: 16px;
    border-top: 1px solid var(--gray-25);
    background: #fff;
}

.live-chat__message-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.live-chat__textarea {
    height: 48px;
    min-height: 48px;
    max-height: 104px;
    resize: none;
    overflow-y: hidden;
    padding: 14px 16px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 20px;
}

.live-chat__textarea.is-multiline {
    border-radius: 16px;
}

.live-chat__textarea.is-scrollable {
    overflow-y: auto;
}

.live-chat__textarea:disabled {
    cursor: not-allowed;
    background: var(--gray-15);
}

.live-chat__send-button,
.live-chat__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
}

.live-chat__send-button {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.live-chat__send-button svg {
    width: 23px;
    height: 23px;
}

.live-chat__send-button:hover,
.live-chat__toggle:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
}

.live-chat__send-button:disabled {
    cursor: not-allowed;
    background: var(--orange-disabled);
    transform: none;
}

.live-chat__status {
    margin: 0 4px 8px;
    color: var(--gray-500);
    font-size: 11px;
    line-height: 1.3;
}

.live-chat__status:empty {
    display: none;
}

.live-chat__email-status {
    margin: 0 4px -2px;
}

.live-chat__status.is-error {
    color: #b42318;
}

.live-chat__toggle {
    position: relative;
    pointer-events: auto;
    width: 56px;
    height: 56px;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(248, 86, 40, 0.16);
}

.live-chat__toggle-icon {
    position: absolute;
    width: 26px;
    height: 26px;
    transition: opacity 160ms ease, transform 160ms ease;
}

.live-chat__toggle-icon--close {
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
}

.live-chat__toggle[aria-expanded="true"] .live-chat__toggle-icon--chat {
    opacity: 0;
    transform: rotate(45deg) scale(0.7);
}

.live-chat__toggle[aria-expanded="true"] .live-chat__toggle-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.live-chat__unread-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #2bc947;
}

.live-chat__typing {
    display: inline-flex;
    min-width: 52px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.live-chat__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    animation: live-chat-typing 1.1s infinite ease-in-out;
}

.live-chat__typing span:nth-child(2) {
    animation-delay: 140ms;
}

.live-chat__typing span:nth-child(3) {
    animation-delay: 280ms;
}

@keyframes live-chat-typing {
    0%,
    60%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .live-chat.live-chat--desktop-only {
        display: none !important;
    }
}

@media (max-width: 1140px) {
    .live-chat {
        --live-chat-bottom: 76px;
        right: 14px;
    }

    .live-chat__panel {
        height: min(620px, calc(100dvh - var(--live-chat-bottom) - 92px));
    }
}

@media (max-width: 480px) {
    .live-chat {
        display: flex;
        justify-content: flex-end;
        right: 12px;
        left: 12px;
    }

    .live-chat__panel {
        right: 0;
        left: 0;
        width: auto;
        bottom: 66px;
        border-radius: 24px;
    }

    .live-chat__header {
        min-height: 76px;
        padding: 14px;
    }

    .live-chat__messages {
        padding-top: 18px;
    }

    .live-chat__message {
        max-width: calc(100vw - 112px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-chat__panel,
    .live-chat__toggle-icon,
    .live-chat__send-button,
    .live-chat__toggle {
        transition: none;
    }

    .live-chat__typing span {
        animation: none;
    }
}
