/* ==========================================================================
   Ráj Kytek v2 — «классический цветочный e-shop»
   Палитра: rose, sage, gold, espresso + белый, бледно-шалфейный и розовый тинты.
   Шрифты: Playfair Display (заголовки), Manrope (всё остальное).
   ========================================================================== */

/* 1. Токены ------------------------------------------------------------- */
:root {
  --rose: #e8b4b8;
  --sage: #8a9a6b;
  --gold: #c9a97a;
  --espresso: #2b2522;

  /* Тёмный оттенок шалфея: на нём белый текст проходит контраст WCAG AA (5.8:1).
     На чистом --sage белый текст даёт только 3:1. */
  --sage-deep: #5c6a43;
  --white: #ffffff;
  --sage-tint: #f1f3ec;
  --rose-tint: #f8e8e8;
  --photo-bg: #f7f7f5;
  --line: #dde2d3;

  --text-soft: rgba(43, 37, 34, 0.72);
  --shade: rgba(43, 37, 34, 0.08);
  --shade-2: rgba(43, 37, 34, 0.14);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 4px;
  --shell: 1280px;
  --pad: 16px;
  --annc-h: 36px;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (min-width: 768px) {
  :root {
    --pad: 32px;
  }
}

/* 2. База ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--espresso);
  font: 400 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
}

body.locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skipper {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--espresso);
  color: var(--white);
  transform: translateY(-200%);
}

.skipper:focus {
  transform: none;
}

.ico {
  width: 22px;
  height: 22px;
  flex: none;
}

/* 3. Раскладка ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.block {
  padding-block: clamp(48px, 7vw, 88px);
}

.block--sage {
  background: var(--sage-tint);
}

.block--rose {
  background: var(--rose-tint);
}

/* 4. Типографика ---------------------------------------------------------- */
.title-xl,
.title-l,
.title-m {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.title-xl em,
.title-l em,
.title-m em {
  font-style: italic;
}

.title-xl {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

.title-l {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.title-m {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

/* Промо-заголовок: Manrope, uppercase, широкий трекинг */
.title-promo {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.overline {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.soft {
  color: var(--text-soft);
}

.heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.heading p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--sage);
}

.heading--left {
  text-align: left;
  margin-inline: 0;
}

.heading--left::after {
  margin-left: 0;
}

/* 5. Кнопки --------------------------------------------------------------- */
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--sage-deep);
  border-radius: var(--r);
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.act:hover {
  background: var(--espresso);
  border-color: var(--espresso);
}

.act--line {
  background: var(--white);
  color: var(--espresso);
  border-color: var(--espresso);
}

.act--line:hover {
  background: var(--espresso);
  color: var(--white);
}

.act--white {
  background: var(--white);
  color: var(--espresso);
  border-color: var(--white);
}

.act--white:hover {
  background: var(--rose-tint);
  border-color: var(--rose-tint);
  color: var(--espresso);
}

.act--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.act--ghost-white:hover {
  background: var(--white);
  color: var(--espresso);
  border-color: var(--white);
}

.act--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.85rem;
}

.act--full {
  width: 100%;
}

.act:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.act .ico {
  width: 18px;
  height: 18px;
}

/* Вторичная ссылка «Koupit ›» */
.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.more:hover {
  border-bottom-color: currentColor;
}

.more .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.more:hover .ico {
  transform: translateX(2px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 6. Поля ------------------------------------------------------------------ */
.inp {
  display: grid;
  gap: 6px;
}

.inp__label {
  font-size: 0.82rem;
  font-weight: 600;
}

.inp__req {
  margin-left: 2px;
}

.inp__ctl {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.inp__ctl:hover {
  border-color: var(--sage);
}

.inp__ctl:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px var(--sage-tint);
}

textarea.inp__ctl {
  min-height: 110px;
  resize: vertical;
}

select.inp__ctl {
  padding-right: 40px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2522' stroke-width='1.6'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}

.inp__with-ico {
  position: relative;
}

.inp__with-ico .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.inp__with-ico .inp__ctl {
  padding-left: 42px;
}

.inp__hint {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.inp__err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.inp__err::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--white);
  font-size: 0.65rem;
}

.inp.bad .inp__ctl {
  border-color: var(--espresso);
  box-shadow: 0 0 0 3px var(--rose-tint);
}

.inp.bad .inp__err {
  display: flex;
}

.tick {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  cursor: pointer;
}

.tick input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--sage-deep);
}

.tick a {
  text-underline-offset: 2px;
}

.tick.bad input {
  outline: 2px solid var(--espresso);
  outline-offset: 2px;
}

.tick .inp__err {
  grid-column: 2;
}

.tick.bad .inp__err {
  display: flex;
}

.fgrid {
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .fgrid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .fgrid .wide {
    grid-column: 1 / -1;
  }
}

/* Карточки-переключатели (способ доставки и т. п.) */
.pick {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .pick--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pick__item {
  position: relative;
  display: block;
  cursor: pointer;
}

.pick__item input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.pick__box {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.2s, background-color 0.2s;
}

.pick__box::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  background: var(--white);
}

.pick__item input:checked + .pick__box {
  border-color: var(--sage-deep);
  background: var(--sage-tint);
}

.pick__item input:checked + .pick__box::before {
  border-color: var(--sage-deep);
  box-shadow: inset 0 0 0 4px var(--white);
  background: var(--sage-deep);
}

.pick__item input:focus-visible + .pick__box {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.pick__name {
  font-weight: 600;
}

.pick__meta {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* Количество */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
}

.stepper button .ico {
  width: 16px;
  height: 16px;
}

.stepper input {
  width: 40px;
  border: 0;
  text-align: center;
  font-weight: 600;
  -moz-appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Метки */
.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-x {
  padding: 3px 9px;
  border-radius: var(--r);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--espresso);
}

.badge-x--new {
  background: var(--sage-tint);
  box-shadow: inset 0 0 0 1px var(--sage);
}

.badge-x--sale {
  background: var(--rose);
}

.badge-x--out {
  background: var(--espresso);
  color: var(--white);
}

/* 7. Фото-плейсхолдер --------------------------------------------------- */
.pic {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--photo-bg);
}

.pic--sq {
  aspect-ratio: 1;
}

.pic--wide {
  aspect-ratio: 4 / 3;
}

.pic--hero {
  aspect-ratio: auto;
  height: 100%;
}

.pic > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pic__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--sage);
}

.pic__empty svg {
  width: 48px;
  height: 72px;
}

/* Hero: мягкий градиент rose → sage на всю ширину, цветок справа от карточки-виджета */
.pic--hero {
  background: linear-gradient(110deg, var(--rose-tint) 0%, var(--rose) 45%, var(--sage) 115%);
}

.pic--hero .pic__empty {
  color: var(--white);
}

.pic--hero .pic__empty svg {
  width: 96px;
  height: 144px;
}

@media (min-width: 900px) {
  .pic--hero .pic__empty {
    justify-content: end;
    padding-right: 18%;
  }
}

.pic--thumb .pic__empty span {
  display: none;
}

.pic__empty span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--espresso);
}

