*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Roboto, sans-serif;
    color: rgba(57, 54, 54, 1);
    margin: 0;
}

body.noscroll {
    overflow: hidden;
    padding-right: var(--scrollbar-gap, 0px);
}

body.noscroll .header:not(.header--sticky) {
    padding-right: var(--scrollbar-gap, 0px);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    display: block;
    width: 100%;
}

input:focus {
    outline: none;
}

/* header */
.header {
    color: rgba(255, 255, 255, 1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    transition: background-color .2s ease-in-out;
}

.header.header--sticky {
    position: sticky;
    margin-bottom: 40px;
}

.header.header--white,
.header.header--opened-menu {
    color: #000;
    background-color: #fff;
}

.header.header--slider-white {
    color: #000;
}

.header.header--opened-menu {
    pointer-events: none;
}

.header.header--opened-menu .panel {
    pointer-events: all;
}

.header.header--opened-menu .header__logo,
.header.header--opened-menu .header__menu {
    pointer-events: all;
}

.header .header__inner {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    grid-gap: 30px;
    max-width: 1920px;
    padding: 30px 40px;
    margin: 0 auto;
}

.header .header__navigation {

}

.header .header__logo {
    color: inherit;
    display: flex;
    transition: color .2s ease-in-out;
}

.header .header__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-gap: 60px;
}

@media screen and (max-width: 1456px) {
    .header.header--sticky {
        margin-bottom: 26px;
    }

    .header .header__inner {
        padding: 20px 26px;
    }

    .header .header__logo svg {
        width: 67px;
        height: 21px;
    }

    .header .header__menu {
        grid-gap: 40px;
    }
}

@media screen and (max-width: 1023px) {
    .header.header--sticky {
        margin-bottom: 20px;
    }

    .header .header__inner {
        padding: 16px 20px;
    }

    .header .header__navigation {
        order: 1;
        display: flex;
        justify-content: flex-end;
    }

    .header .header__logo svg {
        width: 63px;
        height: 20px;
    }

    .header .header__menu {
        order: -1;
        justify-content: flex-start;
    }
}

/* header-personality */
.header-personality {
    display: flex;
    align-items: center;
    grid-gap: 40px;
}

.header-personality .header-personality__button {
    color: inherit;
    display: flex;
    background-color: transparent;
    border: none;
    transition: color .2s ease-in-out;
    padding: 0;
}

.header-personality .header-personality__button.header-personality__button--menu {
    display: none;
    background-color: transparent;
    border: none;
    padding: 0;
}

