

/* Start:/local/templates/rd1/template_styles.css?178659697746120*/
/* ===========================================================
   rusdvor.ru — витрина бренда (заглушка)
   Токены — tokens.css. Теней нет: разделение линейками.
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 16px; line-height: 1.6;
    color: var(--body);
    background: var(--canvas);
    overflow-x: hidden;
    scrollbar-gutter: stable;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap { max-width: clamp(1280px, 92vw, 1800px); margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.pattern { position: relative; background: var(--canvas); }
.pattern::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: url('/local/templates/rd1/assets/rmd-pattern-tile.jpg') 0 0 / 460px;
    opacity: .14; mix-blend-mode: multiply;
}
.pattern > * { position: relative; z-index: 1; }

/* заголовки */
.display {
    font-family: var(--font-display); font-weight: 400; color: var(--ink);
    line-height: 1.14; letter-spacing: .4px; margin: 0;
}
.sect-title { font-size: clamp(24px, 3.4vw, 38px); }
.eyebrow {
    font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    color: var(--bronze); margin: 0 0 14px;
    display: flex; align-items: center; gap: 14px;
}
.rule-top { border-top: 1px solid var(--gold-dark); padding-top: 18px; }

/* появление при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease-out, transform .5s ease-out; }
[data-reveal].seen { opacity: 1; transform: none; }

/* ===================== ШАПКА ===================== */
.head { border-bottom: 1px solid var(--gold-dark); }
.head__in {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    gap: 24px; padding-top: 12px; padding-bottom: 10px;
}

/* телефоны — левая колонка */
.head__tels { display: flex; gap: 22px; align-items: center; }
.tel { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--ink); white-space: nowrap; }
.tel .icon { width: 16px; height: 16px; color: var(--bronze); }
.tel b { font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.tel small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .3px; }
.tel:hover b { color: var(--copper); }
.tel:hover .icon { color: var(--copper); }

/* логотип — центральная колонка */
.head__logo { justify-self: center; text-align: center; }
.head__logo img { max-height: 110px; width: auto; max-width: 240px; margin: 0 auto; filter: grayscale(1) brightness(.28) contrast(2.2); }
.head__logo a { display: block; }
.head__tag { font-family: var(--font-ui, sans-serif); font-size: 10px; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--bronze); opacity: .6; margin: 4px 0 0; line-height: 1; }

/* кнопка — правая колонка */
.head__act { justify-self: end; }
.call {
    background: transparent; color: var(--copper); border: 1px solid var(--copper);
    border-radius: var(--r-sm); min-height: 42px; padding: 0 22px; cursor: pointer;
    font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    transition: background .2s, color .2s;
}
.call:hover { background: var(--copper); color: var(--on-primary); }
.head__act .note { display: block; margin: 5px 0 0; font-size: 11px; color: var(--muted); text-align: right; }

/* ===================== HERO ===================== */
.hero {
    position: relative; min-height: 580px; display: flex; align-items: center;
    background: var(--ink) url('/local/templates/rd1/assets/hero-desktop.jpg') center right / cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; z-index: 3; inset: 16px; pointer-events: none;
    border: 1px solid rgba(195,154,101,0.55); outline: 1px solid rgba(195,154,101,0.28); outline-offset: 4px;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,8,6,.62) 0%, rgba(15,8,6,.28) 48%, rgba(15,8,6,0) 72%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__in { max-width: 620px; padding: 80px 0; }
