/* RD Site — продающий слой (подача как у крупных веб-студий). Подключается последним.
 * Оттенки темы сохранены: голубой #49a9d8, сине-серые (#74afd0, #649bb8, #5d79a5, #59627d), тёмный #17170f.
 * Ширина: контейнер 1224px с полями 32px (контент 1160px), баннер первого экрана шире — до 1360px.
 */

/* Шрифт Montserrat (OFL) — файлы лежат на сайте, theme/fonts/ */
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/montserrat-cyrillic-400-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/montserrat-cyrillic-500-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/montserrat-cyrillic-600-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/montserrat-cyrillic-700-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/montserrat-cyrillic-800-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/montserrat-latin-800-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/montserrat-cyrillic-900-normal.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(../fonts/montserrat-latin-900-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --rd-accent: #49a9d8;
    --rd-accent-dark: #2f8cbc;
    --rd-accent-soft: rgba(73, 169, 216, .12);
    --rd-grad: linear-gradient(90deg, #49a9d8 0%, #5d79a5 100%);
    --rd-navy: #141b2b;
    --rd-navy-2: #23304b;
    --rd-steel: #52636d;
    --rd-muted: #73818a;
    --rd-line: #e3e8ec;
    --rd-surface: #ffffff;
    --rd-page: #f3f5f9;
    --rd-shadow: 0 1px 2px rgba(20, 27, 43, .04), 0 8px 24px rgba(20, 27, 43, .06);
    --rd-shadow-lg: 0 2px 6px rgba(20, 27, 43, .06), 0 24px 48px rgba(20, 27, 43, .14);
}

body.site-page {
    background: var(--rd-page);
}

/* Montserrat везде, включая элементы темы, где был задан Manrope */
body.site-page,
body.site-page :where(h1, h2, h3, h4, p, a, span, b, li, button, input, select, textarea, label, small, dt, dd, summary, div) {
    font-family: Montserrat, Arial, sans-serif;
}

.site-container {
    max-width: 1224px;
}

.rd-wide {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rd-btn.callback-trigger {
    width: auto;
}

.rd-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    transition: transform .18s ease;
}

.rd-btn:hover svg {
    transform: translateX(3px);
}

.rd-btn--primary {
    background: var(--rd-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(73, 169, 216, .35);
}

.rd-btn--primary:hover,
.rd-btn--primary:focus-visible {
    background: var(--rd-accent-dark);
    color: #fff;
    box-shadow: 0 12px 28px rgba(47, 140, 188, .42);
    transform: translateY(-1px);
    outline: 0;
}

.rd-btn--outline {
    border-color: var(--rd-accent);
    background: transparent;
    color: var(--ink);
}

.rd-btn--outline:hover,
.rd-btn--outline:focus-visible {
    background: var(--rd-accent);
    color: #fff;
    outline: 0;
}

.rd-btn--glass {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.rd-btn--glass:hover,
.rd-btn--glass:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    outline: 0;
}

.rd-btn--lg {
    min-height: 58px;
    padding: 16px 32px;
    font-size: 16px;
}

.button--primary,
.callback-form__submit {
    border-radius: 999px;
    background: var(--rd-accent);
    color: #fff;
    font-weight: 700;
}

.button--primary:hover,
.callback-form__submit:hover {
    background: var(--rd-accent-dark);
    color: #fff;
}

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    border-bottom-color: rgba(227, 232, 236, .9);
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}

.site-header .site-container {
    height: 76px;
}

.site-nav {
    gap: 22px;
    font-size: 15px;
    white-space: nowrap;
    font-weight: 500;
    color: var(--ink);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--rd-accent-dark);
}

.site-header__contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__phone {
    font-size: 16px;
    font-weight: 800;
}

.site-header__cta {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: none;
}

@media (max-width: 1180px) {
    .site-header__cta {
        display: none;
    }

    .site-nav {
        gap: 16px;
        font-size: 13.5px;
    }
}

/* ---------- Заголовки секций: по центру, слова-плашки ---------- */
.rd-section {
    padding: 96px 0;
}

.rd-title {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}

