/* ==========================================================================
   Редизайн главной. Прототип, всё изолировано в .rd
   Палитра, кнопки и радиусы взяты из шаблона ad-love
   (local/templates/ad-love/less/constants.less и elements.less)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Страница-прототип: гасим шапку раздела шаблона и снимаем ограничение ширины
   -------------------------------------------------------------------------- */
body.rd-page .header-title { display: none; }
body.rd-page .page-container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
body.rd-page .inner-page { padding-top: 0; }
/* штатный подвал прячем — на этой странице свой */
body.rd-page .footer { display: none; }

:root {
    /* палитра из гайдлайна A.D. Love */
    --rd-primary: #3D271A;
    --rd-primary-hover: #2A1B12;
    --rd-accent: #888C79;
    --rd-ink: #242424;
    --rd-ink-2: rgba(36, 36, 36, .72);
    --rd-muted: #87898C;
    --rd-btn: #87898C;
    --rd-btn-hover: #74767A;
    --rd-line: #CACAC8;
    --rd-line-7: rgba(36, 36, 36, .10);
    --rd-line-hover: rgba(36, 36, 36, .28);
    --rd-bg: #F6F6F5;
    --rd-sand: #D7D2CB;
    --rd-gray: #F6F6F5;
    --rd-warm: #888C79;
    --rd-green: #888C79;
    --rd-rating: #888C79;
    --rd-radius: 12px;
    --rd-radius-sm: 8px;
}

.rd {
    font-family: 'Golos', 'Golos Text', -apple-system, 'Segoe UI', Arial, sans-serif;
    color: var(--rd-ink);
    background: #fff;
    line-height: 1.45;
}


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

.rd-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.rd h1, .rd h2, .rd h3, .rd p { margin: 0; }

