/* Шрифты */
@font-face {
    font-family: 'PT Sans';
    src: url('/local/templates/main/fonts/PTSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/local/templates/main/fonts/PTSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: "Idealist Sans";
    src: url("/local/templates/main/fonts/Idealist.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Цвета и общие значения */
:root {
    --color-primary: #0f579a;
    --color-primary-hover: #3389b4;
    --color-secondary: #a05eb5;
    --color-light-bg: #f9f9f9;
    --color-border: #ededed;
    --color-text: #4d3651;
    --color-btn-primary: #8bb8e8;
    --color-btn-secondary-bg: transparent;
    --color-btn-secondary-border: #a05eb5;
    --color-btn-secondary-text: #926eab;

    /* Дополнительные цвета из кода */
    --color-shadow: rgba(0, 0, 0, 0.2);
    --color-bg-submenu: #eef4fc;
    --color-hover-submenu: #cee1fc;
    --color-bg-right-tab-item: #fff;
    --color-bg-simplebar-item-hover: #b3d4fc;
    --color-bg-footer-shadow: #00000014;
    --color-bg-socials-link: #3389b4;
    --color-bg-form-border: #80c5e8;
    --color-bg-form-border-hover: #53c9f4;
    --color-bg-mobile-menu-border: var(--color-btn-primary);
}

body{
    min-height: 100vh;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Кнопки */
.primary-button {
    background-color: var(--color-btn-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 1px #3389b4;
    font-family: 'PT Sans', sans-serif;
}

.primary-button:hover {
    background-color: var(--color-primary);
}

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

.primary-button:disabled {
    background: #ededed;
}

.primary-button {
    background-color: var(--color-btn-primary);
    color: #ffffff;
    border: none;
}

.primary-button:hover {
    background-color: var(--color-primary);
}

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

.primary-button:disabled {
    background-color: #ededed;
}

.secondary-button {
    border: 1px solid var(--color-btn-secondary-border);
    background-color: var(--color-btn-secondary-bg);
    color: var(--color-btn-secondary-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.secondary-button img {
    width: 20px;
    height: 20px;
}

.contact-button {
    font-size: 1rem;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 40px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 10px;
    font-family: 'PT Sans', sans-serif;

    .desktop-text {
        display: block;
    }
    .tablet-text {
        display: none;
    }
}

.contact-button span {
    font-family: 'PT Sans', sans-serif;
    text-wrap: nowrap;
}

/* Header */
.header {
    box-shadow: 0 2px 8px var(--color-shadow);
    display: flex;
    justify-content: center;
}

.header-wrapper {
    width: 100%;
    max-width: 1448px;
    display: grid;
    grid-template-columns: 175px auto;
    grid-template-rows: repeat(2, 64px);
    padding: 0 20px;
    column-gap: 30px;
}

/* Верхняя панель */
.header__top-tab {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
}

.logo {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
}

.logo img {
    width: 100%;
    max-width: 175px;
    height: 89px;
}

.header__phone-number {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 152px;
    flex-shrink: 0;
}

.header__phone-number a {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--color-primary);
    display: flex;
    gap: 6px;
    align-items: center;
}

.header__phone-number a:hover {
    color: var(--color-primary-hover);
}

.header__phone-number a img {
    width: 10px;
    height: 15px;
}

.header__phone-number p {
    padding-left: 16px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.header-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__links {
    display: flex;
    gap: calc(30px + 47 * (100vw - 560px) / 1360);
}

.header__search {
    display: flex;
    align-self: end;
    gap: 0;
    margin-left: 15px;
}

.header__search input,
.header__search button {
    transition: all 0.2s ease;
    max-height: 40px;
}

.header__search input:hover,
.header__search button:hover {
    border-color: var(--color-bg-form-border-hover);
}

.header__search input {
    background-color: transparent;
    border: 1px solid var(--color-bg-form-border);
    border-right: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    font-size: 18px;
    width: 100%;
    max-width: 170px;
    padding: 0 18px;
}

.header__search button {
    border: 1px solid var(--color-bg-form-border);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding: 11px 10px;
    cursor: pointer;
}

.header__search button img {
    width: 19px;
    height: 19px;
}

/* Нижняя панель */
.navigation {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    margin: 0 -5px;
}

.navigation-list {
    width: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-item {
    padding: 0 5px;
}

.navigation-item a {
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 5px;

    font-size: calc(.875rem + 4 * (100vw - 80rem) / 640);
    letter-spacing: 0.02em;
}

.navigation-item img {
    transition: transform 0.3s ease;
    opacity: 0.5;
    padding-top: 1px;
}

.navigation-item:hover > a > img {
    transform: rotate(180deg);
}

.services-submenu {
    position: absolute;
    width: 100%;
    left: 0;
    background-color: #b3d4fc;
    display: flex;
    justify-content: center;
}

.services-submenu__wrapper {
    width: 100%;
    max-width: 1400px;
}

.services-submenu__wrapper a {
    display: flex;
    gap: 5px;
}

.submenu {
    position: absolute;
    display: flex;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-submenu);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 0 50px;
    margin-top: 23px;
    gap: 10px;
}

.submenu-wrapper {
    width: 100%;
    max-width: 1448px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.submenu a {
    width: 19%;
    height: 66px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-inline: 15px;
}

.submenu a:hover {
    background-color: var(--color-bg-simplebar-item-hover);
}

.simplebar {
    min-height: 50vh;
    height: max-content;
    display: flex;
    justify-content: center;
    padding: 0;

}

.simplebar-wrapper {
    max-width: 1448px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.simplebar-item {
    height: 66px;
    font-size: calc(.875rem + 2 * (100vw - 35rem) / 1360);
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: calc(20px + 5 * (100vw - 560px) / 1360);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    padding-inline: 10px;

    a {
        padding-inline: 0;
        gap: calc(20px + 5 * (100vw - 560px) / 1360);
        display: flex;
        width: 100%;
        font-size: inherit;
        border-bottom: none;
        color: inherit;
    }
}

.simplebar-item img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background-color: var(--color-bg-right-tab-item);
    display: flex;
    justify-content: center;
    align-items: center;
}

.simplebar-item:hover {
    background-color: var(--color-bg-simplebar-item-hover);
}

.right-tab {
    max-height: 50vh;
    overflow-y: auto;
}

.left-tab {
    flex: 1;
}

.left-tab__content {
    display: none;
}

.left-tab__content.active {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 16px;
}

.left-tab__content.active li {
    flex: 0 0 calc(33.333% - 30px);
    height: 66px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    font-size: calc(.875rem + 2 * (100vw - 35rem) / 1360);
    color: #4d3651;
    padding-inline: 10px;
    cursor: pointer;
}

.left-tab__content.active li:hover {
    background-color: #b3d4fc;
}

.navigation-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    z-index: 100;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-switcher img {
    width: 12px;
    height: 18px;
}

.language-dropdown {
    border: none;
    background-color: transparent;
    color: var(--color-text);
    font-size: 14px;
    line-height: 142%;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: 'PT Sans', sans-serif;
}

.mobile-contact {
    display: none;
}

.burger-menu {
    display: none;
}

.burger-menu.active .burger-line:nth-child(2) {
    display: none;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0px, -2px);
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    height: 100vh;
    width: 95vw;
    display: block;
}

.mobile-menu.active .mobile-menu__navigation .mobile-menu__list {
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .mobile-menu__list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    padding-inline: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    cursor: pointer;
}

.mobile-menu.active .mobile-menu__list-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.mobile-menu.active .mobile-menu__list-item span img {
    width: 15px;
    height: 11px;
}

.mobile-menu.active .mobile-menu__list-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.tablet-button {
    display: none;
}

.header__contact-link {
    color: var(--color-primary);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.header__contact-link:hover {
    color: var(--color-primary-hover);
}

.eye-button {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    cursor: pointer;
}

.eye-button img {
    width: 28px;
    height: 15px;
}

.navigation-button {
    margin-left: calc(20px + 24 * (100vw - 560px) / 1360);
    width: 100%;
    max-width: 210px;
}

/* Footer */
.footer {
    box-shadow: 0 -4px 10px 0 var(--color-bg-footer-shadow);
    display: flex;
    justify-content: center;
    padding: calc(44px + 16 * (100vw - 560px) / 1360) 0 calc(38px + 36 * (100vw - 560px) / 1360) 0;
}

.footer-wrapper {
    width: 100%;
    max-width: 1448px;
    display: flex;
    flex-direction: column;
    padding-inline: 80px;
}

.footer__top-tab {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding: 0 0 35px 0;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    flex: 1;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 16px;
    max-width: 900px;
}

.footer-links li {
    flex: 1;
    height: 28px;
    font-size: calc(.875rem + 4 * (100vw - 35rem) / 1360);
    line-height: 28px;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.register-button {
    width: 336px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.footer__bottom-tab {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
}

.footer-title {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin-bottom: 24px;
}

.socials-list {
    display: flex;
    list-style: none;
    gap: 44px;
}

.socials-list a {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: var(--color-bg-socials-link);
    font-size: 14px;
    line-height: 142%;
    letter-spacing: 0.02em;
}

.socials-list a img {
    width: 32px;
    height: 32px;
}

.location {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: var(--color-bg-socials-link);
}

.location img {
    width: 25px;
    height: 32px;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form form {
    display: flex;
    gap: 0;
}

.form form input,
.form form button {
    transition: all 0.2s ease;
    height: 56px;
}

.form form input:hover,
.form form button:hover {
    border: 1px solid var(--color-bg-form-border-hover);
}

.form form input {
    background-color: transparent;
    border: 1px solid var(--color-bg-form-border);
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    border-right: none;
    padding: 18px 0 18px 8px;
}

.form form button {
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    border: 1px solid var(--color-bg-form-border);
    display: flex;
    align-items: center;
    padding: 11px 10px;
    cursor: pointer;
}

.form form button img {
    width: 19px;
    height: 19px;
}

/* Медиазапросы */
@media (max-width: 1280px) {
    .header {
        padding-inline: 20px;
    }

    .navigation {
        width: 100%;
        grid-column: 1/3;
    }

    .navigation-item a {
        font-size: 14px;
    }

    .contact-button {
        font-size: 16px;
        line-height: 1;

        .desktop-text {
            display: none;
        }

        .tablet-text {
            display: block;
        }
    }

    .header__phone-number {
        max-width: 135px;
    }
    .header__phone-number a,
    .header__phone-number p {
        font-size: 14px;
    }

    .header-buttons {
        gap: 14px;
    }

    .tablet-button {
        display: block;
    }

    .navigation-button {
        display: none;
    }

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

    .socials {
        grid-column: 1/3;
    }

    .socials-list {
        width: 100%;
        margin-bottom: 40px;
    }

    .socials-list li {
        flex: 1;
    }

    .form {
        justify-self: end;
    }

    .checkin-button {
        display: none;
    }

    .tablet-button {
        display: block;
    }

    .header__links {
        gap: 10px;
        justify-content: space-between;
    }

    .logo {
        height: 100%;
        grid-row: 1;
        border-bottom: 1px solid var(--color-border);
        padding: 12px 0 0 0;
    }

    .logo img {
        max-width: 115px;
        height: 100%;
    }

    .header-wrapper {
        gap: 0;
        grid-template-columns: 115px auto;
    }

    .header__search input {
        max-width: 160px;
    }

    .header__contact {
        gap: 15px;
    }

    .header__contact-link {
        margin-left: 4px;
    }

    .header__top-tab {
        padding-bottom: 22px;
        margin-left: 5px;
    }

    .header-wrapper {
        grid-template-rows: 80px 51px;
        padding: 0;
    }

    .header__phone-number img {
        display: none;
    }

    .header__phone-number a {
        font-size: 16px;
    }

    .header__phone-number p {
        padding: 0;
        font-size: 12px;
    }

    .header__phone-number {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .navigation-list {
        gap: 12px;
    }

    .logo-container {
        gap: 24px;
    }

    .footer-wrapper {
        padding-inline: 50px;
    }

    .footer__top-tab {
        flex-direction: column;
    }

    .footer-links {
        width: 100%;
    }

    .register-button {
        margin-top: 40px;
    }

    .contact-question {
        display: none;
    }

    .tablet-button {
        font-size: 16px;
        padding: 0 10px;
        height: 40px;
    }

    .header__contact-link {
        font-size: 14px;
    }

    .header__phone-number a {
        font-size: 13px;
    }

    .header__phone-number p {
        font-size: 12px;
    }

    .header__search input {
        max-width: 160px;
        width: 100%;
        font-size: 12px;
    }

    .header__phone-number {
        flex-shrink: 0;
        max-width: 110px;
    }

    .header__contact {
        gap: 30px;
        flex-shrink: 1;
    }
}

@media (max-width: 915px) {
    .header__search input {
        max-width: 35px;
        width: 100%;
    }

    .mobile-search input {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header-buttons,
    .navigation-list,
    .language-switcher {
        display: none;
    }

    .mobile-contact {
        display: block;
        width: 100%;
        height: 40px;
        max-width: 400px;
        font-size: 16px;
    }

    .header__phone-number a {
        font-size: 14px;
    }

    .header__phone-number p {
        font-size: 11px;
    }

    .header__phone-number {
        max-width: none;
    }

    .header__top-tab {
        display: flex;
        align-items: center;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .home-link {
        gap: 0;
    }

    .logo a p {
        max-width: 100px;
    }

    .burger-line {
        width: 22px;
        height: 1px;
        background-color: var(--color-secondary);
        transition: transform 0.2s ease;
    }

    .mobile-menu__top-tab {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .mobile-language-switcher {
        display: block;
    }

    .mobile-submenu__header {
        width: 100%;
    }

    .back-button {
        width: 100%;
    }

    .mobile-submenu__header a {
        display: block;
        width: 100%;
        font-size: 0.875rem;
        line-height: 20px;
        text-decoration: none;
        color: var(--color-primary);
        font-weight: 800;
        padding-block: 12px;
        border-bottom: 1px solid var(--color-bg-mobile-menu-border);
    }

    .back-button-subgroup,
    .back-button {
        background-color: transparent;
        border: none;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        font-size: 0.875rem;
        line-height: 20px;
        letter-spacing: .02em;
        color: var(--color-bg-mobile-menu-border);
        cursor: pointer;
        border-bottom: 1px solid var(--color-bg-mobile-menu-border);
        padding-block: 12px;
    }

    .back-button-subgroup img,
    .back-button img {
        width: 6px;
        height: 11px;
        transform: rotate(180deg);
    }

    .mobile-submenu__groups,
    .mobile-submenu__list {
        list-style: none;
        width: 100%;
    }

    .mobile-submenu__group-content li,
    .mobile-submenu__groups li,
    .mobile-submenu__list li {
        width: 100%;
        font-size: 0.875rem;
        line-height: 20px;
        padding-block: 12px;
        border-bottom: 1px solid var(--color-bg-mobile-menu-border);
    }

    .mobile-submenu__group-content ul {
        list-style: none;
    }

    .mobile-submenu__groups li a,
    .mobile-submenu__group-content li a,
    .mobile-submenu__list li a {
        text-decoration: none;
        color: var(--color-primary);
    }

    .footer-wrapper {
        padding-inline: 24px;
    }

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

    .footer-links li {
        font-size: 14px;
    }

    .register-button {
        width: 100%;
        height: 42px;
    }

    .location {
        grid-column: 1/3;
        margin-bottom: 30px;
    }

    .form {
        grid-column: 1/3;
        width: 100%;
        justify-self: flex-start;
    }

    .form form input {
        width: 100%;
        height: 42px;
    }

    .form form button {
        height: 42px;
    }

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

    .header__contact {
        display: none;
    }

    .navigation-button {
        display: block;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
        align-self: center;
    }

    .header__phone-number {
        flex-direction: column-reverse;

        p {
            color: #a6a6a6;
        }
    }

    .header-wrapper {
        grid-template-rows: 80px 65px;
        grid-template-columns: 89px auto;
    }

    .header {
        padding: 0 20px;
    }

    .logo {
        width: 89px;
    }
    .logo img {
        width: 89px;
        height: 45px;
    }
}

.contacts__icon-phone{
    fill:  #a05eb5;
    background:url("../images/phone.svg") 0% 0% /100% 100% no-repeat;
}
.contacts__icon-email{
    background:url("../images/mail.svg") 0% 0% /100% 100% no-repeat;
}

.contacts__icon-test{
    background:url("../images/test.svg") 0% 0% /100% 100% no-repeat;
}
.contacts__icon-calendar{
    background:url("../images/calendar.svg") 0% 0% /100% 100% no-repeat;

}
.charts-container {
    width: 100%;

    padding-inline: calc(10px + 5 * (100vw - 560px) / 1360);
    padding-bottom: calc(60px + 60 * (100vw - 560px) / 1360);
    background-color: #fcf8ff;
}

.chart__info,
.charts,
.legend {
    max-width: 1426px;
    margin: 0 auto;
}

.chart__info {
    display: flex;
    flex-direction: column;
    gap: calc(30px + 25 * (100vw - 560px) / 1360);
}

.info-title {
    line-height: calc(28px + 6 * (100vw - 560px) / 1360);
    font-size: calc(1.25rem + 4 * (100vw - 35rem) / 1360);
    font-weight: 700;
    letter-spacing: .02em;
    font-family: "Idealist Sans", Verdana, Helvetica, sans-serif;
    color: #4d3651;
}

.info-description {
    line-height: calc(26px + 2 * (100vw - 560px) / 1360);
    font-size: calc(1rem + 2 * (100vw - 35rem) / 1360);
    font-family: "Idealist Sans", Verdana, Helvetica, sans-serif;
    letter-spacing: .02em;
    color: #4d3651;
    max-width: 688px;
}
.charts {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-top: calc(35px + 35 * (100vw - 560px) / 1360);
}

.chart-container {
    padding-top: calc(20px + 25 * (100vw - 560px) / 1360);
    position: relative;
    width: 320px;
    height: auto;
    text-align: center;

    span {
        text-align: left;
        line-height: calc(27px + 1 * (100vw - 560px) / 1360);
        font-size: calc(1.0625rem + 1 * (100vw - 35rem) / 1360);
        letter-spacing: .02em;
        color: #4d3651;
        font-weight: 700;
        display: block;
        height: 68px;
        padding-bottom: 5px;
    }
}

.chart-container::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 10%;
    width: 80%;
    height: 55%;
    border: 1px solid #ecc3f8;
    border-radius: 100%;
}

canvas {
    width: 100%;
    height: 100%;
}
.chart-text,
.chart-text span {
    font-size: calc(2.125rem + 14 * (100vw - 80rem) / 640);
    line-height: calc(36px + 14 * (100vw - 1280px) / 640);
    color: #a05eb5;
    letter-spacing: .02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Idealist Sans", Verdana, Helvetica, sans-serif;
}

.chart-text span {
    display: inline-flex;
}

.chart-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);


    img {
        max-width: 64px;
        max-height: 49px;
        object-fit: contain;
    }
}

.subtext {
    line-height: calc(22px + 4 * (100vw - 560px) / 1360);
    font-size: calc(1.25rem + 4 * (100vw - 35rem) / 1360);
    color: #a05eb5;
    letter-spacing: .02em;
    font-family: "Idealist Sans", Verdana, Helvetica, sans-serif;
    margin-top: 8px;
}

.legend {
    display: flex;
    gap: 20px;
    font-size: calc(1rem + 2 * (100vw - 35rem) / 1360);
    line-height: calc(20px + 8 * (100vw - 560px) / 1360);
    color: #4d3651;
    letter-spacing: .02em;
    margin-top: calc(50px + 25 * (100vw - 560px) / 1360);
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-item:first-of-type {
    margin-right: calc(50px + 30 * (100vw - 560px) / 1360);
}

.legend-effects {
    margin-right: calc(10px + 8*(100vw - 560px)/1360)
}

.dot {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    margin-right: 5px;

}

.dot.purple {
    background: #a05eb5;
}
.dot.blue {
    background: #63c3ff;
}
.dot.pink {
    background: #ff63a7;
}


.page-title__link {
    color: #0f579a;
    -webkit-transition: color .15s ease-in;
    -o-transition: color ease-in .15s;
    transition: color .15s ease-in;
    font-family: PT Sans, Arial, sans-serif;
}

.page-title__link:hover {
    color: #3389b4;
}

.price_desc {
    display: block;
    color: #FFF;
    margin-top: calc(20px + 12 * (100vw - 560px) / 1360);
}

.header{
    position: relative;
    z-index: 1000;
}

.mobile-menu.active{
    display: block;

    top: 0;
    left: 0;

    width: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 9999;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.header-wrapper .mobile-menu{
    grid-column: auto;
    grid-row: auto;
}

@media (max-width: 768px){
    .header-wrapper{
        position: relative;
    }

    .mobile-menu{
        display: none;
    }

    .mobile-menu.active{
        inset: 0;
    }

    .header__top-tab {
        display: flex;
        align-items: center;
        gap: 30px;
        border-bottom: unset;
    }

    .header-wrapper {
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .logo {
        height: 89px;
        border-bottom: unset;
    }
    .navigation {
        border-top: 1px solid var(--color-border);
    }
    .mobile-menu__navigation {
        height: 1200px;
    }
}

.mobile-menu.active .mobile-menu__list-item{
    height: auto;
    min-height: 48px;
    padding: 12px 20px;
    gap: 12px;
}

.mobile-menu.active .mobile-menu__list-item a,
.mobile-menu.active .mobile-menu__list-item .mobile-menu__item-title{
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

/* базовый фикс прокрутки страницы */
html, body {
    height: auto !important;
    min-height: 100%;
}

body {
    display: block !important;
    justify-content: initial !important;
    overflow: auto !important;
}

/* когда меню открыто — прячем всё, кроме header (и самого меню) */
html.menu-open main,
html.menu-open footer,
html.menu-open .app {        /* если есть обертка контента */
    display: none !important;
}

/* меню становится обычным блоком */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
    width: 100%;
    background: #fff;
}

/* чтобы список был аккуратный */
.mobile-menu__navigation {
    padding-bottom: 24px;
    margin-bottom: 0;
}

.app {
    font-family: 'PT Sans', sans-serif;
}

@media (min-width: 560px) and (max-width: 1919px) {
    .submenu a {
        height: calc(62px + 6 * (100vw - 560px) / 1360);
    }
}
@media (min-width: 560px) and (max-width: 1919px) {
    .submenu a {
        padding-bottom: calc(6px + 2 * (100vw - 560px) / 1360);
    }
}
@media (min-width: 560px) and (max-width: 1919px) {
    .submenu a {
        padding-top: calc(6px + 2 * (100vw - 560px) / 1360);
    }
}
@media (min-width: 560px) and (max-width: 1919px) {
    .submenu a {
        line-height: calc(18px + 4 * (100vw - 560px) / 1360);
    }
}

@media (min-width: 560px) and (max-width: 1919px) {
    .submenu a {
        font-size: calc(.875rem + 2 * (100vw - 35rem) / 1360);
    }
}

.faq-detail-page__wrapper a {
    color: #0f579a;
    text-decoration: underline;
}
.faq-detail-page__wrapper a:hover {
    color: #3389b4;
}