.rd-title h2 {
    font-size: clamp(30px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.03em;
}

.rd-title p {
    max-width: 620px;
    margin: 16px auto 0;
    color: var(--rd-steel);
    font-size: 17px;
    line-height: 1.55;
}

.rd-mark {
    display: inline-block;
    padding: 0 .22em .05em;
    border-radius: .22em;
    background: rgba(73, 169, 216, .16);
    color: var(--rd-accent-dark);
    font-style: italic;
    line-height: 1.15;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .rd-mark {
        background:
            linear-gradient(90deg, #3a9bd0, #5d79a5),
            linear-gradient(90deg, rgba(73, 169, 216, .16), rgba(93, 121, 165, .18));
        -webkit-background-clip: text, padding-box;
        background-clip: text, padding-box;
        -webkit-text-fill-color: transparent;
    }
}

.rd-cta-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 44px;
    text-align: center;
}

.rd-cta-line small {
    max-width: 380px;
    color: var(--rd-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

/* ---------- Первый экран ---------- */
.rd-hero {
    padding: 24px 0 0;
}

.rd-hero__banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    min-height: 560px;
    overflow: hidden;
    padding: 64px 64px 56px;
    border-radius: 32px;
    background: #10203d url("../img/hero-bg.webp") right center / cover no-repeat;
    color: #fff;
}

.rd-hero__content {
    position: relative;
    z-index: 2;
}

.rd-hero__title {
    max-width: 600px;
    font-size: clamp(34px, 4.4vw, 60px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.rd-hero__title span {
    display: block;
    margin-top: .12em;
    background: linear-gradient(90deg, #6cc4f0 0%, #a9dcf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rd-hero__text {
    max-width: 520px;
    margin: 24px 0 32px;
    color: #c4cfda;
    font-size: 18px;
    line-height: 1.6;
}

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

.rd-hero__stats {
    display: inline-flex;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .05);
}

.rd-hero__stats > div {
    padding: 8px 18px;
}

.rd-hero__stats > div + div {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.rd-hero__stats dt {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.rd-hero__stats dd {
    margin-top: 2px;
    color: #9fb0c0;
    font-size: 13px;
}

.rd-hero__visual {
    position: relative;
    z-index: 1;
    min-height: 440px;
}

.rd-shot {
    position: absolute;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}

.rd-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
}

.rd-shot__bar {
    display: flex;
    gap: 6px;
    padding: 9px 12px;
    background: #eef2f5;
}

.rd-shot__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff8a80;
}

.rd-shot__bar i:nth-child(2) { background: #ffd180; }
.rd-shot__bar i:nth-child(3) { background: #9be7a8; }

.rd-shot--1 {
    z-index: 3;
    top: 48px;
    left: 6%;
    width: 80%;
}

.rd-shot--2 {
    z-index: 2;
    top: 0;
    right: -8%;
    width: 50%;
    transform: rotate(4deg);
}

.rd-shot--3 {
    z-index: 1;
    bottom: 4px;
    left: -6%;
    width: 44%;
    transform: rotate(-5deg);
}

.rd-hero__price {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    padding: 16px 22px;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    transform: rotate(-3deg);
}

.rd-hero__price span {
    color: var(--rd-muted);
    font-size: 13px;
    font-weight: 600;
}

.rd-hero__price b {
    background: var(--rd-grad);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    -webkit-text-fill-color: transparent;
}

/* ---------- Витрина и карточки сайтов ---------- */
.rd-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.catalog-product-card,
.portfolio-card {
    overflow: hidden;
    border: 1px solid var(--rd-line);
    border-radius: 22px;
    background: var(--rd-surface);
    box-shadow: var(--rd-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.catalog-product-card:hover,
.portfolio-card:hover {
    border-color: rgba(73, 169, 216, .5);
    box-shadow: var(--rd-shadow-lg);
    transform: translateY(-4px);
}

.catalog-product-card .frame,
.portfolio-card .frame {
    border: 0;
    border-bottom: 1px solid var(--rd-line);
    border-radius: 0 !important;
}

.catalog-product-card .frame img,
.portfolio-card .frame img {
    transition: transform .5s ease;
}

.catalog-product-card:hover .frame img,
.portfolio-card:hover .frame img {
    transform: scale(1.035);
}

.catalog-product-card__badge {
    border-radius: 999px;
    background: var(--rd-accent);
    color: #fff;
    font-weight: 700;
}

.catalog-product-card__title {
    font-weight: 800;
}

.catalog-product-card__price-current {
    color: var(--ink);
    font-weight: 800;
}

.catalog-product-card__action--details {
    border-color: var(--rd-accent);
    background: var(--rd-accent);
    color: #fff;
}

.catalog-product-card__action--details:hover {
    border-color: var(--rd-accent-dark);
    background: var(--rd-accent-dark);
    color: #fff;
}

/* ---------- Тарифы ---------- */
.rd-tariffs {
    background: var(--rd-surface);
}

.rd-tariffs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rd-tariff {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: var(--rd-page);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rd-tariff:hover {
    border-color: rgba(73, 169, 216, .6);
    box-shadow: var(--rd-shadow-lg);
    transform: translateY(-3px);
}

.rd-tariff--popular {
    border: 2px solid var(--rd-accent);
    background: #fff;
}

.rd-tariff__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 18px;
}

.rd-tariff__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--rd-grad);
}

.rd-tariff__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.rd-tariff__badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--rd-accent-soft);
    color: var(--rd-accent-dark);
    font-size: 12.5px;
    font-weight: 700;
}

.rd-tariff__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.rd-tariff__lead {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
}

.rd-tariff__fit {
    margin-top: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rd-line);
    color: var(--rd-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.rd-tariff__label {
    align-self: flex-start;
    margin-top: 18px;
    padding: 5px 12px;
    border: 1px solid var(--rd-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.rd-tariff__list {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    list-style: none;
}

.rd-tariff__list li {
    position: relative;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.4;
}

.rd-tariff__list li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rd-accent);
}

.rd-tariff__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: auto 0 18px;
    padding-top: 22px;
}

.rd-tariff__list + .rd-tariff__price,
.rd-tariff__fit + .rd-tariff__price {
    margin-top: auto;
}

.rd-tariff__price::before {
    content: "";
    align-self: stretch;
    margin: 0 0 18px;
    border-top: 1px solid var(--rd-line);
}

.rd-tariff__price b {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.rd-tariff__price span {
    color: var(--rd-muted);
    font-size: 13px;
}

.rd-tariff__btn {
    width: 100%;
    box-shadow: none;
}

.rd-help-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 20px;
    padding: 24px 28px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: var(--rd-page);
}

.rd-help-bar b {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.rd-help-bar span {
    color: var(--rd-steel);
    font-size: 15px;
}

/* ---------- Сравнение ---------- */
.rd-compare {
    max-width: 1000px;
    margin: 0 auto;
}

.rd-compare__row {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.2fr;
}

.rd-compare__row > span {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--rd-line);
    font-size: 15px;
    line-height: 1.4;
}

.rd-compare__row > span:first-child {
    color: var(--rd-steel);
    font-weight: 600;
}

.rd-compare__row--head > span {
    justify-content: center;
    min-height: 68px;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 800;
}

.rd-compare__row:not(.rd-compare__row--head) .rd-compare__them::before,
.rd-compare__row:not(.rd-compare__row--head) .rd-compare__us::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 6px;
}

.rd-compare__row:not(.rd-compare__row--head) .rd-compare__them::before {
    background: #fde8e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e06a6a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.rd-compare__us {
    background: #eaf4fa;
    font-weight: 600;
}

.rd-compare__row:not(.rd-compare__row--head) .rd-compare__us::before {
    background: var(--rd-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.rd-compare__row--head .rd-compare__us {
    border-radius: 20px 20px 0 0;
    background: var(--rd-grad);
    color: #fff;
    font-size: 22px;
}

.rd-compare__row--head .rd-compare__us span {
    color: #d8f0fc;
}

.rd-compare__row:last-child .rd-compare__us {
    border-bottom: 0;
    border-radius: 0 0 20px 20px;
}

/* ---------- Шаги ---------- */
.rd-steps-section {
    background: var(--rd-surface);
}

.rd-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
}

.rd-step {
    position: relative;
    padding: 26px 24px 28px;
    border-radius: 24px;
    background: var(--rd-page);
}

.rd-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--rd-grad);
}

.rd-step__num {
    display: inline-block;
    margin: 6px 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--rd-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rd-step h3 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.rd-step p {
    margin-top: 8px;
    color: var(--rd-steel);
    font-size: 15px;
    line-height: 1.55;
}

/* ---------- Отзывы ---------- */
.rd-reviews .testimonials {
    margin-top: 0;
}

/* ---------- Консультация ---------- */
.rd-consult-section {
    padding-top: 0;
}

.rd-consult {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 56px;
    overflow: hidden;
    padding: 56px;
    position: relative;
    border: 1px solid #d9e8f2;
    border-radius: 32px;
    /* светлый блок без картинки: голубой градиент и мягкие круги */
    background:
        radial-gradient(circle at 92% 12%, rgba(73, 169, 216, .28) 0, rgba(73, 169, 216, 0) 28%),
        radial-gradient(circle at 8% 100%, rgba(93, 121, 165, .18) 0, rgba(93, 121, 165, 0) 32%),
        linear-gradient(135deg, #e8f3fa 0%, #f2f5fb 55%, #e9eef8 100%);
    color: var(--ink);
}

.rd-consult__tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--rd-accent-dark);
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--rd-shadow);
}

.rd-consult h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.rd-consult__info > p {
    max-width: 520px;
    margin-top: 16px;
    color: var(--rd-steel);
    font-size: 17px;
    line-height: 1.6;
}

.rd-consult__person {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.rd-consult__person img {
    width: 72px;
    height: 72px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--rd-accent);
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.rd-consult__person b {
    display: block;
    font-size: 17px;
}

.rd-consult__person span {
    color: var(--rd-muted);
    font-size: 14px;
}

.rd-consult__list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    list-style: none;
}

.rd-consult__list li {
    position: relative;
    padding-left: 32px;
    color: var(--rd-steel);
    font-size: 15px;
    line-height: 1.5;
}

.rd-consult__list b {
    color: var(--ink);
}

.rd-consult__list li::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rd-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.rd-consult__form {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(28, 52, 84, .14);
}

.rd-consult__form .callback-form__submit {
    width: 100%;
}

/* ---------- Текст о сайтах ---------- */
.rd-about {
    padding-top: 0;
}

.rd-about__card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    overflow: hidden;
    padding: 56px 56px 0;
    border: 1px solid var(--rd-line);
    border-radius: 32px;
    background:
        radial-gradient(60% 90% at 100% 100%, rgba(73, 169, 216, .18) 0%, rgba(73, 169, 216, 0) 70%),
        linear-gradient(180deg, #fff 0%, #f5f9fc 100%);
}

.rd-about__text {
    align-self: start;
    padding-bottom: 56px;
}

.rd-about__text h2 {
    margin-bottom: 20px;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.rd-about__text .prose p {
    color: var(--rd-steel);
    font-size: 16px;
    line-height: 1.7;
}

.rd-about__text .prose p + p {
    margin-top: 14px;
}

.rd-about__more {
    margin-top: 14px;
}

.rd-about__more summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rd-accent-dark);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.rd-about__more summary::-webkit-details-marker {
    display: none;
}

.rd-about__more summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.rd-about__more[open] summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.rd-about__more[open] summary {
    order: 2;
}

.rd-about__close,
.rd-about__more[open] .rd-about__open {
    display: none;
}

.rd-about__more[open] .rd-about__close {
    display: inline;
}

.rd-about__more .prose {
    margin-top: 14px;
}

.rd-about__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
    list-style: none;
}

