/* Mingler — logo high + info panel right of goat */

:root {
  --bg: #ffffff;
  --ink: #141414;
  --accent: #ea831c;
  --label: #37c7ea;
  --btn: #000000;
  --btn-hover: #111111;
  --serif: "Libre Baskerville", "Constantia", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --display: "Oi", "Libre Baskerville", Georgia, serif;
  --specs: "Tektur", "Manrope", system-ui, sans-serif;
  --pad: clamp(1rem, 3vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --logo-w: clamp(15rem, 38vw, 28rem);
  --goat-w: clamp(13rem, 36vw, 26rem);
  /* Left edge of N (top) / L start of lower row — from mingler SVG */
  --logo-align: 41%;
  --side-w: clamp(14rem, 38vw, 34rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--serif);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.page {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  background: var(--bg);
}

/* Side studio strips: left = mirrored, right = original */
.sides {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.sides__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--side-w);
  background-size: cover;
  background-repeat: no-repeat;
}

.sides__panel--left {
  left: 0;
  background-image: url("/bg-left.webp");
  background-position: right center;
}

.sides__panel--right {
  right: 0;
  background-image: url("/bg-right.webp");
  background-position: left center;
}

/* Narrow screens: only left strip (right would crowd the layout) */
@media (max-width: 900px) {
  .sides__panel--right {
    display: none;
  }

  :root {
    --side-w: clamp(8rem, 42vw, 16rem);
  }
}

.stage {
  width: 100%;
}

.screen {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-scene {
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: clamp(4.5rem, 14vh, 7.5rem);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.92) 100%
  );
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(2.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-cue__chevron {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid #2b2928;
  border-bottom: 1.5px solid #2b2928;
  transform: rotate(45deg);
  opacity: 0.55;
  animation: cue-bounce 1.8s var(--ease) infinite;
}

.scroll-cue:hover .scroll-cue__chevron,
.scroll-cue:focus-visible .scroll-cue__chevron {
  opacity: 0.9;
}

.scroll-cue:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(0.15rem, 0.15rem);
  }
}

/* Goat: rope from top; overlaps left side of centered logo */
.hero {
  position: absolute;
  top: 0;
  left: max(0rem, calc(50% - (var(--logo-w) / 2) - (var(--goat-w) * 0.28) - 140px));
  z-index: 2;
  width: var(--goat-w);
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(40, 70, 60, 0.16));
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  animation: rise-in 0.95s var(--ease) both;
}

/* Logo centered at top; info stays on N/L axis of the logo */
.panel {
  position: relative;
  z-index: 1;
  width: var(--logo-w);
  margin-inline: auto;
  padding-top: clamp(1.1rem, 3vh, 2.5rem);
  padding-bottom: 2.75rem;
  animation: fade-up 0.85s var(--ease) 0.1s both;
}

.panel .cta {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  margin-left: var(--logo-align);
  width: calc(100% - var(--logo-align));
  max-width: 20rem;
}

.brand {
  margin: 0 0 clamp(0.85rem, 2vh, 1.35rem);
  line-height: 0;
  width: 100%;
}

.brand__swap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 586 / 269;
  cursor: default;
}

.brand__logo {
  width: 100%;
  height: auto;
  transition: opacity 0.35s var(--ease);
}

.brand__logo--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.brand__swap:hover .brand__logo--base,
.brand__swap:focus-visible .brand__logo--base {
  opacity: 0;
}

.brand__swap:hover .brand__logo--hover,
.brand__swap:focus-visible .brand__logo--hover {
  opacity: 1;
}

@media (hover: none) {
  .brand__swap:active .brand__logo--base {
    opacity: 0;
  }

  .brand__swap:active .brand__logo--hover {
    opacity: 1;
  }
}

.panel__info {
  margin-left: var(--logo-align);
  width: calc(100% - var(--logo-align));
  max-width: 20rem;
}

.collection {
  margin: 0 0 clamp(0.85rem, 2vh, 1.25rem);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.4vw + 0.85rem, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.collection__accent {
  color: var(--accent);
}

.specs {
  margin: 0 0 clamp(1.35rem, 3.5vh, 2.25rem);
  padding: 0;
  font-family: var(--specs);
}

.specs__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.5rem;
  margin: 0 0 0.3rem;
  font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.1rem);
  line-height: 1.45;
}

