

/* Start:/local/templates/ranto/assets/ranto.css?1791290152115065*/
/* Roboto — шрифт из референса */
@font-face {
    font-family: Roboto;
    src: url(/local/templates/ranto/fonts/roboto/roboto-light.woff) format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Roboto;
    src: url(/local/templates/ranto/fonts/roboto/roboto-regular.woff) format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Roboto;
    src: url(/local/templates/ranto/fonts/roboto/roboto-medium.woff) format('woff');
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Roboto;
    src: url(/local/templates/ranto/fonts/roboto/roboto-bold.woff) format('woff');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --ranto-accent: #0061b2;
    --ranto-accent-hover: #006ac2;
    --ranto-accent-soft: #e8f1fa;
    --ranto-accent-2: #006ac2;
    --ranto-surface: #fff;
    --ranto-surface-soft: #f3f3f3;
    --ranto-surface-raised: #f9f9f9;
    --ranto-ink: #202020;
    --ranto-muted: #707070;
    --ranto-muted-2: #888888;
    --ranto-border: #e7e8ea;
    --ranto-success: #147a50;
    --ranto-warning: #9a6200;
    --ranto-danger: #c93c3c;
    --ranto-signal: #f04b2f;
    --ranto-focus: #0061b2;
    --ranto-accent-light: #7cbcf0;
    --ranto-shell: 1320px;
    --ranto-shadow-card: 0 1px 2px rgb(18 24 38 / 6%);
    --ranto-shadow-overlay: 0 20px 50px rgb(18 24 38 / 16%);
    --ranto-radius-xs: 10px;
    --ranto-radius-sm: 12px;
    --ranto-radius-md: 16px;
    --ranto-radius-lg: 24px;
    --ranto-header-offset: 154px;
}

/* Nova-inspired neutral blue visual baseline (kept as soft overrides only). */
:root {
    --ranto-accent: #0061b2;
    --ranto-accent-hover: #006ac2;
    --ranto-accent-soft: #e8f1fa;
    --ranto-surface: #ffffff;
    --ranto-surface-soft: #f3f3f3;
    --ranto-surface-raised: #f9f9f9;
    --ranto-ink: #202020;
    --ranto-muted: #707070;
    --ranto-muted-2: #888888;
    --ranto-border: #e7e8ea;
    --ranto-success: #0b9f66;
    --ranto-warning: #cf7a00;
    --ranto-danger: #d92d4a;
    --ranto-focus: #0061b2;
    --ranto-accent-light: #7cbcf0;
    --ranto-shell: 1320px;
    --ranto-radius-lg: 26px;
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body.ranto-page,
.ranto-preview {
    margin: 0;
    color: var(--ranto-ink);
    background: var(--ranto-surface);
    font-family: Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.ranto-lock {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
summary {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--ranto-focus);
    outline-offset: 2px;
}

.ranto-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ranto-skip {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    border-radius: var(--ranto-radius-xs);
    color: #fff;
    background: var(--ranto-ink);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.ranto-skip:focus {
    transform: translateY(0);
}

.ranto-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ranto-sprite symbol > * {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ranto-shell {
    width: min(calc(100% - 64px), var(--ranto-shell));
    margin-inline: auto;
}

.ranto-header {
    position: relative;
    z-index: 600;
    border-bottom: 1px solid var(--ranto-border);
    background: var(--ranto-surface);
}

.ranto-topbar {
    min-height: 36px;
    color: var(--ranto-muted);
    background: var(--ranto-surface-soft);
    font-size: 13px;
}

.ranto-topbar__inner,
.ranto-topbar__links,
.ranto-topbar__contacts {
    display: flex;
    align-items: center;
}

.ranto-topbar__inner {
    min-height: 36px;
    gap: 28px;
}

.ranto-topbar__promise {
    margin-right: auto;
}

.ranto-topbar__links {
    gap: 18px;
}

.ranto-topbar__contacts {
    gap: 20px;
}

.ranto-topbar a:hover {
    color: var(--ranto-ink);
}

.ranto-header__main-slot {
    min-height: 76px;
    background: var(--ranto-surface);
}

.ranto-header__main {
    display: grid;
    min-height: 76px;
    grid-template-columns: auto auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 16px;
    transition: min-height 180ms ease, opacity 180ms ease;
}

.ranto-header.is-main-fixed .ranto-header__main {
    position: fixed;
    z-index: 610;
    top: 0;
    right: 0;
    left: 0;
    min-height: 64px;
    border-bottom: 1px solid var(--ranto-border);
    background: color-mix(in srgb, var(--ranto-surface) 97%, transparent);
    box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ranto-surface) 97%, transparent);
    clip-path: inset(0 -100vmax);
    backdrop-filter: blur(16px);
}

.ranto-header.is-main-fixed .ranto-mega {
    position: fixed;
    top: 64px;
}

.ranto-header__burger {
    display: none !important;
}

.ranto-logo {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 10px;
    border-radius: var(--ranto-radius-xs);
    font-weight: 760;
    letter-spacing: -.03em;
}

.ranto-logo__mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 13px 13px 6px 13px;
    color: #fff;
    background: var(--ranto-accent);
    box-shadow: inset -8px -8px 18px rgb(0 0 0 / 10%);
    place-items: center;
    font-size: 20px;
    transform: rotate(-5deg);
}

.ranto-logo__mark::after {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--ranto-surface);
    border-radius: 50%;
    background: var(--ranto-signal);
    content: "";
}

.ranto-logo__word {
    font-size: 24px;
}

.ranto-logo__image {
    display: block;
    width: auto;
    max-width: var(--ranto-logo-width, 190px);
    height: 44px;
    object-fit: contain;
}

.ranto-logo__image--mobile {
    display: none;
}

.ranto-catalog-trigger,
.ranto-primary-button,
.ranto-secondary-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: var(--ranto-radius-sm);
    cursor: pointer;
    font-weight: 680;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.ranto-catalog-trigger,
.ranto-primary-button {
    padding: 0 20px;
    color: #fff;
    background: var(--ranto-accent);
}

.ranto-catalog-trigger:hover,
.ranto-primary-button:hover {
    background: var(--ranto-accent-hover);
}

.ranto-catalog-trigger:active,
.ranto-primary-button:active,
.ranto-secondary-button:active {
    transform: translateY(1px);
}

.ranto-catalog-trigger svg,
.ranto-actions svg,
.ranto-header__mobile-cart svg,
.ranto-icon-button svg,
.ranto-search svg,
.ranto-drawer__search svg,
.ranto-mobile-bar svg,
.ranto-menu svg,
.ranto-mega svg,
.ranto-mobile-menu svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ranto-search {
    display: grid;
    height: 48px;
    grid-template-columns: 1fr 48px;
    overflow: hidden;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-sm);
    background: var(--ranto-surface-raised);
    transition: border 120ms ease, box-shadow 120ms ease;
}

.ranto-search:focus-within {
    border-color: var(--ranto-accent);
    box-shadow: 0 0 0 4px var(--ranto-accent-soft);
}

.ranto-drawer__search:focus-within {
    border-color: var(--ranto-accent);
    box-shadow: 0 0 0 4px var(--ranto-accent-soft);
}

.ranto-search input,
.ranto-drawer__search input {
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

.ranto-search input::placeholder,
.ranto-drawer__search input::placeholder {
    color: var(--ranto-muted-2);
}

.ranto-search button,
.ranto-drawer__search button {
    display: grid;
    border: 0;
    cursor: pointer;
    background: transparent;
    place-items: center;
}

.ranto-search button:hover,
.ranto-drawer__search button:hover {
    color: var(--ranto-accent);
}

.ranto-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ranto-header__mobile-cart {
    display: none;
}

.ranto-actions a {
    position: relative;
    display: flex;
    min-width: 64px;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: var(--ranto-radius-xs);
    color: var(--ranto-muted);
    font-size: 12px;
    transition: color 120ms ease, background 120ms ease;
}

.ranto-actions a:hover {
    color: var(--ranto-ink);
    background: var(--ranto-surface-soft);
}

.ranto-actions b {
    position: absolute;
    top: 3px;
    right: 7px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid var(--ranto-surface);
    border-radius: 99px;
    color: #fff;
    background: var(--ranto-signal);
    place-items: center;
    font-size: 10px;
}

.ranto-mobile-bar a {
    position: relative;
}

.ranto-mobile-bar [data-ranto-favorite-count] {
    position: absolute;
    top: 2px;
    left: calc(50% + 5px);
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid var(--ranto-surface);
    border-radius: 99px;
    color: #fff;
    background: var(--ranto-signal);
    place-items: center;
    font-size: 9px;
    line-height: 1;
}

.ranto-header__nav {
    border-top: 1px solid var(--ranto-border);
}

.ranto-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranto-menu--desktop {
    display: flex;
    min-height: 41px;
    align-items: center;
    gap: 28px;
}

.ranto-menu__item {
    position: relative;
}

.ranto-menu__item > a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ranto-menu--desktop > .ranto-menu__item > a {
    min-height: 41px;
    color: var(--ranto-muted);
    font-size: 14px;
    font-weight: 580;
}

.ranto-menu--desktop > .ranto-menu__item > a:hover,
.ranto-menu--desktop > .ranto-menu__item.is-active > a {
    color: var(--ranto-accent);
}

.ranto-menu__item > a > svg {
    width: 15px;
    height: 15px;
}

.ranto-menu__children {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    left: -16px;
    display: none;
    min-width: 240px;
    padding: 10px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-md);
    background: var(--ranto-surface);
    box-shadow: none;
    list-style: none;
}

.ranto-menu__item:hover > .ranto-menu__children,
.ranto-menu__item:focus-within > .ranto-menu__children {
    display: block;
}

.ranto-menu__children .ranto-menu__item > a {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 9px;
    justify-content: space-between;
}

.ranto-menu__children .ranto-menu__item > a:hover {
    background: var(--ranto-surface-soft);
}

.ranto-menu__children .ranto-menu__children {
    top: -10px;
    left: calc(100% - 2px);
}

.ranto-mega {
    position: absolute;
    z-index: 590;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 12px 0 32px;
    opacity: 0;
    background: transparent;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 280ms cubic-bezier(.22, 1, .36, 1), transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.ranto-mega.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ranto-mega__surface {
    max-height: calc(100vh - var(--ranto-header-offset));
    padding: 24px;
    overflow: auto;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-lg);
    background: var(--ranto-surface);
    box-shadow: none;
}

.ranto-mega__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ranto-border);
}

.ranto-mega__head strong {
    font-size: 24px;
}

.ranto-mega__head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ranto-accent);
    font-weight: 650;
}

.ranto-mega .ranto-menu--desktop {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 24px 32px;
}

.ranto-mega .ranto-menu--desktop > .ranto-menu__item > a {
    min-height: 48px;
    color: var(--ranto-ink);
    font-size: 16px;
    font-weight: 700;
}

.ranto-mega .ranto-menu__item > a img {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    object-fit: contain;
}

.ranto-mega .ranto-menu--desktop > .ranto-menu__item > .ranto-menu__children {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 46px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ranto-mega .ranto-menu__children .ranto-menu__item > a {
    min-height: 34px;
    padding: 4px 0;
    color: var(--ranto-muted);
    justify-content: flex-start;
    font-size: 14px;
}

.ranto-mega .ranto-menu__children .ranto-menu__item > a:hover {
    color: var(--ranto-accent);
    background: transparent;
}

.ranto-mega .ranto-menu__children .ranto-menu__children {
    position: static;
    display: block;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
}

.ranto-icon-button {
    display: inline-grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: var(--ranto-radius-xs);
    cursor: pointer;
    background: transparent;
    place-items: center;
}

.ranto-icon-button:hover {
    background: var(--ranto-surface-soft);
}

.ranto-drawer,
.ranto-mobile-bar {
    display: none;
}

.ranto-main {
    min-height: 55vh;
}

.ranto-breadcrumbs {
    display: flex;
    padding: 0;
    margin: 0 0 20px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ranto-muted-2);
    list-style: none;
    font-size: 13px;
}

