/* ==========================================================
   Серія посуду з нержавіючої сталі — стилі.
   Палітра взята з банера: графіт, шліфована сталь, шампань, кремовий.
   ========================================================== */

@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-SemiBold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/Gilroy-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --graphite: #17171a;
  --coal: #232327;
  --coal-2: #2e2e33;
  --steel: #c7ccd1;
  --steel-light: #eceef0;
  --cream: #f4ecdd;
  --cream-2: #fbf7ef;
  --gold: #dcb878;
  --gold-deep: #b8893c;
  --ink: #1b1b1e;
  --muted: #6c6a66;
  --muted-dark: #a8a9ad;
  --ok: #3fa565;
  --r: 22px;
  /* стільники, як на поверхні посуду */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.07' d='M14 0v8.2L0 16.3v16.4l14 8.1 14-8.1V16.3L14 8.2M14 40.8V49'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-width: 480px;
  background: #0e0e10;
  font-family: 'Gilroy', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 25px;
  color: var(--ink);
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }

.page {
  position: relative;
  width: 480px;
  margin: 0 auto;
  background: var(--cream-2);
  overflow: hidden;
}

/* ---------- Чернетка цін ---------- */

.draft-strip {
  padding: 8px 14px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Заголовки та секції ---------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 31px; line-height: 36px; }
h2 { font-size: 28px; line-height: 33px; text-align: center; padding: 0 24px 22px; }

.sec { padding: 42px 0; }
.sec.dark { background: var(--graphite) var(--hex); color: #fff; }
.sec.cream { background: var(--cream); }
.sec .sub { margin: -10px 30px 24px; text-align: center; color: var(--muted); }
.sec.dark .sub { color: var(--muted-dark); }

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: block;
  width: 100%;
  height: 68px;
  padding: 0 14px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, #ecd096 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 4px 0 #7f5c22, 0 14px 26px rgba(184, 137, 60, 0.3);
  color: #1d1608;
  font-size: 19px;
  font-weight: 700;
  line-height: 68px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7f5c22; }
.btn:focus-visible, .stepper button:focus-visible, .chip:focus-visible, summary:focus-visible, .field:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold-deep);
}
.btn[disabled] { opacity: 0.7; }

/* ---------- Перший екран ---------- */

.hero-img { width: 100%; }

.intro { padding: 30px 24px 38px; background: var(--graphite) var(--hex); color: #fff; }
.intro h1 { text-align: center; }
.intro .sub { margin: 12px 6px 0; text-align: center; font-size: 18px; line-height: 26px; color: var(--steel); }

.intro-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 18px;
  padding: 14px 20px;
  border: 1px solid rgba(220, 184, 120, 0.45);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
}

.intro-price > span { font-size: 16px; line-height: 21px; color: var(--steel); }
.intro-price b { font-size: 30px; line-height: 34px; color: var(--gold); white-space: nowrap; }
.intro-price b small { font-size: 17px; font-weight: 500; color: var(--steel); }

.trust3 { display: flex; gap: 8px; margin-top: 22px; }
.trust3 li { flex: 1; text-align: center; font-size: 14px; line-height: 18px; color: var(--steel); }
.trust3 svg { display: block; width: 30px; height: 30px; margin: 0 auto 8px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Болі ---------- */

.pains { padding: 0 20px; }

.pains li {
  position: relative;
  margin-bottom: 10px;
  padding: 15px 16px 15px 56px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(40, 30, 10, 0.07);
}

.pains li b { display: block; }

.pains li:before {
  position: absolute; left: 16px; top: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #f7dfd9; color: #b53a2a;
  font-weight: 700; font-size: 19px; line-height: 25px; text-align: center;
  content: '×';
}

.answer {
  margin: 18px 20px 0;
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--graphite) var(--hex);
  color: #fff;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
}

.answer b { color: var(--gold); }

/* ---------- Три шари ---------- */

.layers { position: relative; margin: 6px 24px 0; }

