/* Store footer only. CMS contacts and the live Yandex badge retain their owners. */
.l-footer.mp-site-footer {
    --sf-surface: #202b33;
    --sf-text: #f4f7f8;
    --sf-muted: #b7c5cc;
    --sf-line: #41515d;
    --sf-accent: #83dec8;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 40px 0 24px;
    overflow: visible;
    background: var(--sf-surface);
    color: var(--sf-text);
    font: 400 14px/1.5 var(--mp-storefront-font, Arial, Helvetica, sans-serif);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    -webkit-text-size-adjust: 100%;
}

.mp-site-footer *,
.mp-site-footer *::before,
.mp-site-footer *::after { box-sizing: border-box; }
.mp-site-footer [hidden] { display: none !important; }
.mp-site-footer a,
.mp-site-footer button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mp-site-footer a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.mp-site-footer a,
.mp-site-footer button,
.mp-site-footer h3,
.mp-site-footer summary { font-family: inherit; }
.mp-site-footer a:focus-visible,
.mp-site-footer button:focus-visible,
.mp-site-footer summary:focus-visible { outline: 2px solid var(--sf-accent); outline-offset: 3px; border-radius: 4px; }
.mp-site-footer ::selection { background: #d5eee3; color: #17232e; }

.mp-site-footer .mp-footer-inner {
    width: 100%;
    max-width: var(--site-page-width, 1680px);
    margin-inline: auto;
    padding-inline: var(--site-gutter, 32px);
}

.mp-site-footer .mp-footer-brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 30px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--sf-line);
}

.mp-site-footer .mp-footer-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.mp-site-footer .mp-footer-logo img { display: block; width: 185px; height: auto; max-width: 100%; margin: 0; filter: none; }
.mp-site-footer .mp-footer-community { display: flex; align-items: center; gap: 18px; min-width: 0; }
.mp-site-footer .mp-footer-community > span { color: var(--sf-muted); font-size: 13px; }
.mp-site-footer .mp-footer-socials { display: flex; align-items: center; gap: 8px; }
.mp-site-footer .mp-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    background: transparent;
    transition: background-color 140ms ease, border-color 140ms ease;
}
.mp-site-footer .mp-footer-socials img { display: block; width: 22px; height: 22px; margin: 0; object-fit: contain; filter: none; }
/* The Telegram artwork has a large intrinsic inset; match the other brands optically. */
.mp-site-footer .mp-footer-socials img[src="/images/data/svg/tg.svg"] { transform: scale(1.8); transform-origin: center; }

.mp-site-footer .mp-footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 32px 40px;
    min-width: 0;
    margin: 0;
    padding: 0 0 30px;
}