.specs__row dt {
  margin: 0;
  color: var(--label);
  font-weight: 500;
}

.specs__row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 2px;
  background: var(--btn);
  color: var(--accent);
  font-family: var(--specs);
  font-size: clamp(1.05rem, 0.45vw + 0.95rem, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cta:hover {
  background: var(--label);
  color: #ffffff;
  transform: translateY(-1px);
}

.cta:active,
.cta.is-pressed,
.cta.is-pressed:hover {
  background: var(--accent);
  color: #000000;
  transform: translateY(0);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta--sold {
  background: #9a9a9a;
  color: #f2f2f2;
  cursor: default;
  pointer-events: none;
  letter-spacing: 0.08em;
}

.cta--sold:hover {
  background: #9a9a9a;
  transform: none;
}

/* Collections rail — right edge */
.collections-nav {
  position: fixed;
  top: 50%;
  right: clamp(0.55rem, 1.6vw, 1.25rem);
  z-index: 35;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.35rem;
  pointer-events: none;
}

.collections-nav__eyebrow {
  margin: 0;
  font-family: var(--specs);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  transform: rotate(180deg);
}

.collections-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: auto;
}

.collections-nav__link {
  font-family: var(--specs);
  font-size: clamp(0.78rem, 0.35vw + 0.7rem, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #7a7a7a;
  transform: rotate(180deg);
  display: inline-block;
  transition: color 0.2s var(--ease);
}

.collections-nav__item.is-active .collections-nav__link,
.collections-nav__item.is-here .collections-nav__link {
  color: var(--ink);
}

.collections-nav__item.is-sold .collections-nav__link {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: #b0b0b0;
}

.collections-nav__item.is-sold.is-here .collections-nav__link {
  color: #888;
}

a.collections-nav__link:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .collections-nav {
    right: 0.35rem;
    gap: 0.55rem;
    padding: 0.5rem 0.15rem;
  }

  .collections-nav__eyebrow {
    display: none;
  }

  .collections-nav__link {
    font-size: 0.72rem;
  }
}

/* —— Large screens —— */
@media (min-width: 1100px) {
  :root {
    --logo-w: clamp(22rem, 32vw, 30rem);
    --goat-w: clamp(20rem, 30vw, 28rem);
  }

  .panel {
    padding-top: clamp(1.35rem, 3.5vh, 2.75rem);
  }
}

/* —— Mobile: compact hero, CTA centered, next block peeks —— */
@media (max-width: 759.98px) {
  :root {
    --logo-w: min(86vw, 20rem);
    --goat-w: min(72vw, 17rem);
  }

  html {
    scroll-snap-type: y proximity;
  }

  .screen {
    min-height: auto;
    scroll-snap-stop: normal;
  }

  .screen.hero-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    padding-top: 0;
    padding-bottom: 0.35rem;
    overflow: visible;
  }

  .hero-scene::after {
    height: 2.75rem;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0.7) 100%
    );
  }

  .hero {
    position: absolute;
    top: 0;
    left: calc(-12vw - 50px);
    z-index: 2;
    width: var(--goat-w);
    margin: 0;
    opacity: 1;
    filter: drop-shadow(0 12px 20px rgba(40, 70, 60, 0.12));
  }

  .panel {
    position: relative;
    z-index: 1;
    width: var(--logo-w);
    margin-inline: auto;
    margin-top: 0;
    padding: clamp(0.5rem, 2vh, 0.9rem) var(--pad) 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .panel__info {
    margin-left: var(--logo-align);
    width: calc(100% - var(--logo-align));
  }

  .collection {
    margin-bottom: 0.75rem;
  }

  .specs {
    margin-bottom: 0;
  }

  .site-footer {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* CTA centered on the page width, not the right text column */
  .panel .cta {
    position: static;
    align-self: center;
    width: min(100%, 18.5rem);
    max-width: none;
    margin: 2rem auto 0;
    box-shadow: none;
  }

  .scroll-cue {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0.55rem auto 0.15rem;
  }

  /* First story peeks under the hero to fill empty space */
  .story {
    min-height: auto;
    padding: clamp(1.75rem, 5vh, 2.75rem) var(--pad) calc(3.25rem + env(safe-area-inset-bottom, 0px));
  }

  #holiday {
    padding-top: 0.75rem;
  }
}

