/* rowkz — магазинный слой: палитра, скругления, карточки, страница товара */
:root {
	--rk-ink: #0f2233;          /* глубокий тёмно-синий — текст, заголовки */
	--rk-ink-soft: #4a5a6a;     /* вторичный текст */
	--rk-accent: #1d6f93;       /* фирменный синий (вода) */
	--rk-accent-dark: #145672;
	--rk-sand: #f6f3ee;         /* тёплый светлый фон */
	--rk-line: #e6e1d8;         /* тонкие линии */
	--rk-white: #ffffff;
	--rk-radius-lg: 22px;
	--rk-radius: 14px;
	--rk-radius-sm: 999px;
	--rk-shadow: 0 1px 2px rgba(15, 34, 51, .04), 0 8px 24px rgba(15, 34, 51, .06);
	--rk-shadow-hover: 0 2px 4px rgba(15, 34, 51, .06), 0 18px 40px rgba(15, 34, 51, .12);
	--bs-primary: var(--rk-accent);
	--bs-primary-rgb: 29, 111, 147;
	--bs-link-color: var(--rk-accent);
	--bs-link-hover-color: var(--rk-accent-dark);
	--bs-border-radius: var(--rk-radius);
}

body { color: var(--rk-ink); }

/* ---------- Кнопки (вместо стандартных цветов Bootstrap) ---------- */
.btn { border-radius: var(--rk-radius-sm); font-weight: 600; letter-spacing: .01em; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn-primary { --bs-btn-bg: var(--rk-ink); --bs-btn-border-color: var(--rk-ink); --bs-btn-hover-bg: var(--rk-accent); --bs-btn-hover-border-color: var(--rk-accent); --bs-btn-active-bg: var(--rk-accent-dark); --bs-btn-active-border-color: var(--rk-accent-dark); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-focus-shadow-rgb: 29, 111, 147; }
.btn-outline-primary { --bs-btn-color: var(--rk-ink); --bs-btn-border-color: var(--rk-line); --bs-btn-hover-bg: var(--rk-ink); --bs-btn-hover-border-color: var(--rk-ink); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--rk-ink); --bs-btn-active-border-color: var(--rk-ink); --bs-btn-focus-shadow-rgb: 29, 111, 147; background: var(--rk-white); }
.form-control, .form-select { border-radius: var(--rk-radius-sm); border-color: var(--rk-line); padding: .7rem 1.1rem; }
.form-control:focus, .form-select:focus { border-color: var(--rk-accent); box-shadow: 0 0 0 .2rem rgba(29, 111, 147, .15); }
.modal-content { border-radius: var(--rk-radius-lg); border: 0; }

/* ---------- Шапка раздела ---------- */
.rk-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(29, 111, 147, .35), transparent 60%), linear-gradient(160deg, #0f2233 0%, #16334a 100%); color: #fff; padding: 72px 0 64px; border-radius: 0 0 var(--rk-radius-lg) var(--rk-radius-lg); }
.rk-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .6); margin-bottom: .75rem; }
.rk-eyebrow a { color: inherit; text-decoration: none; }
.rk-eyebrow a:hover { color: #fff; }
.rk-hero h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 .75rem; color: #fff; }
.rk-hero p { color: rgba(255, 255, 255, .75); max-width: 640px; font-size: 1.05rem; margin: 0; }

/* ---------- Панель фильтров ---------- */
.rk-catalog { padding: 40px 0 80px; }
.rk-filters { background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); padding: 18px; box-shadow: var(--rk-shadow); margin-top: -40px; position: relative; z-index: 2; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rk-chip { border: 1px solid var(--rk-line); background: var(--rk-white); color: var(--rk-ink); border-radius: var(--rk-radius-sm); padding: .45rem 1rem; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.rk-chip:hover { border-color: var(--rk-ink); }
.rk-chip.is-active { background: var(--rk-ink); border-color: var(--rk-ink); color: #fff; }
.rk-count { color: var(--rk-ink-soft); font-size: .9rem; margin: 22px 2px 14px; }

/* ---------- Карточка товара ---------- */
.rk-grid { --bs-gutter-x: 1.75rem; --bs-gutter-y: 1.75rem; }
.rk-card { background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--rk-shadow); transition: box-shadow .25s, transform .25s; }
.rk-card:hover { box-shadow: var(--rk-shadow-hover); transform: translateY(-3px); }
.rk-card__media { display: block; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #fbfaf7 0%, var(--rk-sand) 100%); padding: 18px; overflow: hidden; }
.rk-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.rk-card:hover .rk-card__media img { transform: scale(1.04); }
.rk-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rk-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rk-accent); font-weight: 600; margin-bottom: 6px; }
.rk-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.rk-card__title a { color: var(--rk-ink); text-decoration: none; }
.rk-card__title a:hover { color: var(--rk-accent); }
.rk-card__text { color: var(--rk-ink-soft); font-size: .92rem; line-height: 1.55; margin-bottom: 18px; }
.rk-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rk-line); }
.rk-price { font-weight: 600; color: var(--rk-ink); font-size: .95rem; }
.rk-price small { display: block; font-weight: 400; color: var(--rk-ink-soft); font-size: .75rem; }
.rk-empty { text-align: center; color: var(--rk-ink-soft); padding: 60px 0; }

