/* Только страница «Как купить». Иллюстрации меняются вместе с темой магазина. */
.hg-info--how-to-buy {
    --buy-size-scene: url("purchase-editorial/fitment-day-960.webp");
    --buy-packing-scene: url("story-v1/deliver-day-480.webp");
}
html[data-theme="dark"] .hg-info--how-to-buy {
    --buy-size-scene: url("purchase-editorial/fitment-night-960.webp");
    --buy-packing-scene: url("story-v1/deliver-night-480.webp");
}
.hg-info--how-to-buy .hg-buy-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    background: var(--hg-soft);
    border-radius: 12px;
    overflow: hidden;
}
.hg-info--how-to-buy .hg-buy-cover__copy {
    align-self: center;
    padding: clamp(26px, 4vw, 64px);
}
.hg-store .hg-info--how-to-buy .hg-buy-cover h1 {
    margin: 0;
    color: var(--hg-ink);
    font-size: clamp(42px, 5.4vw, 78px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.12;
}
.hg-store .hg-info--how-to-buy .hg-buy-cover p {
    max-inline-size: 35em;
    margin: 18px 0 24px;
    color: var(--hg-muted);
    font-size: clamp(16px, 1.32vw, 19px);
    line-height: 1.65;
}
.hg-info--how-to-buy .hg-buy-scene {
    aspect-ratio: 4 / 3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hg-info--how-to-buy .hg-buy-scene--size {
    align-self: stretch;
    background-image: var(--buy-size-scene);
}
.hg-store .hg-info--how-to-buy .hg-buy-catalogue {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 46px;
    padding: 11px 19px;
    border-radius: 8px;
    background: var(--hg-red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.hg-store .hg-info--how-to-buy .hg-buy-catalogue:hover { background: #ad1e17; }
html[data-theme="dark"] .hg-info--how-to-buy .hg-buy-catalogue { background: #dc0100; }
html[data-theme="dark"] .hg-info--how-to-buy .hg-buy-catalogue:hover { background: #b00908; }
.hg-info--how-to-buy .hg-buy-catalogue svg,
.hg-info--how-to-buy .hg-buy-index svg { width: 19px; height: 19px; }
.hg-info--how-to-buy .hg-buy-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--hg-line);
}
.hg-store .hg-info--how-to-buy .hg-buy-index a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 10px clamp(12px, 2vw, 32px);
    color: var(--hg-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.hg-info--how-to-buy .hg-buy-index a + a { border-inline-start: 1px solid var(--hg-line); }
.hg-store .hg-info--how-to-buy .hg-buy-index a:hover { background: var(--hg-soft); }
.hg-info--how-to-buy .hg-buy-range {
    flex-shrink: 0;
    color: var(--hg-red);
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.hg-info--how-to-buy .hg-buy-index svg { margin-inline-start: auto; transform: rotate(90deg); }
.hg-store .jp-editorial .hg-info--how-to-buy .hg-buy-chapter {
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
    align-items: start;
    gap: clamp(32px, 5vw, 84px);
    margin: 0;
    padding: clamp(40px, 5vw, 74px) 0;
    border: 0;
    border-bottom: 1px solid var(--hg-line);
}
.hg-store .hg-info--how-to-buy .hg-buy-chapter h2 {
    margin: 0 0 24px;
    color: var(--hg-ink);
    font-size: clamp(26px, 2.55vw, 39px);
    letter-spacing: -.025em;
    line-height: 1.25;
}
.hg-info--how-to-buy :is(.hg-buy-chapter h2, .hg-buy-step) { scroll-margin-block-start: 8rem; }
.hg-info--how-to-buy .hg-buy-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.hg-info--how-to-buy :is(.hg-buy-examples figure, .hg-buy-packing) { margin: 0; }
.hg-info--how-to-buy .hg-buy-examples img,
.hg-info--how-to-buy .hg-buy-scene--packing {
    width: 100%;
    border-radius: 8px;
}
.hg-info--how-to-buy .hg-buy-scene--packing { background-image: var(--buy-packing-scene); }
.hg-store .hg-info--how-to-buy figcaption {
    margin-block-start: 7px;
    color: var(--hg-muted);
    font-size: 14px;
    line-height: 1.5;
}
.hg-info--how-to-buy .hg-buy-steps { margin: 0; padding: 0; list-style: none; }
.hg-store .hg-info--how-to-buy .hg-buy-step {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: clamp(12px, 2vw, 28px);
    margin: 0;
    padding: 22px 0;
    border-block-start: 1px solid var(--hg-line);
}
.hg-store .hg-info--how-to-buy .hg-buy-step:first-child { padding-block-start: 0; border: 0; }
.hg-store .hg-info--how-to-buy .hg-buy-step:last-child { padding-block-end: 0; }
.hg-info--how-to-buy .hg-buy-step__num {
    color: var(--hg-red);
    font: 700 clamp(20px, 2vw, 29px)/1.3 Montserrat, sans-serif;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.hg-store .hg-info--how-to-buy .hg-buy-step h3 {
    margin: 0;
    color: var(--hg-ink);
    font-size: clamp(20px, 1.6vw, 25px);
    line-height: 1.4;
}
.hg-store .hg-info--how-to-buy .hg-buy-step p {
    max-inline-size: 43em;
    margin: 8px 0 0;
    color: var(--hg-ink);
    font-size: 16px;
    line-height: 1.75;
}
.hg-store .hg-info--how-to-buy .hg-buy-step .hg-info-links { margin-block-start: 4px; }
.hg-info--how-to-buy .hg-buy-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-block: 12px 14px;
    padding: 12px 14px;
    border: 1px solid var(--hg-line);
    border-inline-start-width: 3px;
    border-radius: 12px;
    background: var(--hg-soft);
}
.hg-info--how-to-buy .hg-buy-tip__name {
    display: block;
    color: var(--hg-ink);
    font-size: 13px;
    line-height: 1.45;
}
.hg-store .hg-info--how-to-buy .hg-buy-tip p {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 1.55;
}
.hg-info--how-to-buy .hg-buy-tip .hg-v34-face {
    display: block;
    flex: none;
    inline-size: 42px;
    block-size: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--hg-white);
}
.hg-info--how-to-buy .hg-buy-tip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hg-info--how-to-buy .hg-buy-tip img[data-hg-mascot-theme="night"],
html[data-theme="dark"] .hg-info--how-to-buy .hg-buy-tip img[data-hg-mascot-theme="day"] { display: none; }
html[data-theme="dark"] .hg-info--how-to-buy .hg-buy-tip img[data-hg-mascot-theme="night"] { display: block; }
.hg-info--how-to-buy .hg-buy-step.is-current .hg-buy-tip {
    border-inline-start-color: var(--hg-red);
}
@media (prefers-reduced-motion: no-preference) {
    .hg-info--how-to-buy .hg-buy-step.is-current .hg-buy-tip {
        animation: hg-buy-tip-enter 260ms ease-out;
    }
}
@keyframes hg-buy-tip-enter {
    from { transform: translateY(5px); }
    to { transform: translateY(0); }
}
.hg-info--how-to-buy .hg-buy-support { max-width: 42rem; margin: 32px auto 0; }
.hg-info--how-to-buy .hg-buy-support:empty { display: none; }
@media (max-width: 760px) {
    .hg-info--how-to-buy { --buy-size-scene: url("purchase-editorial/fitment-day-480.webp"); }
    html[data-theme="dark"] .hg-info--how-to-buy { --buy-size-scene: url("purchase-editorial/fitment-night-480.webp"); }
    .hg-info--how-to-buy .hg-buy-cover { grid-template-columns: 1fr; }
    .hg-info--how-to-buy .hg-buy-cover__copy { padding: 24px; }
    .hg-store .hg-info--how-to-buy .hg-buy-cover h1 { font-size: clamp(32px, 8vw, 45px); }
    .hg-store .hg-info--how-to-buy .hg-buy-cover p { margin: 12px 0 16px; }
    .hg-info--how-to-buy .hg-buy-scene--size { width: 100%; }
    .hg-info--how-to-buy .hg-buy-index { grid-template-columns: 1fr; }
    .hg-store .hg-info--how-to-buy .hg-buy-index a { min-height: 48px; padding: 10px 4px; }
    .hg-info--how-to-buy .hg-buy-index a + a { border-inline-start: 0; border-block-start: 1px solid var(--hg-line); }
    .hg-store .jp-editorial .hg-info--how-to-buy .hg-buy-chapter { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 36px 0; }
    .hg-store .hg-info--how-to-buy .hg-buy-chapter h2 { margin-block-end: 16px; }
    .hg-info--how-to-buy .hg-buy-packing { max-width: 460px; }
    .hg-store .hg-info--how-to-buy .hg-buy-step { column-gap: 16px; }
    .hg-info--how-to-buy .hg-buy-tip { gap: 8px; padding: 10px; }
    .hg-info--how-to-buy .hg-buy-tip .hg-v34-face { inline-size: 34px; block-size: 34px; }
}
@media (min-width: 761px) and (min-resolution: 1.5dppx) {
    .hg-info--how-to-buy { --buy-size-scene: url("purchase-editorial/fitment-day-1448.webp"); }
    html[data-theme="dark"] .hg-info--how-to-buy { --buy-size-scene: url("purchase-editorial/fitment-night-1448.webp"); }
}