.hero h1 {
    font-family: var(--font-display); font-weight: 400; color: #f3eddf;
    font-size: clamp(36px, 4.8vw, 60px); line-height: 1.1; letter-spacing: 2px;
    text-transform: uppercase; margin: 0 0 18px; text-wrap: balance;
}
.hero__eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-bottom: 20px; }
.eyebrow__line { display: inline-block; width: 44px; height: 1px; background: var(--gold-dark); flex-shrink: 0; }
.hero p {
    font-size: 18px; font-weight: 300; line-height: 1.55; color: #ddd0b4;
    margin: 0 0 36px; max-width: 480px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-light {
    background: var(--on-primary); color: var(--copper); border: 0; border-radius: var(--r-sm);
    height: 52px; padding: 0 30px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    transition: background .2s;
}
.btn-light:hover { background: #fff; }
.btn-ghost {
    background: transparent; color: var(--gold-light); border: 1px solid rgba(195,154,101,0.65);
    border-radius: var(--r-sm); height: 52px; padding: 0 26px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(195,154,101,.08); }

/* ===================== ГАРАНТИИ ===================== */
.guar { background: var(--card); border-bottom: 1px solid var(--hairline); }
.guar__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.guar__item {
    padding: 24px 16px; display: flex; align-items: flex-start; gap: 11px;
    border-left: 1px solid var(--hairline-soft);
}
.guar__item:first-child { border-left: 0; }
.guar__item .icon { width: 27px; height: 27px; color: var(--bronze); margin-top: 2px; }
.guar__item b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.guar__item span { font-size: 13px; color: var(--muted); }

/* ===================== О КОМПАНИИ ===================== */
.about { padding: clamp(56px, 9vw, 112px) 0; background: var(--card); position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.about__photo { border: 1px solid var(--gold-dark); outline: 1px solid var(--gold-dark); outline-offset: 5px; overflow: hidden; min-height: 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body { padding-top: 6px; }
.about .eyebrow { display: flex; align-items: center; gap: 14px; color: var(--bronze-dark); }
.about h2 { margin: 0 0 26px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.18; text-wrap: balance; }
.about p { font-size: 16px; line-height: 1.72; margin: 0 0 16px; max-width: 62ch; }
.about p:last-of-type { margin-bottom: 0; }
.about .coda {
    margin-top: 26px; padding-left: 20px; border-left: 2px solid var(--gold);
    font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 1.9vw, 20px);
    line-height: 1.45; color: var(--ink);
}
.about__griffin {
    position: absolute; right: -20px; bottom: -20px; width: 420px;
    opacity: 0.07; pointer-events: none; user-select: none;
}
.drop-cap {
    float: left; font-family: var(--font-display); font-size: 62px; line-height: 0.82;
    padding: 7px 12px 0 0; color: var(--copper);
}

/* ===================== КАТАЛОГ НА ГЛАВНОЙ ===================== */
.cat-sect { background: var(--canvas); padding: clamp(64px, 8vw, 96px) 0; border-top: 1px solid var(--hairline-soft); }
.cat-sect.pattern::before { opacity: .10; mix-blend-mode: multiply; }
/* 5-колонная сетка — компактные переопределения поверх базового стиля карточки */
.cat-sect .product-grid { grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.5vw, 20px); }
.cat-sect .product-card__img { height: 200px; aspect-ratio: unset; padding: 10px; background: #fafaf8; }
.cat-sect .product-card__body { padding: 14px 15px 16px; }
.cat-sect .product-card__series { font-size: 9.5px; }
.cat-sect .product-card__title { font-size: 15px; margin-bottom: 12px; }
.cat-sect .product-card__specs { display: none; }
.cat-sect .product-card__price { font-size: 17px; }
.cat-sect .product-card__old { font-size: 11px; }
.cat-sect .product-card__cart { width: 32px; height: 32px; border-width: 1px; }
.cat-sect .product-card__cart svg { width: 13px; height: 13px; }
/* заголовок секции */
.cat-sect__head { text-align: center; margin-bottom: 48px; }
.cat-sect__head h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(26px, 3vw, 40px); text-transform: uppercase;
    letter-spacing: 4px; margin: 0;
    color: var(--ink);
}
.cat-sect__head::after {
    content: ''; display: block; width: 56px; height: 1px;
    background: var(--gold-dark); margin: 18px auto 0;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); margin-bottom: 44px; }

/* ── Карточка товара ── */
.product-card {
    background: #fff;
    border: 1px solid var(--hairline);
    box-shadow: 0 2px 12px rgba(28,16,32,.07);
    position: relative; display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: border-color .22s;
    overflow: hidden;
}
.product-card:hover {
    border-color: var(--gold-dark);
}
.product-card__img {
    aspect-ratio: 3/4;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
    padding: 16px;
}
.product-card__img img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.03); }
.product-card__img-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-card__img-ph svg { width: 72px; height: 72px; opacity: .18; }
.product-card__badge {
    position: absolute; top: 14px; left: 0;
    background: var(--copper); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    padding: 4px 10px; z-index: 1;
}
.product-card__badge--new { background: var(--bronze-dark); }
.product-card__body {
    padding: 16px 18px 18px; flex: 1;
    display: flex; flex-direction: column;
    border-top: 1px solid var(--hairline-soft);
}
.product-card__series {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--bronze); margin: 0 0 6px;
}
.product-card__title {
    font-family: var(--font-display); font-weight: 400;
    font-size: 17px; color: var(--ink);
    line-height: 1.25; margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__specs { font-size: 12px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.product-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-top: auto;
}
.product-card__prices { display: flex; flex-direction: column; gap: 2px; }
.product-card__price { font-size: 20px; font-weight: 700; color: var(--copper); line-height: 1.1; }
.product-card__old { font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.product-card__cart {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid var(--copper);
    background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--copper);
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.product-card__cart:hover { background: var(--copper); color: #fff; }
.cat-sect__cta { text-align: center; }
.btn-catalog {
    display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 40px;
    background: transparent;
    border: 1px solid var(--copper);
    color: var(--copper); border-radius: 0;
    font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none; transition: background .2s, color .2s; cursor: pointer;
}
.btn-catalog:hover { background: var(--copper); color: #fff; }
.read-history { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--copper); text-decoration: none; }
.read-history:hover { color: var(--copper-dark); text-decoration: underline; }

/* ===================== НОВОСТИ ===================== */
.news { background: var(--canvas); padding: clamp(56px, 8vw, 96px) 0; border-top: 3px solid var(--gold-dark); position: relative; overflow: hidden; }
.news::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url('/local/templates/rd1/assets/rmd-pattern-tile.jpg') 0 0 / 460px; opacity: .10; mix-blend-mode: multiply; }
.news .wrap { position: relative; z-index: 1; }
.news__head { text-align: center; margin-bottom: 12px; }
.news__head p.eyebrow { color: var(--bronze-dark); margin-bottom: 14px; display: flex; justify-content: center; }
.news__note-line { text-align: center; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--bronze-dark); margin: 0 0 52px; }
.news__note-line .eyebrow__line { background: var(--gold-dark); }
.news__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
a.news__featured { display: block; text-decoration: none; color: inherit; }
a.news__featured:hover h3 { color: var(--copper); }
.news__featured img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 1px solid var(--gold-dark); outline: 1px solid var(--gold-dark); outline-offset: 3px; margin-bottom: 0; }
.news__featured .eyebrow { margin: 26px 0 8px; display: block; }
.news__featured h3 { font-family: var(--font-ui); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; color: var(--ink); }
.news__featured p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.news__list { display: flex; flex-direction: column; }
.news__row { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding-bottom: 26px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--gold-dark); margin-bottom: 26px; }
.news__row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.news__row img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid var(--gold-dark); display: block; }
.news__row .eyebrow { margin: 0 0 6px; font-size: 11px; display: block; color: var(--bronze); }
.news__row h4 { font-size: 17px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; color: var(--ink); }
.news__row p { margin: 0 0 9px; font-size: 14px; line-height: 1.55; color: var(--body); }
.read-more { font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--copper); }
/* legacy post classes для страниц статей */
.post__img { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--hairline); margin-bottom: 15px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__date { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bronze); margin: 0 0 7px; }
.post h3 { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0 0 9px; }
.post p { font-size: 14px; line-height: 1.6; color: var(--body); margin: 0; }