.ranto-breadcrumbs li:not(:last-child)::after {
    margin-left: 8px;
    content: "/";
}

.ranto-hero {
    display: grid;
    min-height: 480px;
    padding: 54px;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 38%, rgb(183 243 74 / 85%) 0 12%, transparent 13%),
        radial-gradient(circle at 88% 78%, rgb(255 255 255 / 17%) 0 17%, transparent 18%),
        linear-gradient(125deg, #003f75 0%, #0061b2 54%, #006ac2 100%);
    grid-template-columns: minmax(0, 650px) 1fr;
    align-items: center;
}

.ranto-hero__eyebrow {
    display: inline-flex;
    width: max-content;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    font-size: 13px;
    font-weight: 650;
}

.ranto-hero h1 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.ranto-hero p {
    max-width: 600px;
    margin: 0 0 28px;
    color: rgb(255 255 255 / 76%);
    font-size: 18px;
}

.ranto-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ranto-hero .ranto-primary-button {
    color: var(--ranto-ink);
    background: var(--ranto-accent-2);
}

.ranto-secondary-button {
    padding: 0 20px;
    border: 1px solid var(--ranto-border);
    background: var(--ranto-surface);
}

.ranto-hero .ranto-secondary-button {
    border-color: rgb(255 255 255 / 30%);
    color: #fff;
    background: rgb(255 255 255 / 8%);
}

.ranto-hero--slider {
    display: block;
    min-height: 0;
    padding: 0;
    background: none;
}

.ranto-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #213a9a;
    isolation: isolate;
}

.ranto-hero-slide {
    position: relative;
    display: grid;
    min-height: 480px;
    padding: 54px 54px 86px;
    overflow: hidden;
    color: var(--ranto-hero-slide-text, #fff);
    background:
        radial-gradient(circle at 70% 28%, rgb(255 255 255 / 15%) 0 12%, transparent 13%),
        linear-gradient(125deg, #142147 0%, var(--ranto-hero-slide-bg, #213a9a) 100%);
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    align-items: center;
    gap: 42px;
    animation: ranto-hero-enter 320ms ease both;
}

.ranto-hero-slide[hidden] {
    display: none;
}

.ranto-hero-slide__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.ranto-hero-slide__copy p {
    color: currentColor;
    opacity: .78;
}

.ranto-hero-slide__copy .ranto-secondary-button {
    border-color: currentColor;
    color: currentColor;
}

.ranto-hero-slide__visual {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 340px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 26px 26px 8px 26px;
    background: rgb(255 255 255 / 10%);
    box-shadow: 0 28px 80px rgb(3 12 44 / 28%);
}

.ranto-hero-slide__visual::after {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ranto-signal);
    box-shadow: 0 0 0 8px rgb(255 255 255 / 12%);
    content: "";
}

.ranto-hero-slide__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranto-hero-slide__visual > span {
    position: absolute;
    right: 24px;
    bottom: -22px;
    color: rgb(255 255 255 / 16%);
    font-size: clamp(150px, 18vw, 250px);
    font-weight: 800;
    line-height: .8;
    letter-spacing: -.1em;
}

.ranto-hero-slider__controls {
    position: absolute;
    z-index: 5;
    right: 54px;
    bottom: 28px;
    left: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.ranto-hero-slider__arrows,
.ranto-hero-slider__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.ranto-hero-slider__arrows button {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    background: rgb(8 20 52 / 32%);
    backdrop-filter: blur(10px);
    place-items: center;
    font-size: 28px;
    line-height: 1;
}

.ranto-hero-slider__dots button {
    width: 20px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgb(255 255 255 / 38%);
    transition: width 180ms ease, background-color 180ms ease;
}

.ranto-hero-slider__dots button.is-active {
    width: 42px;
    background: var(--ranto-accent-2);
}

@keyframes ranto-hero-enter {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.ranto-section {
    padding: 64px 0;
}

.ranto-section--soft {
    background: var(--ranto-surface-soft);
}

/* Страницы с хлебными крошками начинаются сразу под шапкой:
   полные 64px сверху отрывают крошки от неё. */
.ranto-section--compact {
    padding-top: 24px;
}

.ranto-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.ranto-section__head h1,
.ranto-section__head h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.ranto-section__head p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--ranto-muted);
}

.ranto-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.ranto-category-card {
    display: flex;
    min-height: 104px;
    padding: 16px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-md);
    background: var(--ranto-surface);
    box-shadow: var(--ranto-shadow-card);
    font-weight: 650;
    transition: border 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.ranto-category-card:hover {
    border-color: var(--ranto-accent);
    box-shadow: 0 8px 22px rgb(18 24 38 / 8%);
    transform: translateY(-2px);
}

.ranto-category-card__icon,
.ranto-mobile-menu__fallback,
.ranto-demo-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    color: var(--ranto-accent-hover);
    background: var(--ranto-accent-soft);
    place-items: center;
    font-weight: 760;
}

.ranto-catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.ranto-filter {
    position: sticky;
    top: 84px;
    padding: 22px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-lg);
    background: var(--ranto-surface);
}

.ranto-filter-drawer__backdrop,
.ranto-filter-drawer__head {
    display: none;
}

.ranto-filter__result {
    padding: 12px 0 0;
    color: var(--ranto-muted);
    font-size: 13px;
}

.ranto-filter__result a {
    margin-left: 6px;
    color: var(--ranto-accent);
    font-weight: 700;
}

.ranto-filter__head,
.ranto-toolbar,
.ranto-filter__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ranto-filter__head {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ranto-border);
}

.ranto-filter__head h2 {
    margin: 0;
    font-size: 20px;
}

.ranto-filter__head button,
.ranto-filter__actions button:not(.ranto-primary-button),
.ranto-link-button {
    padding: 0;
    border: 0;
    color: var(--ranto-accent);
    cursor: pointer;
    background: transparent;
    font-weight: 620;
}

.ranto-filter details {
    border-bottom: 1px solid var(--ranto-border);
}

.ranto-filter summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}

.ranto-filter summary::-webkit-details-marker {
    display: none;
}

.ranto-filter summary::after {
    color: var(--ranto-muted-2);
    content: "+";
    font-size: 20px;
}

.ranto-filter details[open] summary::after {
    content: "−";
}

.ranto-filter__body {
    display: grid;
    padding: 0 0 18px;
    gap: 10px;
}

.ranto-filter label {
    display: grid;
    min-height: 32px;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--ranto-muted);
}

.ranto-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ranto-accent);
}

.ranto-filter label small {
    color: var(--ranto-muted-2);
}

.ranto-filter__range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ranto-filter__range input,
.ranto-filter__search {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-xs);
    outline: 0;
}

.ranto-filter__range input:focus-visible,
.ranto-filter__search:focus-visible {
    border-color: var(--ranto-accent);
    outline: 3px solid var(--ranto-focus);
    outline-offset: 2px;
}

.ranto-filter__actions {
    padding-top: 18px;
}

.ranto-toolbar {
    min-height: 48px;
    margin-bottom: 18px;
}

.ranto-toolbar__chips,
.ranto-toolbar__controls,
.ranto-selected-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ranto-chip {
    display: inline-flex;
    min-height: 36px;
    padding: 0 13px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--ranto-border);
    border-radius: 999px;
    color: var(--ranto-muted);
    background: var(--ranto-surface);
    font-size: 13px;
    font-weight: 600;
}

.ranto-chip.is-selected {
    border-color: var(--ranto-accent);
    color: var(--ranto-accent-hover);
    background: var(--ranto-accent-soft);
}

.ranto-toolbar select {
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-xs);
    background: var(--ranto-surface);
}

.ranto-mobile-filter-trigger {
    display: none;
}

.ranto-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ranto-product-grid--list {
    grid-template-columns: 1fr;
}

.ranto-product-grid--list .ranto-product-card {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 18px;
}

.ranto-product-grid--list .ranto-product-card__media {
    height: 100%;
    min-height: 210px;
    aspect-ratio: auto;
}

.ranto-product-grid--list .ranto-product-card__body {
    padding: 10px 8px 8px 0;
}

.ranto-product-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 10px;
}

.ranto-product-grid--compact .ranto-product-card {
    padding: 9px;
    border-radius: 14px;
}

.ranto-product-grid--compact .ranto-product-card__body {
    padding-top: 10px;
}

.ranto-product-grid--compact .ranto-product-card__title {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 14px;
}

.ranto-product-grid--compact .ranto-product-card__price strong {
    font-size: 17px;
}

.ranto-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 12px;
    flex-direction: column;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-md);
    background: var(--ranto-surface);
    box-shadow: var(--ranto-shadow-card);
    transition: border 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.ranto-product-card:hover {
    border-color: #c8ced8;
    box-shadow: 0 12px 30px rgb(18 24 38 / 10%);
    transform: translateY(-2px);
}

.ranto-product-card__media {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--product-color, #e9eeff), #fff);
    place-items: center;
}

.ranto-product-card__media::before {
    width: 55%;
    border: 10px solid rgb(255 255 255 / 70%);
    border-radius: 36% 44% 38% 42%;
    box-shadow: 0 22px 30px rgb(49 94 245 / 14%);
    content: "";
    aspect-ratio: .82;
    transform: rotate(8deg);
}

.ranto-product-card__media--has-image::before {
    display: none;
}

.ranto-product-card__media--has-image .ranto-product-card__image {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.035);
    transform-origin: center;
    transition: opacity 220ms ease, transform 280ms ease;
}

.ranto-product-card__media--has-image .ranto-product-card__image.is-active {
    z-index: 1;
    opacity: 1;
}

.ranto-product-card__gallery-dots {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 10px;
    left: 12px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.ranto-product-card__gallery-dots i {
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: rgb(18 24 38 / 28%);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 42%);
    transition: width 180ms ease, background-color 180ms ease;
}

.ranto-product-card__gallery-dots i.is-active {
    width: 28px;
    background: var(--ranto-accent);
}

.ranto-product-card__badges {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ranto-badge {
    padding: 5px 8px;
    border-radius: 7px;
    color: var(--ranto-ink);
    background: var(--ranto-accent-2);
    font-size: 11px;
    font-weight: 750;
}

.ranto-badge--sale {
    color: #fff;
    background: var(--ranto-danger);
}

.ranto-product-card__favorite {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: grid;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgb(255 255 255 / 90%);
    place-items: center;
}

.ranto-product-card__favorite svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.ranto-product-card__favorite.is-active,
.ranto-product-card__favorite[aria-pressed="true"] {
    color: #fff;
    background: var(--ranto-accent);
}

.ranto-product-card__favorite.is-active svg,
.ranto-product-card__favorite[aria-pressed="true"] svg {
    fill: currentColor;
}

.ranto-favorites-loading {
    padding: 22px 0;
    color: var(--ranto-muted);
}

.ranto-drawer .ranto-logo__image {
    max-width: var(--ranto-logo-mobile-width, 150px);
}

.ranto-product-card__body {
    display: flex;
    padding: 14px 4px 4px;
    flex: 1;
    flex-direction: column;
}

.ranto-product-card__meta {
    display: flex;
    min-height: 22px;
    align-items: center;
    gap: 8px;
    color: var(--ranto-muted-2);
    font-size: 12px;
}

.ranto-product-card__rating {
    color: var(--ranto-warning);
    font-weight: 700;
}

.ranto-product-card__title {
    display: -webkit-box;
    min-height: 48px;
    margin: 7px 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 650;
}

.ranto-product-card__delivery {
    margin-bottom: 10px;
    color: var(--ranto-success);
    font-size: 13px;
    font-weight: 620;
}

.ranto-product-card__price {
    display: flex;
    min-height: 28px;
    margin-top: auto;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}

.ranto-product-card__price strong {
    font-size: 20px;
    letter-spacing: -.02em;
}

.ranto-product-card__price del {
    color: var(--ranto-muted-2);
    font-size: 13px;
}

.ranto-product-card__buy {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
}

[data-ranto-add-to-basket] button[aria-busy="true"] {
    cursor: wait;
    opacity: .78;
}

[data-ranto-add-to-basket] button.is-success {
    color: #fff;
    background: var(--ranto-success);
}

.ranto-toast-region {
    position: fixed;
    z-index: 10020;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    display: grid;
    width: min(390px, calc(100vw - 40px));
    gap: 10px;
    pointer-events: none;
}

.ranto-toast {
    display: flex;
    padding: 14px 16px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--ranto-radius-sm);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    background: var(--ranto-ink);
    box-shadow: 0 18px 46px rgb(18 24 38 / 24%);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.ranto-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ranto-toast.is-error {
    background: #9f1d2c;
}

.ranto-toast a {
    flex: 0 0 auto;
    color: var(--ranto-accent-2);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ranto-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ranto-trust-card {
    padding: 24px;
    border-radius: var(--ranto-radius-md);
    background: var(--ranto-surface-soft);
}

.ranto-trust-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 18px;
}

.ranto-trust-card span {
    color: var(--ranto-muted);
    font-size: 14px;
}

.ranto-footer {
    padding: 60px 0 20px;
    color: #fff;
    background: var(--ranto-ink);
}

.ranto-footer__grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1fr;
    gap: 48px;
}