/* 8. Карточка товара ------------------------------------------------------ */
.goods {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.goods__media {
  position: relative;
  display: block;
}

.goods__add {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  min-height: 42px;
  border-radius: var(--r);
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), background-color 0.2s;
}

.goods__add:hover {
  background: var(--espresso);
}

.goods__add:focus-visible,
.goods:hover .goods__add {
  opacity: 1;
  transform: none;
}

.goods__body {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 14px;
  text-align: center;
}

.goods__cat {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.goods__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}

.goods__name a {
  text-decoration: none;
}

.goods__name a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.goods__price {
  margin: 0;
  font-weight: 600;
  font-size: 1.02rem;
}

.goods__price s {
  margin-left: 6px;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.goods .more {
  position: relative;
  z-index: 2;
  color: var(--sage-deep);
}

@media (hover: hover) {
  .goods:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px var(--shade);
  }
}

/* На сенсорных экранах ховера нет — кнопка видна всегда, но компактно */
.goods__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.goods__add .ico {
  width: 18px;
  height: 18px;
}

@media (hover: none) {
  .goods__add {
    opacity: 1;
    transform: none;
    left: auto;
    width: 44px;
    min-height: 44px;
    border-radius: 50%;
  }
  .goods__add span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

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

@media (min-width: 900px) {
  .goods-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .goods-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.center-cta {
  text-align: center;
  margin-top: clamp(28px, 4vw, 44px);
}

/* 9. Шапка ---------------------------------------------------------------- */
.sitehead {
  position: sticky;
  /* Полоса объявления уезжает при скролле, остальная шапка остаётся */
  top: calc(-1 * var(--annc-h));
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.25s;
}

.sitehead.scrolled {
  box-shadow: 0 6px 20px var(--shade);
}

.annc {
  display: grid;
  place-items: center;
  height: var(--annc-h);
  margin: 0;
  padding-inline: var(--pad);
  background: var(--sage-deep);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mainrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
}

.logo-x {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-x__img {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--espresso);
  flex: none;
}

.logo-x__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-x__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.logo-x__name small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.tool:hover {
  background: var(--sage-tint);
}

.tool__text {
  display: none;
}

.tool__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--rose);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.tool--burger {
  display: inline-flex;
}

@media (min-width: 992px) {
  .tool__text {
    display: inline;
  }
  .tool--burger {
    display: none;
  }
}

/* Выпадающие окна инструментов (язык, «Moje objednávka») */
.pop {
  position: relative;
}

.pop__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 16px 36px var(--shade-2);
}

