/* ============ Ritai — стилі ============ */
:root {
  --bg: #f7f4ee;
  --surface: #fdfcf9;
  --ink: #1f1a13;
  --ink-soft: #6f675a;
  --line: #e3dccd;
  --brass: #a8813f;
  --brass-dark: #8a6a32;
  --brass-soft: #c3a068;
  --radius: 2px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; }

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

button { font-family: inherit; }

::selection { background: var(--brass-soft); color: var(--ink); }

/* ============ Дрібна типографіка ============ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.section-head { max-width: 560px; margin: 0 0 56px; }

.section-head--center { margin-inline: auto; text-align: center; }

.section-head__title {
  font-size: clamp(34px, 4.2vw, 50px);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.section-head__note { color: var(--ink-soft); font-size: 15px; }

/* ============ Шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav { display: flex; gap: 36px; }

.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: color 0.25s var(--ease);
}

.nav__link:hover { color: var(--ink); }

.fav-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.fav-btn:hover { border-color: var(--brass); background: var(--surface); }

.fav-btn svg { width: 18px; height: 18px; }

.fav-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--brass);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ============ Головний банер ============ */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 84px;
}

.hero__title {
  font-size: clamp(44px, 6vw, 74px);
  letter-spacing: 0.005em;
  margin-bottom: 24px;
}

.hero__title em { font-style: italic; color: var(--brass); }

.hero__subtitle {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.hero__decor { display: grid; place-items: center; }

.hero__lamp { position: relative; width: min(280px, 56vw); }

.lamp-svg { width: 100%; height: auto; position: relative; z-index: 1; }

/* Абажур м'яко загорається при наведенні на банер */
.lamp-fill {
  fill: #f2d9a4;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero:hover .lamp-fill { opacity: 0.45; }

.lamp-glow {
  position: absolute;
  inset: -12% -22%;
  background: radial-gradient(ellipse at 50% 32%, rgba(195, 160, 104, 0.32), transparent 62%);
  opacity: 0.5;
  transition: opacity 1s var(--ease);
}

.hero:hover .lamp-glow { opacity: 1; }

/* ============ Кнопки та посилання ============ */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--primary { background: var(--ink); color: var(--bg); }

.btn--primary:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }

.btn--primary:disabled { opacity: 0.55; cursor: wait; }

.btn--full { width: 100%; text-align: center; }

.link-arrow {
  position: relative;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding-bottom: 6px;
  transition: color 0.25s var(--ease);
}

.link-arrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover { color: var(--brass-dark); }

.link-arrow:hover::after { transform: scaleX(0.55); }

/* ============ Переваги ============ */
.features { border-bottom: 1px solid var(--line); background: var(--surface); }

.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.feature { padding: 44px 32px; border-left: 1px solid var(--line); }

.feature:first-child { border-left: none; }

.feature__icon { width: 26px; height: 26px; color: var(--brass); margin-bottom: 18px; }

.feature h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: 0.01em; }

.feature p { font-size: 13px; font-weight: 300; color: var(--ink-soft); }

/* ============ Каталог ============ */
.catalog { padding: 104px 0; }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 28px;
}

.catalog__empty {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 300;
  padding: 60px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ============ Пошук і фільтри ============ */
.filters { margin-bottom: 40px; }

.filters__row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.search {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}

.search__icon {
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--ink-soft);
  pointer-events: none;
}

.search input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 44px 14px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.search input::placeholder { color: #a89e8d; }

.search input:focus { border-color: var(--brass); }

/* Прибираємо власний хрестик браузера — маємо свій */
.search input::-webkit-search-cancel-button { display: none; }

.search__clear {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.search__clear svg { width: 14px; height: 14px; }

.search__clear:hover { color: var(--ink); background: var(--bg); }

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

.sort__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ============ Випадаюче меню ============ */
.dropdown { position: relative; }

.dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 210px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.dropdown__toggle:hover { border-color: var(--brass-soft); }

.dropdown.is-open .dropdown__toggle { border-color: var(--brass); background: var(--bg); }

.dropdown__toggle:focus-visible { outline: none; border-color: var(--brass); }

.dropdown__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
}

.dropdown.is-open .dropdown__arrow { transform: rotate(180deg); color: var(--brass-dark); }

.dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  list-style: none;
  padding: 6px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(31, 26, 19, 0.14);
  animation: dropdown-in 0.22s var(--ease);
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.dropdown__option {
  position: relative;
  padding: 11px 14px 11px 34px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.dropdown__option:hover,
.dropdown__option.is-focused { background: var(--bg); color: var(--ink); }

.dropdown__option.is-selected { color: var(--ink); font-weight: 600; }

/* Галочка біля обраного варіанта */
.dropdown__option.is-selected::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--brass-dark);
  border-bottom: 1.5px solid var(--brass-dark);
  transform: translateY(-70%) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .dropdown__menu { animation: none; }
}

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

.chips[hidden] { display: none; }