@media screen and (max-width: 1456px) {
    .header-personality {
        grid-gap: 26px;
    }

    .header-personality .header-personality__button svg {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 1023px) {
    .header-personality {
        color: rgba(57, 54, 54, 1);
        position: fixed;
        left: 50%;
        bottom: 18px;
        /* todo: Перепроверить и поправить */
        z-index: 1001;
        transform: translateX(-50%);
        justify-content: space-between;
        grid-gap: unset;
        width: calc(100% - 12px);
        max-width: 364px;
        background-color: rgba(248, 248, 248, 1);
        border: 2px solid rgba(255, 255, 255, 1);
        border-radius: 100px;
        padding: 16px 40px;
    }

    .header-personality .header-personality__button.header-personality__button--menu {
        display: flex;
    }

    .header-personality .header-personality__button svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 767px) {
    .header-personality {
        bottom: 6px;
        max-width: 348px;
        padding: 16px 32px;
    }
}

/* main-page */
.main-page {
    display: grid;
    grid-template-columns: 100%;
    grid-gap: 160px;
}

@media screen and (max-width: 1439px) {
    .main-page {
        grid-gap: 107px;
    }
}

@media screen and (max-width: 1023px) {
    .main-page {
        grid-gap: 60px;
    }
}

/* footer */
.footer {
    display: grid;
    grid-template-columns: repeat(3, 362px);
    grid-template-rows: 1fr auto;
    grid-template-areas:
			"first second contacts"
			"first desc bottom";
    justify-content: space-between;
    width: 100%;
    max-width: 1920px;
    padding: 0 40px 106px;
    margin: 160px auto 0;
}

@media screen and (max-width: 1439px) {
    .footer {
        grid-template-columns: repeat(3, 241px);
        padding: 0 26px 54px;
        margin: 107px auto 0;
    }
}

@media screen and (max-width: 1023px) {
    .footer {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        grid-template-areas:
			"contacts contacts"
			"first second"
			"desc desc"
			"bottom bottom";
        justify-content: unset;
        grid-gap: 40px 8px;
        padding: 0 20px 144px;
        margin: 60px auto 0;
    }
}

@media screen and (max-width: 767px) {
    .footer {
        grid-template-columns: 1fr;
        grid-template-areas:
			"contacts"
			"first"
			"second"
			"desc"
			"bottom";
        grid-gap: 30px;
        padding: 0 16px 100px;
    }
}


/* footer-column */
.footer-column:nth-child(1) {
    grid-area: first;
}

.footer-column:nth-child(2) {
    grid-area: second;
}

.footer-column .footer-column__title {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 30px;
}

.footer-column .footer-column__list {
    display: flex;
    flex-direction: column;
    grid-gap: 30px;
}

.footer-column .footer-column__link {
    font-size: 20px;
    line-height: 24px;
}

@media screen and (max-width: 1439px) {
    .footer-column .footer-column__title {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .footer-column .footer-column__list {
        grid-gap: 20px;
    }

    .footer-column .footer-column__link {
        font-size: 13px;
        line-height: 16px;
    }
}

@media screen and (max-width: 1023px) {
    .footer-column .footer-column__title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 16px;
    }

    .footer-column .footer-column__list {
        grid-gap: 16px;
    }

    .footer-column .footer-column__link {
        font-size: 16px;
        line-height: 20px;
    }
}

/* footer-desc */
.footer-desc {
    grid-area: desc;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-gap: 16px;
    width: min(28.5vw, 521px);
}

.footer-desc .footer-desc__item {
    font-size: 16px;
    line-height: 20px;
    color: rgba(167, 166, 166, 1);
}

@media screen and (max-width: 1439px) {
    .footer-desc {
        grid-gap: 10px;
        width: 347px;
    }

    .footer-desc .footer-desc__item {
        font-size: 11px;
        line-height: 13px;
    }
}

@media screen and (max-width: 1023px) {
    .footer-desc {
        grid-gap: 16px;
        width: unset;
    }

    .footer-desc .footer-desc__item {
        font-size: 16px;
        line-height: 20px;
    }
}

/* footer-contacts */
.footer-contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    grid-gap: 30px;
}

.footer-contacts .footer-contacts__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-gap: 12px;
}

.footer-contacts .footer-contacts__phone {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
}

.footer-contacts .footer-contacts__worktime {
    font-size: 16px;
    line-height: 20px;
    color: rgba(167, 166, 166, 1);
}

.footer-contacts .footer-contacts__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-gap: 30px;
}

.footer-contacts .footer-contacts__email {
    font-size: 20px;
    line-height: 24px;
}

@media screen and (max-width: 1439px) {
    .footer-contacts {
        grid-gap: 20px;
    }

    .footer-contacts .footer-contacts__top {
        grid-gap: 8px;
    }

    .footer-contacts .footer-contacts__phone {
        font-size: 16px;
        line-height: 20px;
    }

    .footer-contacts .footer-contacts__worktime {
        font-size: 11px;
        line-height: 13px;
    }

    .footer-contacts .footer-contacts__bottom {
        grid-gap: 20px;
    }

    .footer-contacts .footer-contacts__email {
        font-size: 13px;
        line-height: 16px;
    }
}

@media screen and (max-width: 1023px) {
    .footer-contacts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 8px;
    }

    .footer-contacts .footer-contacts__top {
        grid-gap: 12px;
    }

    .footer-contacts .footer-contacts__phone {
        font-size: 18px;
        line-height: 24px;
    }

    .footer-contacts .footer-contacts__worktime {
        font-size: 14px;
        line-height: 16px;
    }

    .footer-contacts .footer-contacts__bottom {
        grid-gap: 16px;
    }

    .footer-contacts .footer-contacts__email {
        font-size: 16px;
        line-height: 20px;
    }
}