.pop__panel--wide {
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
}

.langlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.langlist button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: 0.9rem;
  text-align: left;
}

.langlist button:hover,
.langlist button[aria-current='true'] {
  background: var(--sage-tint);
}

.langlist button[aria-current='true'] {
  font-weight: 600;
}

/* Строка категорий */
.catbar {
  display: none;
  border-top: 1px solid var(--line);
}

@media (min-width: 992px) {
  .catbar {
    display: block;
  }
}

/* Выровнено по тому же контейнеру, что и логотип: первая ссылка начинается от края .shell */
.catbar__list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2px clamp(4px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.catbar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 6px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.catbar__link:hover,
.catbar__link[aria-current='page'],
.catbar__link[aria-expanded='true'] {
  border-bottom-color: var(--sage);
}

.catbar__list > li:first-child .catbar__link {
  padding-left: 0;
}

.catbar__link .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.catbar__link[aria-expanded='true'] .ico {
  transform: rotate(180deg);
}

.catbar__drop {
  position: relative;
}

.catbar__menu {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 30;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 16px 36px var(--shade-2);
  transform: translateX(-50%);
}

.catbar__menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: 0.9rem;
  text-decoration: none;
}

.catbar__menu a:hover {
  background: var(--sage-tint);
}

/* Поиск: выезжающее поле под шапкой */
.searchbar {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-block: 14px;
}

.searchbar__form {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.searchbar__form .inp__with-ico {
  flex: 1;
}

.suggest {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 0;
  list-style: none;
}

.suggest a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  text-decoration: none;
}

.suggest a:hover,
.suggest a:focus-visible {
  background: var(--sage-tint);
}

.suggest strong {
  font-weight: 600;
}

/* Боковые панели: мобильное меню (слева) и мини-корзина (справа) */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(43, 37, 34, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

.scrim.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}

.side {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 310;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  background: var(--white);
  box-shadow: 0 0 40px var(--shade-2);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.side--left {
  left: 0;
  transform: translateX(-102%);
}

.side--right {
  right: 0;
  transform: translateX(102%);
}

.side.on {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease), visibility 0s;
}

.side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
}

.side__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
}

.side__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

.side__foot {
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--sage-tint);
}

.mnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mnav > li {
  border-bottom: 1px solid var(--line);
}

.mnav a,
.mnav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

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

.mnav details[open] summary .ico {
  transform: rotate(180deg);
}

.mnav ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 14px;
}

.mnav ul a {
  padding: 9px 0;
  font-weight: 400;
}

.mlangs {
  display: flex;
  gap: 6px;
  margin: 18px 0;
}

.mlangs button {
  flex: 1;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 600;
}

.mlangs button[aria-current='true'] {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--white);
}

.mcontacts {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.mcontacts a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Мини-корзина */
.mini__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini__item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.mini__item .pic {
  border-radius: var(--r);
}

.mini__name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 0.92rem;
}

.mini__name a {
  text-decoration: none;
}