/* Категорії — головний фільтр, тому виразніші за розміри */
.chips--category { margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.chips--category .chip { font-size: 12.5px; padding: 10px 20px; }

.chips--category .chip.is-active { background: var(--brass-dark); border-color: var(--brass-dark); }

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.chip:hover { border-color: var(--brass-soft); color: var(--ink); }

.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.chip__count { opacity: 0.55; margin-left: 5px; font-size: 11px; }

.filters__count {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--brass-soft);
  box-shadow: 0 18px 44px rgba(31, 26, 19, 0.08);
  transform: translateY(-4px);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3.6;
  background: linear-gradient(165deg, #efeadf, #e6dfd0);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--brass-soft);
}

.card__placeholder svg { width: 64px; height: 64px; opacity: 0.7; }

.card__like {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(253, 252, 249, 0.94);
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}

.card__like svg { width: 18px; height: 18px; }

.card__like:hover { transform: scale(1.08); color: var(--brass-dark); border-color: var(--brass-soft); }

.card__like.is-active { color: var(--brass-dark); border-color: var(--brass-soft); }

.card__like.is-active svg path { fill: var(--brass-dark); stroke: var(--brass-dark); }

.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }

.card__title { font-size: 22px; letter-spacing: 0.01em; margin-bottom: 8px; }

.card__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__specs {
  list-style: none;
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
}

.card__specs li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__price { font-family: var(--font-serif); font-size: 25px; font-weight: 500; }

.card__price small { font-size: 15px; color: var(--ink-soft); margin-left: 2px; }

.card__price-ask {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.card__pick {
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card__pick:hover { background: var(--ink); color: var(--bg); }

/* ============ Лічильник кількості ============ */
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}

.qty[hidden] { display: none; }

.qty__btn {
  width: 34px;
  height: 38px;
  border: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
}

.qty__btn:hover { background: var(--brass-dark); }

.qty__input {
  width: 42px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

.qty__input:focus { background: var(--bg); }

/* ============ Довантаження товарів ============ */
.load-more { position: relative; display: grid; justify-items: center; margin-top: 44px; }

/* Невидима мітка трохи вище кнопки — коли вона потрапляє у видиму
   область, підвантажується наступна порція товарів */
.load-more__sentinel { position: absolute; top: -420px; height: 1px; width: 1px; }

.btn--ghost-line {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--ghost-line:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.card--enter { animation: card-in 0.45s var(--ease) both; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card--enter { animation: none; }
}

/* ============ Як замовити ============ */
.how { padding: 0 0 104px; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.how-step { padding: 48px 36px; border-left: 1px solid var(--line); }

.how-step:first-child { border-left: none; }

.how-step__num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  font-style: italic;
  color: var(--brass-soft);
  line-height: 1;
  margin-bottom: 18px;
}

.how-step h3 { font-size: 21px; margin-bottom: 8px; }

.how-step p { font-size: 13.5px; font-weight: 300; color: var(--ink-soft); }

/* ============ Про нас ============ */
.about { padding: 96px 0; background: var(--surface); border-block: 1px solid var(--line); }

.about__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 72px;
  align-items: center;
}

.about__text .section-head__title { margin-bottom: 20px; }

.about__text p { color: var(--ink-soft); font-weight: 300; margin-bottom: 14px; max-width: 560px; }

.about__stats { display: grid; }

.about__stat {
  text-align: left;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.about__stat:last-child { border-bottom: none; }

.about__stat strong {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--brass-dark);
  min-width: 118px;
}

.about__stat span { font-size: 13px; color: var(--ink-soft); }

/* ============ Відгуки ============ */
.reviews { padding: 96px 0; background: var(--surface); border-block: 1px solid var(--line); }

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.reviews__head .section-head__title { margin-bottom: 0; }

.reviews__badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.reviews__badge-score {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--brass-dark);
  line-height: 1;
}

.reviews__badge-text { font-size: 12.5px; font-weight: 300; color: var(--ink-soft); line-height: 1.45; }

.reviews__badge-text strong { display: block; font-weight: 600; color: var(--ink); font-size: 13px; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.review:hover { border-color: var(--brass-soft); box-shadow: 0 14px 34px rgba(31, 26, 19, 0.07); }

.review__stars { display: flex; gap: 3px; margin-bottom: 14px; }

.review__stars svg { width: 15px; height: 15px; fill: var(--brass); }

.review__text {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.review__text::before { content: '«'; color: var(--brass-soft); margin-right: 1px; }

.review__text::after { content: '»'; color: var(--brass-soft); margin-left: 1px; }

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

.review__author { font-size: 13px; font-weight: 600; }

.review__date { display: block; font-size: 11.5px; font-weight: 300; color: var(--ink-soft); margin-top: 2px; }

.review__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.review__link svg { width: 11px; height: 11px; }

.review__link:hover { color: var(--brass-dark); }

.reviews__more { display: grid; justify-items: center; margin-top: 44px; }

/* ============ Питання та відповіді ============ */
.faq { padding: 96px 0; }

.faq__list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  transition: color 0.25s var(--ease);
}

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

.faq__item summary:hover { color: var(--brass-dark); }

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 32px;
  width: 11px;
  height: 11px;
  border-right: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] summary::after { transform: rotate(-135deg); top: 36px; }

.faq__item p {
  padding: 0 40px 24px 0;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 14.5px;
}

/* ============ Підвал ============ */
.footer { background: var(--ink); color: #b5ac9e; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 44px;
}

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass-soft);
  margin-bottom: 16px;
}