.mp-site-footer .mp-footer-content > script { display: none; }
.mp-site-footer .mp-footer-content > :not(script):not(.mp-footer-nav):not(.m-footer-contacts):not(.col-9) { grid-column: 1 / -1; min-width: 0; }
.mp-site-footer .mp-footer-content > .col-9 { grid-column: 1; min-width: 0; width: auto; max-width: none; margin: 0; padding: 0; flex: none; }
.mp-site-footer .mp-footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 24px; min-width: 0; margin: 0; padding: 0; }
.mp-site-footer .mp-footer-content > .mp-footer-nav { grid-column: 1; grid-row: 1; }
.mp-site-footer .mp-footer-nav,
.mp-site-footer .mp-footer-nav ul,
.mp-site-footer .mp-footer-nav li,
.mp-site-footer .mp-footer-nav .mp-footer-link { font-family: var(--mp-storefront-font, Arial, Helvetica, sans-serif); }
.mp-site-footer .mp-footer-group { min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
.mp-site-footer .mp-footer-group-title { display: block; margin: 0 0 12px; padding: 0; color: #fff; font: 700 16px/1.4 var(--mp-storefront-font, Arial, Helvetica, sans-serif); text-transform: none; letter-spacing: 0; }
.mp-site-footer .mp-footer-links,
.mp-site-footer .mp-footer-links ul { display: block; margin: 0; padding: 0; list-style: none; }
.mp-site-footer .mp-footer-links li { display: block; min-width: 0; margin: 0; padding: 0; }
.mp-site-footer .mp-footer-links li::before,
.mp-site-footer .mp-footer-links li::after { content: none; }
.mp-site-footer .mp-footer-links a,
.mp-site-footer .mp-footer-links .mp-footer-link {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 6px 0;
    background: none;
    color: var(--sf-muted);
    font-family: var(--mp-storefront-font, Arial, Helvetica, sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    transition: color 140ms ease;
}
.mp-site-footer .mp-footer-links ul { margin-left: 12px; }
.mp-site-footer .mp-footer-links a::before,
.mp-site-footer .mp-footer-links a::after { content: none; }
.mp-site-footer .mp-footer-chevron { display: none; }

/* The existing CMS contact block is laid out without altering its facts or hooks. */
.mp-site-footer .m-footer-contacts {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 24px;
    border-left: 1px solid var(--sf-line);
    flex: none;
    text-align: left;
}
.mp-site-footer .l-footer-contacts { display: block; width: auto; min-width: 0; margin: 0; padding: 0; }
.mp-site-footer .l-footer-contacts .l-footer-menu-wrap { margin: 0; padding: 0; font-weight: 400; color: inherit; }
.mp-site-footer .l-footer-contacts .l-footer-menu-wrap::after { content: none; }
.mp-site-footer .l-footer-contacts .l-footer-menu-wrap > .item-title {
    display: block !important; /* The native mobile footer hides this heading globally. */
    min-height: 0;
    margin: 0 0 16px;
    padding: 0;
    color: #fff;
    font: 700 16px/1.4 var(--mp-storefront-font, Arial, Helvetica, sans-serif);
    text-transform: none;
    letter-spacing: 0;
}
.mp-site-footer .l-footer-contacts .l-footer-contacts__values { display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-width: 0; }
.mp-site-footer .l-footer-contacts .contacts-row { position: relative; width: auto; min-width: 0; margin: 0; padding: 0 0 0 28px; font-family: inherit; }
.mp-site-footer .l-footer-contacts .contacts-row .text { margin: 0 0 4px; color: var(--sf-text); font: 400 14px/1.5 var(--mp-storefront-font, Arial, Helvetica, sans-serif); overflow-wrap: anywhere; }
.mp-site-footer .l-footer-contacts .contacts-row .text:last-child { margin-bottom: 0; }
.mp-site-footer .l-footer-contacts .contacts-row .sub { margin: 8px 0 0; color: var(--sf-muted); font: 400 13px/1.5 var(--mp-storefront-font, Arial, Helvetica, sans-serif); }
.mp-site-footer .l-footer-contacts .contacts-row .mb-1 { margin-bottom: 4px; }
.mp-site-footer .l-footer-contacts .contacts-row .mb-3 { margin-bottom: 12px; }
.mp-site-footer .l-footer-contacts .contacts-row .icon-location,
.mp-site-footer .l-footer-contacts .contacts-row .icon-phone,
.mp-site-footer .l-footer-contacts .contacts-row .icon-email { position: absolute; top: 3px; left: 0; display: block; width: 20px; height: 20px; margin: 0; background: none; color: var(--sf-accent); }
.mp-site-footer .l-footer-contacts .contacts-row .icon-location::before,
.mp-site-footer .l-footer-contacts .contacts-row .icon-phone::before,
.mp-site-footer .l-footer-contacts .contacts-row .icon-email::before { display: block; width: 20px; height: 20px; background: var(--sf-accent); content: ""; }
.mp-site-footer .l-footer-contacts .icon-location::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 6-8 11-8 11S4 16 4 10a8 8 0 1 1 16 0Z' fill='none' stroke='black' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='10' r='2.5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; }
.mp-site-footer .l-footer-contacts .icon-phone::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 3 3 5-2 2c2 3 3 4 6 6l2-2 5 3c-1 4-3 5-6 3C9 18 6 15 4 10 2 6 3 4 7 3Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.mp-site-footer .l-footer-contacts .icon-email::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='1' fill='none' stroke='black' stroke-width='1.7'/%3E%3Cpath d='m3 6 9 7 9-7' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat; }
.mp-site-footer .l-footer-contacts .l-footer-phone__main { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; color: #fff; font: 700 18px/1.35 var(--mp-storefront-font, Arial, Helvetica, sans-serif); text-align: left; text-transform: none; font-variant-numeric: tabular-nums; }
.mp-site-footer .l-footer-contacts .l-footer-phone__main a { display: flex; align-items: center; min-height: 32px; max-width: 100%; margin: 0; padding: 0; color: inherit; font: inherit; overflow-wrap: anywhere; }
.mp-site-footer .l-footer-contacts .icon-email + .text { font: 400 14px/1.5 var(--mp-storefront-font, Arial, Helvetica, sans-serif); }

.mp-site-footer .l-footer-contacts .contacts-row .text .bttn.bttn--border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #667c8a;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: var(--sf-text);
    font: 400 13px/1.4 var(--mp-storefront-font, Arial, Helvetica, sans-serif);
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    transition: border-color 140ms ease, background-color 140ms ease;
}
.mp-site-footer .l-footer-contacts .bttn::before,
.mp-site-footer .l-footer-contacts .bttn::after { content: none; }

.mp-site-footer .l-footer-contacts .l-footer-phone__messengers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; width: calc(100% + 28px); margin: 12px 0 10px -28px; }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    width: auto;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid #516470;
    border-radius: 10px;
    background: #2b3943;
    color: #fff;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease;
}
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a::before { display: block; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: transparent center / contain no-repeat; content: ""; }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a::after { display: block; flex: none; width: auto; height: auto; margin: 0; background: none; color: inherit; font: 400 12px/1.3 var(--mp-storefront-font, Arial, Helvetica, sans-serif); white-space: nowrap; }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a.whatsapp-messenger::before { background-color: transparent; background-image: url('/bricks/shared/images/messengers/whatsapp.svg?v=20261102-inset1'); background-size: contain; }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a.whatsapp-messenger::after { content: "WhatsApp"; }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a.telegram-messenger::before { background-image: url('/bricks/shared/images/messengers/telegram.svg'); }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a.telegram-messenger::after { content: "Telegram"; }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a.max-messenger::before { border-radius: 7px; background-image: url('/bricks/shared/images/messengers/max.svg'); }
.mp-site-footer .l-footer-contacts .l-footer-phone__messengers a.max-messenger::after { content: "MAX"; }