.ranto-footer .ranto-logo__mark {
    color: var(--ranto-ink);
    background: var(--ranto-accent-2);
}

.ranto-footer__brand p {
    max-width: 340px;
    color: rgb(255 255 255 / 62%);
}

.ranto-footer__brand > a:not(.ranto-logo) {
    display: block;
    width: max-content;
    margin-top: 7px;
}

.ranto-footer section h2 {
    margin: 0 0 16px;
    color: rgb(255 255 255 / 52%);
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ranto-footer .ranto-mobile-menu__trail,
.ranto-footer .ranto-mobile-menu__fallback,
.ranto-footer .ranto-mobile-menu__item > button,
.ranto-footer .ranto-mobile-menu__level .ranto-mobile-menu__level {
    display: none !important;
}

.ranto-footer .ranto-mobile-menu__level,
.ranto-footer__links {
    display: grid;
    padding: 0;
    margin: 0;
    gap: 10px;
    list-style: none;
}

.ranto-footer .ranto-mobile-menu__item > a,
.ranto-footer__links a,
.ranto-footer__links button {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    color: rgb(255 255 255 / 72%);
    cursor: pointer;
    background: transparent;
    font-size: 14px;
}

.ranto-footer .ranto-mobile-menu__item > a:hover,
.ranto-footer__links a:hover,
.ranto-footer__links button:hover {
    color: #fff;
}

.ranto-footer a:focus-visible,
.ranto-footer button:focus-visible {
    outline-color: var(--ranto-accent-2);
}

.ranto-footer__bottom {
    display: flex;
    padding-top: 22px;
    margin-top: 48px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: rgb(255 255 255 / 46%);
    font-size: 12px;
}

.ranto-footer__developer {
    color: rgb(255 255 255 / 74%);
    white-space: nowrap;
}

.ranto-footer__developer strong {
    color: #fff;
    font-weight: 760;
}

.ranto-footer__developer:hover {
    color: var(--ranto-accent-2);
}

@media (max-width: 1279px) {
    .ranto-shell {
        width: min(calc(100% - 48px), var(--ranto-shell));
    }

    .ranto-header__main {
        grid-template-columns: auto auto minmax(230px, 1fr) auto;
    }

    .ranto-actions a {
        min-width: 52px;
    }

    .ranto-actions a > span {
        display: none;
    }

    .ranto-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ranto-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    :root {
        --ranto-header-offset: 64px;
    }

    .ranto-shell {
        width: min(calc(100% - 32px), var(--ranto-shell));
    }

    .ranto-topbar,
    .ranto-header__nav,
    .ranto-catalog-trigger,
    .ranto-actions,
    .ranto-header__main > .ranto-search,
    .ranto-mega {
        display: none !important;
    }

    .ranto-header__main {
        display: grid;
        min-height: 64px;
        grid-template-columns: 48px 1fr 48px;
        gap: 8px;
    }

    .ranto-header__main-slot {
        min-height: 64px;
    }

    .ranto-header__burger {
        display: inline-grid !important;
    }

    .ranto-header__main > .ranto-logo {
        justify-self: center;
    }

    .ranto-header__mobile-cart {
        position: relative;
        display: inline-grid;
        width: 48px;
        height: 48px;
        border-radius: var(--ranto-radius-xs);
        align-items: center;
        justify-self: end;
        color: var(--ranto-muted);
        place-items: center;
    }

    .ranto-header__mobile-cart:hover {
        color: var(--ranto-accent);
        background: var(--ranto-surface-soft);
    }

    .ranto-header__mobile-cart b {
        position: absolute;
        top: 2px;
        right: 1px;
        display: grid;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border: 2px solid var(--ranto-surface);
        border-radius: 99px;
        color: #fff;
        background: var(--ranto-signal);
        place-items: center;
        font-size: 10px;
    }

    .ranto-logo__word {
        font-size: 21px;
    }

    .ranto-logo__mark {
        width: 34px;
        height: 34px;
        border-radius: 11px 11px 5px 11px;
        font-size: 18px;
    }

    .ranto-logo__image--desktop {
        display: none;
    }

    .ranto-logo__image--mobile {
        display: block;
        max-width: var(--ranto-logo-mobile-width, 150px);
        height: 38px;
    }

    .ranto-drawer {
        position: fixed;
        z-index: 900;
        inset: 0;
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
    }

    .ranto-drawer.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .ranto-drawer__backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        border: 0;
        background: rgb(18 24 38 / 48%);
    }

    .ranto-drawer__panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(100%, 520px);
        overflow: hidden auto;
        background: var(--ranto-surface);
        box-shadow: var(--ranto-shadow-overlay);
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .ranto-drawer.is-open .ranto-drawer__panel {
        transform: translateX(0);
    }

    .ranto-drawer__head {
        position: sticky;
        z-index: 3;
        top: 0;
        display: flex;
        min-height: 68px;
        padding: 0 16px;
        border-bottom: 1px solid var(--ranto-border);
        align-items: center;
        justify-content: space-between;
        background: color-mix(in srgb, var(--ranto-surface) 96%, transparent);
        backdrop-filter: blur(16px);
    }

    .ranto-drawer__search {
        display: grid;
        height: 48px;
        margin: 16px;
        grid-template-columns: 1fr 48px;
        overflow: hidden;
        border: 1px solid var(--ranto-border);
        border-radius: var(--ranto-radius-sm);
        background: var(--ranto-surface-soft);
    }

    .ranto-mobile-menu {
        position: relative;
        padding: 0 16px 16px;
        overflow: hidden;
    }

    .ranto-mobile-menu__trail {
        display: flex;
        min-height: 48px;
        align-items: center;
        gap: 12px;
    }

    .ranto-mobile-menu__trail button {
        display: inline-flex;
        min-height: 40px;
        padding: 0 8px 0 0;
        border: 0;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        background: transparent;
    }

    .ranto-mobile-menu__trail button svg {
        width: 18px;
        transform: rotate(180deg);
    }

    .ranto-mobile-menu__trail strong {
        font-size: 18px;
    }

    .ranto-mobile-menu__level {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .ranto-mobile-menu__level .ranto-mobile-menu__level {
        position: absolute;
        z-index: 2;
        top: 48px;
        left: 100%;
        display: none;
        width: 100%;
        min-height: calc(100vh - 196px);
        padding: 0 16px 24px;
        background: var(--ranto-surface);
        transform: translateX(12%);
        transition: transform 180ms ease;
    }

    .ranto-mobile-menu__level.is-current {
        left: 0;
        display: block;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .ranto-mobile-menu__level.is-ancestor {
        left: 0;
        display: block;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(0);
    }

    .ranto-mobile-menu.has-active-level .ranto-mobile-menu__level:not(.is-current) {
        visibility: hidden;
        pointer-events: none;
    }

    .ranto-mobile-menu__item {
        position: static;
        display: grid;
        min-height: 60px;
        border-bottom: 1px solid var(--ranto-border);
        grid-template-columns: minmax(0, 1fr) 48px;
        align-items: center;
    }

    .ranto-mobile-menu__item > a {
        display: flex;
        min-width: 0;
        min-height: 59px;
        align-items: center;
        gap: 12px;
        font-weight: 620;
    }

    .ranto-mobile-menu__item > a > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ranto-mobile-menu__fallback {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
        font-size: 14px;
    }

    .ranto-mobile-menu__item > a > img {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 11px;
        object-fit: contain;
    }

    .ranto-mobile-menu__item > button {
        display: grid;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        cursor: pointer;
        background: transparent;
        place-items: center;
    }

    .ranto-mobile-menu__item > button:hover {
        color: var(--ranto-accent);
        background: var(--ranto-accent-soft);
    }

    .ranto-drawer__secondary {
        padding: 16px 16px 96px;
        border-top: 8px solid var(--ranto-surface-soft);
    }

    .ranto-mobile-bar {
        position: fixed;
        z-index: 650;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        min-height: calc(66px + env(safe-area-inset-bottom));
        padding: 6px 8px env(safe-area-inset-bottom);
        border-top: 1px solid var(--ranto-border);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        background: color-mix(in srgb, var(--ranto-surface) 96%, transparent);
        box-shadow: 0 -8px 24px rgb(18 24 38 / 7%);
        backdrop-filter: blur(18px);
    }

    .ranto-lock .ranto-mobile-bar {
        display: none;
    }

    .ranto-mobile-bar a {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        border-radius: 9px;
        color: var(--ranto-muted);
        font-size: 10px;
    }

    .ranto-mobile-bar a.is-active {
        color: var(--ranto-accent);
    }

    .ranto-mobile-bar svg {
        width: 21px;
        height: 21px;
    }

    .ranto-action-mobile-cart {
        display: none !important;
    }

    .ranto-main {
        padding-bottom: 66px;
    }

    .ranto-hero {
        min-height: 430px;
        padding: 40px;
        grid-template-columns: 1fr;
    }

    .ranto-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ranto-catalog-layout {
        grid-template-columns: 1fr;
    }

    body.ranto-filter-lock {
        overflow: hidden;
    }

    .ranto-filter-drawer {
        position: fixed;
        z-index: 920;
        inset: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 0s linear 180ms;
    }

    .ranto-filter-drawer.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .ranto-filter-drawer__backdrop {
        position: absolute;
        display: block;
        inset: 0;
        width: 100%;
        border: 0;
        background: rgb(18 24 38 / 48%);
    }

    .ranto-filter-drawer__panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100%, 440px);
        overflow: hidden auto;
        background: var(--ranto-surface);
        box-shadow: var(--ranto-shadow-overlay);
        transform: translateX(100%);
        transition: transform 180ms ease;
    }

    .ranto-filter-drawer.is-open .ranto-filter-drawer__panel {
        transform: translateX(0);
    }

    .ranto-filter-drawer__head {
        position: sticky;
        z-index: 2;
        top: 0;
        display: flex;
        min-height: 64px;
        padding: 0 16px;
        border-bottom: 1px solid var(--ranto-border);
        align-items: center;
        justify-content: space-between;
        background: var(--ranto-surface);
    }

    .ranto-filter-drawer__head strong {
        font-size: 20px;
    }

    .ranto-filter-drawer__head .ranto-icon-button {
        font-size: 28px;
    }

    .ranto-filter-drawer .ranto-filter {
        position: static;
        display: block;
        padding: 16px;
        border: 0;
        border-radius: 0;
    }

    .ranto-mobile-filter-trigger {
        display: inline-flex;
    }

    .ranto-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ranto-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranto-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .ranto-footer__grid section:last-child {
        grid-column: 2 / -1;
    }
}