/* ---------- Страница товара ---------- */
.rk-product { padding: 32px 0 80px; }
.rk-crumbs { font-size: .85rem; color: var(--rk-ink-soft); margin-bottom: 22px; }
.rk-crumbs a { color: var(--rk-ink-soft); text-decoration: none; }
.rk-crumbs a:hover { color: var(--rk-accent); }
.rk-gallery { background: linear-gradient(180deg, #fbfaf7 0%, var(--rk-sand) 100%); border-radius: var(--rk-radius-lg); padding: 32px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.rk-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rk-buybox { position: sticky; top: 24px; background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); padding: 28px; box-shadow: var(--rk-shadow); }
.rk-buybox h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.15; margin: 6px 0 14px; }
.rk-buybox .rk-lead { color: var(--rk-ink-soft); line-height: 1.6; }
.rk-buybox .rk-price { font-size: 1.3rem; margin: 18px 0; }
.rk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-tag { background: var(--rk-sand); color: var(--rk-ink); border-radius: var(--rk-radius-sm); padding: .25rem .75rem; font-size: .8rem; text-decoration: none; }
.rk-tag:hover { background: var(--rk-line); color: var(--rk-ink); }
.rk-perks { list-style: none; padding: 0; margin: 20px 0 0; color: var(--rk-ink-soft); font-size: .9rem; }
.rk-perks li { display: flex; gap: 10px; padding: 6px 0; }
.rk-perks i { color: var(--rk-accent); }
.rk-content { margin-top: 48px; background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); padding: 32px; }
.rk-content h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; }
.rk-content ul { list-style: none; padding: 0; margin: 0 0 18px; }
.rk-content li { padding: 10px 0; border-bottom: 1px solid var(--rk-line); }
.rk-content li:last-child { border-bottom: 0; }
.rk-related { margin-top: 64px; }
.rk-related h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