.mini__meta {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.mini__price {
  font-weight: 600;
  white-space: nowrap;
}

.mini__remove {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mini__empty {
  padding: 48px 0;
  text-align: center;
}

.mini__empty svg {
  width: 56px;
  margin: 0 auto 12px;
  color: var(--sage);
}

.mini__sum {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 1.05rem;
}

.mini__free {
  margin: 0 0 12px;
  font-size: 0.84rem;
}

.meter {
  height: 4px;
  margin: 0 0 14px;
  border-radius: 2px;
  background: var(--white);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--sage);
  transition: width 0.4s var(--ease);
}

.mini__btns {
  display: grid;
  gap: 8px;
}

/* 10. Hero с виджетом подбора ------------------------------------------- */
.stage {
  position: relative;
}

.stage__photo {
  height: clamp(260px, 52vw, 600px);
}

.stage__photo .pic__empty span::after {
  content: attr(data-note);
}

.finder {
  position: relative;
  z-index: 2;
  margin: -40px var(--pad) 0;
  padding: 24px 20px;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 18px 40px var(--shade-2);
}

@media (min-width: 900px) {
  .stage {
    min-height: 600px;
  }
  .stage__photo {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .stage__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
  }
  .finder {
    width: 440px;
    margin: 0;
    padding: 36px 32px;
  }
}

.finder__title {
  margin-bottom: 8px;
}

.finder__sub {
  margin: 0 0 22px;
  color: var(--text-soft);
}

.finder .fgrid {
  gap: 14px;
  margin-bottom: 18px;
}

/* 11. Секции главной ----------------------------------------------------- */
/* Kytice týdne */
.promo {
  display: grid;
  overflow: hidden;
  border-radius: var(--r);
}

@media (min-width: 900px) {
  .promo {
    grid-template-columns: 1fr 1fr;
  }
}

.promo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--rose-tint);
}

.promo__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.promo__price s {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
}

