/* ==========================================================
   Обновления 2026: каталог, отзывы, окно заказа, страница товара, подвал
   ========================================================== */
:root {
  --rz-red: #e10600;
  --rz-red-dark: #b80500;
  --rz-ink: #161616;
  --rz-text: #555;
  --rz-muted: #8b8b8b;
  --rz-line: #ebebeb;
  --rz-soft: #f5f5f4;
  --rz-radius: 20px;
  --rz-shadow: 0 12px 32px rgba(0, 0, 0, .07);
}

/* ---------- Отзывы ---------- */
#reviews { overflow: hidden; }
#reviews .section-heading { margin-bottom: 30px; }
.rv-wrap { position: relative; }
.rv-slider { margin: 0 -10px; }
.rv-slider .slick-list { overflow: visible; }
.rv-slider .slick-track { display: flex !important; align-items: stretch; }
.rv-slider .slick-slide { height: inherit !important; display: flex !important; }
.rv-slider .slick-slide > div { display: flex; width: 100%; }
.rv-slide { padding: 14px 10px 24px; width: 100%; display: flex !important; }
.rv-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  padding: 30px 30px 26px;
  box-shadow: var(--rz-shadow);
  transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}
/* на компьютере крайние карточки приглушены, центральная — в фокусе */
@media (min-width: 992px) {
  .rv-slider .slick-slide:not(.slick-center) .rv-card { opacity: .45; transform: scale(.92); box-shadow: none; }
  .rv-slider .slick-center .rv-card { box-shadow: 0 24px 50px rgba(0, 0, 0, .12); }
}
.rv-author { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rv-author img {
  width: 60px; height: 60px; flex: none;
  border-radius: 50%; object-fit: cover;
}
.rv-meta { flex: 1; min-width: 0; }
.rv-name { font-weight: 700; color: var(--rz-ink); font-size: 17px; line-height: 1.25; }
.rv-role { font-size: 13px; color: var(--rz-muted); margin-top: 2px; }
.rv-quote {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fdecea; color: var(--rz-red); font-size: 16px;
}
.rv-text {
  flex: 1;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}
.rv-social { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--rz-line); }
.rv-social a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 30px;
  background: var(--rz-soft); color: var(--rz-ink); font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s;
}
.rv-social a i { font-size: 15px; }
.rv-social a:hover { background: var(--rz-ink); color: #fff; }

.rv-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.rv-prev, .rv-next {
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--rz-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .2s;
}
.rv-prev:hover, .rv-next:hover { background: var(--rz-red); transform: scale(1.05); }
.rv-dots .slick-dots { position: static; display: flex !important; align-items: center; gap: 8px; margin: 0; padding: 0; width: auto; list-style: none; }
.rv-dots .slick-dots li { display: flex; width: auto; height: auto; margin: 0; padding: 0; line-height: 0; list-style: none; }
.rv-dots .slick-dots li::marker { content: none; }
.rv-dots .slick-dots li button {
  display: block; width: 8px; height: 8px; padding: 0; margin: 0; border: 0; border-radius: 8px; outline: none;
  background: #cfcfcf; font-size: 0; line-height: 0; color: transparent; cursor: pointer; transition: all .25s;
}
.rv-dots .slick-dots li button:before { display: none; }
.rv-dots .slick-dots li.slick-active button { width: 28px; background: var(--rz-red); }

@media (max-width: 991px) {
  .rv-card { padding: 24px 22px 20px; }
  .rv-text { font-size: 15px; }
}
@media (max-width: 575px) {
  .rv-slide { padding: 8px 6px 18px; }
  .rv-prev, .rv-next { width: 42px; height: 42px; }
}

/* ---------- Каталог ---------- */
.ct-section .section-heading p { color: var(--rz-text); margin-top: 10px; }
.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 920px;
  margin: 0 auto;
}
.ct-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--rz-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, .11); }