.rd-h2 {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.rd-h2--center { text-align: center; }


.rd-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.rd-head__link {
    color: var(--rd-ink-2);
    text-decoration: none;
    font-weight: 500;
}
.rd-head__link:hover { color: var(--rd-primary); }
.rd-head__note { color: var(--rd-muted); }

/* --- Иконки --- */
.rd-ico {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.rd-ico--lg { width: 30px; height: 30px; }

/* --- Кнопки: копия .btn из elements.less --- */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 17px 35px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.rd-btn:focus, .rd-btn:active { outline: none !important; box-shadow: none !important; }
.rd-btn--primary {
    background-color: var(--rd-btn);
    color: #fff;
}
.rd-btn--primary:hover { background-color: var(--rd-btn-hover); border-color: var(--rd-btn-hover); color: #fff; }
.rd-btn--secondary {
    border-color: var(--rd-btn);
    background-color: transparent;
    color: var(--rd-ink);
}
.rd-btn--secondary:hover { background-color: rgba(135, 137, 140, .12); color: var(--rd-ink); }
.rd-btn--outline {
    border-color: var(--rd-line-7);
    background-color: transparent;
    color: var(--rd-ink);
}
.rd-btn--outline:hover { border-color: var(--rd-line-hover); color: var(--rd-ink); }
.rd-btn--sm { padding: 11px 23px; }



/* --- Топбар --- */
.rd-topbar {
    background: var(--rd-bg);
    border-bottom: 1px solid var(--rd-line-7);
    color: var(--rd-ink-2);
    font-size: 14px;
}
.rd-topbar__in {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    flex-wrap: wrap;
}
.rd-topbar__dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--rd-line);
}
.rd-topbar__link {
    margin-left: auto;
    color: var(--rd-primary);
    text-decoration: none;
    font-weight: 500;
}
.rd-topbar__link:hover { color: var(--rd-primary-hover); }

/* --- Главный баннер: разметка и классы шаблона (.hero.type-3),
       здесь только то, что в шаблоне приходило инлайном от компонента --- */
.rd-banner .hero.type-3 .head { min-height: 720px; }
@media (max-width: 1366px) {
    .rd-banner .hero.type-3 .head { min-height: 400px; }
}
@media (max-width: 767px) {
    .rd-banner .hero.type-3 .head { background-image: var(--bg-mob) !important; }
}
@media (max-width: 575px) {
    .rd-banner .hero.type-3 .head { min-height: 250px; }
}

/* --- Первый экран --- */
.rd-hero { background: #fff; padding: 56px 0 64px; }
.rd-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.rd-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 100px;
    background: var(--rd-bg);
    font-size: 14px;
    color: var(--rd-ink-2);
    margin-bottom: 22px;
}
.rd-hero__title {
    font-size: 58px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.rd-hero__lead {
    margin-top: 22px;
    font-size: 19px;
    color: var(--rd-ink-2);
    max-width: 520px;
}
.rd-hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.rd-hero__pets {
    display: flex;
    gap: 10px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.rd-pet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    background: var(--rd-bg);
    border: 1px solid transparent;
    border-radius: var(--rd-radius-sm);
    text-decoration: none;
    color: var(--rd-ink);
    font-size: 15px;
    transition: border-color .2s, background-color .2s;
}
.rd-pet:hover { border-color: var(--rd-primary); background: #fff; color: var(--rd-ink); }
.rd-pet .rd-ico { color: var(--rd-accent); }

.rd-hero__media { position: relative; }

/* --- Товар дня в первом экране --- */
.rd-daily {
    background: #fff;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius);
    padding: 16px;
}
.rd-daily__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.rd-daily__label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 2px solid #FF6C00;
    border-radius: var(--rd-radius-sm);
    background: transparent;
    color: var(--rd-ink);
    letter-spacing: .01em;
    font-size: 13px;
    font-weight: 500;
}
.rd-daily__note { font-size: 14px; color: var(--rd-muted); }
.rd-daily__media {
    display: flex;
    height: 300px;
    border-radius: var(--rd-radius-sm);
    overflow: hidden;
}
.rd-daily__media img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
}
.rd-daily__body { padding: 14px 4px 2px; }
.rd-daily__name {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.rd-daily__meta { margin-top: 6px; font-size: 14px; color: var(--rd-muted); }
.rd-daily__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.rd-daily__price { font-size: 24px; font-weight: 600; }

/* --- Квиз --- */
.rd-quiz { padding: 0 0 64px; }
.rd-quiz__box {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: var(--rd-bg);
    border-radius: var(--rd-radius);
    overflow: hidden;
}
.rd-quiz__aside { padding: 44px 40px; background: var(--rd-sand); }
.rd-quiz__label {
    letter-spacing: .04em;
    font-size: 13px;
    color: var(--rd-accent);
    margin-bottom: 16px;
}
.rd-quiz__head { font-size: 32px; line-height: 1.15; font-weight: 600; }
.rd-quiz__sub { margin-top: 16px; color: var(--rd-ink-2); font-size: 15px; }
.rd-quiz__progress { margin-top: 40px; }
.rd-quiz__bar {
    height: 4px;
    background: var(--rd-line);
    border-radius: 4px;
    overflow: hidden;
}
.rd-quiz__bar span {
    display: block;
    height: 100%;
    background: var(--rd-accent);
    transition: width .3s ease;
}
.rd-quiz__step { margin-top: 12px; font-size: 14px; color: var(--rd-muted); }

.rd-quiz__body {
    background: #fff;
    padding: 44px 44px 36px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--rd-line-7);
}
.rd-q__title { font-size: 26px; font-weight: 600; margin-bottom: 26px; }
.rd-q__opts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.rd-q__opts--3 { grid-template-columns: repeat(3, 1fr); }
.rd-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius-sm);
    font: inherit;
    font-size: 16px;
    color: var(--rd-ink);
    cursor: pointer;
    transition: border-color .18s, background-color .18s;
}
.rd-opt:hover { border-color: var(--rd-line-hover); }
.rd-opt.is-active { border-color: var(--rd-primary); background: rgba(136, 140, 121, .12); }
.rd-opt .rd-ico { color: var(--rd-accent); }

.rd-quiz__nav { margin-top: auto; padding-top: 26px; }
.rd-quiz__back {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--rd-muted);
    cursor: pointer;
}
.rd-quiz__back:hover { color: var(--rd-ink); }