/* 430px–834px: keep goat aligned with logo instead of far-left mobile offset */
@media (min-width: 430px) and (max-width: 834px) {
  .hero {
    left: max(0rem, calc(50% - (var(--logo-w) / 2) - (var(--goat-w) * 0.28) - 90px));
  }
}

/* Language switcher — top right */
.lang {
  position: fixed;
  top: calc(0.85rem + env(safe-area-inset-top, 0px));
  right: calc(0.85rem + env(safe-area-inset-right, 0px));
  z-index: 40;
}

.lang__btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.08);
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lang__btn:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 20, 20, 0.12);
}

.lang__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang__btn img,
.lang__icon {
  width: 32px;
  height: 32px;
  display: block;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 30, 28, 0.14);
}

.lang__menu[hidden] {
  display: none;
}

.lang__option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.lang__option:hover {
  background: #f3f7f5;
}

.lang__option.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* Footer — always visible on every screen */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28) 40%, rgba(255, 255, 255, 0.42) 100%);
}

.site-footer p {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.78rem, 0.3vw + 0.72rem, 0.9rem);
  font-weight: 500;
  color: #5a5a5a;
  letter-spacing: 0.01em;
  pointer-events: auto;
}

/* Story screens */
.story {
  display: grid;
  align-items: center;
  padding: clamp(4rem, 12vh, 7rem) var(--pad) clamp(4rem, 10vh, 5.5rem);
}

.story__inner {
  width: min(100%, 34rem);
  max-width: 34rem;
}

.story--left .story__inner {
  justify-self: start;
  margin-left: clamp(0rem, 8vw, 8rem);
}

.story--right .story__inner {
  justify-self: end;
  margin-right: clamp(0rem, 8vw, 8rem);
  text-align: left;
}

.story__index {
  margin: 0 0 0.85rem;
  font-family: var(--specs);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--label);
}

.story__title {
  margin: 0 0 1.25rem;
  font-family: var(--specs);
  font-size: clamp(2.4rem, 4vw + 1.2rem, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.story__text {
  margin: 0;
  font-family: var(--specs);
  font-size: clamp(1rem, 0.45vw + 0.9rem, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: #2a2a2a;
  max-width: 36ch;
}

@media (max-width: 759.98px) {
  .story {
    padding: clamp(3.5rem, 10vh, 5rem) var(--pad) 5.5rem;
  }

  .story--left .story__inner,
  .story--right .story__inner {
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
    width: min(100%, 28rem);
  }

  .story__text {
    max-width: none;
  }
}

/* Order dialog */
.order {
  width: min(94vw, 30rem);
  max-height: min(92dvh, 48rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  overflow: visible;
}

.order::backdrop {
  background: rgba(20, 30, 28, 0.45);
  backdrop-filter: blur(4px);
}

.order__card {
  margin: 0;
  padding: 1.35rem 1.25rem 1.1rem;
  max-height: min(92dvh, 48rem);
  overflow: auto;
  background: #f7fbf9;
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 24px 60px rgba(20, 30, 28, 0.22);
}

.order__card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.order__text {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3a3a3a;
}

.order__form {
  display: grid;
  gap: 0.85rem;
}

.order__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.order__field {
  display: grid;
  gap: 0.3rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4a4a4a;
}

.order__field input[type="text"],
.order__field input[type="tel"],
.order__phone input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
}

.order__field input:focus,
.order__phone:focus-within {
  outline: 2px solid var(--label);
  outline-offset: 1px;
  border-color: transparent;
}

.order__phone:focus-within {
  border-color: transparent;
}

.order__field input:disabled {
  opacity: 0.55;
  background: #eef2f0;
}

.order__hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #8a8a8a;
}

.order__phone {
  display: flex;
  align-items: stretch;
  min-height: 2.65rem;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.order__phone.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.22);
}

.order__phone.is-invalid:focus-within {
  outline-color: #b42318;
}

.order__phone-prefix {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.75rem;
  background: #eef3f1;
  border-right: 1px solid rgba(20, 20, 20, 0.1);
  color: #2a2a2a;
  font-family: var(--specs);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
}

.order__phone input {
  border: 0;
  border-radius: 0;
  min-height: 2.65rem;
  letter-spacing: 0.04em;
}

.order__phone input:focus {
  outline: none;
}

.order__suggest {
  position: relative;
}

.order__suggest-list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  max-height: 12rem;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(20, 30, 28, 0.16);
}