.ct-media { position: relative; aspect-ratio: 5 / 6; background: var(--rz-soft); overflow: hidden; }
.ct-photos { position: absolute; inset: 0; touch-action: pan-y; }
.ct-photos img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.ct-photos img.is-on { opacity: 1; }
.ct-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: var(--rz-red); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 6px 13px; border-radius: 30px;
}
.ct-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--rz-ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s;
}
.ct-prev { left: 14px; }
.ct-next { right: 14px; }
.ct-card:hover .ct-arrow, .ct-arrow:focus-visible { opacity: 1; }
.ct-arrow:hover { transform: scale(1.08); }
.ct-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; justify-content: center; gap: 6px;
}
.ct-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .6); box-shadow: 0 0 3px rgba(0, 0, 0, .3);
  cursor: pointer; transition: all .25s;
}
.ct-dots button.on { width: 24px; background: #fff; }
@media (hover: none) { .ct-arrow { display: none; } }

.ct-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ct-title { font-size: 22px; margin: 0 0 12px; line-height: 1.25; }
.ct-title a { color: var(--rz-ink); }
.ct-title a:hover { color: var(--rz-red); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.ct-chips li { font-size: 12.5px; color: var(--rz-ink); padding: 4px 11px; border-radius: 30px; background: var(--rz-soft); }
.ct-text { flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--rz-text); margin: 0 0 14px; }
.ct-colors { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.ct-colors span:last-child { font-size: 13px; color: var(--rz-muted); margin-left: 4px; }
.ct-swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--rz-line); }
.ct-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--rz-line);
}
.ct-price del { display: block; font-size: 13px; color: var(--rz-muted); }
.ct-price strong { font-size: 24px; color: var(--rz-ink); white-space: nowrap; }
.ct-price small { font-size: 15px; font-weight: 600; }
.ct-actions { display: flex; gap: 8px; }
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  transition: all .2s; white-space: nowrap;
}
.ct-btn-main { background: var(--rz-red); color: #fff; }
.ct-btn-main:hover { background: var(--rz-red-dark); color: #fff; }
.ct-btn-ghost { border: 1px solid var(--rz-line); color: var(--rz-ink); }
.ct-btn-ghost:hover { border-color: var(--rz-ink); color: var(--rz-ink); }
@media (max-width: 991px) {
  .ct-grid { gap: 20px; }
  .ct-body { padding: 18px 18px 20px; }
  .ct-title { font-size: 19px; }
  .ct-bottom { flex-direction: column; align-items: stretch; }
  .ct-actions .ct-btn { flex: 1; }
}
@media (max-width: 639px) { .ct-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }

/* ---------- Окно заказа ---------- */
.order-modal .modal-dialog { max-width: 900px; }
.order-modal .modal-content {
  border: 0; border-radius: 28px; overflow: hidden; background: #fff;
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.order-modal + .modal-backdrop, .modal-backdrop.show { opacity: .6; }

.of-aside { position: relative; background: #111; min-height: 100%; }
.of-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.of-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%); }
.of-aside-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; color: #fff; }
.of-aside .of-kicker { color: #ff8a80; }
.of-aside-name { font-size: 21px; font-weight: 700; line-height: 1.25; margin: 6px 0 14px; }
.of-perks { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.45; }
.of-perks li { display: flex; gap: 9px; margin-top: 7px; color: rgba(255, 255, 255, .88); }
.of-perks i { color: #7fe07a; font-size: 12px; margin-top: 4px; }

.of-main { min-width: 0; }
.order-form, .of-done { padding: 30px 32px 28px; }
.of-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.of-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rz-red); font-weight: 700; }
.of-head h3 { margin: 4px 0 0; font-size: 24px; line-height: 1.2; color: var(--rz-ink); }
.of-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.of-block { margin-bottom: 16px; }
.of-title { font-size: 13px; font-weight: 700; color: var(--rz-ink); margin-bottom: 9px; }

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form textarea {
  width: 100%; height: auto;
  border: 1.5px solid var(--rz-line); border-radius: 14px;
  background: #fff;
  padding: 13px 15px;
  font-size: 15px; line-height: 1.4; color: var(--rz-ink);
  transition: border-color .2s, box-shadow .2s;
}
.order-form input::placeholder, .order-form textarea::placeholder { color: #a3a3a3; }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--rz-ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, .05); }
.order-form textarea { resize: none; min-height: 0; margin-bottom: 16px; }
.of-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.of-address { margin-top: 10px; }

/* цвета: одна строка, кружок + подпись, без переносов */
.of-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-radius: 14px; }
.of-color {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 10px; margin: 0;
  border: 1.5px solid var(--rz-line); border-radius: 14px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.of-color input, .of-seg input { position: absolute; opacity: 0; pointer-events: none; }
.of-swatch { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.of-color-name { font-size: 14px; font-weight: 600; color: var(--rz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-color:hover { border-color: #cfcfcf; }
.of-color:has(input:checked) { border-color: var(--rz-ink); background: var(--rz-soft); }
.of-color:focus-within { outline: 2px solid var(--rz-ink); outline-offset: 2px; }

.of-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.of-seg label { margin: 0; cursor: pointer; }
.of-seg span {
  display: block; height: 100%; text-align: center;
  padding: 11px 6px; border: 1.5px solid var(--rz-line); border-radius: 14px;
  font-size: 14px; font-weight: 600; color: var(--rz-ink); line-height: 1.25; transition: all .2s;
}
.of-seg small { display: block; font-weight: 500; font-size: 12px; color: var(--rz-muted); margin-top: 3px; }
.of-seg label:hover span { border-color: #cfcfcf; }
.of-seg input:checked + span { border-color: var(--rz-ink); background: var(--rz-soft); }
.of-seg input:focus-visible + span { outline: 2px solid var(--rz-ink); outline-offset: 2px; }

.of-check {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--rz-line);
  cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--rz-ink);
}
.of-check:has(input:checked) { border-color: var(--rz-ink); background: var(--rz-soft); }
.of-check input { width: 19px; height: 19px; accent-color: var(--rz-ink); flex: none; margin: 0; }
.of-check span { flex: 1; }
.of-check b { font-weight: 600; color: var(--rz-muted); font-size: 13px; white-space: nowrap; }

.of-invalid { border-color: var(--rz-red) !important; }
.of-colors.of-invalid { box-shadow: 0 0 0 3px #ffd6d4; }
.of-error { margin-bottom: 12px; padding: 11px 15px; border-radius: 14px; background: #fff0ef; color: #c40500; font-size: 14px; font-weight: 600; }

.of-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--rz-line); }
.of-total > span { display: block; font-size: 12.5px; color: var(--rz-muted); }
.of-total strong { font-size: 26px; color: var(--rz-ink); white-space: nowrap; letter-spacing: -.01em; }
.startorder {
  border: 0; border-radius: 16px; cursor: pointer;
  background: var(--rz-red); color: #fff;
  padding: 16px 30px; font-size: 16px; font-weight: 700;
  transition: background .2s, transform .1s;
}
.startorder:hover { background: var(--rz-red-dark); }
.startorder:active { transform: scale(.98); }
.startorder:disabled { opacity: .6; cursor: wait; }

.of-done { text-align: center; padding: 70px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; }
.of-done-icon { width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e8f7e5; color: #2e9a1b; font-size: 30px; }
.of-done h3 { margin-bottom: 8px; }
.of-done p { color: var(--rz-text); margin-bottom: 24px; }

@media (max-width: 991px) {
  .order-modal .modal-dialog { max-width: 560px; }
  .order-modal .modal-content { grid-template-columns: minmax(0, 1fr); }
  .of-aside { display: none; }
}
@media (max-width: 575px) {
  /* нижняя шторка */
  .order-modal .modal-dialog { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; width: 100%; max-width: none; min-height: 0; display: block; }
  .order-modal.fade .modal-dialog { transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .order-modal.show .modal-dialog { transform: translateY(0); }
  .order-modal .modal-content {
    display: block; border-radius: 24px 24px 0 0;
    max-height: 92vh; max-height: 92dvh;
    overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .order-modal .modal-content::after {
    content: ""; position: absolute; top: 9px; left: 50%; z-index: 4;
    width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: #d6d6d6;
  }
  .order-form, .of-done { padding: 28px 16px 18px; }
  .of-head h3 { font-size: 20px; }
  .of-row { grid-template-columns: 1fr; }
  .of-color { flex-direction: column; height: auto; gap: 6px; padding: 10px 4px 9px; }
  .of-swatch { width: 24px; height: 24px; }
  .of-color-name { font-size: 13px; }
  .of-seg span { padding: 10px 4px; font-size: 13px; }
  .of-seg small { font-size: 11.5px; }
  .of-total strong { font-size: 22px; }
  .startorder { padding: 15px 22px; }
}

/* «Сайт сделан в Selio.» — подпись SELIO */
.selio-credit {
  font-size: 13.5px;
  color: #9aa3b2;            /* «Сайт сделан в» — спокойный серый */
}
.selio-credit__link {
  color: #111;               /* на светлом фоне — чёрное */
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.selio-credit__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.selio-credit__dot {
  color: #DC1414;            /* фирменная красная точка SELIO */
}
/* тёмный фон — «Selio» белое */
@media (prefers-color-scheme: dark) {
  .selio-credit__link { color: #fff; }
}
.dark .selio-credit__link,
[data-theme="dark"] .selio-credit__link {
  color: #fff;
}
/* подвал всегда тёмный, независимо от темы */
.selio-on-dark .selio-credit__link { color: #fff; }
.copy-right .selio-credit { display: block; margin-top: 4px; }


/* ---------- Окно заказа: круглые кнопки и поля, как на всём сайте ---------- */
.order-modal .modal-content { border-radius: 32px; }
.order-form input[type="text"], .order-form input[type="tel"] { border-radius: 40px; padding: 14px 20px; }
.order-form textarea { border-radius: 24px; padding: 14px 20px; }
.of-color { border-radius: 40px; }
.of-seg span { border-radius: 24px; }
.of-check { border-radius: 40px; padding: 13px 20px; }
.of-error { border-radius: 24px; padding: 12px 20px; }
.startorder { border-radius: 40px; height: 58px; padding: 0 32px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 12px 28px rgba(225, 6, 0, .28); }
.startorder:hover { box-shadow: none; }
.of-done .startorder { min-width: 200px; }
@media (max-width: 575px) {
  .order-modal .modal-content { border-radius: 28px 28px 0 0; }
  .of-color { border-radius: 22px; }
  .startorder { height: 54px; padding: 0 22px; font-size: 13px; }
}


/* ---------- Способ получения: карточки с иконкой и отметкой ---------- */
.of-seg { gap: 10px; }
.of-seg label { position: relative; }
.of-seg span {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 96px; padding: 14px 8px 12px; border: 1.5px solid var(--rz-line); border-radius: 22px;
  background: #fff; text-align: center; transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.of-seg span i { font-size: 18px; color: #9a9a9a; margin-bottom: 6px; transition: color .2s; }
.of-seg span b { font-size: 13.5px; font-weight: 800; color: var(--rz-ink); line-height: 1.2; }
.of-seg span small { font-size: 12px; font-weight: 600; color: var(--rz-muted); margin-top: 2px; }
.of-seg span::after {
  content: "00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px;
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rz-red); color: #fff; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s;
}
.of-seg label:hover span { border-color: #cfcfcf; }
.of-seg input:checked + span { border: 2px solid var(--rz-red); background: #fff5f4; box-shadow: 0 10px 24px rgba(225, 6, 0, .12); }
.of-seg input:checked + span i { color: var(--rz-red); }
.of-seg input:checked + span small { color: var(--rz-red); }
.of-seg input:checked + span::after { opacity: 1; transform: scale(1); }
.of-seg label:active span { transform: scale(.98); }

/* выбранный цвет — в том же стиле */
.of-color:has(input:checked) { border: 2px solid var(--rz-red); background: #fff5f4; }

/* ---------- Телефон: кнопка заказа закреплена внизу шторки ---------- */
@media (max-width: 575px) {
  .of-seg { gap: 8px; }
  .of-seg span { min-height: 88px; padding: 12px 4px 10px; border-radius: 18px; }
  .of-seg span b { font-size: 12.5px; }
  .of-seg span small { font-size: 11px; }
  .order-form { padding-bottom: 0; }
  .of-foot {
    position: sticky; bottom: 0; z-index: 5;
    margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--rz-line);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, .08);
  }
  .order-modal .modal-content { padding-bottom: 0; }
}

.startorder { white-space: nowrap; }
@media (max-width: 575px) {
  .of-foot { gap: 10px; }
  .of-total strong { font-size: 19px; }
  .of-foot .startorder { height: 52px; padding: 0 18px; font-size: 12.5px; letter-spacing: .05em; flex: none; }
}
