:root {
  --page-bg: #f6f1ef;
  --surface: #fff8f7;
  --surface-strong: #ffffff;
  --text: #071b3d;
  --accent: #d3175a;
  --accent-2: #e3296d;
  --success: #146c2e;
  --success-bg: #c9f4c9;
  --line: rgba(7, 27, 61, 0.11);
  --radius: 22px;
  --shadow: 0 14px 42px rgba(53, 18, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
}

img {
  max-width: 100%;
}

/* LANDING */
.landing-page {
  overflow-x: hidden;
}

.landing {
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff4f2;
}

.image-block {
  --seam-blend: clamp(18px, 5.5vw, 30px);
  position: relative;
  width: 100%;
  margin: calc(var(--seam-blend) * -1) 0 0;
  padding: 0;
  line-height: 0;
}

.image-block--first {
  margin-top: 0;
}

.image-block > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/*
 * Плавний перехід між готовими PNG-блоками.
 * Наступне зображення трохи перекриває попереднє, а його верхній край
 * м'яко проявляється через alpha-mask. Самі вихідні файли не змінюються.
 */
.image-block:not(.image-block--first) > img {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--seam-blend),
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--seam-blend),
    #000 100%
  );
}

/* Прозорі клікабельні області над намальованими CTA. */
.image-hotspot {
  position: absolute;
  z-index: 4;
  display: block;
  background: transparent;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}

.image-hotspot:focus-visible {
  outline: 3px solid #c91458;
  outline-offset: -3px;
}

.image-hotspot--block1-order {
  left: 6.45%;
  top: 82.0%;
  width: 84.8%;
  height: 5.55%;
}

.image-hotspot--block8-order {
  left: 7.15%;
  top: 43.75%;
  width: 52.8%;
  height: 7.15%;
}

.sticky-order {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  width: min(calc(100% - 16px), 464px);
  min-height: 68px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: rgba(255, 247, 246, 0.94);
  box-shadow: 0 10px 34px rgba(61, 19, 40, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease;
}

.sticky-order.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-order__button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #c91857, #de356f);
  -webkit-tap-highlight-color: transparent;
}

.sticky-order__button:focus-visible,
.cart-back:focus-visible,
.checkout-submit:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(211, 23, 90, 0.35);
  outline-offset: 2px;
}

.sticky-order__meta {
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-right: 4px;
  line-height: 1.05;
}

.sticky-order__meta strong {
  font-size: 18px;
  white-space: nowrap;
}

.sticky-order__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-bg);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .sticky-order {
    gap: 7px;
  }

  .sticky-order__button {
    padding-inline: 10px;
    font-size: 15px;
  }

  .sticky-order__meta {
    min-width: 86px;
  }

  .sticky-order__meta strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-order {
    transition: none;
  }
}

/* CART */
.cart-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 85% 0%, rgba(236, 101, 141, 0.16), transparent 34rem),
    linear-gradient(180deg, #fff8f6 0%, #f8eeec 100%);
}

.cart-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
}

.cart-header {
  padding: 4px 2px 18px;
}

.cart-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cart-brand {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.38em;
}

.cart-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.cart-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cart-product h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cart-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-bottom: 2px;
}

.cart-price strong {
  color: var(--accent);
  font-size: 20px;
  white-space: nowrap;
}

.cart-price span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-bg);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.form-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(72, 33, 50, 0.08);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.form-card h2 {
  margin: 0 0 15px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field,
.field--full {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 13px;
  font-weight: 750;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

.field input::placeholder {
  color: #7d8594;
}

.delivery-address-field {
  margin-top: 14px;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: rgba(211, 23, 90, 0.42);
  background: rgba(255, 244, 247, 0.98);
  box-shadow: inset 0 0 0 1px rgba(211, 23, 90, 0.12);
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.choice span {
  display: grid;
  gap: 4px;
}

.choice strong {
  font-size: 14px;
  line-height: 1.2;
}

.choice small {
  color: #596172;
  font-size: 12px;
  line-height: 1.35;
}

.checkout-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #c91857, #df386f);
  box-shadow: 0 10px 25px rgba(201, 24, 87, 0.2);
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
}

.checkout-note,
.form-status {
  margin: 0;
  padding-inline: 5px;
  color: #687082;
  font-size: 12px;
  line-height: 1.45;
}

.form-status {
  min-height: 18px;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 359px) {
  .cart-shell {
    padding-inline: 12px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .cart-product {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cart-price {
    align-items: flex-start;
  }
}