.order__suggest-list li {
  padding: 0.55rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}

.order__suggest-list li:hover,
.order__suggest-list li:focus {
  background: #eef8fb;
  outline: none;
}

.order__pay {
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
}

.order__legend {
  margin: 0 0 0.45rem;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4a4a4a;
}

.order__pay-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.order__pay-opt {
  display: block;
  cursor: pointer;
}

.order__pay-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order__pay-card {
  display: grid;
  gap: 0.2rem;
  min-height: 4.4rem;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  border-radius: 3px;
  background: #fff;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.order__pay-title {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.order__pay-desc {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #6a6a6a;
}

.order__pay-opt input:checked + .order__pay-card {
  border-color: var(--ink);
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.order__pay-opt input:focus-visible + .order__pay-card {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.order__contact {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 3px;
  background: linear-gradient(180deg, #eef8fb 0%, #f5faf8 100%);
  border: 1px solid rgba(55, 199, 234, 0.28);
  animation: order-reveal 0.28s var(--ease);
}

.order__contact[hidden] {
  display: none;
}

.order__notice {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.45;
  color: #2a3a3c;
}

.order__messengers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.order__tg {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.15rem;
  animation: order-reveal 0.28s var(--ease);
}

.order__tg[hidden] {
  display: none;
}

.order__tg-input {
  display: flex;
  align-items: stretch;
  min-height: 2.65rem;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.order__tg-input:focus-within {
  outline: 2px solid var(--label);
  outline-offset: 1px;
  border-color: transparent;
}

.order__tg-prefix {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.7rem;
  background: #eef3f1;
  border-right: 1px solid rgba(20, 20, 20, 0.1);
  color: #2a2a2a;
  font-family: var(--specs);
  font-size: 1rem;
  font-weight: 600;
  user-select: none;
}

.order__tg-input input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.order__tg-input input:focus {
  outline: none;
}

.order__msg {
  display: block;
  cursor: pointer;
}

.order__msg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order__msg-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.45rem 0.65rem;
  border: 1.5px solid rgba(20, 20, 20, 0.12);
  border-radius: 3px;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.order__msg-icon {
  flex: 0 0 auto;
  display: block;
}

.order__msg input:checked + .order__msg-card {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.order__msg input:focus-visible + .order__msg-card {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.order__msg:hover .order__msg-card {
  transform: translateY(-1px);
}

.order__check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
}

.order__check--key {
  padding: 0.7rem 0.75rem;
  border-radius: 3px;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.order__check-text {
  white-space: pre-line;
}

.order__check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.order__switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: #444;
  cursor: pointer;
  user-select: none;
}

.order__switch[hidden] {
  display: none;
}

.order__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order__switch-track {
  position: relative;
  width: 2.55rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #cfd6d3;
  transition: background 0.22s var(--ease);
}

.order__switch-thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s var(--ease);
}

.order__switch input:checked + .order__switch-track {
  background: var(--accent);
}

.order__switch input:checked + .order__switch-track .order__switch-thumb {
  transform: translateX(1.1rem);
}

.order__switch input:focus-visible + .order__switch-track {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.order__error {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #b42318;
}

.order__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  border-radius: 2px;
  background: var(--btn);
  color: var(--accent);
  font-family: var(--specs);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.order__submit:hover:not(:disabled) {
  background: var(--label);
  color: #fff;
}

.order__submit:active:not(:disabled) {
  background: var(--accent);
  color: #000;
}

.order__submit:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: #9aa3a0;
  color: #f4f4f4;
}

.order__submit--ghost {
  margin-top: 0.45rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 20, 20, 0.16);
}

.order__submit--ghost:hover:not(:disabled) {
  background: #eef3f1;
  color: var(--ink);
}

.order__number-label {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6a6a;
}

.order__number {
  margin: 0 0 0.85rem;
  font-family: var(--specs);
  font-size: clamp(1.85rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.1;
}

.order__close {
  width: 100%;
  min-height: 2.4rem;
  margin-top: 0.35rem;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
}

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

.order__success[hidden],
.order__form-wrap[hidden] {
  display: none;
}

@keyframes order-reveal {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .order__row--2,
  .order__pay-opts,
  .order__messengers {
    grid-template-columns: 1fr;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__img,
  .panel {
    animation: none !important;
  }

  .scroll-cue__chevron {
    animation: none;
  }

  .brand__logo {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}