.rd-about__facts li {
    padding: 16px 18px;
    border: 1px solid var(--rd-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-about__facts b {
    display: block;
    background: var(--rd-grad);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    -webkit-text-fill-color: transparent;
}

.rd-about__facts span {
    color: var(--rd-muted);
    font-size: 13.5px;
}

.rd-about__media {
    position: relative;
    align-self: end;
    margin: 0;
}

.rd-about__blob {
    position: absolute;
    inset: 12% 6% 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 169, 216, .22) 0%, rgba(73, 169, 216, 0) 70%);
}

.rd-about__media img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
}

.rd-about__chip {
    position: absolute;
    z-index: 2;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--rd-shadow-lg);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.rd-about__chip--1 {
    top: 26%;
    left: 0;
    color: var(--rd-accent-dark);
    transform: rotate(-4deg);
}

.rd-about__chip--2 {
    top: 52%;
    right: 0;
    background: var(--rd-navy);
    color: #fff;
    transform: rotate(3deg);
}

/* ---------- Каталог ---------- */
.rd-cat-search {
    padding: 18px 0;
    background: linear-gradient(90deg, #dcecf6 0%, #e4e9f4 100%);
}

.rd-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 52px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-search svg {
    position: absolute;
    left: 20px;
    width: 22px;
    height: 22px;
    color: var(--rd-muted);
}

.rd-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    outline: 0;
}

.rd-search .rd-btn {
    min-height: 44px;
    box-shadow: none;
}

.rd-catalog {
    padding: 0 0 80px;
}

.rd-catalog__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.rd-catalog__side {
    position: sticky;
    top: 96px;
    padding: 28px 0;
}