/* ===================== КОНТАКТЫ ===================== */
.contacts { background: var(--burgundy); color: var(--on-primary); position: relative; overflow: hidden; padding: clamp(52px, 8vw, 96px) 0; }
.contacts::before {
    content: ''; position: absolute; inset: 0;
    background: url('/local/templates/rd1/assets/rmd-pattern-tile.jpg') 0 0 / 340px; opacity: .12; mix-blend-mode: luminosity;
}
.contacts .wrap { position: relative; z-index: 2; }
.contacts__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.contacts h2 { color: var(--on-primary); font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 14px; }
.contacts .eyebrow { color: var(--gold); }
.contacts p.lead { font-size: 16px; color: rgba(243,237,223,.8); margin: 0 0 26px; max-width: 46ch; }
.contacts__list { display: grid; gap: 20px; }
.contacts__row { border-top: 1px solid rgba(243,237,223,.22); padding-top: 15px; }
.contacts__row .lbl { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(243,237,223,.6); margin: 0 0 5px; }
.contacts__row .val { display: inline-block; padding: 8px 0; font-size: clamp(19px, 2.1vw, 25px); font-weight: 600; color: var(--on-primary); }
.contacts__row .val:hover { color: var(--gold); }

/* ===================== ФУТЕР ===================== */
.foot {
    background: var(--ink); color: rgba(243,237,223,.72);
    border-top: 3px solid var(--gold); padding: 46px 0 26px;
}
.foot__in { display: grid; grid-template-columns: 190px 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.foot__logo img { width: 132px; filter: brightness(0) invert(1) opacity(.82); }
.foot__col h3 {
    font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--gold); margin: 0 0 12px; padding-bottom: 9px;
    border-bottom: 1px solid rgba(195,154,101,.28);
}
.foot__req { font-size: 14px; line-height: 1.85; }
.foot__req b { display: block; color: var(--on-primary); font-weight: 600; margin-bottom: 5px; }
.foot__req span { display: block; }
.foot__contact { font-size: 14px; line-height: 1.85; }
.foot__contact a { color: var(--on-primary); font-weight: 600; }
.foot__contact a:hover { color: var(--gold); }
.foot__contact .muted { color: rgba(243,237,223,.55); font-weight: 400; }
.foot__bottom {
    margin-top: 34px; padding-top: 16px; border-top: 1px solid rgba(243,237,223,.14);
    font-size: 13px; color: rgba(243,237,223,.5);
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ===================== МОДАЛЬНОЕ ОКНО ===================== */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.open { display: block; }
.modal__veil { position: absolute; inset: 0; background: rgba(20,4,7,.62); }
.modal__box {
    position: relative; z-index: 2; background: var(--card); max-width: 430px;
    margin: 7vh auto 0; border-radius: var(--r-md); padding: 34px;
    border: 1px solid var(--gold-dark); max-height: 86vh; overflow-y: auto;
}
.modal__box h2 { font-family: var(--font-display); font-weight: 400; font-size: 27px; color: var(--ink); margin: 0 0 7px; }
.modal__box .sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.modal__x {
    position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer;
    color: var(--muted); font-size: 27px; line-height: 1; width: 44px; height: 44px;
}
.field { margin-bottom: 17px; }
.label { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.input {
    width: 100%; height: 50px; padding: 12px 15px; font-size: 16px;
    font-family: var(--font-ui); color: var(--ink); background: #fff;
    border: 1px solid var(--hairline); border-radius: var(--r-sm); outline: none;
}
.input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(155,9,45,.12); }
.input.err { border-color: var(--error); box-shadow: 0 0 0 3px rgba(182,37,47,.12); }
.hint-err { font-size: 13px; color: var(--error); margin: 6px 0 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 18px 0 20px; }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--copper); flex: none; }
.btn-primary {
    width: 100%; height: 52px; background: var(--copper); color: var(--on-primary);
    border: 0; border-radius: var(--r-sm); cursor: pointer;
    font-size: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    transition: background .2s;
}
.btn-primary:hover { background: var(--copper-dark); }
.done { display: none; text-align: center; padding: 14px 0; }
.done b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--copper); margin-bottom: 9px; }
.done p { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.btn-outline {
    background: transparent; color: var(--bronze-dark); border: 1px solid var(--bronze-dark);
    border-radius: var(--r-sm); height: 48px; padding: 0 26px; cursor: pointer;
    font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}

/* ===========================================================
   ПЛАНШЕТ
   =========================================================== */
@media (max-width: 1023px) {
    /* три колонки не помещаются — собираем шапку в столбец */
    .head__in { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 22px 0 20px; }
    .head__logo { order: 1; }
    .head__tels { order: 2; grid-auto-flow: column; gap: 26px; justify-items: center; }
    .head__act { order: 3; justify-self: center; }
    .head__act .note { text-align: center; }
    .call { min-height: 46px; padding: 0 24px; }

    .hero { min-height: 480px; }
    .guar__grid { grid-template-columns: repeat(3, 1fr); }
    .guar__item:nth-child(4) { border-left: 0; }
    .guar__item { border-top: 1px solid var(--hairline-soft); }
    .guar__item:nth-child(-n+3) { border-top: 0; }
    .about__grid { grid-template-columns: 1fr; gap: 30px; }
    .about__photo { max-width: 520px; min-height: 0; aspect-ratio: 4/3; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-sect .product-grid { grid-template-columns: repeat(3, 1fr); }
    .news__grid { grid-template-columns: 1fr; gap: 40px; }
    .news__row { grid-template-columns: 100px 1fr; }
    .contacts__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   =========================================================== */
@media (max-width: 767px) {
    /* шапка: телефоны в одну строку под логотипом */
    .head__in { grid-template-columns: 1fr; gap: 8px; padding: 10px 0 8px; justify-items: center; }
    .head__logo { order: 1; }
    .head__logo img { max-height: clamp(56px, 13vw, 84px); max-width: 240px; }
    .head__tels {
        order: 2; grid-auto-flow: column; gap: clamp(10px, 3vw, 20px);
        justify-items: center; align-items: center;
    }
    .tel { gap: clamp(4px, 1.5vw, 8px); padding: 4px 0; }
    .tel .icon { width: clamp(14px, 3.6vw, 18px); height: clamp(14px, 3.6vw, 18px); }
    .tel b { font-size: clamp(13px, 3.6vw, 16px); }
    .tel small { display: none; }
    .head__act { display: none; }

    /* hero: отдельное изображение сверху, текстовый блок снизу на затемнении.
       Высота задаётся контентом — текст и обе кнопки остаются на месте. */
    .hero {
        min-height: clamp(452px, 124vw, 620px); height: auto; align-items: flex-end;
        background-image: url('/local/templates/rd1/assets/hero-mobile.jpg'); background-position: center top;
    }
    .hero::before { display: none; }
    .hero::after { background: linear-gradient(180deg, transparent 16%, rgba(24,4,8,.68) 44%, rgba(18,3,6,.96) 100%); }
    .hero__in { padding: 132px 0 28px; max-width: 100%; }
    .hero__eyebrow { margin-bottom: 12px; font-size: 11px; }
    .hero__eyebrow .eyebrow__line { width: 28px; }
    .hero h1 { font-size: clamp(27px, 7.6vw, 34px); letter-spacing: 1.4px; margin-bottom: 12px; }
    .hero p { font-size: 15px; line-height: 1.55; margin: 0 0 22px; max-width: 100%; }
    /* столбцом и на одну ширину — иначе две кнопки переносятся «лесенкой» */
    .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; max-width: 300px; }
    .hero .btn-light { height: 48px; padding: 0 22px; font-size: 14px; }
    .hero .btn-ghost { height: 48px; padding: 0 18px; font-size: 14px; justify-content: center; }

    /* гарантии: один столбец.
       :nth-child(n) нужен, чтобы перебить правила трёхколоночной планшетной
       сетки (nth-child(4) / nth-child(-n+3)) — у них та же специфичность,
       и без этого во втором ряду пропадали границы. */
    .guar__grid { grid-template-columns: 1fr; }
    .guar__item, .guar__item:nth-child(n) {
        grid-column: auto; padding: 15px 0; gap: 13px; align-items: center;
        border-left: 0; border-top: 1px solid var(--hairline-soft);
    }
    .guar__item:first-child { border-top: 0; }
    .guar__item .icon { width: 23px; height: 23px; margin-top: 0; flex: none; }
    .guar__item b { font-size: 14.5px; }
    .guar__item span { font-size: 13px; }

    .about p { font-size: 15px; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-card__body { padding: 14px 14px 16px; }
    .cat-sect .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news__grid { grid-template-columns: 1fr; gap: 36px; }
    .news__row { grid-template-columns: 88px 1fr; gap: 14px; }
    .post__img { aspect-ratio: 16/10; }
    .post h3 { font-size: 16px; }
    .post p { font-size: 14px; }

    .contacts__row .val { font-size: 21px; }
    .foot__in { grid-template-columns: 1fr; gap: 26px; }
    .foot__bottom { justify-content: flex-start; margin-top: 26px; }

    .modal__box { margin: 0; border-radius: 0; min-height: 100%; padding: 26px 20px; }
}

@media (max-width: 374px) {
    .tel { font-size: 11px; }
    .topbar__in { gap: 7px; }
}

/* доступность */
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===========================================================
   ПАРТНЁРЫ В ПОДВАЛЕ
   =========================================================== */
.foot__partners {
    margin-top: 34px; padding-top: 24px;
    border-top: 1px solid rgba(243,237,223,.14);
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.foot__partners h3 {
    font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--gold); margin: 0; padding: 0; border: 0; flex: none;
}
.partner { display: inline-flex; align-items: center; gap: 13px; }
.partner img { width: 54px; height: 54px; flex: none; }
.partner span { font-size: 14px; line-height: 1.4; color: rgba(243,237,223,.82); max-width: 220px; }

/* ===========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ: СТАТЬИ И ИСТОРИЯ
   =========================================================== */
.subhero {
    position: relative; min-height: 380px; display: flex; align-items: flex-end;
    background: var(--ink) center / cover no-repeat;
}
.subhero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,3,6,.30) 0%, rgba(20,4,7,.62) 55%, rgba(16,3,5,.92) 100%);
}
.subhero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 42px; padding-top: 70px; }
.subhero .eyebrow { color: var(--gold); }
.subhero h1 {
    font-family: var(--font-display); font-weight: 400; color: var(--on-primary);
    font-size: clamp(26px, 3.8vw, 46px); line-height: 1.14; letter-spacing: .4px;
    margin: 0; max-width: 20ch;
}
.subhero .meta { margin: 16px 0 0; font-size: 14px; color: rgba(243,237,223,.62); }