@media (max-width: 767.98px) {
	.rk-hero { padding: 48px 0 56px; }
	.rk-filters { padding: 14px; margin-top: -32px; }
	.rk-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.rk-chip { white-space: nowrap; }
	.rk-gallery { padding: 16px; }
	.rk-buybox { position: static; margin-top: 20px; padding: 22px; }
	.rk-content { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.rk-card, .rk-card__media img, .btn { transition: none; }
	.rk-card:hover { transform: none; }
}

/* ================= Общая сетка ================= */
.container { max-width: 1240px; }
body { background: var(--rk-white); }
h1, h2, h3, h4 { color: var(--rk-ink); letter-spacing: -.01em; }

/* ================= Шапка ================= */
.rk-topbar { background: var(--rk-ink); color: rgba(255, 255, 255, .75); font-size: .8rem; }
.rk-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.rk-topbar a { color: #fff; text-decoration: none; white-space: nowrap; }
.rk-topbar a:hover { color: #cfe6f1; }
.rk-topbar .bi-patch-check { color: #7fc3de; margin-right: 4px; }

.rk-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .rk-header { top: 32px; }
.rk-header.is-scrolled { border-color: var(--rk-line); box-shadow: 0 6px 20px rgba(15, 34, 51, .06); }
.rk-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.rk-logo { flex: 0 0 auto; display: inline-flex; }
.rk-logo img { height: 44px; width: auto; }
.rk-nav { flex: 1 1 auto; }
.rk-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: 2px; }
.rk-menu li { position: relative; }
.rk-menu a { display: block; padding: .55rem .85rem; border-radius: var(--rk-radius-sm); color: var(--rk-ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; transition: background-color .2s, color .2s; }
.rk-menu a:hover, .rk-menu .current-menu-item > a, .rk-menu .current-menu-ancestor > a { background: var(--rk-sand); color: var(--rk-ink); }
.rk-menu .current-menu-item > a { color: var(--rk-accent); }
.rk-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius); box-shadow: var(--rk-shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.rk-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.rk-menu li:hover > .sub-menu, .rk-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rk-menu .sub-menu a { border-radius: 10px; font-size: .92rem; }
.rk-menu .menu-item-has-children > a::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; margin-left: 6px; vertical-align: middle; }
.rk-sub-toggle { display: none; }

.rk-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.rk-icon-btn { width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; color: var(--rk-ink); background: var(--rk-sand); text-decoration: none; font-size: 1.05rem; transition: background-color .2s, color .2s; }
.rk-icon-btn:hover { background: var(--rk-ink); color: #fff; }
.rk-cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--rk-ink); color: #fff; border-radius: var(--rk-radius-sm); padding: .55rem 1.1rem; font-weight: 600; font-size: .92rem; transition: background-color .2s; }
.rk-cart-btn:hover { background: var(--rk-accent); }
.rk-cart-btn .cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--rk-ink); font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; position: static; }
.rk-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--rk-line); border-radius: 50%; background: var(--rk-white); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.rk-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--rk-ink); transition: transform .2s, opacity .2s; }
.rk-header.is-open .rk-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rk-header.is-open .rk-burger span:nth-child(2) { opacity: 0; }
.rk-header.is-open .rk-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199.98px) {
	.rk-header__inner { flex-wrap: wrap; gap: 12px; min-height: 68px; }
	.rk-logo { margin-right: auto; }
	.rk-logo img { height: 38px; }
	.rk-burger { display: inline-flex; }
	.rk-nav { order: 3; flex-basis: 100%; display: none; padding-bottom: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
	.rk-header.is-open .rk-nav { display: block; }
	.rk-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rk-menu > li { border-bottom: 1px solid var(--rk-line); display: flex; flex-wrap: wrap; align-items: center; }
	.rk-menu > li > a { flex: 1; padding: .9rem .25rem; border-radius: 0; font-size: 1.02rem; }
	.rk-menu a:hover, .rk-menu .current-menu-item > a { background: transparent; }
	.rk-menu .menu-item-has-children > a::after { content: none; }
	.rk-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--rk-sand); color: var(--rk-ink); transition: transform .2s; }
	.rk-menu li.is-open > .rk-sub-toggle { transform: rotate(180deg); }
	.rk-menu .sub-menu { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--rk-sand); margin: 0 0 12px; min-width: 0; }
	.rk-menu li.is-open > .sub-menu { display: block; }
}
@media (max-width: 782px) { .admin-bar .rk-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rk-header { top: 0; } .rk-topbar span { display: none; } .rk-topbar .container { justify-content: center; } }