.rd-catalog__side-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rd-line);
    color: var(--rd-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rd-catalog__cats {
    display: grid;
    gap: 2px;
}

.rd-catalog__cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.rd-catalog__cat small {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--rd-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.rd-catalog__cat:hover {
    background: #fff;
    color: var(--rd-accent-dark);
}

.rd-catalog__cat.is-current {
    background: var(--rd-accent);
    color: #fff;
}

.rd-catalog__cat.is-current small {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.rd-catalog__help {
    margin-top: 28px;
    padding: 22px 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(73, 169, 216, .45) 0, rgba(73, 169, 216, 0) 55%),
        linear-gradient(160deg, var(--rd-navy) 0%, var(--rd-navy-2) 100%);
    color: #fff;
}

.rd-catalog__help b {
    display: block;
    font-size: 17px;
}

.rd-catalog__help p {
    margin: 8px 0 16px;
    color: #c4cfda;
    font-size: 14px;
    line-height: 1.5;
}

.rd-catalog__help .rd-btn {
    width: 100%;
    box-shadow: none;
}

.rd-catalog__main {
    min-width: 0;
    padding-top: 28px;
}

.rd-catalog__main .breadcrumbs {
    padding-bottom: 14px;
}

.rd-catalog__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.rd-catalog__lead {
    max-width: 760px;
    margin-top: 12px;
    color: var(--rd-steel);
    font-size: 16px;
    line-height: 1.6;
}

.rd-catalog__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 28px 0 24px;
}

.rd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rd-tabs__item {
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.rd-tabs__item:hover {
    background: #fff;
    color: var(--rd-accent-dark);
}

.rd-tabs__item.is-current {
    background: var(--rd-navy);
    color: #fff;
}

.rd-catalog__count {
    color: var(--rd-muted);
    font-size: 14px;
}

.rd-catalog__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.rd-catalog__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 40px;
    border-radius: 24px;
    background: #fff;
}

/* Карточка сайта: отметка на краю картинки, кнопки текстом */
.catalog-product-card {
    display: flex;
    flex-direction: column;
}

.catalog-product-card__image-link {
    position: relative;
}

.catalog-product-card .catalog-product-card__badge {
    top: auto;
    bottom: 14px;
    left: 0;
    padding: 8px 16px 8px 18px;
    border-radius: 0 999px 999px 0;
    background: var(--rd-accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.catalog-product-card .catalog-product-card__badge--hit {
    background: #f39a3d;
}

.catalog-product-card__body {
    gap: 12px;
    padding: 18px 20px 20px;
}

.catalog-product-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.catalog-product-card__title a {
    color: var(--rd-accent-dark);
}

.catalog-product-card__title a:hover {
    color: var(--ink);
}

.catalog-product-card__price {
    flex: 0 0 auto;
    margin-top: auto;
}

.catalog-product-card__price-old {
    order: -1;
    font-size: 13px;
}

.catalog-product-card__price-current {
    font-size: 18px;
    font-weight: 700;
}

.rd-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rd-card-actions .rd-btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.rd-card-actions .rd-card-actions__more:only-child {
    grid-column: 1 / -1;
}

/* ---------- Подвал ---------- */
.site-footer {
    border-top: 0;
    background: var(--rd-navy);
}

.site-footer .site-container,
.site-footer__logo,
.site-footer__nav a,
.site-footer__contact-link {
    color: #e6edf2;
}

.site-footer__tagline,
.site-footer__legal a {
    color: #aebbc6;
}

.site-footer__note,
.site-footer__title,
.site-footer__bottom {
    color: #7f8c99;
}

.site-footer__bottom {
    border-top-color: rgba(255, 255, 255, .1);
}

/* ---------- Плавающая кнопка и кнопки «Связаться» ---------- */
.fab__button {
    background: var(--rd-accent);
    box-shadow: 0 10px 24px rgba(47, 140, 188, .38);
}

.fab__button:hover {
    background: var(--rd-accent-dark);
}

.product-detail__actions .callback-trigger {
    border-color: var(--rd-accent);
    background: var(--rd-accent);
    color: #fff;
}

.product-detail__actions .callback-trigger:hover {
    border-color: var(--rd-accent-dark);
    background: var(--rd-accent-dark);
    color: #fff;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .rd-showcase__grid,
    .rd-steps,
    .rd-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-catalog__layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }

    .rd-hero__banner {
        padding: 48px 40px;
    }
}

@media (max-width: 900px) {
    .rd-section {
        padding: 64px 0;
    }

    .rd-title {
        margin-bottom: 32px;
    }

    .rd-hero__banner,
    .rd-consult,
    .rd-about__card,
    .rd-catalog__layout {
        grid-template-columns: minmax(0, 1fr); /* minmax: лента категорий и слайдеры не растягивают колонку */
    }

    .rd-about__card {
        padding: 36px 28px 0;
    }

    .rd-about__text {
        padding-bottom: 0;
    }

    .rd-about__media img {
        max-width: 340px;
    }

    /* категории — лентой над сеткой, блок «Не нашли?» скрыт */
    .rd-catalog__side {
        position: static;
        padding: 20px 0 0;
    }

    .rd-catalog__side-title,
    .rd-catalog__help {
        display: none;
    }

    .rd-catalog__cats {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }

    .rd-catalog__cat {
        flex: 0 0 auto;
        background: #fff;
        white-space: nowrap;
    }

    .rd-catalog__main {
        padding-top: 16px;
    }

    .rd-hero__banner {
        min-height: 0;
        gap: 32px;
        /* на узком экране картинка только внизу, под скриншотами: текст на ровном тёмном фоне */
        background:
            linear-gradient(180deg, #10203d 0%, #10203d 50%, rgba(16, 32, 61, 0) 72%),
            #10203d url("../img/hero-bg.webp") 78% bottom / auto 52% no-repeat;
    }

    .rd-hero__visual {
        min-height: 0;
        aspect-ratio: 16 / 11;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .rd-shot--1 {
        top: 10%;
    }

    .rd-consult {
        gap: 32px;
        padding: 36px 28px;
    }

    .rd-compare__row > span {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .rd-wide {
        padding: 0 12px;
    }

    .rd-hero {
        padding-top: 12px;
    }

    .rd-hero__banner {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .rd-hero__title {
        font-size: 30px;
    }

    .rd-hero__text {
        font-size: 16px;
    }

    .rd-hero__actions .rd-btn {
        width: 100%;
    }

    .rd-hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .rd-hero__stats > div {
        padding: 8px 10px;
    }

    .rd-hero__stats > div + div {
        border-left: 0;
    }

    .rd-hero__stats dt {
        font-size: 19px;
    }

    .rd-hero__price {
        padding: 10px 14px;
    }

    .rd-hero__price b {
        font-size: 20px;
    }

    .rd-section {
        padding: 52px 0;
    }

    .rd-showcase__grid,
    .rd-steps,
    .rd-catalog__grid {
        grid-template-columns: 1fr;
    }

    .rd-about__facts {
        grid-template-columns: 1fr 1fr;
    }

    .rd-about__facts li:last-child {
        grid-column: 1 / -1;
    }

    .rd-about__card {
        padding: 28px 20px 0;
        border-radius: 24px;
    }

    .rd-search {
        padding-left: 44px;
    }

    .rd-search svg {
        left: 16px;
    }

    .rd-search .rd-btn {
        padding: 9px 16px;
    }

    .rd-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px;
        scrollbar-width: none;
    }

    .rd-tabs__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .rd-cta-line .rd-btn {
        width: 100%;
        white-space: normal;
    }

    .rd-compare__row {
        grid-template-columns: 1fr 1fr;
    }

    .rd-compare__row > span:first-child {
        grid-column: 1 / -1;
        min-height: 0;
        padding: 16px 4px 6px;
        border-bottom: 0;
        color: var(--ink);
        font-weight: 800;
    }

    .rd-compare__row--head > span:first-child {
        display: none;
    }

    .rd-compare__row--head .rd-compare__us {
        font-size: 17px;
    }

    .rd-compare__row:not(.rd-compare__row--head) .rd-compare__them::before,
    .rd-compare__row:not(.rd-compare__row--head) .rd-compare__us::before {
        display: none;
    }

    .rd-compare__us {
        border-radius: 0 !important;
    }

    .rd-consult {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .rd-consult__form {
        padding: 20px;
    }

    .rd-help-bar .rd-btn {
        width: 100%;
    }
}

/* Обычный текст и мелкие элементы — в размерах как у megagroup */
.breadcrumbs {
    font-size: 14px;
}

.site-header__phone {
    font-size: 17px;
    font-weight: 700;
}

/* Мессенджеры: круглые, одного размера — в шапке, подвале и мобильном меню */
@media (min-width: 901px) {
    .site-header__messengers {
        gap: 8px;
    }

    .site-header__messenger-link {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        transition: transform .15s ease;
    }

    .site-header__messenger-link:hover {
        transform: translateY(-1px);
    }

    .site-header__messenger-link--max {
        background: transparent;
    }

    /* оригинальная иконка Max целиком, круг срезает только уголки */
    .site-header__messenger-image {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    /* оригинальные цвета Telegram */
    .site-header__messenger-link--telegram {
        background: linear-gradient(180deg, #37aee2 0%, #1e96c8 100%);
    }

    .site-header__messenger-icon {
        width: 19px;
        height: 19px;
        margin-left: -2px;
    }
}

.site-footer__social,
.mobile-nav__social-link {
    border-radius: 50%;
    overflow: hidden;
}

.site-footer__social--max img,
.mobile-nav__social-image {
    border-radius: 50%;
}

/* ---------- Страница сайта (товара) ---------- */
.rd-product {
    padding: 28px 0 40px;
}

.rd-product .breadcrumbs {
    padding-bottom: 14px;
}

.rd-product__title {
    max-width: 900px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.rd-product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
    margin-top: 28px;
}

.rd-product__frame {
    overflow: hidden;
    border: 1px solid var(--rd-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--rd-shadow-lg);
}

.rd-product__frame .product-gallery__stage {
    position: relative;
    border: 0;
    border-radius: 0 !important;
}

.rd-product__frame .product-gallery__thumbs {
    padding: 12px;
    border-top: 1px solid var(--rd-line);
}

.rd-product__frame .catalog-product-card__badge {
    position: absolute;
    z-index: 3;
    top: auto;
    bottom: 18px;
    left: 0;
    padding: 8px 16px 8px 18px;
    border-radius: 0 999px 999px 0;
    background: var(--rd-accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rd-product__frame .catalog-product-card__badge--hit {
    background: #f39a3d;
}

.rd-product__desc {
    margin-top: 40px;
    padding: 32px 36px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
}

.rd-product__desc h2 {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
}

.rd-product__desc .prose p {
    color: var(--rd-steel);
    line-height: 1.7;
}

.rd-product__aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.rd-price-card {
    padding: 24px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-price-card--soft {
    background: #f8fafc;
    box-shadow: none;
}

.rd-price-card__label {
    display: block;
    margin-bottom: 10px;
    color: var(--rd-accent-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rd-price-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

.rd-price-card__price b {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.rd-price-card__price s {
    color: var(--rd-muted);
    font-size: 16px;
}

.rd-price-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.rd-price-card__actions .rd-btn {
    min-height: 50px;
    padding: 12px 10px;
    font-size: 15px;
    box-shadow: none;
}

.rd-price-card__actions .rd-btn:only-child {
    grid-column: 1 / -1;
}

.rd-price-card__lead {
    margin: 18px 0 0;
    color: var(--rd-steel);
    font-size: 14.5px;
    line-height: 1.55;
}

.rd-price-card__lead + .rd-price-card__label,
.rd-price-card__actions + .rd-price-card__label {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--rd-line);
}

.rd-price-card__list {
    display: grid;
    gap: 9px;
    list-style: none;
}

.rd-price-card__list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.45;
}

.rd-price-card__list li::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rd-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.rd-specs {
    display: grid;
    gap: 0;
}

.rd-specs > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--rd-line);
    font-size: 14.5px;
}

.rd-specs > div:last-child {
    border-bottom: 0;
}

.rd-specs dt {
    color: var(--rd-muted);
}

.rd-specs dd {
    font-weight: 600;
    text-align: right;
}

.rd-price-card__note-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.rd-price-card__note {
    margin: 8px 0 12px;
    color: var(--rd-steel);
    font-size: 14.5px;
    line-height: 1.55;
}

.rd-link-btn {
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rd-accent-dark);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.rd-link-btn:hover {
    color: var(--ink);
}

.rd-related {
    padding-top: 40px;
}

.rd-related__title {
    margin-bottom: 28px;
    font-size: 28px;
    font-weight: 600;
}

.rd-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 1100px) {
    .rd-product__layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 28px;
    }

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

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

    .rd-product__aside {
        position: static;
        order: 2;
    }

    /* на телефоне: скриншоты → цена → описание */
    .rd-product__main {
        display: contents;
    }

    .rd-product__frame {
        order: 1;
    }

    .rd-product__desc {
        order: 3;
        margin-top: 0;
    }

    .rd-product__desc {
        padding: 24px 20px;
    }
}

@media (max-width: 560px) {
    .rd-product__title,
    .rd-related__title {
        font-size: 24px;
    }

    .rd-related__grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Портфолио и общие страницы разделов ---------- */
.rd-page {
    padding: 28px 0 80px;
}

.rd-page .breadcrumbs {
    padding-bottom: 14px;
}

.rd-page__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.rd-page__lead {
    max-width: 760px;
    margin-top: 12px;
    color: var(--rd-steel);
    font-size: 16px;
    line-height: 1.6;
}

.rd-works__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.rd-card-lead {
    display: -webkit-box;
    overflow: hidden;
    color: var(--rd-steel);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.portfolio-card .rd-card-actions {
    margin-top: auto;
}

.rd-banner-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: 48px;
    padding: 36px 44px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 95% 0%, rgba(73, 169, 216, .45) 0, rgba(73, 169, 216, 0) 40%),
        radial-gradient(circle at 0% 100%, rgba(93, 121, 165, .35) 0, rgba(93, 121, 165, 0) 40%),
        linear-gradient(135deg, var(--rd-navy) 0%, var(--rd-navy-2) 100%);
    color: #fff;
}

.rd-banner-cta b {
    display: block;
    font-size: 26px;
    font-weight: 700;
}

.rd-banner-cta span {
    display: block;
    max-width: 560px;
    margin-top: 6px;
    color: #c4cfda;
    font-size: 16px;
}

.rd-price-card__lead--top {
    margin: 0 0 14px;
}

.rd-price-card .rd-specs + .rd-price-card__actions {
    margin-top: 18px;
}

.rd-product__frame > a img {
    display: block;
    width: 100%;
    height: auto;
}

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

@media (max-width: 560px) {
    .rd-works__grid {
        grid-template-columns: 1fr;
    }

    .rd-page__title {
        font-size: 24px;
    }

    .rd-banner-cta {
        padding: 28px 22px;
    }

    .rd-banner-cta .rd-btn {
        width: 100%;
    }
}

/* Основной скриншот внутри рамки браузера — без скругления: углы даёт сама рамка */
.rd-product__frame .product-gallery__main,
.rd-product__frame .product-gallery__main img,
.rd-product__frame .product-gallery__lightbox,
.rd-product__frame .frame,
.rd-product__frame > a,
.rd-product__frame > a img {
    border-radius: 0 !important;
}

/* ---------- Нижние блоки (страница сайта, портфолио, главная) — в общем стиле ---------- */
/* Преимущества: как карточки тарифов — градиентная иконка, плотный текст */
.product-benefits {
    gap: 20px;
    margin-top: 48px;
}

.product-benefits__item {
    padding: 26px 24px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rd-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-benefits__item:hover {
    border-color: rgba(73, 169, 216, .5);
    box-shadow: var(--rd-shadow-lg);
    transform: translateY(-3px);
}

.product-benefits__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--rd-grad);
    color: #fff;
}

.product-benefits__icon svg {
    width: 24px;
    height: 24px;
}

.product-benefits__item h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.product-benefits__item p {
    margin-top: 8px;
    color: var(--rd-steel);
    font-size: 14.5px;
    line-height: 1.55;
}

/* «Остались вопросы?»: заголовок как у секций, вопросы — белые плашки, карточка специалиста — тёмная с фоном */
.product-help {
    margin-top: 72px;
}

.product-help__title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
}

.faq__item {
    border: 1px solid var(--rd-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.faq__item:hover,
.faq__item[open] {
    border-color: rgba(73, 169, 216, .5);
    box-shadow: var(--rd-shadow);
}

.faq__question {
    font-size: 15.5px;
    font-weight: 600;
}

.faq__toggle {
    border-color: var(--rd-line);
    background: var(--rd-page);
}

.faq__answer p {
    color: var(--rd-steel);
}

.product-help-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    /* тёмный фон, как у «Не нашли подходящий?» в каталоге */
    background:
        radial-gradient(circle at 100% 0%, rgba(73, 169, 216, .45) 0, rgba(73, 169, 216, 0) 55%),
        linear-gradient(160deg, var(--rd-navy) 0%, var(--rd-navy-2) 100%);
    color: #fff;
    box-shadow: var(--rd-shadow-lg);
}

.product-help-card__title {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.product-help-card__person {
    position: relative;
    align-items: center;
}

.product-help-card__photo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border: 3px solid var(--rd-navy);
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 0 0 2px var(--rd-accent), var(--rd-shadow);
}

/* зелёная точка «на связи» у фото */
.product-help-card__person::after {
    content: "";
    position: absolute;
    top: calc(50% + 24px);
    left: 70px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--rd-navy);
    border-radius: 50%;
    background: #3ccf6e;
}

.product-help-card__description {
    color: #c4cfda;
}

.product-help-card__label {
    color: #9fb0c2;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.product-help-card__phone {
    border-color: var(--rd-accent);
    background: var(--rd-accent);
    color: #fff;
    box-shadow: none;
}

.product-help-card__phone:hover {
    background: var(--rd-accent-dark);
}

.product-help-card__messenger {
    border: 0;
    border-radius: 50%;
    overflow: hidden;
}

.product-help-card__messenger--max {
    background: linear-gradient(135deg, #44ccff 0%, #5533ee 66%, #9933dd 100%);
}

.product-help-card__messenger--max img {
    width: 78%;
    height: 78%;
    border-radius: 50%;
}

.product-help-card__messenger--telegram {
    background: var(--rd-accent);
    color: #fff;
}

.product-help-card .product-help-card__callback {
    border: 2px solid var(--rd-accent);
    background: transparent;
    color: #fff;
}

.product-help-card .product-help-card__callback:hover {
    background: var(--rd-accent);
    color: #fff;
}

/* Отзывы на странице сайта */
.product-reviews-section {
    padding: 72px 0 0;
}

.product-reviews {
    padding: 0;
    border: 0;
    background: transparent;
}

.product-reviews__head h2 {
    font-size: 28px;
    font-weight: 600;
}

.product-reviews__card,
.testimonial-card {
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

/* аватар без фото — просто буква в светлом кружке */
.product-reviews__avatar {
    background: #eef5fa;
    color: var(--rd-accent-dark);
    font-weight: 700;
}

.testimonial-card__avatar span {
    background: none;
    color: var(--rd-accent-dark);
    font-weight: 700;
}

.product-reviews__author,
.testimonial-card__author b {
    font-weight: 700;
}

.product-reviews__text p,
.testimonial-card__text p {
    color: var(--rd-steel);
}

.product-reviews__more,
.testimonial-card__more {
    color: var(--rd-accent-dark);
    font-weight: 600;
}

.product-reviews__all {
    border-color: var(--rd-line);
    background: #fff;
}

.product-reviews__all:hover {
    border-color: var(--rd-accent);
    background: var(--rd-accent);
    color: #fff;
}

/* «← Назад / Вперёд →» — карточки */
.detail-neighbors {
    padding: 0 0 72px;
}

.content-prev-next {
    gap: 20px;
}

.content-prev-next__item {
    padding: 20px 24px;
    border: 1px solid var(--rd-line);
    border-radius: 20px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.content-prev-next__item:hover {
    border-color: rgba(73, 169, 216, .5);
    box-shadow: var(--rd-shadow);
}

.content-prev-next__label {
    color: var(--rd-accent-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.content-prev-next__title {
    font-size: 16px;
    font-weight: 600;
}

/* ---------- Отзывы (страница) ---------- */
.rd-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 40px;
}

.rd-rating {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 12px;
    padding: 16px 22px;
    border: 1px solid var(--rd-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-rating b {
    grid-row: span 2;
    background: var(--rd-grad);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    -webkit-text-fill-color: transparent;
}

.rd-rating__stars {
    color: #f5b301;
    font-size: 18px;
    letter-spacing: 2px;
}

.rd-rating small {
    color: var(--rd-muted);
    font-size: 14px;
}

.rd-reviews-grid {
    margin-top: 32px;
}

/* ---------- Контакты (как у megagroup: полоса с заголовком, карточки со значками) ---------- */
.rd-title-band {
    position: relative;
    overflow: hidden;
    padding: 28px 0 48px;
    background:
        radial-gradient(circle at 90% 30%, rgba(73, 169, 216, .16) 0, rgba(73, 169, 216, 0) 30%),
        radial-gradient(circle at 5% 90%, rgba(93, 121, 165, .12) 0, rgba(93, 121, 165, 0) 30%),
        linear-gradient(180deg, #eaf2f8 0%, #f3f5f9 100%);
    text-align: center;
}

.rd-title-band .breadcrumbs {
    display: flex;
    justify-content: center;
    padding-bottom: 18px;
}

.rd-title-band h1 {
    max-width: none;
    font-size: 36px;
    font-weight: 600;
}

.rd-title-band p {
    max-width: 640px;
    margin: 12px auto 0;
    color: var(--rd-steel);
}

.rd-page--tight {
    padding-top: 40px;
}

.rd-cboxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.rd-cboxes--bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    margin-top: 24px;
    align-items: start;
}

.rd-cbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-cbox--soft {
    background: #f8fafc;
    box-shadow: none;
}

.rd-cbox__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    align-self: stretch;
    margin-bottom: 18px;
}

.rd-cbox__head h2 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.rd-cbox__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    background: #eef5fa;
    color: var(--rd-accent-dark);
}

.rd-cbox__icon svg {
    width: 20px;
    height: 20px;
}

.rd-cbox__hours {
    font-size: 18px;
    font-weight: 500;
}

.rd-cbox__status {
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 8px;
    background: #dff6e7;
    color: #1f8f4a;
    font-size: 13px;
    font-weight: 600;
}

.rd-cbox__status.is-off {
    background: #f1f3f6;
    color: var(--rd-muted);
}

.rd-cbox__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 18px;
}

.rd-cbox__row small {
    color: var(--rd-muted);
    font-size: 14px;
}

.rd-cbox__big {
    font-size: 20px;
    font-weight: 600;
}

.rd-cbox__big:hover,
.rd-cbox__link:hover {
    color: var(--rd-accent-dark);
}

.rd-cbox__addr {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

.rd-cbox__text {
    color: var(--rd-steel);
    font-size: 15px;
    line-height: 1.55;
}

.rd-cbox__btn {
    margin-top: auto;
    padding-top: 12px;
    box-shadow: none;
}

.rd-cbox__row + .rd-cbox__btn,
.rd-cbox__status + .rd-cbox__row + .rd-cbox__btn {
    margin-top: 22px;
}

.rd-cbox__btn svg {
    width: 18px;
    height: 18px;
}

.rd-cbox__btn:hover svg {
    transform: none;
}

.rd-cbox__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    border-bottom: 1px solid currentColor;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.rd-cbox__link svg {
    width: 16px;
    height: 16px;
    color: var(--rd-accent);
}

.rd-cbox__socials {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.rd-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--rd-accent-dark);
    font-size: 16px;
    font-weight: 600;
}

.rd-social:hover {
    color: var(--ink);
}

.rd-social__icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.rd-social__icon img {
    width: 100%;
    height: 100%;
}

.rd-social__icon--tg {
    background: linear-gradient(180deg, #37aee2 0%, #1e96c8 100%);
    color: #fff;
}

.rd-social__icon--tg svg {
    width: 19px;
    height: 19px;
    margin-left: -2px;
}

.rd-cbox__qr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    color: var(--rd-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.rd-cbox__qr img {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    padding: 6px;
    border: 1px solid var(--rd-line);
    border-radius: 14px;
    background: #fff;
}

.rd-cbox--form {
    padding: 32px;
}

.rd-cbox__formhead {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.rd-cbox__formhead img {
    width: 64px;
    height: 64px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 0 0 2px var(--rd-accent);
}

.rd-cbox__formhead h2 {
    font-size: 22px;
    font-weight: 600;
}

.rd-cbox__formhead span {
    color: var(--rd-muted);
    font-size: 14.5px;
}

.rd-cbox--form .callback-form {
    align-self: stretch;
}

.rd-cbox--form .callback-form__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.rd-cbox--form .callback-form__field:has(textarea),
.rd-cbox--form .callback-form__field--checkbox {
    grid-column: 1 / -1;
}

.rd-cboxes ~ .rd-product__desc {
    margin-top: 32px;
}

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

    .rd-cboxes--bottom {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .rd-cboxes {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd-cbox--form .callback-form__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .rd-title-band h1 {
        font-size: 28px;
    }
}

/* ---------- Обо мне ---------- */
.rd-about-me {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-top: 32px;
    padding: 32px;
    border: 1px solid var(--rd-line);
    border-radius: 32px;
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(73, 169, 216, .14) 0%, rgba(73, 169, 216, 0) 70%),
        #fff;
    box-shadow: var(--rd-shadow);
}

.rd-about-me__photo {
    margin: 0;
}

.rd-about-me__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.rd-about-me__text p {
    color: var(--rd-steel);
    font-size: 16px;
    line-height: 1.7;
}

.rd-about-me__text p + p {
    margin-top: 12px;
}

.rd-about-me__text strong,
.rd-about-me__text b {
    color: var(--ink);
}

.rd-about-me__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .rd-about-me {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .rd-about-me__actions .rd-btn {
        width: 100%;
    }
}

.site-footer__social--telegram,
.mobile-nav__social-link--telegram,
.product-help-card__messenger--telegram {
    background: linear-gradient(180deg, #37aee2 0%, #1e96c8 100%);
    color: #fff;
}

.product-help-card__messenger--max {
    background: transparent;
}

.product-help-card__messenger--max img {
    width: 100%;
    height: 100%;
}

/* ---------- Статьи: рубрики | лента | свежие ---------- */
.rd-blog {
    padding: 28px 0 80px;
}

.rd-blog__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
}

.rd-blog__side,
.rd-blog__fresh {
    position: sticky;
    top: 96px;
}

.rd-blog__cats {
    display: grid;
    gap: 4px;
}

.rd-blog__cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}

.rd-blog__cat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: var(--rd-accent-dark);
    box-shadow: var(--rd-shadow);
}

.rd-blog__cat-icon svg {
    width: 18px;
    height: 18px;
}

.rd-blog__cat:hover {
    background: #fff;
}

.rd-blog__cat.is-current {
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-blog__cat.is-current .rd-blog__cat-icon {
    background: var(--rd-grad);
    color: #fff;
}

.rd-blog__side .rd-catalog__help {
    margin-top: 24px;
}

.rd-blog__feed .breadcrumbs {
    padding-bottom: 14px;
}

.rd-blog__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.rd-post {
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-post__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-post__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--rd-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.rd-post__avatar span {
    color: var(--rd-accent);
}

.rd-post__avatar img {
    width: 80%;
    height: auto;
}

.rd-post__meta b {
    display: block;
    font-size: 15px;
}

.rd-post__meta span:not(.rd-post__avatar) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rd-muted);
    font-size: 13px;
}

.rd-post__meta svg,
.rd-blog__fresh-item svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.rd-post__title {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.rd-post__title a:hover {
    color: var(--rd-accent-dark);
}

.rd-post__lead {
    margin-top: 10px;
    color: var(--rd-steel);
    font-size: 16px;
    line-height: 1.6;
}

.rd-post__image {
    display: block;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--rd-line);
    border-radius: 18px;
}

.rd-post__image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s ease;
}

.rd-post__image:hover img {
    transform: scale(1.02);
}

.rd-post__more {
    margin-top: 20px;
}

.rd-blog__fresh {
    padding: 24px;
    border: 1px solid var(--rd-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--rd-shadow);
}

.rd-blog__fresh h2 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.rd-blog__fresh-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rd-line);
}

.rd-blog__fresh-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rd-blog__fresh-item b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.rd-blog__fresh-item:hover b {
    color: var(--rd-accent-dark);
}

.rd-blog__fresh-item span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--rd-muted);
    font-size: 12.5px;
}

@media (max-width: 1100px) {
    .rd-blog__layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .rd-blog__fresh {
        display: none;
    }
}

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

    .rd-blog__side {
        position: static;
    }

    .rd-blog__side .rd-catalog__help {
        display: none;
    }

    .rd-blog__cats {
        display: flex;
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }

    .rd-blog__cat {
        flex: 0 0 auto;
        background: #fff;
        white-space: nowrap;
    }

    .rd-post {
        padding: 20px;
    }
}

/* ---------- Окно «Оставить заявку»: компактное, с тёмной шапкой ---------- */
.rd-lead-modal .site-modal__backdrop {
    background: rgba(20, 27, 43, .55);
    backdrop-filter: blur(4px);
}
.rd-lead-modal .site-modal__dialog {
    width: min(100%, 480px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--rd-surface);
    box-shadow: 0 30px 80px rgba(20, 27, 43, .35);
    transform: translateY(16px) scale(.97);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.rd-lead-modal.is-open .site-modal__dialog {
    transform: none;
}
.rd-lead-modal .site-modal__head {
    position: relative;
    margin: 0;
    padding: 26px 64px 22px 28px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rd-navy) 0%, var(--rd-navy-2) 100%);
    color: #fff;
}
.rd-lead-modal .site-modal__head::after { /* мягкий голубой отсвет в углу */
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(73, 169, 216, .45) 0%, rgba(73, 169, 216, 0) 70%);
    pointer-events: none;
}
.rd-lead-modal .site-modal__head h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.rd-lead-modal .site-modal__head > p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.45;
}
.rd-lead-modal__quick {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}
.rd-lead-modal__messenger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.rd-lead-modal__messenger:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}
.rd-lead-modal__messenger svg,
.rd-lead-modal__messenger img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.rd-lead-modal__messenger svg {
    padding: 4px;
    background: #2aabee;
    color: #fff;
}
.rd-lead-modal .site-modal__close {
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, .12);
}
.rd-lead-modal .site-modal__close span {
    left: 9px;
    top: 16px;
    width: 16px;
    background: #fff;
}
.rd-lead-modal .site-modal__close:hover {
    background: rgba(255, 255, 255, .25);
}
.rd-lead-modal .callback-form__slot {
    padding: 22px 28px 26px;
}
.rd-lead-modal .callback-form__fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.rd-lead-modal .callback-form__field {
    gap: 5px;
}
.rd-lead-modal .callback-form__field:first-child,
.rd-lead-modal .callback-form__field:has(textarea),
.rd-lead-modal .callback-form__field--checkbox {
    grid-column: 1 / -1;
}
.rd-lead-modal .callback-form__field > label {
    color: var(--rd-steel);
    font-size: 12px;
    font-weight: 600;
}
.rd-lead-modal .callback-form__field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.rd-lead-modal .callback-form__field textarea,
.rd-lead-modal .callback-form__field select {
    padding: 10px 14px;
    border-color: var(--rd-line);
    border-radius: 12px;
    background: var(--rd-page);
    font-size: 15px;
}
.rd-lead-modal .callback-form__field input:not([type="checkbox"]):not([type="radio"]):focus,
.rd-lead-modal .callback-form__field textarea:focus,
.rd-lead-modal .callback-form__field select:focus {
    border-color: var(--rd-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--rd-accent-soft);
}
.rd-lead-modal .callback-form__field textarea {
    height: 84px;
    min-height: 64px;
}
.rd-lead-modal .callback-form__check {
    font-size: 12px;
    line-height: 1.45;
    color: var(--rd-muted);
}
.rd-lead-modal .callback-form__submit {
    width: 100%;
    margin-top: 16px;
    min-height: 48px;
}
@media (max-width: 560px) {
    /* на телефоне — шторка снизу по высоте содержимого, а не окно во весь экран из старой темы */
    .rd-lead-modal { padding: 0; place-items: end stretch; }
    .rd-lead-modal .site-modal__dialog {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 94dvh;
        padding: 0 0 env(safe-area-inset-bottom);
        border-radius: 22px 22px 0 0;
        transform: translateY(40px);
    }
    .rd-lead-modal .site-modal__head { padding: 22px 56px 18px 20px; }
    .rd-lead-modal .site-modal__head h2 { font-size: 21px; }
    .rd-lead-modal__quick { margin-top: 12px; }
    .rd-lead-modal__quick > span { display: none; }
    .rd-lead-modal .callback-form__slot { padding: 16px 20px 20px; }
    .rd-lead-modal .callback-form__fields { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .rd-lead-modal .site-modal__dialog { transition: none; transform: none; }
}

/* ---------- Галочка согласия в формах заявки: 18px, отметка цветом сайта ---------- */
.site-page .callback-form__check {
    gap: 10px;
    align-items: flex-start;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.site-page .callback-form__check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 1px 0 0;
    border: 1.5px solid #b9c4cc;
    border-radius: 5px;
    background: #fff center / 12px 12px no-repeat;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.site-page .callback-form__check:hover input[type="checkbox"] {
    border-color: var(--rd-accent);
}
.site-page .callback-form__check input[type="checkbox"]:checked {
    border-color: var(--rd-accent);
    background-color: var(--rd-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E");
}
.site-page .callback-form__check input[type="checkbox"]:focus {
    outline: 0;
    box-shadow: none;
}
.site-page .callback-form__check input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px var(--rd-accent-soft);
}
.site-page .callback-form__check span {
    padding-top: 0;
}
.site-page .callback-form__check a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(115, 129, 138, .45);
    text-underline-offset: 2px;
}
.site-page .callback-form__check a:hover {
    color: var(--rd-accent-dark);
}