.crumbs {
    padding: 10px clamp(16px, 4vw, 64px);
    font-size: 12px; font-weight: 400; letter-spacing: .2px;
    color: var(--muted);
    display: flex; align-items: center;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}
.crumbs a { color: var(--bronze); text-decoration: none; transition: color .15s; }
.crumbs a:hover { color: var(--copper); }
.crumbs span { margin: 0 8px; opacity: .6; font-size: 14px; line-height: 1; }

.article { padding: clamp(20px, 2vw, 28px) 0 clamp(48px, 7vw, 80px); }
.article__grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article__body { max-width: none; }
.article__body h2 {
    font-family: var(--font-display); font-weight: 400; color: var(--ink);
    font-size: clamp(24px, 2.8vw, 36px); line-height: 1.18; letter-spacing: .4px;
    margin: 48px 0 16px; padding-top: 22px; border-top: 1px solid var(--gold);
}
.article__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article__prose-title {
    font-size: clamp(26px, 3.2vw, 42px) !important;
    font-style: italic;
    color: var(--copper) !important;
    letter-spacing: .2px !important;
    margin-bottom: 28px !important;
    text-wrap: balance;
}
.article__body h3 {
    font-family: var(--font-display); font-weight: 400; color: var(--ink);
    font-size: clamp(20px, 2.2vw, 26px); line-height: 1.22; letter-spacing: .3px;
    margin: 32px 0 12px; text-wrap: balance;
}
.article__body h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; text-wrap: balance; }
.article__body p { font-size: 16px; line-height: 1.68; margin: 0 0 16px; text-wrap: pretty; }
.article__body a { color: var(--copper); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gold-dark); }
.article__body a:hover { color: var(--copper-dark); text-decoration-color: var(--copper-dark); }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 22px; }
.article__body ul { list-style: square; }
.article__body ul ul { list-style: circle; }
.article__body ol ol { list-style: lower-alpha; }
.article__body li { font-size: 16px; line-height: 1.64; margin-bottom: 8px; text-wrap: pretty; }
.article__body li::marker { color: var(--gold-dark); }
.article__body ol > li::marker { color: var(--copper); font-weight: 600; }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body blockquote {
    margin: 24px 0; padding: 10px 20px; border-left: 3px solid var(--gold);
    font-family: var(--font-display); font-size: 20px; line-height: 1.3; color: var(--ink);
}
.article__body blockquote p { margin: 0 0 .4em; font-size: inherit; line-height: inherit; }
.article__body blockquote cite {
    display: block; font-family: var(--font-ui); font-style: normal; font-size: 13px; color: var(--muted);
}
.article__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.article__body caption { caption-side: top; text-align: left; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--bronze); padding-bottom: 10px; }
.article__body th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); padding: 10px 12px; border-bottom: 1px solid var(--gold-dark); }
.article__body td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.article__body tbody tr:last-child td { border-bottom: none; }
.article__body tfoot td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--gold-dark); border-bottom: none; }
.article__body mark { background: var(--price-yellow); color: var(--copper); padding: 1px 5px; border-radius: var(--r-xs); }
.article__body hr { border: none; border-top: 1px solid var(--hairline); margin: 20px 0; }
.article__body details { border-bottom: 1px solid var(--hairline); padding: 14px 0; }
.article__body summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.article__body summary::-webkit-details-marker { display: none; }
.article__body summary::after { content: '+'; color: var(--bronze); font-weight: 300; font-size: 18px; line-height: 1; }
.article__body details[open] summary::after { content: '\2013'; }
.article__body details > *:not(summary) { margin-top: 10px; }
.article__body figure { margin: 30px 0; }
.article__body figure img { width: 100%; border: 1px solid var(--gold-dark); }
.article__body figcaption { margin-top: 9px; font-size: 13px; color: var(--muted); }