@media (max-width: 767px) {
    .ranto-shell {
        width: min(calc(100% - 32px), var(--ranto-shell));
    }

    .ranto-hero {
        min-height: 450px;
        padding: 28px 22px;
        margin-top: 16px;
        border-radius: var(--ranto-radius-lg);
        align-items: end;
    }

    .ranto-hero h1 {
        margin: 16px 0 14px;
        font-size: clamp(34px, 11vw, 48px);
    }

    .ranto-hero p {
        font-size: 16px;
    }

    .ranto-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ranto-section {
        padding: 44px 0;
    }

    .ranto-section--compact {
        padding-top: 16px;
    }

    .ranto-section__head {
        display: block;
        margin-bottom: 22px;
    }

    .ranto-section__head h1,
    .ranto-section__head h2 {
        font-size: 29px;
    }

    .ranto-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranto-category-card {
        min-height: 92px;
        padding: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        font-size: 13px;
    }

    .ranto-category-card__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 11px;
    }

    .ranto-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranto-toolbar__chips {
        width: calc(100vw - 16px);
        padding-right: 16px;
        flex-wrap: nowrap;
        overflow: auto;
        scrollbar-width: none;
    }

    .ranto-toolbar__chips::-webkit-scrollbar {
        display: none;
    }

    .ranto-toolbar__controls {
        width: 100%;
    }

    .ranto-toolbar select,
    .ranto-mobile-filter-trigger {
        flex: 1;
    }

    .ranto-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ranto-product-card {
        padding: 8px;
        border-radius: 13px;
    }

    .ranto-product-card:hover {
        box-shadow: var(--ranto-shadow-card);
        transform: none;
    }

    .ranto-product-card__body {
        padding: 10px 2px 2px;
    }

    .ranto-product-card__meta {
        display: block;
        font-size: 10px;
    }

    .ranto-product-card__meta span + span::before {
        content: " · ";
    }

    .ranto-product-card__title {
        min-height: 40px;
        margin: 5px 0 8px;
        font-size: 13px;
        line-height: 1.45;
    }

    .ranto-product-card__delivery {
        font-size: 11px;
    }

    .ranto-product-card__price strong {
        font-size: 17px;
    }

    .ranto-product-card__buy {
        min-height: 42px;
        padding: 0 10px;
        font-size: 13px;
    }

    .ranto-product-card__favorite {
        width: 36px;
        height: 36px;
    }

    .ranto-trust-grid {
        grid-template-columns: 1fr;
    }

    .ranto-footer {
        padding-top: 44px;
    }

    .ranto-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 20px;
    }

    .ranto-footer__brand {
        grid-column: 1 / -1;
    }

    .ranto-footer__grid section:last-child {
        grid-column: 1 / -1;
    }

    .ranto-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ranto-product-grid--list .ranto-product-card {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 10px;
    }

    .ranto-product-grid--list .ranto-product-card__media {
        min-height: 154px;
    }

    .ranto-product-grid--list .ranto-product-card__body {
        padding: 2px 2px 2px 0;
    }

    .ranto-product-grid--list .ranto-product-card__meta {
        display: none;
    }

    .ranto-product-grid--list .ranto-product-card__buy {
        min-height: 38px;
        margin-top: 8px;
    }
}

@media (max-width: 359px) {
    .ranto-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Подсказки поиска в шапке */
.ranto-search {
    position: relative;
    /* у формы скруглённая рамка с overflow: hidden — она обрезала выпадающий
       список подсказок, поэтому здесь обрезку снимаем */
    overflow: visible;
}

.ranto-search__suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
    border-radius: 14px;
    background: var(--ranto-surface, #fff);
    border: 1px solid rgba(18, 24, 38, .1);
    box-shadow: 0 18px 40px rgba(18, 24, 38, .16);
}

.ranto-search__suggest[hidden] {
    display: none;
}

.ranto-search__suggest-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.ranto-search__suggest-item:hover,
.ranto-search__suggest-item:focus-visible {
    background: rgba(49, 94, 245, .08);
}

.ranto-search__suggest-item img,
.ranto-search__suggest-stub {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(18, 24, 38, .06);
}

.ranto-search__suggest-name {
    font-size: 14px;
    line-height: 1.3;
}

.ranto-search__suggest-price {
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   Оформление заказа: штатный bitrix:sale.order.ajax приводим
   к оформлению «Ранто» — без цветных рамок-«светофора»
   и бутстраповской типографики.
   --------------------------------------------------------------- */
.bx-soa .bx-soa-section {
    margin: 0 0 16px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius);
    background: var(--ranto-surface);
    box-shadow: none;
}

.bx-soa .bx-soa-section.bx-selected,
.bx-soa .bx-soa-section.bx-step-completed,
.bx-soa .bx-soa-section.bx-active {
    border-color: var(--ranto-border);
}

.bx-soa .bx-soa-section-title-container {
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid var(--ranto-border);
    background: transparent;
}

.bx-soa .bx-soa-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ranto-text);
    font-size: 18px;
    font-weight: 680;
}

.bx-soa .bx-soa-section-title .bx-soa-section-title-count {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(49, 94, 245, .1);
    color: var(--ranto-accent);
    font-size: 13px;
    font-weight: 700;
}

.bx-soa .bx-soa-section-content {
    padding: 20px;
}

.bx-soa .bx-soa-editstep,
.bx-soa .bx-soa-editstep:hover {
    color: var(--ranto-accent);
    text-decoration: none;
    font-weight: 620;
}

.bx-soa .form-control,
.bx-soa input[type="text"],
.bx-soa input[type="email"],
.bx-soa input[type="tel"],
.bx-soa select,
.bx-soa textarea {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius-sm);
    box-shadow: none;
    color: var(--ranto-text);
    font-size: 15px;
}

.bx-soa .form-control:focus {
    border-color: var(--ranto-accent);
    box-shadow: 0 0 0 3px rgba(49, 94, 245, .14);
}

.bx-soa .btn,
.bx-soa .btn-default,
.bx-soa .btn-primary,
.bx-soa .bx-soa-pp-company .bx-soa-pp-company-graf-container {
    border-radius: var(--ranto-radius-sm);
}

.bx-soa .btn-primary,
.bx-soa .btn-default.bx-soa-more-btn,
.bx-soa #bx-soa-orderSave .btn {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    background: var(--ranto-accent);
    color: #fff;
    font-weight: 680;
    transition: background 120ms ease;
}

.bx-soa .btn-primary:hover,
.bx-soa #bx-soa-orderSave .btn:hover {
    background: var(--ranto-accent-hover);
}

.bx-soa .bx-soa-cart-total {
    border: 1px solid var(--ranto-border);
    border-radius: var(--ranto-radius);
    background: var(--ranto-surface);
    box-shadow: none;
}

.bx-soa .bx-soa-cart-total-line-total {
    color: var(--ranto-text);
    font-weight: 700;
}

.bx-soa .alert-danger {
    border: 1px solid rgba(185, 28, 28, .25);
    border-radius: var(--ranto-radius-sm);
    background: rgba(185, 28, 28, .06);
    color: #b91c1c;
}

.bx-soa .bx-soa-pp-company.bx-selected .bx-soa-pp-company-graf-container {
    border-color: var(--ranto-accent);
    box-shadow: 0 0 0 2px rgba(49, 94, 245, .18);
}

/* Финальный слой имеет повышенную специфичность: CSS штатного компонента
   подключается позднее базовых стилей шаблона и иначе возвращает Bootstrap. */
.ranto-checkout-page .ranto-section--compact {
    padding-top: 22px;
}

.ranto-checkout-page .bx-soa {
    margin-top: 12px;
    color: var(--ranto-ink);
}

.ranto-checkout-page .bx-soa .bx-soa-section,
.ranto-checkout-page .bx-soa .bx-soa-cart-total,
.ranto-checkout-page .bx-soa .bx-soa-pp-company,
.ranto-checkout-page .bx-soa .bx-soa-pp-item-container,
.ranto-checkout-page .bx-soa .bx-soa-coupon-input {
    border-color: var(--ranto-border) !important;
    border-radius: var(--ranto-radius-md) !important;
    box-shadow: none !important;
}

.ranto-checkout-page .bx-soa .bx-soa-section {
    margin-bottom: 20px !important;
    overflow: hidden;
    background: var(--ranto-surface) !important;
}

.ranto-checkout-page .bx-soa .bx-soa-section-title-container {
    padding: 18px 20px !important;
    border-bottom: 1px solid var(--ranto-border) !important;
    background: var(--ranto-surface-raised) !important;
}

.ranto-checkout-page .bx-soa .bx-soa-section-content {
    padding: 20px !important;
}

.ranto-checkout-page .bx-soa .form-group {
    margin-bottom: 18px;
}

.ranto-checkout-page .bx-soa .form-control,
.ranto-checkout-page .bx-soa input[type="text"],
.ranto-checkout-page .bx-soa input[type="email"],
.ranto-checkout-page .bx-soa input[type="tel"],
.ranto-checkout-page .bx-soa select,
.ranto-checkout-page .bx-soa textarea {
    min-height: 46px;
    padding: 10px 14px !important;
    border: 1px solid var(--ranto-border) !important;
    border-radius: var(--ranto-radius-sm) !important;
    background: var(--ranto-surface) !important;
    box-shadow: none !important;
}

.ranto-checkout-page .bx-soa .form-control:focus,
.ranto-checkout-page .bx-soa input:focus,
.ranto-checkout-page .bx-soa select:focus,
.ranto-checkout-page .bx-soa textarea:focus {
    border-color: var(--ranto-accent) !important;
    box-shadow: 0 0 0 3px var(--ranto-accent-soft) !important;
}

.ranto-checkout-page .bx-soa .btn,
.ranto-checkout-page .bx-soa button.btn,
.ranto-checkout-page .bx-soa a.btn {
    min-height: 46px;
    padding: 11px 20px !important;
    border: 1px solid var(--ranto-accent) !important;
    border-radius: var(--ranto-radius-sm) !important;
    background: var(--ranto-accent) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-weight: 680;
}

.ranto-checkout-page .bx-soa .btn:hover,
.ranto-checkout-page .bx-soa .btn:focus-visible {
    border-color: var(--ranto-accent-hover) !important;
    background: var(--ranto-accent-hover) !important;
}

.ranto-checkout-page .bx-soa .bx-soa-pp-company-graf-container,
.ranto-checkout-page .bx-soa .bx-soa-pp-company-smalltitle,
.ranto-checkout-page .bx-soa .bx-soa-item-imgcontainer {
    border-radius: var(--ranto-radius-sm) !important;
}