@media screen and (max-width: 767px) {
    .footer-contacts {
        grid-template-columns: 1fr;
        grid-gap: 16px;
    }
}

/* footer-socials */
.footer-socials {
    display: flex;
    grid-gap: 12px;
}

.footer-socials .footer-socials__link {
    display: flex;
    border-radius: 50%;
    padding: 12px;
}

@media screen and (max-width: 1439px) {
    .footer-socials {
        grid-gap: 8px;
    }

    .footer-socials .footer-socials__link {
        padding: 8px;
    }

    .footer-socials .footer-socials__link svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 1023px) {
    .footer-socials {
        grid-gap: 12px;
    }

    .footer-socials .footer-socials__link {
        padding: 12px;
    }

    .footer-socials .footer-socials__link svg {
        width: 30px;
        height: 30px;
    }
}

/* footer-bottom */
.footer-bottom {
    grid-area: bottom;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-gap: 30px;
}

.footer-bottom .footer-bottom__logo {
    width: auto;
}

.footer-bottom .footer-bottom__list {
    display: flex;
    flex-direction: column;
    grid-gap: 16px;
}

.footer-bottom .footer-bottom__link {
    font-size: 16px;
    line-height: 20px;
}

@media screen and (max-width: 1439px) {
    .footer-bottom {
        grid-gap: 20px;
    }

    .footer-bottom .footer-bottom__logo {
        width: 80px;
    }

    .footer-bottom .footer-bottom__list {
        grid-gap: 10px;
    }

    .footer-bottom .footer-bottom__link {
        font-size: 11px;
        line-height: 13px;
    }
}

@media screen and (max-width: 1023px) {
    .footer-bottom {
        flex-direction: row-reverse;
        justify-content: space-between;
        grid-gap: 40px;
    }

    .footer-bottom .footer-bottom__logo {
        width: 120px;
    }

    .footer-bottom .footer-bottom__list {
        grid-gap: 16px;
    }

    .footer-bottom .footer-bottom__link {
        font-size: 16px;
        line-height: 20px;
    }
}

@media screen and (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        grid-gap: 30px;
    }
}

/* contact-us-widget-button */
.contact-us-widget-button {
    position: fixed;
    right: 20px;
    bottom: 34px;
    display: flex;
    border-radius: 50%;
    padding: 12px;
}

@media screen and (max-width: 1023px) {
    .contact-us-widget-button {
        color: inherit !important;
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        background-color: transparent !important;
        border-radius: unset;
        padding: unset;
    }
}

/* contact-us-widget */
.contact-us-widget {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    grid-gap: 12px;
    height: 100dvh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: background-color .2s ease-in-out, opacity .2s ease-in-out, pointer-events .2s ease-in-out;
    padding: 34px 20px;
}

.contact-us-widget.hidden {
    opacity: 0;
    pointer-events: none;
}

.contact-us-widget .contact-us-widget__modal {
    position: relative;
    width: 100%;
    max-width: 260px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 12px;
    padding: 12px 8px;
}

.contact-us-widget .contact-us-widget__drag {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    justify-content: center;
    width: calc(100% - 32px);
    background-color: transparent;
    border: none;
    padding: 0;
}

.contact-us-widget .contact-us-widget__drag:before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: rgba(233, 233, 233, 1);
    border-radius: 4px;
}

.contact-us-widget .contact-us-widget__top {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 8px;
    border-bottom: 1px solid rgba(233, 233, 233, 1);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.contact-us-widget .contact-us-widget__phone {
    font-size: 20px;
    line-height: 24px;
}

.contact-us-widget .contact-us-widget__phone-worktime {
    font-size: 12px;
    line-height: 14px;
    color: rgba(167, 166, 166, 1);
}

.contact-us-widget .contact-us-widget__bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    grid-gap: 12px;
}

