[hidden] { display:none!important }
/* Общие компоненты: модалки, формы заявки, галерея объекта, плавающие кнопки.
   Тема — через CSS-переменные --rk-*, которые задаёт каждый вариант в своём :root. */
:root {
  --rk-bg: #ffffff;
  --rk-surface: #f4f2ee;
  --rk-fg: #1b1a17;
  --rk-muted: #6b675f;
  --rk-line: rgba(0, 0, 0, .12);
  --rk-accent: #b5683b;
  --rk-accent-fg: #ffffff;
  --rk-radius: 14px;
  --rk-radius-sm: 10px;
  --rk-font-head: inherit;
  --rk-font-body: inherit;
  --rk-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  --rk-backdrop: rgba(15, 14, 12, .62);
}

html.rk-lock { overflow: hidden; }
.rk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Кнопка ---------- */
.rk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em; border: 0; cursor: pointer;
  background: var(--rk-accent); color: var(--rk-accent-fg);
  font: 600 16px/1.2 var(--rk-font-body); border-radius: var(--rk-radius-sm);
  text-decoration: none; transition: transform .15s, filter .2s;
}
.rk-btn:hover { filter: brightness(1.08); }
.rk-btn:active { transform: translateY(1px); }
.rk-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--rk-accent) 45%, transparent); outline-offset: 2px; }
.rk-btn--block { width: 100%; }
.rk-btn.is-loading { opacity: .7; pointer-events: none; }
.rk-btn.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rk-spin .7s linear infinite; }
@keyframes rk-spin { to { transform: rotate(360deg); } }

/* ---------- Модалка ---------- */
.rk-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--rk-font-body); color: var(--rk-fg); }
.rk-modal__backdrop { position: absolute; inset: 0; background: var(--rk-backdrop); opacity: 0; transition: opacity .25s; backdrop-filter: blur(4px); }
.rk-modal__panel {
  position: relative; width: min(1120px, 100%); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--rk-bg); border-radius: var(--rk-radius); box-shadow: var(--rk-shadow);
  transform: translateY(16px) scale(.985); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.rk-modal.is-open .rk-modal__backdrop { opacity: 1; }
.rk-modal.is-open .rk-modal__panel { transform: none; opacity: 1; }
.rk-modal--lead .rk-modal__panel { width: min(520px, 100%); }
.rk-modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rk-line); cursor: pointer;
  background: color-mix(in srgb, var(--rk-bg) 85%, transparent); color: var(--rk-fg); display: grid; place-items: center; backdrop-filter: blur(6px);
}
.rk-modal__close svg { width: 20px; height: 20px; }
.rk-modal__close:hover { background: var(--rk-surface); }

/* ---------- Объект портфолио ---------- */
.rk-proj { display: grid; grid-template-columns: 1.15fr 1fr; }
.rk-proj__info { padding: 36px 36px 32px; min-width: 0; }
.rk-proj__kicker { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--rk-muted); margin-bottom: 10px; padding-right: 48px; }
.rk-proj__title { font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--rk-font-head); margin: 0 0 20px; letter-spacing: -.01em; }
.rk-proj__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 20px; background: var(--rk-line); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); overflow: hidden; }
.rk-proj__facts div { background: var(--rk-bg); padding: 12px 14px; }
.rk-proj__facts dt { font-size: 12px; color: var(--rk-muted); margin-bottom: 3px; }
.rk-proj__facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.rk-proj__desc { margin: 0 0 18px; line-height: 1.6; }
.rk-proj__ts { display: grid; gap: 12px; margin-bottom: 22px; }
.rk-proj__ts > div { background: var(--rk-surface); border-radius: var(--rk-radius-sm); padding: 14px 16px; }
.rk-proj__ts b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--rk-accent); margin-bottom: 4px; }
.rk-proj__ts p { margin: 0; line-height: 1.55; font-size: 15px; }
.rk-proj__works > b { display: block; margin-bottom: 10px; font-family: var(--rk-font-head); font-size: 18px; }
.rk-proj .rk-btn { width: 100%; margin-top: 6px; }
.rk-demo-flag { margin: 12px 0 0; font-size: 12px; color: var(--rk-muted); text-align: center; }