.article__img { margin: 48px 0; }
.article__img img { width: 100%; display: block; border: none; border-radius: 2px; }
.article__img figcaption { margin-top: 11px; font-size: 13px; color: var(--muted); line-height: 1.55; padding-left: 10px; border-left: 2px solid var(--gold-dark); }

/* Редакционный параллакс-баннер внутри статьи */
.story-banner {
    position: relative;
    margin: 56px 0;
    height: 420px;
    overflow: hidden;
    background: var(--ink);
}
.story-banner__img {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    opacity: .82;
    display: block;
}
.story-banner__cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 56px 24px 24px;
    background: linear-gradient(to top, rgba(28,28,27,.92) 0%, rgba(28,28,27,.45) 55%, transparent 100%);
    pointer-events: none;
}
.story-banner__era {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 400;
    color: var(--gold);
    opacity: .32;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 10px;
    user-select: none;
}
.story-banner__text {
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(243,237,223,.8);
    line-height: 1.58;
    letter-spacing: .3px;
    padding-left: 12px;
    border-left: 2px solid var(--gold-dark);
    max-width: 54ch;
}

.lead { font-size: 17px; font-weight: 400; line-height: 1.65; color: var(--ink); margin: 0 0 26px; }

.callout {
    background: var(--card); border: 1px solid var(--hairline); border-left: 3px solid var(--copper);
    padding: 20px 24px; margin: 28px 0; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.callout p { font-size: 16px; margin: 0; }
.callout p + p { margin-top: 10px; }

.factbox { border: 1px solid var(--gold-dark); outline: 1px solid var(--gold-dark); outline-offset: 4px; padding: 22px 24px; margin: 34px 4px; background: var(--card); }
.factbox h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 21px; }
/* dl внутри factbox — по DS .dl-specs */
.factbox dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.factbox dt { padding: 9px 24px 9px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 14px; font-weight: 500; color: var(--muted); }
.factbox dd { padding: 9px 0; border-bottom: 1px solid var(--hairline-soft); margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.factbox dt:last-of-type, .factbox dd:last-of-type { border-bottom: none; }

/* боковая колонка */
.aside { position: sticky; top: 24px; display: grid; gap: 22px; }
.aside__card { border: 1px solid var(--hairline); background: var(--card); padding: 22px; }
.aside__card h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--ink); margin: 0 0 10px; }
.aside__card p { font-size: 14px; line-height: 1.6; margin: 0 0 16px; color: var(--body); }
.aside__card .btn-primary { height: 48px; font-size: 14px; }
.aside__list { display: grid; gap: 14px; }
.aside__list a { display: block; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; padding-bottom: 13px; border-bottom: 1px solid var(--hairline-soft); }
.aside__list a:last-child { border-bottom: 0; padding-bottom: 0; }
.aside__list a:hover { color: var(--copper); }
.aside__list small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 3px; }

