.header {
    position: relative;
    padding: 12px 0;
    background-color: #fff;
    margin-bottom: 32px;
}

.header--sticky {
    position: sticky;
    top: 0;

    z-index: 60;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .06);
    transition: box-shadow .25s;
}

.header__top,
.header__bottom {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__top {
    padding-bottom: 12px;
}

.header__bottom {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.header__logoLink {
    margin-right: auto;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--foreground);
    transition: color .25s;
}

.header__phone:hover {
    color: var(--brand-color);
}

.header__callback {
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    white-space: nowrap;
}

.header__iconButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    color: var(--text-secondary);
}

.header__iconButton_disabled {
    opacity: .5;
    cursor: not-allowed;
}

.header__callLink {
    display: none;
    flex-shrink: 0;
    color: var(--brand-color);
    border-color: var(--brand-color);
    transition: background-color .25s, color .25s;
}

.header__callLink:hover {
    background: var(--brand-color);
    color: #fff;
}

.header__iconWrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header__iconBadge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    padding: 2px 4px;
    border-radius: 12px;
    background-color: var(--brand-color);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

.catalogButton {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    background: var(--brand-color);
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    transition: background-color .25s;
}

.catalogButton:hover {
    background: var(--brand-color-hover);
}

.catalogButton__icons {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.catalogButton__grid,
.catalogButton__cross {
    position: absolute;
    inset: 0;
    transition: opacity .2s ease, transform .2s ease;
}

.catalogButton__cross {
    opacity: 0;
    transform: rotate(-90deg) scale(.6);
}

.catalogButton.is-overlayActive .catalogButton__grid {
    opacity: 0;
    transform: rotate(90deg) scale(.6);
}

.catalogButton.is-overlayActive .catalogButton__cross {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.headerNav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-right: auto;
}

.headerNav__item {
    white-space: nowrap;
    padding: 6px 0;
    transition: color .25s;
}

.headerNav__item:hover {
    color: var(--brand-color);
}

.headerSearch {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.headerSearch__input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: var(--text-secondary);
}

.headerSearch__input:disabled {
    background: #f7f8fa;
    cursor: not-allowed;
}

.headerSearch__icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

@media (max-width: 960px) {
    .header { margin-bottom: 24px; }

    .header__bottom,
    .header__contacts { display: none; }

    .header__callLink { display: inline-flex; }

    .header__top { padding-bottom: 0; }
}

.logo {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    color: var(--brand-color);
}

.logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo__label {
    color: var(--brand-color);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.logo__subtitle {
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    color: var(--text-muted);
}

.miniCart {
    position: relative;
}

.miniCart__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease;
}

.miniCart__trigger:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

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

.miniCart__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    padding: 2px 4px;
    border-radius: 12px;
    background-color: var(--brand-color);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    text-align: center;
}