.footer__col p { font-size: 14px; font-weight: 300; margin-bottom: 6px; }

.footer__col a { color: #e8e2d6; text-decoration: none; transition: color 0.25s var(--ease); }

.footer__col a:hover { color: var(--brass-soft); }

.logo--light { color: #f2ede3; display: inline-block; margin-bottom: 10px; }

.footer__bottom {
  border-top: 1px solid rgba(232, 226, 214, 0.14);
  padding: 20px 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* ============ Плаваюча кнопка ============ */
.order-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  border: none;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(31, 26, 19, 0.35);
  animation: fab-in 0.4s var(--ease);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.order-fab:hover { background: var(--brass-dark); transform: translateY(-3px); }

@keyframes fab-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.order-fab__count {
  background: var(--brass);
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}

/* ============ Модальне вікно ============ */
/* ============ Перегляд фото на весь екран ============ */
.card__media--zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 11, 0.9);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: fade-in 0.25s var(--ease);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: lightbox-in 0.3s var(--ease);
}

@keyframes lightbox-in {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #f2ede3;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(242, 237, 227, 0.35);
  border-radius: 50%;
  background: rgba(20, 16, 11, 0.5);
  color: #f2ede3;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__close:hover { background: var(--brass-dark); border-color: var(--brass-dark); }

@media (prefers-reduced-motion: reduce) {
  .lightbox__backdrop, .lightbox__figure { animation: none; }
}

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 19, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px 36px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  animation: modal-in 0.35s var(--ease);
}

@keyframes modal-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.modal__close:hover { border-color: var(--brass); color: var(--ink); }

.modal__title { font-size: 34px; margin-bottom: 20px; }

.modal__items { list-style: none; display: grid; margin-bottom: 14px; border-top: 1px solid var(--line); }

.modal__items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.modal__items .item-main { flex: 1; min-width: 0; }

.modal__items .item-name { font-weight: 500; display: block; }

.modal__items .item-unit {
  display: block;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: 2px;
}

.modal__items .item-price {
  font-family: var(--font-serif);
  font-size: 17px;
  white-space: nowrap;
  min-width: 82px;
  text-align: right;
}

/* Компактніший лічильник у вікні заявки */
.modal__items .qty { border-color: var(--line); }

.modal__items .qty__btn {
  width: 28px;
  height: 32px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.modal__items .qty__btn:hover { background: var(--ink); color: var(--bg); }

.modal__items .qty__input { width: 32px; height: 32px; font-size: 13px; }

.modal__total-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.modal__total-note--after {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11.5px;
  font-weight: 300;
  margin: 6px 0 0;
}

.modal__items .item-remove {
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s var(--ease);
}

.modal__items .item-remove:hover { color: var(--brass-dark); }

.modal__total {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 26px;
}

/* ============ Форма ============ */
.order-form { display: grid; gap: 18px; }

.order-form__field { display: grid; gap: 7px; }

.order-form__field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.label-opt { text-transform: none; letter-spacing: 0.02em; font-weight: 400; opacity: 0.7; }

.order-form__field input,
.order-form__field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s var(--ease);
  resize: vertical;
}

.order-form__field input::placeholder,
.order-form__field textarea::placeholder { color: #a89e8d; font-weight: 300; }

.order-form__field input:focus,
.order-form__field textarea:focus { border-color: var(--brass); }

.order-form__field input.is-invalid { border-color: #b0563f; }

.order-form__error { font-size: 12px; color: #b0563f; }

.order-form__note {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0.75;
}

/* ============ Успіх / помилка ============ */
.result { text-align: center; padding: 18px 0 8px; display: grid; gap: 14px; justify-items: center; }

.result .modal__title { margin-bottom: 0; }

.result__icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-dark);
  display: grid;
  place-items: center;
}

.result__icon svg { width: 26px; height: 26px; }

.result__icon--error { border-color: #b0563f; color: #b0563f; }

.result p { color: var(--ink-soft); font-weight: 300; max-width: 320px; margin-bottom: 8px; }

/* ============ Адаптивність ============ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 64px; }
  .eyebrow { justify-content: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__decor { order: -1; }
  .hero__lamp { width: min(180px, 46vw); }
  .section-head { text-align: center; margin-inline: auto; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-top: 1px solid var(--line); }
  .feature:nth-child(-n+2) { border-top: none; }
  .feature:nth-child(odd) { border-left: none; }
  .how__steps { grid-template-columns: 1fr; }
  .how-step { border-left: none; border-top: 1px solid var(--line); }
  .how-step:first-child { border-top: none; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .footer__bottom { text-align: center; }
  .nav { display: none; }
}

@media (max-width: 520px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-left: none; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: none; }
  .catalog { padding: 72px 0; }
  .catalog__grid { grid-template-columns: 1fr; }
  .modal__dialog { padding: 32px 22px 26px; }
  .order-fab { right: 16px; bottom: 16px; left: 16px; justify-content: center; }
}
