@font-face {
  font-family: "Korzina Display";
  src: url("assets/fonts/korzina-display-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Korzina Display";
  src: url("assets/fonts/korzina-display-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --forest: #2d2d2d;
  --forest-deep: #2d2d2d;
  --leaf: #fff4e1;
  --leaf-bright: #fff4e1;
  --cream: #fff4e1;
  --warm: #fff4e1;
  --ink: #2d2d2d;
  --white: #fff4e1;
  --muted: rgba(255, 244, 225, 0.76);
  --line: rgba(255, 244, 225, 0.22);
  --ink-blue: #1f63d6;
  --stamp-size: clamp(42px, 12.8vw, 54px);
  --stamp-right: clamp(10px, 3.6vw, 16px);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  --safe-top: max(14px, env(safe-area-inset-top));
  --safe-bottom: max(10px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background: #2d2d2d;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  overscroll-behavior-y: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 244, 225, 0.08), transparent 34%),
    #2d2d2d;
  color: var(--white);
  font-family: "Korzina Display", "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--leaf-bright);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, 500px);
  height: 100dvh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--forest-deep);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) 16px 12px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.78), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 225, 0.3);
  border-radius: 50%;
  background: rgba(255, 244, 225, 0.14);
  backdrop-filter: blur(12px);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  font-size: 13px;
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 800;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 244, 225, 0.24);
  border-radius: 14px;
  background: rgba(45, 45, 45, 0.54);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.screen-exit {
  position: absolute;
  top: calc(var(--safe-top) + 80px);
  left: 16px;
  z-index: 12;
}

.screen-exit svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.sound-toggle svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sound-toggle svg > path:first-child {
  fill: currentColor;
  stroke: none;
}

.sound-toggle .sound-wave {
  opacity: 0;
}

.sound-toggle[aria-pressed="true"] .sound-wave {
  opacity: 1;
}

.sound-toggle[aria-pressed="true"] .mute-line {
  opacity: 0;
}

.menu-toggle {
  align-content: center;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 2.5px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  inset: 0;
  z-index: 25;
  padding: calc(var(--safe-top) + 62px) 12px calc(88px + var(--safe-bottom));
  background: rgba(20, 20, 20, 0.62);
  backdrop-filter: blur(16px);
}

.menu-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: clamp(14px, 2.6vh, 24px);
  overflow-y: auto;
  border: 1px solid rgba(255, 244, 225, 0.18);
  border-radius: 28px;
  background: rgba(45, 45, 45, 0.96);
  box-shadow: var(--shadow);
}

.menu-kicker {
  margin: 0;
  color: rgba(255, 244, 225, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-card nav {
  display: grid;
  margin: clamp(8px, 2vh, 18px) 0 auto;
}

.menu-card nav button {
  padding: clamp(7px, 1.55vh, 14px) 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 244, 225, 0.14);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: clamp(17px, min(6vw, 3.1vh), 27px);
  font-weight: 680;
  text-align: left;
}

.menu-card nav button::after {
  content: "↗";
  float: right;
  color: var(--leaf-bright);
  font-size: 16px;
  font-weight: 400;
}

.reels-stage,
.reel-screen {
  width: 100%;
  height: 100%;
}

.reels-stage {
  position: relative;
  background: var(--forest-deep);
}

.reel-screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: end;
  padding: calc(var(--safe-top) + 92px) 18px calc(104px + var(--safe-bottom));
  isolation: isolate;
}

.reel-screen.is-active {
  display: flex;
  animation: reveal 300ms ease both;
}

.reel-media,
.reel-media video,
.media-placeholder,
.category-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reel-media {
  z-index: -2;
  overflow: hidden;
  isolation: isolate;
  background: #2d2d2d;
}

.reel-media video {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  background: #2d2d2d;
  transition: opacity 120ms ease;
}

.reel-media video.is-switching {
  opacity: 0;
}

.start-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.start-video-overlay[hidden] {
  display: none;
}

.reel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.42) 0%, transparent 24%, transparent 44%, rgba(20, 20, 20, 0.5) 68%, rgba(20, 20, 20, 0.96) 100%),
    linear-gradient(90deg, rgba(20, 20, 20, 0.36), transparent 72%);
}

.media-placeholder {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 244, 225, 0.72), transparent 25%),
    linear-gradient(145deg, #555, #2d2d2d 54%, #171717);
}

.reel-progress {
  position: absolute;
  top: calc(var(--safe-top) + 68px);
  right: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.reel-progress span,
.reel-progress i {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 244, 225, 0.32);
}

.reel-progress span {
  background: var(--leaf-bright);
}