.rd-result__label {
    letter-spacing: .04em;
    font-size: 13px;
    color: var(--rd-muted);
    margin-bottom: 18px;
}
.rd-result__card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 26px;
    align-items: center;
}
.rd-result__card img {
    width: 100%;
    border-radius: var(--rd-radius-sm);
    aspect-ratio: 1/1;
    object-fit: cover;
}
.rd-result__name { font-size: 21px; font-weight: 600; line-height: 1.25; }
.rd-result__why { margin-top: 12px; color: var(--rd-ink-2); }
.rd-result__price { margin-top: 16px; font-size: 28px; font-weight: 600; }
.rd-result__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* --- Каталог --- */
.rd-catalog { padding: 20px 0 64px; }
.rd-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.rd-chip {
    padding: 11px 23px;
    border-radius: var(--rd-radius-sm);
    border: 1px solid var(--rd-line-7);
    background: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--rd-ink);
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s;
}
.rd-chip:hover { border-color: var(--rd-line-hover); }
.rd-chip.is-active {
    background: var(--rd-primary);
    color: #fff;
    border-color: var(--rd-primary);
}
.rd-filter__sort {
    margin-left: auto;
    color: var(--rd-muted);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.rd-filter__sort select {
    font: inherit;
    color: var(--rd-ink);
    border: 0;
    background: none;
    cursor: pointer;
    padding: 6px 4px;
}

.rd-goods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius);
    overflow: hidden;
    transition: border-color .22s;
}
.rd-card:hover { border-color: var(--rd-line-hover); }
.rd-card__media { position: relative; background: var(--rd-gray); }
.rd-card__media img {
    width: 100%;
    display: block;
    aspect-ratio: 1/1;
    object-fit: cover;
}
.rd-card__label {
    position: absolute;
    top: 16px; left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--rd-green);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--rd-radius-sm);
}
.rd-card__label .rd-ico { width: 14px; height: 14px; }
.rd-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.rd-card__art { font-size: 13px; color: var(--rd-muted); min-height: 18px; }
.rd-card__name {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.rd-card__desc {
    margin-top: 10px;
    font-size: 14px;
    color: var(--rd-ink-2);
}
.rd-card__bottom { margin-top: auto; padding-top: 22px; }
.rd-card__price { font-size: 28px; font-weight: 600; }
.rd-card__buy {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}
.rd-card__buy .rd-btn { flex: 1 1 auto; }
.rd-count {
    display: flex;
    align-items: center;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius-sm);
    height: 50px;
    overflow: hidden;
    flex: 0 0 auto;
}
.rd-count button {
    width: 38px; height: 100%;
    border: 0;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--rd-ink-2);
}
.rd-count button:hover { color: var(--rd-primary); }
.rd-count input {
    width: 26px;
    border: 0;
    text-align: center;
    font: inherit;
    background: none;
    pointer-events: none;
}
.rd-card__oneclick {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: var(--rd-ink-2);
    text-decoration: none;
    border-bottom: 1px dashed var(--rd-line);
    align-self: center;
}
.rd-card__oneclick:hover { color: var(--rd-primary); }

/* --- Консультация --- */
.rd-help { padding: 0 0 64px; }
.rd-help__in {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 36px;
    align-items: center;
    background: var(--rd-sand);
    border-radius: var(--rd-radius);
    padding: 44px 46px;
}
.rd-help__text p { margin-top: 14px; color: var(--rd-ink-2); max-width: 560px; }
.rd-help__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.rd-help__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 600;
    color: var(--rd-ink);
    text-decoration: none;
}
.rd-help__phone .rd-ico { color: var(--rd-accent); }
.rd-help__mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rd-ink-2);
    text-decoration: none;
}
.rd-help__mail .rd-ico { width: 20px; height: 20px; color: var(--rd-accent); }
.rd-help__contacts .rd-btn { margin-top: 12px; }

/* --- Зачем коллаген --- */
.rd-why { padding: 20px 0 64px; }
.rd-why__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 46px;
    align-items: center;
    margin-top: 40px;
}
.rd-why__media img { width: 100%; display: block; }
.rd-why__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.rd-why__item {
    background: var(--rd-bg);
    border-radius: var(--rd-radius);
    padding: 24px;
}
.rd-why__item .rd-ico { color: var(--rd-accent); margin-bottom: 14px; }
.rd-why__t { font-weight: 600; font-size: 17px; }
.rd-why__d { margin-top: 6px; color: var(--rd-muted); font-size: 15px; }


/* --- Табы «Коллаген A.D.Love — это» --- */
.rd-tabs { margin-top: 56px; }
.rd-tabs__head {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 24px;
}
.rd-tabs__grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}
.rd-tabs__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rd-tabs__link {
    text-align: left;
    background: none;
    border: 0;
    border-radius: var(--rd-radius-sm);
    padding: 14px 18px;
    font: inherit;
    font-size: 17px;
    color: var(--rd-ink-2);
    cursor: pointer;
    transition: background-color .18s, color .18s;
}
.rd-tabs__link:hover { color: var(--rd-ink); }
.rd-tabs__link.is-active {
    background: var(--rd-bg);
    color: var(--rd-primary);
    font-weight: 500;
}
.rd-tabs__content {
    background: var(--rd-bg);
    border-radius: var(--rd-radius);
    padding: 32px 34px;
    min-height: 100%;
}
.rd-tabs__pane {
    display: none;
    font-size: 17px;
    line-height: 1.5;
    color: var(--rd-ink-2);
    max-width: 720px;
}
.rd-tabs__pane.is-active { display: block; }