.promo__off {
  padding: 4px 10px;
  border-radius: var(--r);
  background: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.promo__text p {
  margin: 0;
  max-width: 30em;
}

.promo .pic {
  aspect-ratio: auto;
  min-height: 320px;
  height: 100%;
}

/* Цена: 4 плитки */
.ptiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 900px) {
  .ptiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.ptile {
  display: grid;
  gap: 12px;
  padding: 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ptile:hover {
  border-color: var(--sage);
  box-shadow: 0 10px 24px var(--shade);
}

.ptile__name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.ptile .more {
  justify-self: center;
  color: var(--sage-deep);
}

/* Отзывы — горизонтальный ряд */
.voices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.voices-head .heading {
  margin-bottom: 0;
}

.arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.2s, background-color 0.2s;
}

.arrow-btn:hover {
  border-color: var(--sage-deep);
}

.arrow-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.voices {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 84%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

@media (min-width: 700px) {
  .voices {
    grid-auto-columns: calc((100% - 32px) / 3);
  }
}

.voice {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}

.voice__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}

.voice__stars svg {
  width: 16px;
  height: 16px;
}

.voice blockquote {
  margin: 0;
  flex: 1;
}

.voice figcaption {
  font-weight: 600;
  font-size: 0.9rem;
}

.voice figcaption span {
  display: block;
  font-weight: 400;
  color: var(--text-soft);
}

/* Proč Ráj Kytek */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .why {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why li {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.why__ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--sage-deep);
}

.why__ico svg {
  width: 28px;
  height: 28px;
}

.why strong {
  display: block;
  font-weight: 600;
}

.why span {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Две большие плитки */
.duo {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.duo__tile {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--r);
}

.duo__tile .pic {
  aspect-ratio: 4 / 3;
}

.duo__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 16px 22px;
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 10px 24px var(--shade);
}

.duo__label .more {
  color: var(--sage-deep);
}

.duo__tile:hover .more {
  border-bottom-color: currentColor;
}

/* Оливковая полоса */
.socband {
  background: var(--sage-deep);
  color: var(--white);
  padding-block: clamp(36px, 5vw, 56px);
}

.socband__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.socband .title-l {
  color: var(--white);
}

/* 12. Футер --------------------------------------------------------------- */
.sitefoot {
  background: var(--sage-tint);
  padding-top: clamp(48px, 6vw, 72px);
}

.sitefoot > .shell {
  font-size: 0.92rem;
}

.sitefoot__grid {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .sitefoot__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.sitefoot__brand {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .sitefoot__brand {
    grid-column: auto;
  }
}

.sitefoot__brand p {
  margin: 14px 0 18px;
  max-width: 22em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

.socials-x {
  display: flex;
  gap: 8px;
}

.socials-x a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.2s;
}

.socials-x a:hover {
  border-color: var(--sage-deep);
}

.socials-x svg {
  width: 20px;
  height: 20px;
}

.sitefoot__grid h2 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sitefoot__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sitefoot > .shell a {
  text-decoration: none;
}

.sitefoot > .shell a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sitefoot__grid ul button {
  font-size: 0.92rem;
  text-align: left;
}

.sitefoot__grid ul button:hover {
  text-decoration: underline;
}

.sitefoot__info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.sitefoot__info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sitefoot__info .ico {
  width: 18px;
  height: 18px;
  color: var(--sage-deep);
}

.sitefoot__info [data-bind-hours] span + span::before {
  content: ' · ';
}

.sitefoot__copy {
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* 13. Всплывающие элементы ------------------------------------------------ */
.cookiebar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 20px 50px var(--shade-2);
}

@media (min-width: 768px) {
  .cookiebar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cookiebar p {
  margin: 0;
  font-size: 0.88rem;
}

.cookiebar .btn-row {
  flex-wrap: nowrap;
}

.note-pop {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 400;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--r);
  background: var(--espresso);
  color: var(--white);
  font-size: 0.9rem;
  transform: translate(-50%, 160%);
  transition: transform 0.3s var(--ease);
}

.note-pop.on {
  transform: translate(-50%, 0);
}

/* 14. Styleguide ---------------------------------------------------------- */
.sg-part {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.sg-part > h2 {
  margin: 0 0 24px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sg-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.sg-color {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  font-size: 0.82rem;
}

.sg-color i {
  display: block;
  height: 84px;
  background: var(--c);
}

.sg-color div {
  padding: 10px 12px;
}

.sg-color code {
  color: var(--text-soft);
}

.sg-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.sg-stack {
  display: grid;
  gap: 22px;
}

/* 15. Движение ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .goods:hover {
    transform: none;
  }
}

/* Только на десктопе (на мобильных эти пункты есть в боковом меню) */
@media (max-width: 991px) {
  .desk-only {
    display: none !important;
  }
}

/* ==========================================================================
   16. Внутренние страницы магазина
   ========================================================================== */
.crumbs {
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.pagehead {
  padding: 18px 0 28px;
}

.pagehead p {
  margin: 10px 0 0;
  max-width: 46em;
  color: var(--text-soft);
}

/* Каталог: фильтры слева, товары справа */
.shop {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

@media (min-width: 992px) {
  .shop {
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
  }
}

.filters-x {
  display: grid;
  gap: 26px;
}

.filters-x fieldset {
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.filters-x legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.optlist {
  display: grid;
  gap: 4px;
}

.optlist label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 0.92rem;
  cursor: pointer;
}

.optlist input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--sage-deep);
}

.optlist small {
  margin-left: auto;
  color: var(--text-soft);
}

.range {
  display: grid;
  gap: 14px;
}

.range label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
}

.range__val {
  font-weight: 600;
}

.range input[type='range'] {
  width: 100%;
  accent-color: var(--sage-deep);
}

@media (max-width: 991px) {
  .filters-x {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 310;
    max-height: 86vh;
    overflow-y: auto;
    padding: 0 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
    background: var(--white);
    box-shadow: 0 -10px 40px var(--shade-2);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .filters-x.on {
    transform: none;
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }
}

.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.sheet-foot {
  position: sticky;
  bottom: calc(-20px - env(safe-area-inset-bottom));
  padding: 12px 0;
  background: var(--white);
}

@media (min-width: 992px) {
  .sheet-head,
  .sheet-foot,
  .filters-open {
    display: none !important;
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.toolbar .inp {
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
}

.toolbar select.inp__ctl {
  min-height: 42px;
  width: auto;
}

.found {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.empty-x {
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  text-align: center;
}

.empty-x svg {
  width: 48px;
  height: 72px;
  margin: 0 auto 14px;
  color: var(--sage);
}

/* Детальная страница */
.pdp {
  display: grid;
  gap: 32px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

@media (min-width: 900px) {
  .pdp {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .pdp__buy {
    position: sticky;
    top: 150px;
  }
}

.gallery-x {
  display: grid;
  gap: 12px;
}

.gallery-x__main {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.gallery-x__main::-webkit-scrollbar {
  display: none;
}

.gallery-x__main > * {
  scroll-snap-align: start;
}

.gallery-x__thumbs {
  display: flex;
  gap: 10px;
}

.gallery-x__thumbs button {
  width: 76px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.gallery-x__thumbs button[aria-current='true'] {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 1px var(--sage-deep);
}

.pdp__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 22px;
  font-size: 1.6rem;
  font-weight: 600;
}

.pdp__price s {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-soft);
}

.pdp__group {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.pdp__group > legend,
.pdp__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sizes .pick__box {
  padding: 12px 10px;
  text-align: center;
  justify-items: center;
}

.sizes .pick__box::before {
  display: none;
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 14px;
}

.buy-row .act {
  flex: 1 1 200px;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sage-deep);
  text-decoration: none;
}

.tg-link:hover {
  text-decoration: underline;
}

.tg-link .ico {
  width: 18px;
  height: 18px;
}

.assure {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.assure li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assure .ico {
  color: var(--sage-deep);
}

.cardbox {
  margin: 0 0 18px;
}

.cardbox textarea {
  margin-top: 10px;
}

.counter-x {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  text-align: right;
  color: var(--text-soft);
}

/* Вкладки */
.tabs-x {
  border-top: 1px solid var(--line);
}

.tabs-x__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tabs-x__list button {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs-x__list button[aria-selected='true'] {
  border-bottom-color: var(--sage-deep);
}

.tabs-x__panel {
  max-width: 760px;
  padding: 22px 0 8px;
}

.tabs-x__panel ul {
  padding-left: 20px;
}

/* Страница корзины */
.cartpage {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

@media (min-width: 992px) {
  .cartpage {
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
  }
}

.cartrows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cartrow {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .cartrow {
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 24px;
  }
}

.cartrow .pic {
  border-radius: var(--r);
}

.cartrow__name {
  margin: 0 0 4px;
  font-weight: 600;
}

.cartrow__name a {
  text-decoration: none;
}

.cartrow__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.cartrow__qty {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 2;
}

@media (min-width: 640px) {
  .cartrow__qty {
    grid-column: auto;
  }
}

.cartrow__total {
  grid-column: 2;
  font-weight: 600;
}

@media (min-width: 640px) {
  .cartrow__total {
    grid-column: auto;
    min-width: 90px;
    text-align: right;
  }
}

.linkbtn {
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Сводка заказа */
.summary-x {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sage-tint);
}

@media (min-width: 992px) {
  .summary-x--sticky {
    position: sticky;
    top: 150px;
  }
}

.summary-x h2 {
  margin: 0 0 16px;
}

.sumlines {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.sumlines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sumlines dt {
  color: var(--text-soft);
}

.sumlines dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.sumlines .sumtotal {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.sumlines .sumtotal dt {
  color: var(--espresso);
  font-weight: 600;
}

.sumitems {
  list-style: none;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.sumitems li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sumnote {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Оформление заказа */
.checkout-x {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

@media (min-width: 992px) {
  .checkout-x {
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
  }
}

.cobox {
  margin: 0 0 18px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

@media (min-width: 640px) {
  .cobox {
    padding: 26px 28px;
  }
}

.cobox > legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  margin-left: -8px;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.cobox__n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
}

.cobox .fgrid {
  margin-top: 8px;
}

.slots-x {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-x {
  position: relative;
}

.slot-x input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.slot-x span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 500;
}

.slot-x input:checked + span {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--white);
}

.slot-x input:focus-visible + span {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.alert-x {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--rose-tint);
  border: 1px solid var(--rose);
  font-weight: 600;
  font-size: 0.92rem;
}

.alert-x--ok {
  background: var(--sage-tint);
  border-color: var(--sage);
}

.paybadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.paybadges span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--white);
}

.done-x {
  max-width: 640px;
  margin: 0 auto;
  padding-block: clamp(40px, 7vw, 88px);
  text-align: center;
}

.done-x__num {
  display: inline-block;
  margin: 10px 0 24px;
  padding: 10px 20px;
  border: 1px solid var(--sage-deep);
  border-radius: var(--r);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.done-x .summary-x {
  text-align: left;
  margin: 24px 0;
}