.mp-site-footer .l-footer-contacts__values .l-footer-reviews {
    order: 0;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 78px;
    margin: 0;
    padding: 0 0 4px;
    text-align: left;
}
.mp-site-footer .l-footer-reviews::before { content: "Рейтинг магазина в Яндексе"; color: var(--sf-muted); font: 400 13px/1.4 var(--mp-storefront-font, Arial, Helvetica, sans-serif); }
.mp-site-footer .l-footer-reviews iframe { display: block; flex: none; width: 150px; height: 50px; max-width: 100%; margin: 0; border: 0; background: transparent; }

.mp-site-footer .mp-footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; min-width: 0; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--sf-line); color: var(--sf-muted); font-size: 12px; line-height: 1.5; }
.mp-site-footer .mp-footer-bottom > * { min-width: 0; margin: 0; padding: 0; }
.mp-site-footer .mp-footer-bottom > p { flex: 1 1 auto; }
.mp-site-footer .mp-footer-disclaimer { font-family: inherit; }
.mp-site-footer .mp-footer-version { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 6px 0; border: 0; background: none; box-shadow: none; color: var(--sf-text); font: 400 12px/1.5 var(--mp-storefront-font, Arial, Helvetica, sans-serif); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mp-site-footer .mp-footer-bottom .made-by-isdigi { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; margin: 0; color: var(--sf-muted); font: inherit; }
.mp-site-footer .mp-footer-bottom .made-by-isdigi img { display: block; width: 24px; height: 24px; margin: 0; object-fit: contain; }

/* Mobile uses native disclosure controls at every width, including landscape/tablet. */
.mp-site-footer[data-footer-surface="mobile"] .mp-footer-group > summary.mp-footer-group-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin: 0; padding: 14px 0; list-style: none; cursor: pointer; }
.mp-site-footer[data-footer-surface="mobile"] summary.mp-footer-group-title::marker { content: ""; }
.mp-site-footer[data-footer-surface="mobile"] summary.mp-footer-group-title::-webkit-details-marker { display: none; }
.mp-site-footer[data-footer-surface="mobile"] summary.mp-footer-group-title > span { min-width: 0; }
.mp-site-footer[data-footer-surface="mobile"] .mp-footer-group > summary .mp-footer-chevron { display: block; flex: none; width: 20px; height: 20px; color: var(--sf-accent); transition: transform 160ms ease; }
.mp-site-footer[data-footer-surface="mobile"] details[open] > summary .mp-footer-chevron { transform: rotate(180deg); }
body.checkout .l-footer.mp-site-footer { padding-top: 40px; }