.miniCart__summary {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.miniCart__summaryTitle {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.miniCart__summaryValue {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.miniCart__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-height: 460px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
    z-index: 50;
}

.miniCart__dropdown[hidden] {
    display: none;
}

.miniCart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.miniCart__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.miniCart__clearButton {
    border: none;
    background: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
}

.miniCart__list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.miniCart__item {
    display: flex;
    gap: 12px;
}

.miniCart__itemImageHolder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f2f3f5;
}

.miniCart__itemImageHolder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.miniCart__itemTitle {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.miniCart__itemPrice {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.miniCart__removeButton {
    align-self: flex-start;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.miniCart__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.miniCart__total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #111827;
}

.miniCart__primaryAction {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    background-color: var(--brand-color);
    color: #fff;
    transition: background-color .2s ease;
}

.miniCart__primaryAction:hover {
    background-color: var(--brand-color-hover);
}

.miniCart__empty {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    padding: 24px 0;
}

@media (max-width: 720px) {
    .miniCart__trigger {
        padding: 6px 10px;
        gap: 6px;
    }

    .miniCart__summaryTitle { display: none; }

    .miniCart__dropdown {
        right: -12px;
        width: calc(100vw - 40px);
        max-width: 340px;
    }
}

.footer {
    margin-top: 120px;
    padding-top: 56px;
    padding-bottom: 70px;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footerLinks {
    display: flex;
    flex-direction: column;
    max-width: 260px;
}

.footerLinks__title {
    font-weight: 700;
    font-size: 13px;
    line-height: 120%;
    margin-bottom: 16px;
}

.footerLinks__link {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color .25s;
}

.footerLinks__link + .footerLinks__link {
    margin-top: 16px;
}

.footerLinks__link:hover {
    color: var(--brand-color);
}

.footer__item {
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

.footer__info {
    font-weight: 400;
    font-size: 13px;
    line-height: 144%;
    color: var(--text-secondary);
    display: grid;
    gap: 6px;
}

.footer__info a {
    color: var(--text-secondary);
}

.footer__info a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .footer__content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer {
        margin-top: 56px;
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }
}

.is-overlayOpen {
    overflow: hidden;

    padding-right: var(--scrollbar-width, 0px);
}

.overlayBackdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(17, 24, 39, .45);
    opacity: 0;
    transition: opacity .2s ease;
}

.overlayBackdrop.overlay_visible {
    opacity: 1;
}

.overlayBackdrop[hidden],
.catalogModal[hidden],
.sheet[hidden],
.modal[hidden],
.catalogPanel[hidden],
.sheet__panel[hidden] {
    display: none;
}

.catalogModal {
    position: fixed;

    top: calc(var(--header-bottom, 140px) + 12px);

    left: 0;
    right: var(--scrollbar-width, 0px);
    margin-inline: auto;
    z-index: 50;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    width: min(1160px, calc(100% - 60px));
    max-height: calc(100vh - var(--header-bottom, 140px) - 52px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
}

.catalogModal.overlay_visible {
    opacity: 1;
    transform: translateY(0);
}

.catalogModal__roots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #f7f8fa;
    overflow-y: auto;
}

.catalogRoot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-weight: 500;
    text-align: left;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.catalogRoot__name {
    margin-right: auto;
}

.catalogRoot__arrow {
    color: var(--text-muted);
}

.catalogRoot:hover {
    background: #fff;
}

.catalogRoot_active {
    background: #fff;
    color: var(--brand-color);
    font-weight: 600;
}

.catalogRoot_active .catalogRoot__arrow {
    color: var(--brand-color);
}

.catalogModal__panels {
    padding: 24px 28px;
    overflow-y: auto;
}

.catalogPanel__title {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
}

.catalogPanel__title:hover {
    color: var(--brand-color);
}

.catalogPanel__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px 32px;
}

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

.catalogColumn__title {
    font-weight: 600;
    color: var(--foreground);
}

.catalogColumn__title:hover,
.catalogColumn__link:hover {
    color: var(--brand-color);
}

.catalogColumn__link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.catalogColumn__count {
    font-size: 12px;
    color: var(--text-muted);
}

.catalogPanel__collections {
    margin-top: 28px;
}

.catalogPanel__collectionsTitle {
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
}

.catalogPanel__collectionsList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalogChip {
    padding: 7px 14px;
    border-radius: 999px;
    background: #f2f3f5;
    font-size: 14px;
    color: var(--text-secondary);
    transition: background-color .2s, color .2s;
}

.catalogChip:hover {
    background: #fbeaee;
    color: var(--brand-color);
}

.catalogPanel__all {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 28px;
    font-weight: 600;
    color: var(--brand-color);
}

@media (max-width: 960px) {
    .catalogModal { display: none; }
}

.sheet {
    position: fixed;
    inset: 0 0 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.sheet__panel {
    display: flex;
    flex-direction: column;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    max-height: calc(100vh - 80px);
    margin-bottom: 64px;
    border-radius: 16px 16px 0 0;
    background: #fff;
    pointer-events: auto;
    overflow-y: auto;
}

.sheet.overlay_visible .sheet__panel {
    transform: translateY(0);
    opacity: 1;
}

.sheet__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 12px;
}

.sheet__title {
    margin-right: auto;
    font-size: 18px;
    font-weight: 700;
}

.sheet__back,
.sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f2f3f5;
    font-size: 18px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
}

.sheet__list {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
}

.sheet__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-top: none;
    background: none;
    font: inherit;
    text-align: left;
    color: var(--foreground);
    cursor: pointer;
}

.sheet__link:last-child {
    border-bottom: none;
}

.sheet__link_all {
    color: var(--brand-color);
    font-weight: 600;
}

.sheet__link_active {
    color: var(--brand-color);
    font-weight: 600;
}

.sheet__footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 24px;
}

.sheet__phone {
    font-size: 18px;
    font-weight: 700;
}

.sheet__callback {
    height: 44px;
    border-radius: 8px;
}

@media (min-width: 961px) {
    .sheet { display: none; }
}

.tabBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    display: none;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.tabBar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0 10px;
    border: none;
    background: none;
    font: inherit;
    color: var(--text-secondary);
    cursor: pointer;
}

.tabBar__item_active {
    color: var(--brand-color);
}

.tabBar__label {
    font-size: 11px;
    line-height: 1;
}

.tabBar__iconWrapper {
    position: relative;
    display: inline-flex;
}

.tabBar__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand-color);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
}

@media (max-width: 960px) {
    .tabBar { display: flex; }

    body { padding-bottom: 64px; }
}

.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: var(--scrollbar-width, 0px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__window {
    position: relative;
    opacity: 0;
    transform: translateY(-12px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}

.modal.overlay_visible .modal__window {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal__window {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f2f3f5;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal__title {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
}

.modal__text {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    font-size: 13px;
    color: var(--text-muted);
}

.field__input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font: inherit;
    color: var(--foreground);
}

.field__input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.modal__submit {
    height: 44px;
    border-radius: 8px;
}

.modal__note {
    font-size: 12px;
    color: var(--text-muted);
}

.modal__note a {
    color: var(--brand-color);
}

.flash {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
}

.flash_success {
    background: #e8f6ee;
    color: #1f7a46;
}

.flash_error {
    background: #fdecec;
    color: #b3261e;
}

@media (prefers-reduced-motion: reduce) {
    .overlayBackdrop,
    .catalogModal,
    .sheet__panel,
    .modal__window,
    .catalogButton__grid,
    .catalogButton__cross {
        transition: none;
    }
}

.cookieNotice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.cookieNotice__text {
    margin: 0;
    font-size: 13px;
    line-height: 150%;
    color: var(--text-muted);
}

.cookieNotice__accept {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookieNotice {
        flex-direction: column;
        align-items: stretch;
        bottom: 76px;
    }
}