.rk-gal { background: #000; display: flex; flex-direction: column; min-width: 0; }
.rk-gal__main { position: relative; flex: 1; min-height: 360px; touch-action: pan-y; }
.rk-gal__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.rk-gal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: #111; display: grid; place-items: center; cursor: pointer; }
.rk-gal__nav svg { width: 22px; height: 22px; }
.rk-gal__prev { left: 14px; } .rk-gal__next { right: 14px; }
.rk-gal__count { position: absolute; left: 14px; bottom: 14px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.rk-gal__thumbs { display: flex; gap: 6px; padding: 6px; background: #111; overflow-x: auto; }
.rk-gal__thumb { flex: 0 0 auto; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .6; }
.rk-gal__thumb.is-on { border-color: #fff; opacity: 1; }
.rk-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Таблица сметы ---------- */
.rk-table-wrap { overflow-x: auto; border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); }
.rk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rk-table th, .rk-table td { padding: 9px 12px; border-bottom: 1px solid var(--rk-line); text-align: left; vertical-align: top; }
.rk-table th { font-weight: 500; font-size: 12px; color: var(--rk-muted); background: var(--rk-surface); }
.rk-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk-table tbody tr:last-child td { border-bottom: 0; }
.rk-table tfoot td { font-weight: 700; font-size: 16px; border-top: 1px solid var(--rk-line); border-bottom: 0; background: var(--rk-surface); }
.rk-note { font-size: 13px; color: var(--rk-muted); margin: 10px 0 18px; line-height: 1.5; }

/* ---------- Форма заявки ---------- */
.rk-lead { padding: 34px 32px 28px; }
.rk-lead__title { font: 600 26px/1.15 var(--rk-font-head); margin: 0 0 10px; padding-right: 40px; }
.rk-lead__text { margin: 0 0 20px; color: var(--rk-muted); line-height: 1.55; }
.rk-field { display: block; margin-bottom: 12px; }
.rk-field > span { display: block; font-size: 13px; color: var(--rk-muted); margin-bottom: 6px; }
.rk-field input, .rk-field textarea {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 13px 14px; font: 16px/1.3 var(--rk-font-body); color: var(--rk-fg);
  background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); outline: none; transition: border-color .2s, box-shadow .2s;
}
.rk-field textarea { resize: vertical; min-height: 70px; }
.rk-field input:focus, .rk-field textarea:focus { border-color: var(--rk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-accent) 20%, transparent); }
.rk-contact-choice { border: 0; padding: 0; margin: 0 0 16px; min-inline-size: 0; }
.rk-contact-choice legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.rk-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(114px, 1fr)); gap: 8px; }
.rk-seg i, .rk-seg svg { display: block; width: 17px; height: 17px; flex: 0 0 auto; }
.rk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rk-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; text-align: center; padding: 8px; border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); cursor: pointer; font-size: 14px; transition: .15s; }
.rk-seg input:checked + span { border-color: var(--rk-accent); background: color-mix(in srgb, var(--rk-accent) 12%, transparent); color: var(--rk-fg); font-weight: 600; }
.rk-seg input:focus-visible + span { outline: 2px solid var(--rk-accent); outline-offset: 2px; }
.rk-consent { font-size: 12px; color: var(--rk-muted); margin: 10px 0 0; line-height: 1.45; }
.rk-consent a { color: inherit; }
.rk-form-error { color: #c0392b; font-size: 14px; margin: 10px 0 0; }
.rk-sent { text-align: center; padding: 18px 6px; }
.rk-sent__icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--rk-accent) 16%, transparent); color: var(--rk-accent); }
.rk-sent__icon svg { width: 28px; height: 28px; }
.rk-sent b { display: block; font-size: 18px; margin-bottom: 6px; }
.rk-sent p { margin: 0; color: var(--rk-muted); line-height: 1.5; }
.rk-sent a { color: var(--rk-accent); }

.rk-calcbox { background: var(--rk-surface); border: 1px solid var(--rk-line); border-radius: var(--rk-radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.rk-calcbox__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rk-calcbox__row b { font-size: 20px; white-space: nowrap; }
.rk-calcbox details { margin-top: 8px; }
.rk-calcbox summary { cursor: pointer; color: var(--rk-muted); }
.rk-calcbox ul { list-style: none; margin: 8px 0 0; padding: 0; }
.rk-calcbox li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--rk-line); }
.rk-calcbox li span:last-child { white-space: nowrap; }
.rk-calcbox p { margin: 8px 0 0; color: var(--rk-muted); }

.rk-lead__alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rk-line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.rk-lead__alt > span { width: 100%; color: var(--rk-muted); font-size: 13px; }
.rk-msg { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--rk-line); color: var(--rk-fg); text-decoration: none; }
.rk-msg svg { width: 18px; height: 18px; }
.rk-msg--wa svg { color: #25d366; } .rk-msg--tg svg { color: #2aabee; }
.rk-msg:hover { background: var(--rk-surface); }

/* ---------- Плавающие кнопки (мобильные) ---------- */
.rk-fab { display: none; }
@media (max-width: 860px) {
  .rk-has-fab { --rk-fab-height: 50px; --rk-fab-gap: 8px; }
  .rk-fab { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + max(env(safe-area-inset-bottom), var(--rk-viewport-offset, 0px))); z-index: 900; display: flex; gap: var(--rk-fab-gap); }
  .rk-fab__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: var(--rk-fab-height); min-width: 0; border-radius: 14px; color: #fff; text-decoration: none; font: 600 14px/1 var(--rk-font-body); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .rk-fab__btn svg { width: 18px; height: 18px; flex: none; }
  .rk-fab__tel { background: var(--rk-accent); color: var(--rk-accent-fg); }
  .rk-fab__wa { background: #1faa59; } .rk-fab__tg { background: #229ed9; }
}

/* ---------- Превью-плашка ---------- */
.rk-preview-bar { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 950; background: rgba(20, 20, 20, .85); color: #fff; font: 13px/1 system-ui, sans-serif; padding: 9px 14px; border-radius: 99px; backdrop-filter: blur(6px); white-space: nowrap; }
.rk-preview-bar a { color: #f3c79f; }
@media (max-width: 860px) { .rk-preview-bar { bottom: auto; top: 10px; } }

/* ---------- Появление ---------- */
.rk-revealing [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rk-revealing [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .rk-modal__panel, .rk-modal__backdrop { transition: none; }
}

@media (max-width: 860px) {
  .rk-modal { padding: 0; align-items: flex-end; }
  .rk-modal__panel { max-height: 94dvh; border-radius: var(--rk-radius) var(--rk-radius) 0 0; }
  .rk-proj { grid-template-columns: 1fr; }
  .rk-gal__main { min-height: 0; aspect-ratio: 4/3; }
  .rk-proj__info { padding: 22px 16px 28px; }
  .rk-lead { padding: 26px 16px 24px; }
  .rk-proj__facts { grid-template-columns: 1fr 1fr; }
  .rk-table { font-size: 13px; }
  .rk-table th, .rk-table td { padding: 8px 9px; }
}