/* --- Аккордеон (FAQ) --- */
.rd-spec__head {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
}
.rd-spec__item { border-top: 1px solid var(--rd-line-7); }
.rd-spec__item:last-child { border-bottom: 1px solid var(--rd-line-7); }
.rd-spec__q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 22px 44px 22px 0;
    font: inherit;
    font-size: 19px;
    font-weight: 500;
    color: var(--rd-ink);
    cursor: pointer;
    position: relative;
}
.rd-spec__q .rd-ico {
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -12px;
    width: 20px; height: 20px;
    color: var(--rd-muted);
    transition: transform .22s;
}
.rd-spec__item.is-open .rd-spec__q .rd-ico { transform: rotate(180deg); color: var(--rd-accent); }
.rd-spec__a {
    display: none;
    padding: 0 60px 24px 0;
    color: var(--rd-ink-2);
    max-width: 900px;
}
.rd-spec__item.is-open .rd-spec__a { display: block; }

/* --- Галерея: двойной слайдер (Swiper из шаблона) --- */
.rd-gallery { padding: 20px 0 64px; }
.rd-gallery__double {
    width: 100%;
    overflow: hidden;
}
.rd-gallery__double .rd-swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.rd-gallery__double .rd-swiper:last-child { margin-bottom: 0; }
.rd-gallery__double .swiper-slide {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rd-gray);
    border-radius: var(--rd-radius);
    overflow: hidden;
}
.rd-gallery__double .swiper-slide img {
    display: block;
    height: 260px;
    width: auto;
    max-width: none;
    object-fit: cover;
    user-select: none;
    cursor: zoom-in;
}


/* --- Модалка с фото --- */
.rd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 40px 24px;
    background: rgba(0, 0, 0, .82);
}
.rd-modal.is-open { display: flex; }
.rd-modal img {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--rd-radius);
    display: block;
}
.rd-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s;
}
.rd-modal__close:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 720px) {
    .rd-modal { padding: 60px 12px 24px; }
}

/* --- FAQ --- */
.rd-faq { padding: 20px 0 64px; }
.rd-faq__in {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 46px;
    align-items: start;
}
.rd-faq__list { margin-top: 0; }

/* --- Блог --- */
.rd-blog { padding: 20px 0 64px; }
.rd-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rd-post {
    display: flex;
    flex-direction: column;
    border-radius: var(--rd-radius);
    overflow: hidden;
    background: var(--rd-bg);
    text-decoration: none;
    color: var(--rd-ink);
}
.rd-post__img {
    height: 230px;
    background-size: cover;
    background-position: center;
}
.rd-post__body { padding: 22px 24px 26px; }
.rd-post__date { color: var(--rd-muted); font-size: 14px; }
.rd-post__title {
    margin-top: 8px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}
a.rd-post:hover .rd-post__title { color: var(--rd-primary); }
.rd-post--cta {
    background: #fff;
    border: 1px solid var(--rd-line-7);
    justify-content: center;
}
.rd-post--cta p { margin-top: 12px; color: var(--rd-ink-2); font-size: 15px; }
.rd-post--cta .rd-btn { margin-top: 22px; }

/* --- Сертификаты --- */
.rd-certs { padding: 20px 0 64px; }
.rd-certs__slider {
    /* шаблонный Swiper 6 знает только .swiper-container, страхуемся */
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-bottom: 44px;
}
.rd-certs__slider .swiper-slide { height: auto; }
.rd-certs__slider .swiper-button-prev,
.rd-certs__slider .swiper-button-next { color: var(--rd-ink); }
.rd-certs__slider .swiper-button-prev::after,
.rd-certs__slider .swiper-button-next::after { font-size: 22px; }
.rd-certs__slider .swiper-pagination { bottom: 0; }
.rd-certs__slider .swiper-pagination-bullet-active { background: var(--rd-primary); }

.rd-cert__img {
    display: flex;
    height: 320px;
    padding: 12px;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius);
    background: #fff;
    overflow: hidden;
}
.rd-cert__img:hover { border-color: var(--rd-line-hover); }
.rd-cert__img img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
}
/* пока файла нет — рамка с заглушкой */
.rd-cert__img.is-empty img { display: none; }
.rd-cert__img.is-empty {
    background: var(--rd-bg);
    position: relative;
}
.rd-cert__img.is-empty::after {
    content: 'нет файла';
    margin: auto;
    color: var(--rd-muted);
    font-size: 14px;
}
.rd-cert__tag {
    margin-top: 14px;
    font-size: 14px;
    color: var(--rd-accent);
}