@media (max-width: 767px) {
    .ranto-checkout-page .bx-soa .bx-soa-section-title-container,
    .ranto-checkout-page .bx-soa .bx-soa-section-content {
        padding: 16px !important;
    }

    .ranto-checkout-page .bx-soa .btn,
    .ranto-checkout-page .bx-soa button.btn,
    .ranto-checkout-page .bx-soa a.btn {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .ranto-hero--slider {
        padding: 0;
    }

    .ranto-hero-slide {
        grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .ranto-hero-slider {
        border-radius: 22px;
    }

    .ranto-hero-slide {
        min-height: 560px;
        padding: 30px 24px 82px;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 24px;
    }

    .ranto-hero-slide__visual {
        min-height: 210px;
        border-radius: 20px 20px 7px 20px;
        order: -1;
    }

    .ranto-hero-slider__controls {
        right: 24px;
        bottom: 22px;
        left: 24px;
    }

    .ranto-hero-slider__arrows button {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ranto-hero-slide {
        animation: none;
    }

    .ranto-hero-slider__dots button {
        transition: none;
    }
}

/* ------------------------------------------------------------------
   Эффекты появления в баннере главной.
   Ступенчатый вход текста, выезд визуального блока, медленный дрейф.
   Всё завязано на класс .is-active, который ставит слайдер,
   поэтому анимация проигрывается заново при каждой смене слайда.
   ------------------------------------------------------------------ */

@keyframes rantoHeroItemIn {
    from { opacity: 0; transform: translate3d(-30px, 14px, 0); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes rantoHeroVisualIn {
    from { opacity: 0; transform: translate3d(44px, 0, 0) scale(.94); }
    to   { opacity: 1; transform: none; }
}

@keyframes rantoHeroDrift {
    from { transform: scale(1) translateY(0); }
    to   { transform: scale(1.08) translateY(-8px); }
}

@keyframes rantoHeroGlow {
    from { opacity: .30; transform: scale(1); }
    to   { opacity: .62; transform: scale(1.18); }
}

/* текст: надзаголовок -> заголовок -> абзац -> кнопки */
.ranto-hero-slide.is-active .ranto-hero-slide__copy > * {
    animation: rantoHeroItemIn .68s cubic-bezier(.22, .68, .24, 1) both;
}
.ranto-hero-slide.is-active .ranto-hero-slide__copy > *:nth-child(1) { animation-delay: .06s; }
.ranto-hero-slide.is-active .ranto-hero-slide__copy > *:nth-child(2) { animation-delay: .16s; }
.ranto-hero-slide.is-active .ranto-hero-slide__copy > *:nth-child(3) { animation-delay: .28s; }
.ranto-hero-slide.is-active .ranto-hero-slide__copy > *:nth-child(4) { animation-delay: .40s; }

/* визуальный блок: выезд справа */
.ranto-hero-slide.is-active .ranto-hero-slide__visual {
    animation: rantoHeroVisualIn .82s cubic-bezier(.22, .68, .24, 1) .14s both;
}

/* номер внутри блока медленно приближается, пока слайд на экране */
.ranto-hero-slide.is-active .ranto-hero-slide__visual > span {
    animation: rantoHeroDrift 9s ease-out forwards;
}

/* подсветка дышит */
.ranto-hero-slide.is-active .ranto-hero-slide__visual::after {
    animation: rantoHeroGlow 6.5s ease-in-out infinite alternate;
}

/* уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    .ranto-hero-slide,
    .ranto-hero-slide.is-active .ranto-hero-slide__copy > *,
    .ranto-hero-slide.is-active .ranto-hero-slide__visual,
    .ranto-hero-slide.is-active .ranto-hero-slide__visual > span,
    .ranto-hero-slide.is-active .ranto-hero-slide__visual::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}/* ==== collection head (section hero) ==== */
.ranto-collection-head {
    display: grid;
    margin-top: 14px;
    align-items: center;
    gap: 26px;
}

.ranto-collection-head--with-image {
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
}

.ranto-collection-head__media {
    overflow: hidden;
    border: 1px solid var(--ranto-line);
    border-radius: 18px;
    background: #fff;
}

.ranto-collection-head__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
}

.ranto-collection-head__text h1 {
    margin: 0 0 12px;
    font-size: clamp(21px, 2.2vw, 31px);
    line-height: 1.25;
    letter-spacing: -.01em;
}

.ranto-collection-head__desc {
    max-width: 900px;
    color: var(--ranto-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ranto-collection-head__meta {
    display: flex;
    margin-top: 14px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
}

.ranto-collection-head__doc {
    display: inline-flex;
    padding: 9px 15px;
    align-items: center;
    border: 1px solid var(--ranto-line);
    border-radius: 10px;
    color: var(--ranto-ink);
    font-weight: 650;
    text-decoration: none;
    background: #fff;
}

.ranto-collection-head__doc::before {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 4px;
    content: "PDF";
    display: grid;
    color: #fff;
    background: var(--ranto-danger, #d64545);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .02em;
    place-items: center;
}

.ranto-collection-head__doc:hover {
    border-color: var(--ranto-accent);
    color: var(--ranto-accent);
}

/* ==== product card extras ==== */
.ranto-badge--instock {
    color: #fff;
    background: var(--ranto-success);
}

.ranto-product-card__props {
    margin-bottom: 8px;
    color: var(--ranto-muted-2);
    font-size: 12px;
    line-height: 1.45;
}

.ranto-product-card__props span {
    color: var(--ranto-muted);
}

@media (max-width: 900px) {
    .ranto-collection-head--with-image {
        grid-template-columns: 1fr;
    }

    .ranto-collection-head__media img {
        max-height: 220px;
    }
}
/* ==== конфигуратор раздела ==== */
.ranto-config {
    padding: 22px 24px 18px;
    border: 1px solid var(--ranto-line);
    border-radius: 18px;
    background: #fff;
}

.ranto-config__head {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ranto-config__title {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.ranto-config__hint {
    margin-top: 3px;
    color: var(--ranto-muted-2);
    font-size: 13px;
}

.ranto-config__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ranto-muted);
    font-size: 14px;
}

.ranto-config__summary strong {
    color: var(--ranto-ink);
}

.ranto-config__reset {
    padding: 6px 12px;
    border: 1px solid var(--ranto-line);
    border-radius: 9px;
    color: var(--ranto-ink);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.ranto-config__reset:hover {
    border-color: var(--ranto-accent);
    color: var(--ranto-accent);
}

.ranto-config__groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 22px;
}

.ranto-config__group-title {
    margin-bottom: 10px;
    color: var(--ranto-muted-2);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

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

.ranto-config__list.is-collapsed {
    position: relative;
    max-height: 232px;
    overflow: hidden;
}

.ranto-config__list.is-collapsed::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46px;
    content: "";
    pointer-events: none;
    background: linear-gradient(rgb(255 255 255 / 0%), #fff);
}

.ranto-config__item {
    display: flex;
    padding: 6px 8px;
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    gap: 9px;
    transition: background 140ms ease;
}

.ranto-config__item:hover {
    background: var(--ranto-surface-soft, #f6f8fc);
}

.ranto-config__item.is-checked {
    background: var(--ranto-surface-soft, #f6f8fc);
}

.ranto-config__check {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ranto-config__box {
    position: relative;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--ranto-line);
    border-radius: 5px;
    background: #fff;
    flex: 0 0 auto;
    transition: border-color 140ms ease, background 140ms ease;
}

.ranto-config__check:checked + .ranto-config__box {
    border-color: var(--ranto-accent);
    background: var(--ranto-accent);
}

.ranto-config__check:checked + .ranto-config__box::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.ranto-config__check:focus-visible + .ranto-config__box {
    outline: 2px solid var(--ranto-accent);
    outline-offset: 2px;
}

.ranto-config__name {
    font-size: 14px;
    line-height: 1.35;
}

.ranto-config__count {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 20px;
    color: var(--ranto-muted-2);
    background: var(--ranto-surface-soft, #f1f4fa);
    font-size: 12px;
    font-weight: 650;
}

.ranto-config__more {
    margin-top: 8px;
    padding: 0;
    border: 0;
    cursor: pointer;
    color: var(--ranto-accent);
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.ranto-config__more:hover {
    text-decoration: underline;
}

.ranto-config__actions {
    display: flex;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 1100px) {
    .ranto-config__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ranto-config {
        padding: 18px 16px 14px;
    }

    .ranto-config__groups {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ranto-config__list.is-collapsed {
        max-height: 210px;
    }
}
/* ==== раскладка раздела: сайдбар + контент ==== */
.ranto-catalog-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.ranto-catalog-sidebar {
    position: sticky;
    top: 16px;
}

.ranto-catalog-main {
    min-width: 0;
}

.ranto-catalog-filters-toggle {
    display: none;
    width: 100%;
    padding: 13px 16px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--ranto-line);
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    font: inherit;
    font-weight: 650;
}

.ranto-catalog-filters-toggle__badge {
    padding: 1px 9px;
    border-radius: 20px;
    color: #fff;
    background: var(--ranto-accent);
    font-size: 12px;
    font-weight: 700;
}

/* конфигуратор в сайдбаре */
.ranto-config--side {
    padding: 20px 18px 16px;
}

.ranto-config--side .ranto-config__head {
    margin-bottom: 4px;
    align-items: center;
}

.ranto-config--side .ranto-config__title {
    font-size: 17px;
}

.ranto-config--side .ranto-config__summary {
    margin-bottom: 16px;
    font-size: 13px;
}

.ranto-config--side .ranto-config__groups {
    grid-template-columns: 1fr;
    gap: 18px;
}

.ranto-config--side .ranto-config__item {
    color: inherit;
    text-decoration: none;
}

.ranto-config--side .ranto-config__actions {
    margin-top: 16px;
}

.ranto-config--side .ranto-config__actions .ranto-secondary-button {
    width: 100%;
}

.ranto-config__item.is-checked .ranto-config__box {
    border-color: var(--ranto-accent);
    background: var(--ranto-accent);
}

.ranto-config__item.is-checked .ranto-config__box::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

/* ==== плитки подразделов ==== */
.ranto-tiles {
    display: grid;
    margin-bottom: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ranto-tile {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--ranto-line);
    border-radius: 16px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    flex-direction: column;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ranto-tile:hover {
    border-color: var(--ranto-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgb(15 23 42 / 8%);
}

.ranto-tile.is-active {
    border-color: var(--ranto-accent);
    box-shadow: 0 0 0 2px rgb(49 94 245 / 18%);
}

.ranto-tile__media {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #eef2fb, #fff);
    place-items: center;
}

.ranto-tile__media img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.ranto-tile__letter {
    color: var(--ranto-muted-2);
    font-size: 34px;
    font-weight: 800;
}

.ranto-tile__count {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgb(255 255 255 / 92%);
    font-size: 12px;
    font-weight: 700;
}

.ranto-tile__body {
    display: flex;
    padding: 10px 13px 13px;
    flex-direction: column;
    gap: 3px;
}

.ranto-tile__title {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
}

.ranto-tile__hint {
    color: var(--ranto-muted-2);
    font-size: 12px;
    line-height: 1.35;
}

/* ==== быстрый просмотр на карточке ==== */
.ranto-product-card__quick {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 3;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    color: var(--ranto-ink);
    background: rgb(255 255 255 / 94%);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.ranto-product-card:hover .ranto-product-card__quick,
.ranto-product-card__quick:focus-visible {
    opacity: 1;
    transform: none;
}

.ranto-product-card__quick-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 1.5px solid currentcolor;
    border-radius: 50%;
    vertical-align: -2px;
}

.ranto-product-card__actions {
    display: grid;
    margin-top: 12px;
    gap: 8px;
}

.ranto-product-card__quick2 {
    width: 100%;
    min-height: 40px;
    font-size: 13px;
}

/* ==== модальное окно быстрого просмотра ==== */
.ranto-modal {
    position: fixed;
    z-index: 1200;
    display: grid;
    padding: 18px;
    inset: 0;
    place-items: center;
}

.ranto-modal[hidden] {
    display: none;
}

.ranto-modal__overlay {
    position: absolute;
    background: rgb(15 23 42 / 55%);
    inset: 0;
}

.ranto-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    box-shadow: 0 30px 60px rgb(15 23 42 / 25%);
}

.ranto-modal__media {
    display: grid;
    min-height: 300px;
    background: var(--ranto-surface-soft, #f4f7fc);
    place-items: center;
}

.ranto-modal__media img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    padding: 16px;
    object-fit: contain;
}

.ranto-modal__body {
    padding: 24px 22px 22px;
}

.ranto-modal__meta {
    display: flex;
    color: var(--ranto-muted-2);
    font-size: 13px;
    gap: 12px;
}

.ranto-modal__title {
    margin: 6px 0 14px;
    font-size: 20px;
    line-height: 1.3;
}

.ranto-modal__specs {
    margin: 0 0 16px;
}

.ranto-modal__price {
    display: flex;
    margin-bottom: 18px;
    align-items: baseline;
    gap: 10px;
}

.ranto-modal__price strong {
    font-size: 24px;
    letter-spacing: -.02em;
}

.ranto-modal__price del {
    color: var(--ranto-muted-2);
}

.ranto-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ranto-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 4px 12px rgb(15 23 42 / 12%);
}

html.ranto-modal-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .ranto-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .ranto-catalog-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ranto-catalog-sidebar {
        position: static;
    }

    .ranto-catalog-filters-toggle {
        display: flex;
    }

    .ranto-config--side {
        display: none;
        margin-top: 12px;
    }

    .ranto-catalog-sidebar.is-open .ranto-config--side {
        display: block;
    }

    .ranto-modal__dialog {
        grid-template-columns: 1fr;
    }

    .ranto-modal__media {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .ranto-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ranto-tile__title {
        font-size: 13px;
    }

    .ranto-tile__hint {
        display: none;
    }

    .ranto-modal {
        padding: 10px;
    }

    .ranto-modal__body {
        padding: 18px 16px 16px;
    }
}
/* ==== меню каталога слева ==== */
.ranto-catmenu {
    padding: 16px 14px 14px;
    border: 1px solid var(--ranto-line);
    border-radius: 16px;
    background: #fff;
}

.ranto-catmenu__title {
    margin: 0 4px 10px;
    font-size: 15px;
    font-weight: 750;
}

.ranto-catmenu__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-direction: column;
    gap: 2px;
}

.ranto-catmenu__list .ranto-catmenu__list {
    margin: 2px 0 6px 10px;
    padding-left: 9px;
    border-left: 1px solid var(--ranto-line);
}

.ranto-catmenu__link {
    display: flex;
    padding: 7px 9px;
    align-items: center;
    border-radius: 9px;
    color: var(--ranto-ink);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    gap: 8px;
    transition: background 140ms ease, color 140ms ease;
}

.ranto-catmenu__link:hover {
    background: var(--ranto-surface-soft, #f4f7fc);
}

.ranto-catmenu__link.is-active {
    color: var(--ranto-accent);
    background: var(--ranto-surface-soft, #f4f7fc);
    font-weight: 650;
}

.ranto-catmenu__link--sub {
    color: var(--ranto-muted);
    font-size: 13px;
}

.ranto-catmenu__link--sub.is-active {
    color: var(--ranto-accent);
    font-weight: 650;
}

.ranto-catmenu__count {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 20px;
    color: var(--ranto-muted-2);
    background: var(--ranto-surface-soft, #f1f4fa);
    font-size: 11px;
    font-weight: 650;
}

.ranto-catalog-sidebar,
.ranto-product-sidebar {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* ==== страница товара: меню слева + карточка ==== */
.ranto-product-layout {
    display: grid;
    margin-top: 4px;
    grid-template-columns: 278px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.ranto-product-main {
    min-width: 0;
}

/* три колонки внутри карточки товара */
.ranto-product-layout .ranto-detail {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) 292px;
    gap: 22px;
}

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

.ranto-detail__box {
    padding: 16px 16px 15px;
    border: 1px solid var(--ranto-line);
    border-radius: 14px;
    background: #fff;
}

.ranto-detail__box-title {
    margin-bottom: 9px;
    color: var(--ranto-muted-2);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ranto-detail__box-list {
    display: flex;
    margin: 0;
    padding: 0 0 0 16px;
    flex-direction: column;
    font-size: 13.5px;
    line-height: 1.45;
    gap: 6px;
}

.ranto-detail__box p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
}

.ranto-detail__box-button {
    width: 100%;
    text-align: center;
}

@media (max-width: 1280px) {
    .ranto-product-layout .ranto-detail {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ranto-detail__aside {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ranto-detail__box {
        flex: 1 1 230px;
    }

    .ranto-detail__box-button {
        flex: 0 0 auto;
        width: auto;
        padding-inline: 24px;
    }
}

@media (max-width: 1000px) {
    .ranto-product-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ranto-catalog-sidebar,
    .ranto-product-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .ranto-product-sidebar__inner {
        display: none;
        margin-top: 12px;
    }

    .ranto-product-sidebar.is-open .ranto-product-sidebar__inner {
        display: block;
    }
}

@media (max-width: 720px) {
    .ranto-product-layout .ranto-detail {
        grid-template-columns: 1fr;
    }
}
/* ==== вся карточка товара кликабельна ==== */
.ranto-product-card {
    position: relative;
}

.ranto-product-card__title::after {
    position: absolute;
    z-index: 1;
    content: "";
    inset: 0;
}

.ranto-product-card__buy,
.ranto-product-card__quick2 {
    position: relative;
    z-index: 2;
}

.ranto-product-card__badges,
.ranto-product-card__favorite {
    z-index: 3;
}

/* кнопка на фото не перехватывает клик, пока не наведён курсор */
@media (hover: hover) {
    .ranto-product-card__quick {
        pointer-events: none;
    }

    .ranto-product-card:hover .ranto-product-card__quick,
    .ranto-product-card__quick:focus-visible {
        pointer-events: auto;
    }
}
/* ====================== визуальный рефреш каталога ====================== */

/* --- фон страницы вместо сплошного белого --- */
.ranto-page-content--catalog {
    padding-bottom: 40px;
    background:
        radial-gradient(900px 320px at 12% 0%, #e7eefc 0%, rgb(231 238 252 / 0%) 70%),
        linear-gradient(180deg, #eef3fb 0%, #f5f8fc 420px, #f7f9fc 100%);
}

/* --- панели --- */
.ranto-catmenu,
.ranto-config--side {
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(18 24 38 / 5%);
}

/* ====================== меню каталога ====================== */
.ranto-catmenu {
    padding: 16px 12px 14px;
}

.ranto-catmenu__head {
    display: flex;
    padding: 0 6px 12px;
    align-items: center;
    border-bottom: 1px solid #eef1f7;
    margin-bottom: 10px;
    gap: 10px;
}

.ranto-catmenu__head-icon {
    display: grid;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--ranto-accent), #7b9bff);
    box-shadow: 0 4px 10px rgb(49 94 245 / 28%);
    place-items: center;
}

.ranto-catmenu__head-icon::before {
    width: 13px;
    height: 10px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    content: "";
}

.ranto-catmenu__title {
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.ranto-catmenu__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-direction: column;
    gap: 1px;
}

.ranto-catmenu__item {
    position: relative;
}

.ranto-catmenu__row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ranto-catmenu__link {
    display: flex;
    padding: 8px 9px;
    align-items: center;
    border-radius: 10px;
    color: var(--ranto-ink);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    flex: 1;
    gap: 9px;
    transition: background 140ms ease, color 140ms ease;
}

.ranto-catmenu__link:hover {
    background: #f2f6ff;
    color: var(--ranto-accent);
}

.ranto-catmenu__link--all {
    margin-bottom: 8px;
    font-weight: 650;
}

.ranto-catmenu__mark {
    width: 7px;
    height: 7px;
    border-radius: 3px;
    background: #cdd7e6;
    flex: 0 0 auto;
    transition: background 140ms ease, transform 140ms ease;
}

.ranto-catmenu__link:hover .ranto-catmenu__mark {
    background: var(--ranto-accent);
}

.ranto-catmenu__link.is-active {
    color: var(--ranto-accent);
    background: linear-gradient(90deg, var(--ranto-accent-soft), #f7faff);
    font-weight: 700;
}

.ranto-catmenu__link.is-active .ranto-catmenu__mark {
    background: var(--ranto-accent);
    transform: scale(1.15);
}

.ranto-catmenu__text {
    min-width: 0;
}

.ranto-catmenu__toggle {
    position: relative;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    background: #f2f5fa;
    flex: 0 0 auto;
    transition: background 140ms ease;
}

.ranto-catmenu__toggle:hover {
    background: var(--ranto-accent-soft);
}

.ranto-catmenu__toggle::before {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 6px;
    height: 6px;
    border-right: 1.8px solid var(--ranto-muted-2);
    border-bottom: 1.8px solid var(--ranto-muted-2);
    content: "";
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.ranto-catmenu__item.is-open > .ranto-catmenu__row .ranto-catmenu__toggle::before {
    transform: rotate(-135deg);
    top: 11px;
}

.ranto-catmenu__list .ranto-catmenu__list {
    display: none;
    margin: 2px 0 6px 14px;
    padding-left: 10px;
    border-left: 1px solid #e8edf6;
}

.ranto-catmenu__item.is-open > .ranto-catmenu__list {
    display: flex;
}

.ranto-catmenu__list--sub {
    display: flex !important;
    margin-left: 14px;
    padding-left: 10px;
    border-left: 1px solid #e8edf6;
}

.ranto-catmenu__link--sub {
    color: var(--ranto-muted);
    font-size: 13px;
}

.ranto-catmenu__link--sub.is-active {
    color: var(--ranto-accent);
    background: var(--ranto-accent-soft);
}

.ranto-catmenu__count {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 20px;
    color: var(--ranto-accent);
    background: var(--ranto-accent-soft);
    font-size: 11px;
    font-weight: 700;
}

/* ====================== конфигуратор ====================== */
.ranto-config--side {
    padding: 18px 14px 16px;
}

.ranto-config--side .ranto-config__head {
    padding: 0 4px 10px;
    border-bottom: 1px solid #eef1f7;
    margin-bottom: 12px;
}

.ranto-config__reset {
    padding: 5px 11px;
    border: 0;
    border-radius: 8px;
    color: var(--ranto-accent);
    background: var(--ranto-accent-soft);
    font-size: 12px;
    font-weight: 650;
}

.ranto-config--side .ranto-config__summary {
    padding: 0 4px;
}

.ranto-config__group-title {
    position: relative;
    margin: 0 0 8px 4px;
    padding-left: 12px;
    color: var(--ranto-ink);
    font-size: 12px;
    letter-spacing: .02em;
}

.ranto-config__group-title::before {
    position: absolute;
    top: 3px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    content: "";
    background: var(--ranto-accent);
}

.ranto-config--side .ranto-config__item {
    padding: 7px 9px;
    border-radius: 9px;
}

.ranto-config--side .ranto-config__item:hover {
    background: #f2f6ff;
}

.ranto-config--side .ranto-config__item.is-checked {
    background: var(--ranto-accent-soft);
    font-weight: 650;
}

.ranto-config__count {
    color: var(--ranto-muted-2);
    background: #f1f4fa;
}

.ranto-config--side .ranto-config__item.is-checked .ranto-config__count {
    color: var(--ranto-accent);
    background: #fff;
}

/* ====================== плитки подразделов ====================== */
.ranto-tile {
    border: 1px solid #e5eaf3;
    box-shadow: 0 2px 8px rgb(18 24 38 / 4%);
}

.ranto-tile__media {
    background: linear-gradient(150deg, #eaf0fc 0%, #f8fbff 65%, #fff 100%);
}

.ranto-tile__count {
    color: var(--ranto-accent);
    background: rgb(255 255 255 / 95%);
    box-shadow: 0 2px 6px rgb(49 94 245 / 14%);
}

.ranto-tile:hover {
    border-color: #bccdfb;
    box-shadow: 0 16px 30px rgb(18 24 38 / 10%);
}

.ranto-tile.is-active {
    border-color: var(--ranto-accent);
    background: linear-gradient(180deg, #f7faff, #fff);
    box-shadow: 0 0 0 2px rgb(49 94 245 / 16%), 0 12px 26px rgb(49 94 245 / 12%);
}

/* ====================== шапка раздела ====================== */
.ranto-collection-head {
    padding: 22px;
    border: 1px solid #e5eaf3;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f6f9ff 100%);
    box-shadow: 0 2px 12px rgb(18 24 38 / 5%);
}

.ranto-collection-head--with-image {
    padding: 22px;
}

.ranto-collection-head__media {
    padding: 10px;
    border: 1px solid #e8edf6;
    background: linear-gradient(150deg, #eef3fc, #fff);
}

.ranto-collection-head__desc {
    color: var(--ranto-muted);
}

.ranto-collection-head__doc {
    border-color: #d9e2f5;
    color: var(--ranto-accent);
    background: #f7faff;
}

/* ====================== карточки товаров ====================== */
.ranto-product-card {
    border: 1px solid #e5eaf3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(18 24 38 / 4%);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ranto-product-card:hover {
    border-color: #c9d6f7;
    box-shadow: 0 16px 32px rgb(18 24 38 / 10%);
    transform: translateY(-2px);
}

.ranto-product-card__media--has-image {
    background: linear-gradient(150deg, #eff3fb, #fff);
}

.ranto-product-card__title {
    color: var(--ranto-ink);
    font-size: 15px;
    font-weight: 680;
}

.ranto-product-card:hover .ranto-product-card__title {
    color: var(--ranto-accent);
}

.ranto-product-card__price strong {
    color: var(--ranto-ink);
    font-size: 21px;
}

.ranto-badge {
    color: var(--ranto-warning);
    background: #fff3dd;
}

.ranto-badge--instock {
    color: #fff;
    background: var(--ranto-success);
}

.ranto-product-card__props {
    color: var(--ranto-muted-2);
}

.ranto-product-card__delivery {
    color: var(--ranto-accent);
    background: var(--ranto-accent-soft);
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
}

.ranto-product-card__quick2 {
    border-color: #dbe4f6;
    color: var(--ranto-accent);
    background: #f7faff;
}

.ranto-product-card__quick2:hover {
    border-color: var(--ranto-accent);
}

/* ====================== страница товара ====================== */
.ranto-detail__summary,
.ranto-detail__media,
.ranto-detail .ranto-tabs {
    border: 1px solid #e5eaf3;
    box-shadow: 0 2px 12px rgb(18 24 38 / 5%);
}

.ranto-detail__box {
    border: 1px solid #e5eaf3;
    box-shadow: 0 2px 10px rgb(18 24 38 / 4%);
}

.ranto-detail__box-title {
    display: flex;
    align-items: center;
    color: var(--ranto-accent);
    gap: 8px;
}

.ranto-detail__box-title::before {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    content: "";
    background: var(--ranto-accent);
}

/* ====================== пагинация ====================== */
.ranto-pagination__page {
    border: 1px solid #e5eaf3;
    background: #fff;
}

.ranto-pagination__page.is-current {
    border-color: var(--ranto-accent);
    color: #fff;
    background: var(--ranto-accent);
}

@media (max-width: 1000px) {
    .ranto-catmenu__list .ranto-catmenu__list,
    .ranto-catmenu__list--sub {
        margin-left: 10px;
    }
}
/* ==== страница каталога: группы разделов и плитки с подпунктами ==== */
.ranto-catalog-group {
    margin-bottom: 30px;
}

.ranto-catalog-group__title {
    display: flex;
    margin: 0 0 14px;
    align-items: center;
    font-size: 20px;
    letter-spacing: -.01em;
    gap: 10px;
}

.ranto-catalog-group__title a {
    color: var(--ranto-ink);
    text-decoration: none;
}

.ranto-catalog-group__title a:hover {
    color: var(--ranto-accent);
}

.ranto-catalog-group__count {
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--ranto-accent);
    background: var(--ranto-accent-soft);
    font-size: 13px;
    font-weight: 700;
}

.ranto-tile--group {
    display: flex;
    flex-direction: column;
}

.ranto-tile__list {
    display: flex;
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px solid #eef1f7;
    flex-direction: column;
    gap: 2px;
}

.ranto-tile__list-link {
    display: flex;
    padding: 5px 7px;
    align-items: center;
    border-radius: 8px;
    color: var(--ranto-muted);
    font-size: 12.5px;
    line-height: 1.3;
    text-decoration: none;
    gap: 8px;
    transition: background 140ms ease, color 140ms ease;
}

.ranto-tile__list-link:hover {
    color: var(--ranto-accent);
    background: #f2f6ff;
}

.ranto-tile__list-link span {
    margin-left: auto;
    color: var(--ranto-muted-2);
    font-size: 11px;
    font-weight: 650;
}

.ranto-catalog-sidebar__inner {
    display: block;
}

@media (max-width: 1000px) {
    .ranto-catalog-sidebar__inner {
        display: none;
        margin-top: 12px;
    }

    .ranto-catalog-sidebar.is-open .ranto-catalog-sidebar__inner {
        display: block;
    }
}

.ranto-config__empty { padding: 10px 4px; color: var(--ranto-muted-2); font-size: 13px; line-height: 1.45; }
/* ==== контакты: список данных и реквизиты ==== */
.ranto-contact-grid--details {
    margin-top: 18px;
}

.ranto-contact-list {
    display: flex;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    flex-direction: column;
    gap: 2px;
}

.ranto-contact-list:last-child {
    margin-bottom: 0;
}

.ranto-contact-list li {
    display: flex;
    padding: 8px 10px;
    align-items: baseline;
    border-radius: 10px;
    gap: 16px;
}

.ranto-contact-list li:nth-child(odd) {
    background: var(--ranto-surface-soft, #f5f7fa);
}

.ranto-contact-list span {
    min-width: 210px;
    color: var(--ranto-muted-2);
    font-size: 13px;
    flex: 0 0 auto;
}

.ranto-contact-list strong,
.ranto-contact-list a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.ranto-contact-card__hours {
    color: var(--ranto-muted-2);
    font-size: 13px;
}

@media (max-width: 720px) {
    .ranto-contact-list li {
        flex-direction: column;
        gap: 2px;
    }

    .ranto-contact-list span {
        min-width: 0;
    }
}
/* ==== клик по фото товара ==== */
.ranto-detail__zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    background: none;
}

.ranto-detail__zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    opacity: 0;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 6px 16px rgb(18 24 38 / 18%);
    transition: opacity 160ms ease;
}

.ranto-detail__zoom-hint::before,
.ranto-detail__zoom-hint::after {
    position: absolute;
    content: "";
    background: var(--ranto-ink);
}

.ranto-detail__zoom-hint::before {
    top: 11px;
    left: 18px;
    width: 2px;
    height: 16px;
}

.ranto-detail__zoom-hint::after {
    top: 18px;
    left: 11px;
    width: 16px;
    height: 2px;
}

.ranto-detail__zoom:hover .ranto-detail__zoom-hint,
.ranto-detail__zoom:focus-visible .ranto-detail__zoom-hint {
    opacity: 1;
}

/* ==== лайтбокс галереи ==== */
.ranto-lightbox {
    position: fixed;
    z-index: 1400;
    display: grid;
    padding: 24px;
    inset: 0;
    align-content: center;
    justify-items: center;
    gap: 16px;
}

.ranto-lightbox[hidden] {
    display: none;
}

.ranto-lightbox__overlay {
    position: absolute;
    background: rgb(10 14 22 / 88%);
    inset: 0;
}

.ranto-lightbox__close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgb(255 255 255 / 14%);
    font-size: 26px;
    line-height: 1;
    transition: background 160ms ease;
}

.ranto-lightbox__close:hover {
    background: rgb(255 255 255 / 26%);
}

.ranto-lightbox__stage {
    position: relative;
    z-index: 2;
    display: grid;
    margin: 0;
    max-width: min(1100px, 92vw);
    max-height: 76vh;
    justify-items: center;
    gap: 12px;
}

.ranto-lightbox__stage img {
    display: block;
    width: auto;
    max-width: min(1100px, 92vw);
    max-height: 70vh;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 30px 60px rgb(0 0 0 / 45%);
}

.ranto-lightbox__bar {
    display: flex;
    max-width: min(1100px, 92vw);
    align-items: baseline;
    color: rgb(255 255 255 / 78%);
    font-size: 14px;
    gap: 14px;
}

.ranto-lightbox__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranto-lightbox__counter {
    margin-left: auto;
    flex: 0 0 auto;
    font-weight: 650;
}

.ranto-lightbox__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgb(255 255 255 / 14%);
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 160ms ease;
}

.ranto-lightbox__nav:hover {
    background: rgb(255 255 255 / 28%);
}

.ranto-lightbox__nav--prev {
    left: 18px;
}

.ranto-lightbox__nav--next {
    right: 18px;
}

.ranto-lightbox__thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: min(1100px, 92vw);
    padding: 6px;
    overflow-x: auto;
    border-radius: 14px;
    background: rgb(255 255 255 / 8%);
    gap: 8px;
}

.ranto-lightbox__thumb {
    width: 66px;
    height: 66px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    flex: 0 0 auto;
    transition: border-color 140ms ease, opacity 140ms ease;
    opacity: .7;
}

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

.ranto-lightbox__thumb:hover {
    opacity: 1;
}

.ranto-lightbox__thumb.is-active {
    border-color: var(--ranto-accent, #0061b2);
    opacity: 1;
}

html.ranto-lightbox-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .ranto-lightbox {
        padding: 12px;
    }

    .ranto-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .ranto-lightbox__nav--prev {
        left: 8px;
    }

    .ranto-lightbox__nav--next {
        right: 8px;
    }

    .ranto-lightbox__thumb {
        width: 52px;
        height: 52px;
    }

    .ranto-lightbox__stage img {
        max-height: 58vh;
    }
}
/* ==== товары из соседних разделов ==== */
.ranto-related {
    display: flex;
    margin-top: 8px;
    flex-direction: column;
    gap: 20px;
}

.ranto-related__title {
    margin: 0;
    font-size: 22px;
}

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

.ranto-related__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.ranto-related__name {
    color: var(--ranto-ink);
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
}

.ranto-related__name:hover {
    color: var(--ranto-accent);
}

.ranto-related__all {
    margin-left: auto;
    color: var(--ranto-accent);
    font-size: 13px;
    text-decoration: none;
}

.ranto-related__all:hover {
    text-decoration: underline;
}

.ranto-related .ranto-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .ranto-related .ranto-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ranto-related .ranto-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .ranto-related .ranto-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ranto-related__all {
        margin-left: 0;
    }
}

/* ==== ranto-design-palette: контраст на синем акценте ==== */
.ranto-hero .ranto-primary-button,
.ranto-badge,
.ranto-footer .ranto-logo__mark {
    color: #fff;
}

.ranto-primary-button:hover {
    background: var(--ranto-accent-hover, #006ac2);
}

.ranto-toast a,
.ranto-footer__developer:hover {
    color: var(--ranto-accent-light, #7cbcf0);
}

.ranto-footer a:focus-visible,
.ranto-footer button:focus-visible {
    outline-color: var(--ranto-accent-light, #7cbcf0);
}
/* ==== заголовок товара над меню ==== */
.ranto-product-head {
    padding-top: 4px;
    padding-bottom: 2px;
}

.ranto-product-head__title {
    margin: 0;
    color: var(--ranto-ink);
    font-size: clamp(21px, 2.3vw, 30px);
    font-weight: 700;
    line-height: 1.22;
}

@media (max-width: 720px) {
    .ranto-product-head__title {
        font-size: 20px;
    }
}
﻿/* ==== полоска хлебных крошек: убираем лишнюю высоту ==== */
.ranto-breadcrumbs-bar {
    padding-top: 14px;
    padding-bottom: 0;
}

.ranto-breadcrumbs-bar .ranto-breadcrumbs {
    margin-bottom: 10px;
}

@media (max-width: 720px) {
    .ranto-breadcrumbs-bar {
        padding-top: 10px;
    }

    .ranto-breadcrumbs-bar .ranto-breadcrumbs {
        margin-bottom: 6px;
    }
}
/* ==== контакты в шапке: иконки ==== */
.ranto-topbar__contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

.ranto-topbar__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    opacity: .8;
    transition: opacity 140ms ease;
}

.ranto-topbar__contact:hover .ranto-topbar__icon {
    opacity: 1;
}

@media (max-width: 720px) {
    .ranto-topbar__icon {
        width: 14px;
        height: 14px;
    }

    .ranto-topbar__contact {
        gap: 6px;
    }
}
﻿/* ==== блок «Товары из соседних разделов»: во всю ширину ==== */
.ranto-related-wrap {
    padding-top: 8px;
    padding-bottom: 48px;
}

.ranto-related-wrap .ranto-related {
    margin-top: 0;
}

.ranto-related-wrap .ranto-related__title {
    font-size: 24px;
}

@media (max-width: 720px) {
    .ranto-related-wrap {
        padding-bottom: 32px;
    }

    .ranto-related-wrap .ranto-related__title {
        font-size: 20px;
    }
}
/* ==== единый размер фото и контейнера ==== */
.ranto-detail__media {
    display: grid;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--ranto-surface, #fff);
    place-items: center;
}

.ranto-detail__zoom {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.ranto-detail__image,
.ranto-detail__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* миниатюры под фото — одного размера */
.ranto-detail__thumb {
    aspect-ratio: 1 / 1;
}

.ranto-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* карточки товаров: фото заполняет квадратный контейнер */
.ranto-product-card__media {
    aspect-ratio: 1 / 1;
}

.ranto-product-card__media--has-image .ranto-product-card__image {
    object-fit: cover;
}

/* окно быстрого просмотра */
.ranto-qv__media,
.ranto-quickview__media,
.ranto-modal__media,
.ranto-quick-view__media {
    display: grid;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--ranto-surface, #fff);
    place-items: center;
}

.ranto-qv__media img,
.ranto-quickview__media img,
.ranto-modal__media img,
.ranto-quick-view__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 720px) {
    .ranto-detail__media {
        aspect-ratio: 1 / 1;
    }
}
/* ==== «О компании»: текст + вертикальная карусель товаров ==== */
.ranto-about-layout {
    display: grid;
    align-items: start;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.ranto-about-main {
    min-width: 0;
}

.ranto-about-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ranto-about-aside__title {
    margin: 0;
    color: var(--ranto-ink);
    font-size: 19px;
    font-weight: 700;
}

.ranto-about-carousel {
    position: relative;
    height: 600px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--ranto-border, #e7e8ea);
    border-radius: 16px;
    background: var(--ranto-surface, #fff);
}

.ranto-about-carousel::before,
.ranto-about-carousel::after {
    position: absolute;
    z-index: 2;
    left: 0;
    width: 100%;
    height: 44px;
    content: "";
    pointer-events: none;
}

.ranto-about-carousel::before {
    top: 0;
    background: linear-gradient(180deg, #fff, rgb(255 255 255 / 0%));
}

.ranto-about-carousel::after {
    bottom: 0;
    background: linear-gradient(0deg, #fff, rgb(255 255 255 / 0%));
}

.ranto-about-carousel__track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: ranto-about-scroll 42s linear infinite;
    will-change: transform;
}

.ranto-about-carousel:hover .ranto-about-carousel__track,
.ranto-about-carousel:focus-within .ranto-about-carousel__track {
    animation-play-state: paused;
}

@keyframes ranto-about-scroll {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ranto-about-carousel__track {
        animation: none;
    }
}

.ranto-about-item {
    display: flex;
    padding: 8px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--ranto-surface-soft, #f3f3f3);
    text-decoration: none;
    gap: 12px;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.ranto-about-item:hover {
    border-color: var(--ranto-accent, #0061b2);
    background: var(--ranto-accent-soft, #e8f1fa);
}

.ranto-about-item__media {
    display: grid;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    place-items: center;
    flex: 0 0 auto;
}

.ranto-about-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ranto-about-item__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.ranto-about-item__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ranto-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ranto-about-item__price {
    color: var(--ranto-accent, #0061b2);
    font-size: 13px;
    font-weight: 700;
}

.ranto-about-item__price--ask {
    color: var(--ranto-muted-2, #888);
    font-weight: 600;
}

.ranto-about-aside__all {
    color: var(--ranto-accent, #0061b2);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.ranto-about-aside__all:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .ranto-about-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 24px;
    }

    .ranto-about-carousel {
        height: 520px;
    }
}

@media (max-width: 900px) {
    .ranto-about-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ranto-about-aside {
        position: static;
        order: 2;
    }

    .ranto-about-carousel {
        height: 420px;
    }
}
﻿/* ==== страница товара без правой колонки ==== */
.ranto-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.ranto-detail__main {
    grid-column: 1 / 2 !important;
}

.ranto-detail__summary {
    grid-column: 2 / 3 !important;
}

.ranto-detail .ranto-tabs,
.ranto-detail__aside {
    grid-column: 1 / -1 !important;
}

.ranto-detail__aside {
    display: none !important;
}

@media (max-width: 900px) {
    .ranto-detail {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ranto-detail__main,
    .ranto-detail__summary {
        grid-column: 1 / -1 !important;
    }
}
/* ==== карточка товара без правой колонки: нормальные пропорции ==== */
.ranto-product-layout .ranto-detail {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr) !important;
    gap: 24px !important;
}

.ranto-detail__main {
    grid-column: auto !important;
    min-width: 0 !important;
}

.ranto-detail__summary {
    grid-column: auto !important;
    min-width: 0 !important;
}

.ranto-detail .ranto-tabs {
    grid-column: 1 / -1 !important;
}

.ranto-detail__aside {
    display: none !important;
}

/* содержимое блока с ценой не должно вылезать за колонку */
.ranto-detail__summary > * {
    max-width: 100%;
}

.ranto-detail__summary .ranto-primary-button,
.ranto-detail__summary .ranto-secondary-button {
    max-width: 100%;
}

@media (max-width: 1100px) {
    .ranto-product-layout .ranto-detail {
        grid-template-columns: minmax(0, 380px) minmax(0, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .ranto-product-layout .ranto-detail {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ranto-detail__main,
    .ranto-detail__summary {
        grid-column: 1 / -1 !important;
    }
}
﻿/* ==== иконка в логотипе ==== */
.ranto-logo__mark {
    display: grid;
    place-items: center;
}

.ranto-logo__mark svg {
    display: block;
    width: 62%;
    height: 62%;
}
/* ==== миниатюры под главным фото товара ==== */
.ranto-detail__thumbs {
    display: flex;
    margin-top: 12px;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ranto-detail__thumb {
    display: block;
    width: 76px;
    height: 76px;
    padding: 4px;
    overflow: hidden;
    border: 2px solid var(--ranto-border, #e7e8ea);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    flex: 0 0 auto;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.ranto-detail__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ranto-detail__thumb:hover {
    border-color: var(--ranto-accent, #0061b2);
}

.ranto-detail__thumb.is-active {
    border-color: var(--ranto-accent, #0061b2);
    box-shadow: 0 0 0 3px var(--ranto-accent-soft, #e8f1fa);
}

@media (max-width: 720px) {
    .ranto-detail__thumbs {
        gap: 8px;
    }

    .ranto-detail__thumb {
        width: 60px;
        height: 60px;
        padding: 3px;
    }
}
/* ==== блок цены: характеристики, условия, кнопки ==== */
.ranto-detail__price-note {
    margin-top: -6px;
    color: var(--ranto-muted-2, #888);
    font-size: 12.5px;
    line-height: 1.4;
}

.ranto-quick-specs {
    display: grid;
    margin: 4px 0 2px;
    padding: 12px 14px;
    border: 1px solid var(--ranto-border, #e7e8ea);
    border-radius: 12px;
    background: var(--ranto-surface-soft, #f3f3f3);
    gap: 8px 18px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    list-style: none;
}

.ranto-quick-specs li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 13.5px;
    gap: 10px;
}

.ranto-quick-specs span {
    color: var(--ranto-muted-2, #888);
}

.ranto-quick-specs strong {
    color: var(--ranto-ink);
    font-weight: 650;
    text-align: right;
}

.ranto-buy-points {
    display: grid;
    margin: 2px 0 4px;
    padding: 0;
    gap: 7px;
    list-style: none;
}

.ranto-buy-points li {
    position: relative;
    padding-left: 24px;
    color: var(--ranto-ink);
    font-size: 13.5px;
    line-height: 1.4;
}

.ranto-buy-points li::before {
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    content: "";
    background: var(--ranto-accent-soft, #e8f1fa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230061b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.ranto-detail__actions {
    display: flex;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.ranto-detail__actions .ranto-detail__back {
    margin-left: auto;
}

@media (max-width: 720px) {
    .ranto-quick-specs {
        padding: 10px 12px;
        gap: 6px 14px;
    }

    .ranto-detail__actions .ranto-detail__back {
        margin-left: 0;
    }
}
/* ==== кнопки на странице товара: по ширине контейнера ==== */
.ranto-detail__actions {
    display: grid;
    width: 100%;
    margin-top: 8px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranto-detail__actions .ranto-primary-button,
.ranto-detail__actions .ranto-secondary-button {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
}

/* основная кнопка — с акцентным эффектом */
.ranto-detail__actions .ranto-primary-button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0061b2 0%, #006ac2 100%);
    box-shadow: 0 6px 16px rgb(0 97 178 / 28%);
    transition: transform 140ms ease, box-shadow 180ms ease, filter 140ms ease;
}

.ranto-detail__actions .ranto-primary-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 22px rgb(0 97 178 / 40%);
    transform: translateY(-1px);
}

.ranto-detail__actions .ranto-primary-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgb(0 97 178 / 30%);
}

.ranto-detail__actions .ranto-secondary-button {
    border: 1px solid var(--ranto-accent, #0061b2);
    color: var(--ranto-accent, #0061b2);
    background: #fff;
    transition: background-color 140ms ease, color 140ms ease;
}

.ranto-detail__actions .ranto-secondary-button:hover {
    color: #fff;
    background: var(--ranto-accent, #0061b2);
}

/* ссылка «вернуться в каталог» — тихой строкой во всю ширину */
.ranto-detail__actions .ranto-detail__back {
    grid-column: 1 / -1;
    min-height: 0;
    margin-left: 0;
    padding: 6px 0 0;
    border: 0;
    color: var(--ranto-muted-2, #888);
    background: none;
    box-shadow: none;
    font-size: 13px;
    font-weight: 500;
}

.ranto-detail__actions .ranto-detail__back:hover {
    color: var(--ranto-accent, #0061b2);
    background: none;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .ranto-detail__actions {
        gap: 8px;
    }

    .ranto-detail__actions .ranto-primary-button,
    .ranto-detail__actions .ranto-secondary-button {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 13.5px;
    }
}

@media (max-width: 420px) {
    .ranto-detail__actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
﻿/* ==== новости в правой колонке ==== */
.ranto-news-item {
    align-items: flex-start;
}

.ranto-news-item .ranto-about-item__body {
    gap: 6px;
}

.ranto-news-item__meta {
    display: flex;
    align-items: center;
    color: var(--ranto-muted-2, #888);
    font-size: 12px;
    gap: 8px;
}

.ranto-news-item__tag {
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--ranto-accent, #0061b2);
    background: var(--ranto-accent-soft, #e8f1fa);
    font-size: 11px;
    font-weight: 600;
}

.ranto-about-carousel .ranto-news-item {
    background: var(--ranto-surface-soft, #f3f3f3);
}
/* ==== защита от горизонтального вылета в карточке товара ==== */
.ranto-detail__summary,
.ranto-detail__main {
    min-width: 0;
    overflow: hidden;
}

.ranto-detail__summary > *,
.ranto-detail__summary * {
    max-width: 100%;
}

.ranto-quick-specs {
    overflow: hidden;
}

.ranto-quick-specs li {
    flex-wrap: wrap;
}

.ranto-quick-specs span,
.ranto-quick-specs strong {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ranto-buy-points li {
    overflow-wrap: anywhere;
}

.ranto-detail__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.ranto-detail__price strong {
    overflow-wrap: anywhere;
}

.ranto-detail__actions .ranto-primary-button,
.ranto-detail__actions .ranto-secondary-button {
    overflow-wrap: anywhere;
}

.ranto-detail__meta {
    flex-wrap: wrap;
}

.ranto-detail__aside,
.ranto-detail .ranto-tabs {
    min-width: 0;
}

.ranto-specs li,
.ranto-specs span,
.ranto-specs strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .ranto-quick-specs {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* End */


/* Start:/local/templates/ranto/styles.css?1790245046169*/
.ranto-lead {
    font-size: 1.125rem;
    line-height: 1.65;
}

.ranto-note {
    padding: 1rem 1.25rem;
    border-left: 4px solid #5b5ce2;
    background: #f4f4ff;
}

/* End */


/* Start:/local/templates/ranto/template_styles.css?1790245046244*/
img {
    max-width: 100%;
    height: auto;
}

.ranto-content table {
    width: 100%;
    border-collapse: collapse;
}

.ranto-content th,
.ranto-content td {
    padding: .75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

/* End */
/* /local/templates/ranto/assets/ranto.css?1791290152115065 */
/* /local/templates/ranto/styles.css?1790245046169 */
/* /local/templates/ranto/template_styles.css?1790245046244 */