@media (hover: hover) {
    .mp-site-footer .mp-footer-links a:hover,
    .mp-site-footer .l-footer-contacts a:not(.bttn):not([class$="-messenger"]):hover { color: #fff; text-decoration: underline; }
    .mp-site-footer .mp-footer-socials a:hover,
    .mp-site-footer .l-footer-contacts .l-footer-phone__messengers a:hover { border-color: #8aa8b7; background-color: #344853; }
    .mp-site-footer .l-footer-contacts .bttn.bttn--border:hover { border-color: var(--sf-accent); background-color: #2b3d45; }
    .mp-site-footer .mp-footer-version:hover { color: var(--sf-accent); }
}

@media (max-width: 1279px) {
    .mp-site-footer .mp-footer-content { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
    .mp-site-footer .mp-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
    .mp-site-footer .m-footer-contacts { padding-left: 20px; }
}

@media (max-width: 767px), (max-width: 1023px) and (pointer: coarse) {
    .l-footer.mp-site-footer,
    body.checkout .l-footer.mp-site-footer { padding-top: 28px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
    .mp-site-footer .mp-footer-inner { padding-inline: 20px; }
    .mp-site-footer .mp-footer-brandbar { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; }
    .mp-site-footer .mp-footer-logo img { width: 170px; }
    .mp-site-footer .mp-footer-community { justify-content: space-between; flex: 1 1 100%; gap: 12px; }
    .mp-site-footer .mp-footer-socials { gap: 6px; }
    .mp-site-footer .mp-footer-content { display: flex; flex-direction: column; align-items: stretch; gap: 26px; padding-bottom: 24px; }
    .mp-site-footer .mp-footer-content > .mp-footer-nav,
    .mp-site-footer .mp-footer-content > .col-9 { order: 2; width: 100%; }
    .mp-site-footer .mp-footer-content > .m-footer-contacts { order: 1; width: 100%; padding: 0; border: 0; }
    .mp-site-footer .l-footer-contacts .l-footer-menu-wrap > .item-title { margin-bottom: 16px; font-size: 18px; }
    .mp-site-footer .l-footer-contacts .l-footer-contacts__values { gap: 22px; }
    .mp-site-footer .l-footer-contacts .contacts-row { padding-left: 28px; }
    .mp-site-footer .l-footer-contacts .l-footer-phone__main { font-size: 20px; }
    .mp-site-footer .l-footer-contacts .l-footer-phone__main a { min-height: 44px; }
    .mp-site-footer .l-footer-contacts .contacts-row .text,
    .mp-site-footer .l-footer-contacts .icon-email + .text { font-size: 14px; }
    .mp-site-footer .l-footer-contacts .l-footer-phone__messengers { gap: 6px; margin-top: 10px; }
    .mp-site-footer .l-footer-contacts .l-footer-phone__messengers a { flex-direction: row; gap: 5px; min-height: 48px; padding: 8px 4px; }
    .mp-site-footer .l-footer-contacts .l-footer-phone__messengers a::before { width: 24px; height: 24px; }
    .mp-site-footer .l-footer-contacts__values .l-footer-reviews { padding-bottom: 2px; }
    .mp-site-footer .mp-footer-nav { display: block; width: 100%; border-top: 1px solid var(--sf-line); }
    .mp-site-footer .mp-footer-nav > .mp-footer-group:not(:last-child) { border-bottom: 1px solid var(--sf-line); }
    .mp-site-footer .mp-footer-group-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin: 0; padding: 14px 0; color: #fff; font-size: 16px; font-weight: 600; list-style: none; }
    .mp-site-footer summary.mp-footer-group-title { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .mp-site-footer summary.mp-footer-group-title::marker { content: ""; }
    .mp-site-footer summary.mp-footer-group-title::-webkit-details-marker { display: none; }
    .mp-site-footer summary.mp-footer-group-title > span { min-width: 0; }
    .mp-site-footer .mp-footer-chevron { display: block; flex: none; width: 20px; height: 20px; color: var(--sf-accent); transition: transform 160ms ease; }
    .mp-site-footer details[open] > summary .mp-footer-chevron { transform: rotate(180deg); }
    .mp-site-footer .mp-footer-links { padding: 0 0 12px; }
    .mp-site-footer .mp-footer-links a,
    .mp-site-footer .mp-footer-links .mp-footer-link { min-height: 44px; padding-block: 10px; }
    .mp-site-footer .mp-footer-links ul { margin-left: 16px; padding-bottom: 0; }
    .mp-site-footer .mp-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 20px; }
    .mp-site-footer .mp-footer-bottom > p { flex: none; }
    .mp-site-footer .mp-footer-bottom .made-by-isdigi { margin-top: 0; }
    body.p-product-mobile.p-product-sticky-visible .mp-site-footer { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 359px) {
    .mp-site-footer .mp-footer-inner { padding-inline: 16px; }
    .mp-site-footer .mp-footer-community > span { max-width: 95px; }
    .mp-site-footer .l-footer-contacts .l-footer-phone__messengers a { gap: 3px; padding-inline: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .mp-site-footer a,
    .mp-site-footer .mp-footer-chevron { transition: none; }
}