/* --- Партнёры --- */
.rd-partners { padding: 0 0 80px; }
.rd-partners__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius);
    padding: 40px 46px;
}
.rd-partners__in p { margin-top: 12px; color: var(--rd-ink-2); max-width: 620px; }


.rd-footer {
    font-family: 'Golos', 'Golos Text', -apple-system, 'Segoe UI', Arial, sans-serif;
    color: var(--rd-ink);
    line-height: 1.45;
}
.rd-footer *, .rd-footer *::before, .rd-footer *::after { box-sizing: border-box; }

/* --- Подвал страницы --- */
.rd-footer {
    background: var(--rd-bg);
    padding: 56px 0 32px;
    margin-top: 20px;
}
.rd-footer__top {
    display: grid;
    grid-template-columns: 1.4fr .9fr .9fr .9fr 1.1fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--rd-line);
}
.rd-footer__logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--rd-ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.rd-footer__slogan {
    margin-top: 14px;
    color: var(--rd-ink-2);
    font-size: 15px;
    max-width: 320px;
}
.rd-footer__contacts {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.rd-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--rd-ink);
    text-decoration: none;
}
.rd-footer__mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--rd-ink-2);
    text-decoration: none;
}
.rd-footer__phone .rd-ico,
.rd-footer__mail .rd-ico { color: var(--rd-accent); }
.rd-footer__mail .rd-ico { width: 20px; height: 20px; }

.rd-footer__col { display: flex; flex-direction: column; }
.rd-footer__title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}
.rd-footer__col a {
    color: var(--rd-ink-2);
    text-decoration: none;
    font-size: 15px;
    padding: 6px 0;
}
.rd-footer__col a:hover { color: var(--rd-primary); }

.rd-subscribe { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-subscribe input {
    flex: 1 1 160px;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius-sm);
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--rd-ink);
}
.rd-subscribe input::placeholder { color: var(--rd-muted); }
.rd-subscribe input:focus { border-color: var(--rd-primary); outline: none; }
.rd-footer__note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--rd-muted);
}

.rd-footer__office {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding: 26px 0;
    border-bottom: 1px solid var(--rd-line);
    color: var(--rd-ink-2);
    font-size: 15px;
}
.rd-footer__label {
    display: block;
    color: var(--rd-muted);
    font-size: 13px;
    margin-bottom: 4px;
}