/* TOC — содержание статьи */
.toc-list { list-style: none; margin: 10px 0 0; padding: 0; }
.toc-list li + li { border-top: 1px solid var(--hairline-soft); }
.toc-list a { display: block; font-size: 13px; line-height: 1.45; padding: 7px 0; color: var(--body); transition: color .15s; text-decoration: none !important; }
.toc-list a:hover, .toc-list a.toc-on { color: var(--copper); font-weight: 500; }

/* конверсионный блок в конце статьи */
.artcta { background: var(--burgundy); color: var(--on-primary); position: relative; overflow: hidden; padding: clamp(38px, 6vw, 62px) 0; }
.artcta::before { content: ''; position: absolute; inset: 0; background: url('/local/templates/rd1/assets/rmd-pattern-tile.jpg') 0 0 / 340px; opacity: .10; mix-blend-mode: luminosity; }
.artcta .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.artcta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(23px, 2.8vw, 33px); color: var(--on-primary); margin: 0 0 8px; }
.artcta p { font-size: 16px; color: rgba(243,237,223,.8); margin: 0; max-width: 52ch; }

@media (min-width: 1280px) {
    .article .wrap { max-width: clamp(1080px, 80vw, 1520px); }
}

@media (max-width: 1023px) {
    /* minmax(0,1fr), а не 1fr: у `1fr` минимум = min-content, поэтому широкий
       потомок (dl в .factbox) распирал колонку шире экрана и давал горизонтальный скролл. */
    .article__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .subhero { min-height: 300px; }
    .subhero .wrap { padding-top: 44px; padding-bottom: 28px; }
    .article__body p, .article__body li { font-size: 15px; }
    .lead { font-size: 16px; }
    .aside { grid-template-columns: 1fr; }

    /* factbox: колонка `max-content` тянулась по самому длинному <dt>
       («Упаковка (капсула, коробка, удостоверение)») — на мобильном разносим в столбец */
    .factbox { padding: 18px 16px; margin: 28px 0; }
    .factbox h3 { font-size: 18px; }
    .factbox dl { grid-template-columns: minmax(0, 1fr); }
    .factbox dt { padding: 12px 0 3px; border-bottom: 0; }
    .factbox dd { padding: 0 0 12px; border-bottom: 1px solid var(--hairline-soft); }
    .factbox dt:last-of-type { border-bottom: 0; }
    .factbox dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
    .foot__partners { gap: 14px; }
    .partner span { font-size: 13px; }
}