/* ================= Главная ================= */
.rk-home-hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; background: var(--rk-ink); border-radius: 0 0 var(--rk-radius-lg) var(--rk-radius-lg); }
.rk-home-hero__slides, .rk-home-hero__slides .carousel-inner, .rk-home-hero__slides .carousel-item { position: absolute; inset: 0; height: 100%; }
.rk-home-hero__slides img { width: 100%; height: 100%; object-fit: cover; }
.rk-home-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 34, 51, .85) 0%, rgba(15, 34, 51, .55) 45%, rgba(15, 34, 51, .1) 100%), linear-gradient(0deg, rgba(15, 34, 51, .6) 0%, transparent 50%); }
.rk-home-hero__content { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 72px; color: #fff; }
.rk-home-hero h1 { color: #fff; font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.05; max-width: 760px; margin-bottom: 16px; }
.rk-home-hero p { color: rgba(255, 255, 255, .8); font-size: 1.15rem; max-width: 560px; margin-bottom: 28px; }
.rk-home-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--rk-ink); --bs-btn-hover-bg: var(--rk-sand); --bs-btn-hover-border-color: var(--rk-sand); --bs-btn-hover-color: var(--rk-ink); }
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .5); --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--rk-ink); --bs-btn-hover-border-color: #fff; }

.rk-section { padding: 88px 0; }
.rk-section--tight { padding: 32px 0; }
.rk-section--sand { background: var(--rk-sand); border-radius: var(--rk-radius-lg); margin: 0 12px; }
.rk-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.rk-section h2 { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 14px; }
.rk-section__head h2 { margin: 0; }
.rk-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--rk-accent); margin-bottom: 8px; }
.rk-lead { font-size: 1.15rem; line-height: 1.6; color: var(--rk-ink); }
.rk-muted { color: var(--rk-ink-soft); line-height: 1.7; }

.rk-tile { display: flex; flex-direction: column; height: 100%; background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); overflow: hidden; text-decoration: none; color: var(--rk-ink); box-shadow: var(--rk-shadow); transition: box-shadow .25s, transform .25s; }
.rk-tile:hover { box-shadow: var(--rk-shadow-hover); transform: translateY(-3px); color: var(--rk-ink); }
.rk-tile__media { display: block; aspect-ratio: 4 / 3; background: var(--rk-sand); overflow: hidden; }
.rk-tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.rk-tile:hover .rk-tile__media img { transform: scale(1.05); }
.rk-tile__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.rk-tile__title { font-weight: 700; font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.rk-tile__title .bi { color: var(--rk-accent); transition: transform .2s; }
.rk-tile:hover .rk-tile__title .bi { transform: translateX(4px); }
.rk-tile__text { color: var(--rk-ink-soft); font-size: .92rem; }

.rk-photo { border-radius: var(--rk-radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--rk-shadow); }
.rk-photo img { width: 100%; height: 100%; object-fit: cover; }

.rk-perk { height: 100%; padding: 26px; border-radius: var(--rk-radius-lg); background: var(--rk-sand); }
.rk-perk .bi { font-size: 1.6rem; color: var(--rk-accent); display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--rk-white); border-radius: 50%; margin-bottom: 14px; }
.rk-perk h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.rk-perk p { color: var(--rk-ink-soft); font-size: .92rem; margin: 0; }