.reel-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  scrollbar-width: none;
}

.reel-copy::-webkit-scrollbar,
.choice-row::-webkit-scrollbar,
.taste-row::-webkit-scrollbar {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 14px;
  font-size: clamp(38px, 12.5vw, 58px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 span {
  color: var(--leaf-bright);
  font-weight: 400;
}

.start-title {
  position: absolute;
  top: var(--flat-title-center-y, 126px);
  right: 16px;
  left: 16px;
  z-index: 3;
  margin: 0;
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  white-space: nowrap;
}

.natural-stamp {
  position: absolute;
  top: calc(var(--flat-video-edge-y, 232px) + 12px);
  right: var(--stamp-right);
  z-index: 6;
  display: grid;
  width: var(--stamp-size);
  height: var(--stamp-size);
  place-content: center;
  color: var(--ink-blue);
  pointer-events: none;
  text-align: center;
  transform: rotate(-9deg);
}

.natural-stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink-blue);
}

.natural-stamp .stamp-ring {
  stroke-width: 3.4;
  opacity: 0.92;
}

.natural-stamp .stamp-dots {
  stroke-width: 5;
  stroke-dasharray: 1 6;
  stroke-linecap: round;
  opacity: 0.5;
}

.natural-stamp .stamp-inner {
  stroke-width: 1.4;
  opacity: 0.82;
}

.natural-stamp strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(15px, 4.6vw, 19px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stamp-word {
  position: absolute;
  z-index: 5;
  margin: 0;
  color: var(--ink-blue);
  pointer-events: none;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-transform: uppercase;
  top: calc(var(--flat-video-edge-y, 232px) + 78px);
  right: calc(var(--stamp-right) + var(--stamp-size) / 2);
  transform: translateX(50%);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.35em;
}

.reel-screen.is-active .natural-stamp {
  animation: stamp-in 420ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1.15) both;
}

.flat-screen-title {
  position: absolute;
  top: var(--flat-title-center-y, 126px);
  right: 16px;
  left: 16px;
  z-index: 3;
  margin: 0;
  font-size: clamp(34px, 10vw, 46px);
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  white-space: nowrap;
}

.flat-screen-title.is-long {
  font-size: clamp(25px, 7vw, 34px);
}

.reel-description {
  max-width: 390px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.buy-button,
.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 0;
  border-radius: 18px;
  padding: 0 22px;
  background: var(--leaf-bright);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.buy-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.back-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 244, 225, 0.76);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.back-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.category-backdrop {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 244, 225, 0.2), transparent 28%),
    radial-gradient(circle at 80% 54%, rgba(255, 244, 225, 0.12), transparent 32%),
    linear-gradient(160deg, #4b4b4b, #2d2d2d 72%);
}

.reel-screen[data-screen="categories"] {
  align-items: stretch;
}

.category-copy {
  display: flex;
  max-height: none;
  flex-direction: column;
  overflow: visible;
  text-align: center;
}

.category-copy .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: clamp(12px, 3.6vw, 15px);
  letter-spacing: 0.2em;
}

.category-copy .eyebrow::before,
.category-copy .eyebrow::after {
  content: "";
  width: clamp(18px, 9vw, 54px);
  height: 1px;
  background: rgba(255, 244, 225, 0.4);
}

.category-copy h2 {
  max-width: 420px;
  margin: 0 auto clamp(18px, 3.4vh, 32px);
}

.category-list {
  display: grid;
  flex: 1;
  align-content: center;
  gap: clamp(10px, 1.7vh, 16px);
  grid-auto-rows: clamp(96px, 17vh, 156px);
}

.category-list button {
  display: grid;
  grid-template-columns: clamp(72px, 22vw, 96px) 1fr 44px;
  min-height: clamp(88px, 14.5vh, 132px);
  align-items: stretch;
  gap: 16px;
  border: 1px solid rgba(255, 244, 225, 0.18);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 244, 225, 0.1);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(16px);
}

.category-list button:active {
  transform: scale(0.985);
  border-color: rgba(255, 244, 225, 0.32);
  background: rgba(255, 244, 225, 0.16);
}

.category-list button::after {
  content: "→";
  display: grid;
  width: 44px;
  align-self: center;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 244, 225, 0.26);
  border-radius: 12px;
  color: var(--leaf-bright);
  font-size: 20px;
}

.category-thumb {
  border-radius: 11px;
  background-color: #555;
  background-image: var(--category-image);
  background-position: center;
  background-size: cover;
}

.category-label {
  display: grid;
  gap: 5px;
  align-content: center;
}