.rd-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 14px;
    color: var(--rd-muted);
}
.rd-footer__legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.rd-footer__legal a {
    color: var(--rd-muted);
    text-decoration: none;
}
.rd-footer__legal a:hover { color: var(--rd-primary); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
    .rd-h2 { font-size: 32px; }
    .rd-hero__title { font-size: 44px; }
    .rd-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .rd-hero__media { max-width: 520px; }
    .rd-daily__media { height: 260px; }
    .rd-quiz__box { grid-template-columns: 1fr; }
    .rd-quiz__aside { padding: 34px 28px; }
    .rd-quiz__body { padding: 30px 28px; border-left: 0; border-top: 1px solid var(--rd-line-7); }
    .rd-goods { grid-template-columns: repeat(2, 1fr); }
    .rd-why__grid { grid-template-columns: 1fr; gap: 30px; }
    .rd-help__in { grid-template-columns: 1fr; padding: 32px 28px; }
    .rd-faq__in { grid-template-columns: 1fr; gap: 24px; }
    .rd-tabs__grid { grid-template-columns: 1fr; gap: 20px; }
    .rd-tabs__nav {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .rd-tabs__nav::-webkit-scrollbar { display: none; }
    .rd-tabs__link {
        white-space: nowrap;
        border: 1px solid var(--rd-line-7);
        font-size: 15px;
        padding: 11px 16px;
    }
    .rd-blog__grid { grid-template-columns: repeat(2, 1fr); }
    .rd-footer__top { grid-template-columns: 1fr 1fr 1fr; }
    .rd-footer__brand { grid-column: 1 / -1; }
    .rd-footer__sub { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 720px) {
    .rd-h2 { font-size: 26px; }
    .rd-hero { padding: 32px 0 40px; }
    .rd-hero__title { font-size: 32px; }
    .rd-hero__lead { font-size: 17px; }
    .rd-daily__media { height: 200px; }
        .rd-btn { width: 100%; }
    .rd-btn--sm { width: auto; }
    .rd-topbar__in { font-size: 13px; gap: 10px; }
    .rd-topbar__link { margin-left: 0; }
    .rd-q__opts, .rd-q__opts--3 { grid-template-columns: 1fr; }
    .rd-q__title { font-size: 21px; }
    .rd-quiz__head { font-size: 24px; }
    .rd-result__card { grid-template-columns: 1fr; }
    .rd-goods { grid-template-columns: 1fr; }
    .rd-why__list { grid-template-columns: 1fr; }
    .rd-blog__grid { grid-template-columns: 1fr; }
    .rd-cert__img { height: 260px; }
    .rd-gallery__double .swiper-slide img { height: 170px; }
    .rd-partners__in { padding: 28px 24px; }
    .rd-tabs__content { padding: 22px 20px; }
    .rd-tabs__pane { font-size: 16px; }
    .rd-spec__q { font-size: 17px; padding-right: 34px; }
    .rd-spec__a { padding-right: 0; }
    .rd-filter__sort { margin-left: 0; width: 100%; }
    .rd-footer { padding: 36px 0 24px; }
    .rd-footer__top { grid-template-columns: 1fr; gap: 26px; }
    .rd-footer__sub { max-width: none; }
    .rd-footer__office { gap: 20px; flex-direction: column; }
    .rd-subscribe input { flex: 1 1 100%; }
    .rd-subscribe .rd-btn { width: 100%; }
}

/* ==========================================================================
   Мост: приводим штатную разметку компонентов каталога к виду редизайна.
   Партиалы catalog.item отдают свои классы (price-block, counter, btn) —
   переопределяем их внутри .rd-card, чтобы не трогать рабочую механику корзины.
   ========================================================================== */
.rd-goods .item-wrap { display: flex; }
.rd-goods .item-wrap > .rd-card { width: 100%; }

/* фото и слайдер превью */
.rd-card .image-slider { position: relative; }
.rd-card .image-slider .gallery-top { border-radius: 0; }
.rd-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.rd-card .gallery-thumbs { display: none; }
.rd-card .product-card-link { display: block; }

/* «В наличии» */
.rd-card .label.badge-in-stock {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background-color: transparent;
}
.rd-card .badge-in-stock .in-stock {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--rd-accent);
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--rd-radius-sm);
}

/* избранное */
.rd-card .icon-block {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* название и ссылка */
.rd-card__name a { color: inherit; text-decoration: none; }
.rd-card__name a:hover { color: var(--rd-primary); }

/* цена */
.rd-card .price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rd-card .price-block .price {
    font-size: 28px;
    font-weight: 600;
    color: var(--rd-ink);
}
.rd-card .price-block .old-price {
    font-size: 15px;
    color: var(--rd-muted);
    text-decoration: line-through;
}
.rd-card .price-block .sale.label { display: none !important; }

/* счётчик и кнопка */
.rd-card .button-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.rd-card .counter {
    display: flex;
    align-items: center;
    height: 50px;
    border: 1px solid var(--rd-line-7);
    border-radius: var(--rd-radius-sm);
    overflow: hidden;
    flex: 0 0 auto;
}
.rd-card .counter .minus,
.rd-card .counter .plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    color: var(--rd-ink-2);
    text-decoration: none;
}
.rd-card .counter .minus:hover,
.rd-card .counter .plus:hover { color: var(--rd-btn); }
.rd-card .counter input {
    width: 34px;
    border: 0;
    background: none;
    text-align: center;
    font: inherit;
    font-size: 15px;
    color: var(--rd-ink);
    -moz-appearance: textfield;
    appearance: textfield;
}
.rd-card .counter input::-webkit-outer-spin-button,
.rd-card .counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rd-card .counter .measure { font-size: 13px; color: var(--rd-muted); padding-right: 6px; }

.rd-card .basket-actions { flex: 1 1 auto; }
.rd-card .basket-actions .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 23px;
    border: 1px solid transparent;
    border-radius: var(--rd-radius-sm);
    background-color: var(--rd-btn);
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}
.rd-card .basket-actions .btn.btn-primary:hover {
    background-color: var(--rd-btn-hover);
    border-color: var(--rd-btn-hover);
    color: #fff;
}

@media (max-width: 720px) {
    .rd-card .button-block { flex-wrap: nowrap; }
}