.rk-logos { text-align: center; padding: 16px 0; }
.rk-logos img { max-width: 100%; height: auto; opacity: .75; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.rk-logos img:hover { opacity: 1; filter: none; }

.rk-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 48px; border-radius: var(--rk-radius-lg); color: #fff; background: radial-gradient(800px 300px at 90% 0%, rgba(29, 111, 147, .45), transparent 60%), linear-gradient(160deg, #0f2233 0%, #16334a 100%); }
.rk-cta h2 { color: #fff; margin-bottom: 8px; }
.rk-cta p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 560px; }

/* ================= Подвал ================= */
.rk-footer { background: var(--rk-ink); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; margin-top: 40px; border-radius: var(--rk-radius-lg) var(--rk-radius-lg) 0 0; }
.rk-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.rk-footer ul { list-style: none; padding: 0; margin: 0; }
.rk-footer li { padding: 5px 0; }
.rk-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.rk-footer a:hover { color: #fff; }
.rk-footer .bi { color: #7fc3de; margin-right: 6px; }
.rk-footer__brand { font-size: 1.6rem; font-weight: 700; color: #fff !important; }
.rk-footer__muted { margin-top: 12px; max-width: 340px; line-height: 1.6; }
.rk-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .85rem; text-align: center; }

@media (max-width: 767.98px) {
	.rk-section { padding: 56px 0; }
	.rk-section--sand { margin: 0; border-radius: 0; }
	.rk-home-hero { min-height: 560px; }
	.rk-home-hero__content { padding-bottom: 48px; }
	.rk-home-hero__cta .btn { flex: 1 1 100%; }
	.rk-cta { padding: 28px; }
	.rk-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.rk-tile, .rk-tile__media img, .rk-menu .sub-menu { transition: none; }
}

/* Анимированный фон главной */
.rk-home-hero__slides { position: absolute; inset: 0; }
.rk-rowing { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rk-home-hero__shade { background: linear-gradient(90deg, rgba(11, 26, 40, .82) 0%, rgba(11, 26, 40, .45) 42%, rgba(11, 26, 40, 0) 70%); }
@media (max-width: 767.98px) {
	.rk-home-hero__shade { background: linear-gradient(0deg, rgba(11, 26, 40, .9) 0%, rgba(11, 26, 40, .55) 55%, rgba(11, 26, 40, .1) 100%); }
}

/* ================= Заявка / оформление ================= */
.rk-cart .modal-header { border-bottom: 1px solid var(--rk-line); padding: 20px 24px; }
.rk-cart .modal-title { font-weight: 700; }
.rk-cart .modal-body { padding: 20px 24px; }
.rk-cart .modal-footer { border-top: 1px solid var(--rk-line); padding: 16px 24px; gap: 8px; }
.rk-steps { display: flex; gap: 6px; margin-bottom: 18px; font-size: .8rem; }
.rk-step { flex: 1; text-align: center; padding: .4rem .5rem; border-radius: var(--rk-radius-sm); background: var(--rk-sand); color: var(--rk-ink-soft); font-weight: 600; }
.rk-step.is-active { background: var(--rk-ink); color: #fff; }
.rk-cart .cart-empty { text-align: center; padding: 36px 0; color: var(--rk-ink-soft); }
.rk-cart .cart-empty .bi { font-size: 2.6rem; display: block; margin-bottom: 8px; color: var(--rk-line); }
.rk-cart .cart-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rk-line); }
.rk-cart .cart-item:last-child { border-bottom: 0; }
.rk-cart .cart-item img, .rk-cart .cart-item-noimg { width: 72px; height: 54px; object-fit: contain; border-radius: 10px; background: var(--rk-sand); flex: 0 0 auto; }
.rk-cart .cart-item-details { flex: 1; min-width: 0; }
.rk-cart .cart-item-title { font-weight: 600; line-height: 1.3; }
.rk-cart .cart-item-price { color: var(--rk-ink-soft); font-size: .85rem; }
.rk-cart .cart-item-quantity { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); padding: 2px; }
.rk-cart .cart-item-quantity span { min-width: 22px; text-align: center; font-weight: 600; }
.rk-cart .quantity-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--rk-ink); font-size: 1.1rem; line-height: 1; }
.rk-cart .quantity-btn:hover { background: var(--rk-sand); }
.rk-cart .cart-item-remove { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--rk-ink-soft); }
.rk-cart .cart-item-remove:hover { background: #fbe9e7; color: #b3261e; }
.rk-cart .form-label { font-weight: 600; font-size: .9rem; }
.rk-cart textarea.form-control { border-radius: var(--rk-radius); }
.rk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rk-done { text-align: center; padding: 28px 0 12px; }
.rk-done .bi { font-size: 3.2rem; color: #2e7d5b; }
.rk-done h3 { font-weight: 700; margin: 10px 0 6px; }
.rk-done p { color: var(--rk-ink-soft); }
.rk-cart .alert { border-radius: var(--rk-radius); }
.rk-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2000; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 10px; background: var(--rk-ink); color: #fff; padding: .7rem 1rem .7rem 1.2rem; border-radius: var(--rk-radius-sm); box-shadow: var(--rk-shadow-hover); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.rk-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.rk-toast .bi { color: #7fd3a8; }
.rk-toast__link { border: 0; background: rgba(255, 255, 255, .14); color: #fff; border-radius: var(--rk-radius-sm); padding: .25rem .8rem; font-weight: 600; }
.rk-toast__link:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 575.98px) {
	.rk-cart .modal-footer .btn { flex: 1 1 auto; }
	.rk-cart .cart-item { flex-wrap: wrap; }
	.rk-cart .cart-item-details { flex-basis: calc(100% - 90px); }
	.rk-cart .cart-item-quantity { margin-left: 86px; }
}

/* ================= Конструкция и материалы ================= */
.rk-grade--cpro { --g: #0f2233; }
.rk-grade--ec { --g: #1d6f93; }
.rk-grade--ep { --g: #3f8fb3; }
.rk-grade--ca { --g: #6aa9c4; }
.rk-grade--cb { --g: #a9c9d8; }
.rk-grades { background: var(--rk-white); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-lg); box-shadow: var(--rk-shadow); padding: 14px; }
.rk-grades__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rk-grades__tab { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--rk-line); background: var(--rk-white); color: var(--rk-ink); border-radius: var(--rk-radius); padding: 12px 14px; transition: border-color .2s, background-color .2s; }
.rk-grades__tab:hover { border-color: var(--rk-ink); }
.rk-grades__tab.is-active { background: var(--rk-sand); border-color: var(--rk-ink); }
.rk-grades__tab strong { display: block; font-size: .95rem; }
.rk-grades__tab small { display: block; color: var(--rk-ink-soft); font-size: .75rem; }
.rk-grades__dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px rgba(15, 34, 51, .06); }
.rk-grades__panel { padding: 8px; }
.rk-grades__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--rk-radius); margin-bottom: 14px; background: linear-gradient(120deg, var(--rk-sand) 0%, var(--rk-white) 100%); border-left: 6px solid var(--g); }
.rk-grades__head h3 { font-size: 1.8rem; font-weight: 700; margin: 2px 0 0; }
.rk-grades__head p { margin: 0; max-width: 520px; color: var(--rk-ink-soft); }
.rk-grades__head p span { color: var(--rk-ink); font-weight: 600; }
.rk-grades__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--rk-accent); }
.rk-spec { height: 100%; padding: 20px 22px; border-radius: var(--rk-radius); background: var(--rk-sand); }
.rk-spec--white { background: var(--rk-white); border: 1px solid var(--rk-line); }
.rk-spec h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rk-accent); margin-bottom: 10px; }
.rk-spec ul { list-style: none; padding: 0; margin: 0; }
.rk-spec li { position: relative; padding: 6px 0 6px 18px; line-height: 1.45; font-size: .93rem; border-bottom: 1px solid rgba(15, 34, 51, .07); }
.rk-spec li:last-child { border-bottom: 0; }
.rk-spec li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--rk-accent); }
.rk-sandwich { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.rk-sandwich__skin { height: 10px; border-radius: 6px; background: repeating-linear-gradient(45deg, #0f2233 0 6px, #22415c 6px 12px); }
.rk-sandwich__core { height: 46px; border-radius: 6px; background-color: #e9dfc9; background-image: radial-gradient(circle at 10px 10px, transparent 6px, #c9b88f 6px 7.5px, transparent 7.5px); background-size: 20px 17px; }
@media (max-width: 991.98px) {
	.rk-grades__tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
	.rk-grades__tab { flex: 0 0 auto; }
}

/* ================= Переключатель языков ================= */
.rk-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--rk-radius-sm); background: var(--rk-sand); }
.rk-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: var(--rk-radius-sm); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--rk-ink-soft); text-decoration: none; }
.rk-lang a:hover { color: var(--rk-ink); }
.rk-lang a[aria-current="true"] { background: var(--rk-white); color: var(--rk-ink); box-shadow: 0 1px 3px rgba(15, 34, 51, .12); }
@media (max-width: 420px) { .rk-lang a { min-width: 28px; padding: 0 5px; } }