/* ── HOVER SYSTEM ── */

/* PRIMARY КНОПКИ — простой цвет, без анимаций */
.btn-ghost:hover { border-color: var(--gold); background: rgba(195,154,101,.08); }
.btn-catalog:hover { background: var(--copper); color: #fff; }

/* КАРТОЧКА — полоса-оттиск сверху (как клеймо чеканщика) */
.product-card::before {
    content: ''; pointer-events: none;
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--copper) 55%, var(--gold-dark) 100%);
    transform: scaleX(0); transform-origin: left center; transition: transform .38s ease;
}
.product-card:hover::before { transform: scaleX(1); }

/* ТЕКСТОВЫЕ ССЫЛКИ — подчёркивание слева */
.read-history, .read-more {
    text-decoration: none !important;
    display: inline-block; position: relative;
}
.read-history::after, .read-more::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 100%; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.read-history:hover::after, .read-more:hover::after { transform: scaleX(1); }

/* ===========================================================
   ГАРАНТИИ: два столбца на крупных телефонах и планшетах в портрете
   Идёт последним в файле намеренно: перебивает и одноколоночную
   раскладку из блока ≤767, и остатки трёхколоночных правил из ≤1023
   (у них та же специфичность — решает порядок в источнике).
   =========================================================== */
@media (min-width: 481px) and (max-width: 767px) {
    .guar__grid { grid-template-columns: 1fr 1fr; }
    .guar__item, .guar__item:nth-child(n) {
        padding: 16px 18px;
        border-top: 1px solid var(--hairline-soft);
        border-left: 1px solid var(--hairline-soft);
    }
    .guar__item:nth-child(odd) { border-left: 0; }
    .guar__item:nth-child(-n+2) { border-top: 0; }
    .guar__item:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ===========================================================
   ЮРИДИЧЕСКОЕ: ссылки на политики в футере + уведомление о cookie
   =========================================================== */
.foot__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__legal a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(243,237,223,.28); padding-bottom: 1px; transition: border-color .2s, color .2s; }
.foot__legal a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.cookie {
    position: fixed; z-index: 90;
    left: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 24px);
    max-width: 760px; margin-inline: auto;
    display: flex; align-items: center; gap: clamp(14px, 3vw, 28px);
    padding: 16px clamp(16px, 2.5vw, 24px);
    background: var(--ink); border: 1px solid var(--gold-dark);
    outline: 1px solid rgba(195,154,101,.28); outline-offset: 3px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(243,237,223,.82); }