/* Ошибки полей в окне заявки: соседнее поле в ряду не растягивается, текст ошибки компактный */
.rd-lead-modal .callback-form__fields {
    align-items: start;
}
.rd-lead-modal .callback-form__field-error {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}
.rd-lead-modal .callback-form__field-error:empty {
    display: none;
}
.rd-lead-modal .callback-form__field [aria-invalid="true"]:not([type="checkbox"]) {
    border-color: #d65a5a;
    background: #fff7f7;
}
.site-page .callback-form__check input[type="checkbox"][aria-invalid="true"] {
    border-color: #d65a5a;
}

/* Скриншоты в карточках (каталог, портфолио, главная) — 4:3, как сами картинки: края не срезаются, при наведении без увеличения */
.catalog-product-card .catalog-product-card__media,
.portfolio-card .frame {
    aspect-ratio: 4 / 3;
    height: auto;
}
.catalog-product-card:hover .frame img,
.portfolio-card:hover .frame img,
.catalog-product-card:hover .catalog-product-card__image {
    transform: none;
}
/* Галерея на странице товара: скриншот всегда целиком (вписан, а не обрезан по рамке) */
.rd-product__frame .product-gallery__main img {
    object-fit: contain;
    object-position: center top;
}

/* Плавающая кнопка: в развороте — круглые значки Telegram, Max и звонка, как в подвале */
.fab__options {
    gap: 12px;
    align-items: center;
    width: 56px;
}
.fab__option {
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(20, 27, 43, .22);
    transform: translateY(8px) scale(.8);
}
.fab__toggle:checked ~ .fab__options .fab__option {
    transform: none;
}
.fab__option:hover {
    border: 0;
    transform: scale(1.08) !important;
}
.fab__option--telegram,
.fab__option--telegram:hover {
    background: linear-gradient(180deg, #37aee2 0%, #1e96c8 100%);
    color: #fff;
}
.fab__option--telegram svg {
    width: 24px;
    height: 24px;
    margin-left: -2px;
}
.fab__option--max,
.fab__option--max:hover {
    background: transparent;
}
.fab__option--max img {
    display: block;
    width: 100%;
    height: 100%;
}
.fab__option--phone,
.fab__option--phone:hover {
    background: #fff;
    color: var(--rd-accent-dark);
}
.fab__option--phone svg {
    width: 21px;
    height: 21px;
}
@media (max-width: 560px) {
    .fab__options { width: 52px; bottom: 64px; }
}

/* Хлебные крошки переносятся: длинное название товара не растягивает страницу на телефоне */
.breadcrumbs__items {
    flex-wrap: wrap;
    row-gap: 4px;
}
.breadcrumbs__current {
    min-width: 0;
    overflow-wrap: anywhere;
}