.layer {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92px;
  margin-bottom: 10px;
  padding: 14px 18px 14px 96px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.layer .slab {
  position: absolute; left: 16px; top: 50%;
  width: 62px; height: 62px; margin-top: -31px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.layer.l1 .slab { background: #101012 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24.5' viewBox='0 0 28 49'%3E%3Cpath fill='none' stroke='%23c7ccd1' stroke-width='2.4' d='M14 0v8.2L0 16.3v16.4l14 8.1 14-8.1V16.3L14 8.2M14 40.8V49'/%3E%3C/svg%3E"); border: 2px solid #8c9197; }
.layer.l2 .slab { background: linear-gradient(135deg, #f4f5f6, #b9bec4 60%, #dfe2e5); }
.layer.l3 .slab { background: linear-gradient(135deg, #9aa0a7, #e3e6e9 45%, #7f858c); }

.layer b { display: block; font-size: 18px; line-height: 23px; color: #fff; }
.layer span { display: block; margin-top: 3px; font-size: 15px; line-height: 21px; color: var(--muted-dark); }

/* ---------- Каталог ---------- */

.chips { display: flex; gap: 8px; padding: 0 20px 18px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid #d9cdb6;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.chip.on { background: var(--graphite); border-color: var(--graphite); color: #fff; }

.cards { padding: 0 20px; }

.card {
  margin-bottom: 22px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(40, 30, 10, 0.12);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.card.in-cart { border-color: var(--gold-deep); }

/* стрілки для фото */
.shot-nav {
  position: absolute; top: 50%;
  width: 44px; height: 44px; margin-top: -22px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.shot-nav.prev { left: 12px; }
.shot-nav.next { right: 12px; }
.shot-nav:after {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -7px;
  border-right: 2.5px solid var(--ink); border-top: 2.5px solid var(--ink);
  transform: rotate(45deg);
  content: '';
}
.shot-nav.prev:after { margin-left: -3px; transform: rotate(-135deg); }
.shots-wrap .dots i { background: rgba(23, 23, 26, 0.25); }
.shots-wrap .dots i.on { background: var(--gold-deep); }

/* перемикач розмірів */
.size-pick { margin-top: 16px; }
.size-label { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: #4a4741; }
.size-btns { display: flex; gap: 8px; }
.size-btn {
  position: relative;
  flex: 1 1 0;
  padding: 10px 6px 9px;
  border: 2px solid #e2d8c5;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.size-btn b { display: block; font-size: 20px; line-height: 24px; }
.size-btn span { display: block; margin-top: 2px; font-size: 14px; line-height: 18px; color: var(--muted); }
.size-btn.on { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.size-btn.on span { color: var(--gold); }
.size-btn.has:after {
  position: absolute; right: -6px; top: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 13px; line-height: 22px; font-weight: 700;
  content: '✓';
}
.size-btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.size-pick.single .size-btns { display: inline-flex; }
.size-pick.single .size-btn { flex: 0 0 auto; padding: 10px 22px 9px; cursor: default; }

.in-cart-note { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ok); }

.shots-wrap { position: relative; background: var(--coal) var(--hex); }

.shots {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar { display: none; }

.shots img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
  scroll-snap-align: center;
}

/* місце під фото, якщо файла ще немає */
.shots img.is-missing {
  background: linear-gradient(135deg, #3a3a40, #1c1c20) ;
}

.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.dots i.on { background: var(--gold); }

.cat-tag {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(23, 23, 26, 0.78);
  color: #fff;
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
}

.card-body { padding: 20px 20px 18px; }
.card h3 { font-size: 23px; line-height: 28px; }
.card .lead { margin-top: 6px; color: var(--muted); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.facts li {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--steel-light);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: #33363a;
}

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

.price { line-height: 1.1; }
.price b { display: block; font-size: 28px; white-space: nowrap; }
.price s { font-size: 17px; color: #8d8a84; margin-right: 8px; }
.price em { font-style: normal; font-size: 14px; font-weight: 700; color: #b53a2a; }

.buy-action { flex: 0 0 236px; }
.btn-add { height: 58px; line-height: 58px; font-size: 17px; border-radius: 16px; box-shadow: 0 4px 0 #7f5c22; }

.stepper { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 6px; border-radius: 16px; background: var(--graphite); }

.stepper button {
  width: 46px; height: 46px;
  border: none; border-radius: 12px;
  background: var(--coal-2);
  color: #fff;
  font-size: 26px; font-weight: 500; line-height: 44px;
  cursor: pointer;
}

.stepper output { flex: 1; text-align: center; color: var(--gold); font-size: 21px; font-weight: 700; }

.specs { margin-top: 16px; border-top: 1px solid #eee6d6; }

.specs summary {
  position: relative;
  padding: 14px 34px 2px 0;
  font-size: 16px;
  font-weight: 600;
  color: #4a4741;
  list-style: none;
  cursor: pointer;
}

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

.specs summary:after {
  position: absolute; right: 4px; top: 18px;
  width: 9px; height: 9px;
  border-right: 2px solid #4a4741; border-bottom: 2px solid #4a4741;
  transform: rotate(45deg);
  content: '';
}

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

.specs dl { padding-top: 12px; }
.specs dl div { display: flex; padding: 8px 0; border-bottom: 1px solid #f1ebdd; font-size: 15px; line-height: 21px; }
.specs dl div:last-child { border-bottom: none; }
.specs dt { flex: 0 0 150px; padding-right: 12px; color: var(--muted); }
.specs dd { flex: 1; font-weight: 500; }

.more-soon {
  margin: 4px 20px 0;
  padding: 18px 20px;
  border: 2px dashed #d9cdb6;
  border-radius: var(--r);
  text-align: center;
  color: var(--muted);
}

/* ---------- Переваги серії ---------- */

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; }

.perks li {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 15px;
  line-height: 21px;
  color: var(--muted-dark);
}

.perks li b { display: block; margin-bottom: 4px; font-size: 17px; line-height: 22px; color: #fff; }
.perks svg { display: block; width: 34px; height: 34px; margin-bottom: 12px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Питання ---------- */

.faq { padding: 0 20px; }

.faq details { margin-bottom: 10px; border-radius: 18px; background: #fff; box-shadow: 0 3px 14px rgba(40, 30, 10, 0.07); }

.faq summary {
  position: relative;
  padding: 16px 56px 16px 18px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 23px;
  list-style: none;
  cursor: pointer;
}

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

.faq summary:after {
  position: absolute; right: 16px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%;
  background: var(--graphite); color: var(--gold);
  font-weight: 400; font-size: 22px; line-height: 27px; text-align: center;
  content: '+';
}

.faq details[open] summary:after { content: '–'; }
.faq details p { padding: 0 18px 16px; font-size: 16px; line-height: 24px; color: #3d3b37; }

/* ---------- Як замовити ---------- */

.howto { padding: 0 20px; counter-reset: st; }

.howto li {
  position: relative;
  margin-bottom: 10px;
  padding: 16px 16px 16px 74px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(40, 30, 10, 0.07);
  counter-increment: st;
}

.howto li b { display: block; }

.howto li:before {
  position: absolute; left: 14px; top: 50%;
  width: 44px; height: 44px; margin-top: -22px;
  border-radius: 50%;
  background: var(--graphite); color: var(--gold);
  font-weight: 700; font-size: 21px; line-height: 44px; text-align: center;
  content: counter(st);
}

/* ---------- Замовлення ---------- */

.order { padding: 42px 20px 30px; background: var(--graphite) var(--hex); color: #fff; }
.order h2 { padding: 0 0 8px; }
.order .sub { margin: 0 10px 22px; text-align: center; color: var(--muted-dark); }

.cart-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.cart-list img { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--coal-2); }
.cart-list .ci-main { flex: 1; min-width: 0; }
.cart-list .ci-main b { display: block; font-size: 15px; line-height: 19px; }
.cart-list .ci-main span { font-size: 13px; line-height: 18px; color: var(--muted-dark); }
.cart-list .stepper { flex: 0 0 112px; height: 44px; padding: 0 4px; background: rgba(0, 0, 0, 0.35); }
.cart-list .stepper button { width: 34px; height: 34px; font-size: 21px; line-height: 32px; }
.cart-list .stepper output { font-size: 17px; }
.cart-list strong { flex: 0 0 82px; text-align: right; font-size: 16px; white-space: nowrap; }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 4px 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 18px;
}

.cart-total b { font-size: 30px; color: var(--gold); }

.cart-empty {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  text-align: center;
  color: var(--steel);
}

.cart-empty a { color: var(--gold); font-weight: 600; }

.field {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: 12px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  font-size: 18px;
  color: var(--ink);
}

.field:focus { border-color: var(--gold); outline: none; }
.field::placeholder { color: #86837d; opacity: 1; }

.order .btn { margin-top: 6px; height: 74px; line-height: 74px; font-size: 20px; }

.paylist { display: flex; gap: 8px; margin-top: 26px; }
.paylist li { flex: 1; text-align: center; font-size: 14px; line-height: 18px; color: var(--steel); }
.paylist svg { display: block; width: 28px; height: 28px; margin: 0 auto 8px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

footer { padding: 22px 20px 30px; background: #0e0e10; color: #8d8f94; font-size: 14px; line-height: 24px; text-align: center; }

/* ---------- Закріплена смужка ---------- */

.sticky {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 480px;
  margin-left: -240px;
  padding: 10px 14px;
  background: rgba(23, 23, 26, 0.96);
  border-top: 1px solid rgba(220, 184, 120, 0.4);
  color: var(--steel);
  font-size: 14px;
  line-height: 18px;
  transition: transform 0.25s ease;
}

.sticky.is-hidden { transform: translateY(110%); }
.sticky b { display: block; font-size: 21px; line-height: 26px; color: #fff; white-space: nowrap; }
.sticky .btn { flex: 0 0 224px; width: 224px; height: 56px; line-height: 56px; font-size: 18px; border-radius: 16px; box-shadow: 0 3px 0 #7f5c22; }

@media (prefers-reduced-motion: reduce) {
  .sticky, .card { transition: none; }
}
.ci-size { font-style: normal; font-weight: 700; color: var(--gold); }