.category-label strong {
  font-size: clamp(17px, 5vw, 21px);
}

.category-label small {
  color: rgba(255, 244, 225, 0.62);
  font-size: clamp(12px, 3.4vw, 14px);
}

.choice-row,
.taste-row {
  display: flex;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  padding: 0 18px 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.choice-row button,
.taste-row button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 244, 225, 0.2);
  border-radius: 15px;
  background: rgba(45, 45, 45, 0.7);
  color: var(--white);
  cursor: pointer;
  font-weight: 750;
  backdrop-filter: blur(16px);
}

.choice-row button {
  min-height: 54px;
  padding: 0 18px;
}

.taste-row button {
  min-height: 42px;
  padding: 0 15px;
  font-size: 13px;
}

.choice-row button.is-selected,
.taste-row button.is-selected {
  border-color: var(--leaf-bright);
  background: var(--leaf-bright);
  color: var(--ink);
}

.product-copy h2 {
  max-width: 440px;
}

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

.volume-line {
  flex: 0 0 auto;
  min-height: 50px;
  margin: 0;
  border: 1px solid rgba(255, 244, 225, 0.2);
  border-radius: 15px;
  padding: 0 18px;
  background: rgba(45, 45, 45, 0.9);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.volume-line:focus-visible {
  outline: 2px solid var(--leaf-bright);
  outline-offset: 4px;
}

.product-action .buy-button {
  min-width: 154px;
  flex-direction: column;
  gap: 2px;
  padding-block: 7px;
  line-height: 1.05;
}

.buy-button-price {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  opacity: 0.78;
}

.start-action {
  margin-top: 0;
}

.bottom-nav {
  position: absolute;
  right: 12px;
  bottom: var(--safe-bottom);
  left: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 68px;
  padding: 6px;
  border: 1px solid rgba(255, 244, 225, 0.2);
  border-radius: 23px;
  background: rgba(45, 45, 45, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: rgba(255, 244, 225, 0.58);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav button.is-active {
  background: rgba(255, 244, 225, 0.14);
  color: var(--leaf-bright);
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bottom-nav button:first-child svg {
  fill: currentColor;
  stroke: none;
}

.nav-icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -11px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #2d2d2d;
  border-radius: 99px;
  background: var(--leaf-bright);
  color: var(--ink);
  font-size: 9px;
}

.app-dialog {
  width: min(500px, 100%);
  max-width: none;
  height: min(82dvh, 740px);
  max-height: none;
  margin: auto auto 0;
  border: 0;
  border-radius: 32px 32px 0 0;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(20, 20, 20, 0.68);
  backdrop-filter: blur(8px);
}

.dialog-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.dialog-card::before {
  content: "";
  width: 48px;
  height: 5px;
  margin: -10px auto 20px;
  border-radius: 99px;
  background: rgba(45, 45, 45, 0.16);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dialog-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 9vw, 44px);
}

.dialog-head .eyebrow {
  color: rgba(45, 45, 45, 0.72);
}

.dialog-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(45, 45, 45, 0.09);
  color: var(--forest);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 8px;
  background: rgba(45, 45, 45, 0.06);
}

.cart-item-image {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(45, 45, 45, 0.1);
}

.cart-item strong,
.cart-item-details {
  display: block;
}

.cart-item-details {
  margin-top: 4px;
  color: rgba(45, 45, 45, 0.68);
  cursor: pointer;
  font-size: 12px;
}

.cart-item-details:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy strong {
  overflow-wrap: anywhere;
}

.cart-item-pricing {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.cart-item-pricing span {
  color: rgba(45, 45, 45, 0.58);
  font-size: 11px;
}

.cart-item-pricing strong {
  color: var(--forest);
  font-size: 14px;
}

.cart-item-remove {
  margin-top: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(45, 45, 45, 0.6);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 12px;
  background: rgba(45, 45, 45, 0.08);
}

.cart-quantity button,
.cart-quantity-value {
  display: grid;
  min-width: 0;
  place-items: center;
}

.cart-quantity button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(45, 45, 45, 0.78);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cart-quantity button:active {
  background: rgba(45, 45, 45, 0.08);
}

.cart-quantity button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.cart-quantity-value {
  border-inline: 1px solid rgba(45, 45, 45, 0.1);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.cart-empty {
  margin: auto 0;
  color: rgba(45, 45, 45, 0.72);
  text-align: center;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border-top: 1px solid rgba(45, 45, 45, 0.12);
  padding-top: 16px;
}

.cart-summary[hidden] {
  display: none;
}

.cart-summary p {
  margin: 0;
  color: rgba(45, 45, 45, 0.76);
  font-size: 14px;
}

.cart-totals {
  display: grid;
  gap: 5px;
}

.cart-summary .cart-total-price {
  color: var(--ink);
  font-size: 17px;
}

.cart-summary button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

.dialog-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
}

.dialog-footer p {
  margin: 0;
  color: rgba(45, 45, 45, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.primary-button {
  width: 100%;
}

.primary-button:disabled {
  background: rgba(45, 45, 45, 0.12);
  color: rgba(45, 45, 45, 0.48);
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid rgba(45, 45, 45, 0.12);
  padding-top: 22px;
}

.checkout-form[hidden] {
  display: none;
}

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

.checkout-form-head .eyebrow,
.checkout-form-head h3 {
  margin: 0;
}

.checkout-form-head .eyebrow {
  color: rgba(45, 45, 45, 0.62);
}

.checkout-account-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(139, 166, 80, 0.12);
}

.checkout-account-note p {
  margin: 4px 0 0;
  color: rgba(45, 45, 45, 0.7);
  font-size: 14px;
  line-height: 1.4;
}

.checkout-account-note button {
  flex: 0 0 auto;
  border: 1px solid rgba(45, 45, 45, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.checkout-delivery-note {
  margin: -6px 0 0;
  color: rgba(45, 45, 45, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.checkout-payment {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.checkout-payment legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-weight: 700;
}

.checkout-payment label {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 1px solid rgba(45, 45, 45, 0.18);
  border-radius: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.checkout-payment label:has(input:checked) {
  border-color: var(--forest);
  background: rgba(139, 166, 80, 0.13);
  box-shadow: 0 0 0 2px rgba(23, 59, 43, 0.08);
}

.checkout-payment input {
  grid-column: 3;
  grid-row: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--forest);
}

.checkout-payment label:has(input:focus-visible) {
  outline: 3px solid rgba(23, 59, 43, 0.18);
  outline-offset: 2px;
}

.payment-option-icon {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  min-height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(23, 59, 43, 0.1);
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.payment-option-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 3px;
}

.payment-option-copy small {
  color: rgba(45, 45, 45, 0.58);
  font-size: 12px;
  font-weight: 500;
}

.payment-option-check {
  display: none;
}

.checkout-form-head h3 {
  color: var(--ink);
  font-size: 28px;
}

.checkout-field,
.account-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.checkout-field[hidden] {
  display: none;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select,
.account-field input {
  width: 100%;
  border: 1px solid rgba(45, 45, 45, 0.16);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.checkout-field textarea {
  min-height: 82px;
  resize: vertical;
}

.checkout-address-note {
  color: rgba(45, 45, 45, 0.66);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

/* День и окно доставки по Нижнекамску — только для доставки по городу. */
.checkout-slot {
  display: grid;
  gap: 12px;
}

.checkout-slot[hidden] {
  display: none;
}

.checkout-terminal-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(23, 59, 43, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.checkout-terminal-link[hidden] {
  display: none;
}

.checkout-terminal-link:focus-visible {
  outline: 3px solid rgba(23, 59, 43, 0.18);
  outline-offset: 2px;
}

.energy-directory-card {
  display: grid;
  gap: 16px;
}

.energy-search {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.energy-search input {
  width: 100%;
  border: 1px solid rgba(45, 45, 45, 0.16);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font: inherit;
}

.energy-search input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 59, 43, 0.1);
}

.energy-directory-status {
  margin: 10px 0;
  color: rgba(45, 45, 45, 0.68);
  font-size: 13px;
  line-height: 1.4;
}

.energy-choice-list {
  display: grid;
  gap: 8px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.energy-choice-list button,
.energy-manual,
.energy-back {
  width: 100%;
  border: 1px solid rgba(23, 59, 43, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.energy-choice-list button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  text-align: left;
}

.energy-choice-list button > span:first-child {
  display: grid;
  gap: 3px;
}

.energy-choice-list strong {
  font-size: 15px;
}

.energy-choice-list small {
  color: rgba(45, 45, 45, 0.62);
  font-size: 12px;
  font-weight: 500;
}

.energy-back,
.energy-manual {
  min-height: 44px;
  padding: 10px 13px;
  font-weight: 800;
}

.energy-back {
  width: auto;
  margin-bottom: 10px;
}

.energy-manual {
  margin-top: 4px;
}

.energy-official-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(23, 59, 43, 0.18);
  border-radius: 16px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus,
.account-field input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(23, 59, 43, 0.1);
}

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

.checkout-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: rgba(45, 45, 45, 0.75);
  font-size: 12px;
  line-height: 1.45;
}

.checkout-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
}

.checkout-consent a {
  color: var(--forest);
}

.checkout-consent small {
  color: rgba(45, 45, 45, 0.56);
  font: inherit;
}

.checkout-status {
  min-height: 18px;
  margin: 0;
  color: #8a2f24;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-status.is-ready {
  color: var(--forest);
}

.account-required {
  margin: 0 0 18px;
  border: 1px solid rgba(138, 47, 36, 0.34);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(138, 47, 36, 0.08);
  color: #7b2d24;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.account-form {
  display: grid;
  gap: 16px;
}

.account-form h3 {
  margin: 0;
  color: var(--forest);
  font-size: 20px;
}

.notification-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(45, 45, 45, 0.06);
}

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

.notification-choice small {
  color: rgba(45, 45, 45, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.notification-choice input {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 1px solid rgba(45, 45, 45, 0.28);
  border-radius: 999px;
  appearance: none;
  background: rgba(45, 45, 45, 0.12);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.notification-choice input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(45, 45, 45, 0.22);
  transition: transform 160ms ease;
}

.notification-choice input:checked {
  border-color: var(--forest);
  background: var(--forest);
}

.notification-choice input:checked::before {
  transform: translateX(20px);
}

.notification-choice input:focus-visible {
  outline: 3px solid rgba(23, 59, 43, 0.18);
  outline-offset: 2px;
}

.account-status {
  min-height: 18px;
  margin: 0;
  color: #8a2f24;
  font-size: 12px;
  line-height: 1.45;
}

.account-status.is-ready {
  color: var(--forest);
}

.account-stage-note {
  margin: 16px 0 0;
  color: rgba(45, 45, 45, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(45, 45, 45, 0.06);
}

.profile-avatar {
  display: grid;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 18px;
  background: var(--forest);
  color: var(--leaf-bright);
  font-weight: 800;
}

.profile-preview p {
  margin: 4px 0 0;
  color: rgba(45, 45, 45, 0.68);
  font-size: 13px;
}

.feature-list {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(45, 45, 45, 0.12);
}

.feature-list span {
  padding: 17px;
  background: rgba(255, 244, 225, 0.92);
  font-weight: 700;
}

.feature-list span::after {
  content: "→";
  float: right;
  color: #2d2d2d;
}

.info-content {
  display: grid;
  gap: 12px;
  color: rgba(45, 45, 45, 0.8);
  font-size: 15px;
  line-height: 1.55;
}

.info-content p,
.info-content ul,
.info-content ol,
.info-content dl {
  margin: 0;
}

.info-content h3 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.info-content a {
  color: var(--forest);
  font-weight: 700;
}

.info-document-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.info-document-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 13px;
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
}

.info-document-list a::after {
  content: "→";
  color: var(--forest);
}

.product-details-copy {
  white-space: pre-line;
}

.product-details-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 18px;
}

.product-details-list dt,
.product-details-list dd {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(45, 45, 45, 0.1);
}

.product-details-list dt {
  color: rgba(45, 45, 45, 0.68);
}

.product-details-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.product-details-list :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.product-details-full {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(45, 45, 45, 0.12);
}

.benefits-section {
  display: grid;
  gap: 8px;
}

.benefits-section h3 {
  margin: 0;
}

.benefits-list {
  display: grid;
  gap: 16px;
  padding-left: 22px;
}

.benefits-list li {
  padding-left: 3px;
}

.benefits-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.toast {
  position: absolute;
  right: 24px;
  bottom: calc(92px + var(--safe-bottom));
  left: 24px;
  z-index: 50;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  animation: toast-in 220ms ease both;
}

.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes reveal {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(4deg) scale(1.22); }
  to { opacity: 1; transform: rotate(-9deg) scale(1); }
}

@media (max-height: 700px) {
  .reel-screen {
    padding-bottom: calc(92px + var(--safe-bottom));
  }

  h1,
  h2 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .back-button {
    margin-bottom: 10px;
  }

  .natural-stamp {
    top: calc(var(--flat-video-edge-y, 210px) + 10px);
    width: 60px;
    height: 60px;
  }

  .natural-stamp strong {
    font-size: 18px;
  }

  .stamp-word {
    top: calc(var(--flat-video-edge-y, 210px) + 88px);
    font-size: 18px;
  }
}

@media (max-width: 375px) {
  :root {
    --stamp-size: 42px;
    --stamp-right: 10px;
  }

  .checkout-account-note {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-account-note button {
    align-self: start;
  }

  .checkout-payment {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .app-shell {
  border-inline: 1px solid rgba(255, 244, 225, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