.cookie a { color: var(--gold-light); border-bottom: 1px solid rgba(195,154,101,.5); }
.cookie a:hover { border-bottom-color: var(--gold); }
.cookie__ok {
    flex: none; height: 42px; padding: 0 24px; cursor: pointer;
    background: var(--on-primary); color: var(--copper); border: 0; border-radius: var(--r-sm);
    font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    transition: background .2s;
}
.cookie__ok:hover { background: #fff; }

/* согласие в форме: ссылки внутри галочки */
.agree a { color: var(--copper); border-bottom: 1px solid rgba(155,9,45,.35); }
.agree a:hover { border-bottom-color: var(--copper); }

@media (max-width: 600px) {
    .cookie { flex-direction: column; align-items: stretch; text-align: left; gap: 12px; }
    .cookie p { font-size: 13px; }
    .cookie__ok { width: 100%; }
}

/* страницы политик: одна колонка без сайдбара */
.article__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.article__grid--solo .article__body h2 { margin-top: 34px; }

/* длинные URL в тексте статей и политик не должны распирать колонку */
.article__body { overflow-wrap: break-word; }
.article__body a { overflow-wrap: anywhere; }

/* ===========================================================
   ПРАВОВЫЕ СТРАНИЦЫ: компактная шапка без фотографии
   У статей фон задаёт .art-hero__bg с изображением; для политик
   картинка неуместна, поэтому — паттерн-грифон и сдержанная высота.
   =========================================================== */
.subhero--legal { min-height: 0; align-items: center; overflow: hidden; }
.subhero--legal::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: url('/local/templates/rd1/assets/rmd-griffin.svg') right -40px center / 380px no-repeat;
    opacity: .05;
}
.subhero--legal::after { background: none; }
.subhero--legal .wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(30px, 4vw, 48px); }
.subhero--legal h1 {
    max-width: 34ch;                       /* базовые 20ch рвут длинное юр. название */
    font-size: clamp(23px, 2.8vw, 36px);
    text-wrap: balance;
}
.subhero--legal .lead {
    margin: 16px 0 0; max-width: 64ch;
    font-size: 16px; line-height: 1.6;
    color: rgba(243, 237, 223, .78);       /* .lead по умолчанию тёмный — на тёмном фоне не читался */
}
@media (max-width: 767px) {
    .subhero--legal::before { background-size: 260px; background-position: right -70px center; }
    .subhero--legal h1 { max-width: 100%; }
    .subhero--legal .lead { font-size: 15px; }
}

/* End */
/* /local/templates/rd1/template_styles.css?178659697746120 */