/* Штатная кнопка Битрикс24. Её CSS позже ставит display:flex, поэтому без important она снова видна. */
.b24-widget-button-wrapper {
    display: none !important;
}

/* Окно чата. У виджета z-index: 9999999999; держим его над шапкой (999), панелью контактов и нижней навигацией (1001), окном размера (1002). */
.bx-livechat-wrapper,
.bx-livechat {
    z-index: 1100 !important;
}

/* Виджет ставит окно над своей кнопкой: right 53px, bottom 130px. Два класса перебивают это правило без important. */
@media screen and (min-width: 1024px) {
    .bx-livechat-position-bottom-right.bx-livechat-wrapper {
        right: 20px;
        bottom: 94px;
    }
}

/* Полноэкранный режим на узком экране. important перекрывает inline-размер десктопного окна, если виджет не включил мобильный режим сам. */
@media screen and (max-width: 1023px) {
    .bx-livechat-mobile.bx-livechat-wrapper {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

.contact-us-widget__chat {
    position: relative;
}

.tous-chat-unread .contact-us-widget-button::after,
.tous-chat-unread .contact-us-widget__chat::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(220, 69, 136, 1);
    box-shadow: 0 0 0 2px #fff;
}

.contact-us-widget .contact-us-widget__social {
    display: flex;
    border-radius: 50%;
    padding: 12px;
}

.contact-us-widget .contact-us-widget__close {
    display: flex;
    border-radius: 50%;
    padding: 12px;
}

@media screen and (max-width: 1023px) {
    .contact-us-widget {
        align-items: center;
        padding: 20px;
    }

    .contact-us-widget.hidden {
        background-color: transparent;
        opacity: 1;
        pointer-events: none;
    }

    .contact-us-widget.hidden .contact-us-widget__modal {
        transform: translateY(calc(100% + 20px));
    }

    .contact-us-widget .contact-us-widget__modal {
        max-width: 360px;
        border-radius: 20px;
        transition: transform .2s ease-in-out;
        padding: 24px 16px 16px;
    }

    .contact-us-widget .contact-us-widget__drag {
        display: flex;
    }

    .contact-us-widget .contact-us-widget__phone-worktime {
        font-size: 14px;
        line-height: 16px;
    }

    .contact-us-widget .contact-us-widget__close {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .contact-us-widget {
        padding: 0;
    }

    .contact-us-widget.hidden .contact-us-widget__modal {
        transform: translateY(100%);
    }

    .contact-us-widget .contact-us-widget__modal {
        max-width: unset;
        border-radius: 20px 20px 0 0;
    }
}

/* size-window */
.size-window {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: opacity .2s ease-in-out, pointer-events .2s ease-in-out;
}

.size-window.hidden {
    opacity: 0;
    pointer-events: none;
}

.size-window .size-window__modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: grid;
    grid-gap: 12px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 12px;
    padding: 20px;
}

.size-window .size-window__close {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    border-radius: 50%;
    cursor: pointer;
    padding: 11px;
}

.size-window .size-window__img {

}

.size-window .size-window__text {
    font-size: 16px;
    line-height: 20px;
    text-align: center;
}

.size-window .size-window__sizes {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 8px;
}

.size-window .size-window__size {
    flex: 1 1 64px;
}

.size-window .size-window__size-input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.size-window .size-window__size-button {
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    display: block;
    width: 100%;
    border-radius: 100px;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: outline-color .2s ease-in-out;
    padding: 13px 0;
}

.size-window .size-window__size-input:checked + .size-window__size-button {
    background-color: rgba(255, 255, 255, 1);
    outline-color: rgba(35, 32, 32, 1);
}

.size-window .size-window__button {
    font-size: 16px;
    line-height: 20px;
    width: 100%;
    border-radius: 100px;
    padding: 12px;
}

.size-window .size-window__error {
    color: #b42318;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

/* ui-scrollbar */
.ui-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.ui-scrollbar::-webkit-scrollbar-button {
    display: none;
}

.ui-scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
}

.ui-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(244, 244, 244, 1);
    border-radius: 4px;
}
