@font-face {
  font-family: "Alice";
  src: url("Alice/Alice-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("Lato/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("Lato/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tenor Sans";
  src: url("Tenor_Sans/TenorSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #f7efe2;
  --bg-1: #efe1cf;
  --bg-2: #fdf8f0;
  --ink-0: #3b2b24;
  --ink-1: #6b5447;
  --accent-0: #e6c9a8;
  --accent-1: #f2dec5;
  --shadow: 0 14px 35px rgba(71, 49, 39, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Tenor Sans", sans-serif;
  color: var(--ink-0);
  background-color: var(--bg-1);
  background-image: url("svg/elephant-pattern.svg");
  background-repeat: repeat;
  background-size: 240px auto;
  background-position: 20px 10px;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Alice", serif;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--ink-0);
}

p {
  margin: 0 0 16px;
  color: var(--ink-1);
  line-height: 1.5;
}

.top-cloud {
  position: relative;
  padding: 28px 16px 56px;
  background: #fffaf3;
  filter: drop-shadow(0 12px 18px rgba(71, 49, 39, 0.12));
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 80%,
    94% 84%,
    88% 98%,
    78% 90%,
    66% 96%,
    54% 88%,
    44% 96%,
    32% 90%,
    16% 98%,
    8% 84%,
    0% 80%
  );
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.cloud-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  z-index: 1;
}

.logo {
  font-family: "Alice", serif;
  font-size: 22px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  padding: 0;
  text-transform: uppercase;
}

.logo-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  padding: 8px 12px;
}

.phone {
  font-family: "Tenor Sans", sans-serif;
  font-weight: 700;
  color: var(--ink-0);
  text-decoration: none;
  background: #fff5e8;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(73, 53, 43, 0.12);
  display: inline-flex;
  align-self: flex-end;
}

.messengers {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 53, 43, 0.12);
  display: grid;
  place-items: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.icon-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.page {
  padding: 32px 16px 64px;
  max-width: none;
  margin: 0;
}

.hero {
  padding: 28px 0 36px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}

.hero-content {
  padding: 0 24px 18px;
}

.hero-rotator {
  margin: 0;
  font-family: "Tenor Sans", sans-serif;
  font-size: 22px;
  color: var(--ink-0);
  letter-spacing: 0.02em;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(0);
  opacity: 1;
  text-align: center;
  padding: 12px 12px 0;
  position: relative;
  z-index: 1;
}

.header-elephant {
  width: 52px;
  height: auto;
  display: block;
}

.hero-rotator.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.slider {
  position: relative;
  overflow: hidden;
  height: auto;
  width: 100vw;
  margin: 16px calc(50% - 50vw) 24px;
  padding: 0 8px;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  align-items: flex-start;
}

.slide {
  width: 100%;
  flex: 0 0 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(71, 49, 39, 0.18);
  filter: blur(0.3px);
}

.slider.is-empty .slides {
  justify-content: center;
}

.slider.is-empty .slider-controls {
  display: none;
}

.slider-empty {
  width: 100%;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--ink-1);
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.nav-btn {
  pointer-events: auto;
  border: none;
  background: rgba(255, 250, 244, 0.9);
  color: var(--ink-0);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(120, 82, 56, 0.18);
  cursor: pointer;
}

.nav-btn:hover {
  background: #fff;
}

.nav-btn:active {
  transform: scale(0.98);
}

.catalog {
  width: 100vw;
  margin: 24px calc(50% - 50vw) 0;
  background: #fff;
}

.catalog-panel {
  background: transparent;
  border-radius: 0;
  padding: 36px 0 48px;
  box-shadow: none;
}

.catalog-header {
  text-align: center;
  margin-bottom: 14px;
}

.order-panel {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.order-header {
  margin-bottom: 0;
  max-width: 520px;
}

.order-header p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-progress {
  width: min(680px, 88vw);
  height: 10px;
  background: rgba(120, 82, 56, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.order-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-0);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.order-progress-tick {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 18px;
  background: rgba(120, 82, 56, 0.35);
  transform: translate(-50%, -50%);
}

.order-progress-labels {
  width: min(680px, 88vw);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-top: -14px;
}

.order-step-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.order-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  width: 100%;
}

.order-step-primary {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  width: min(460px, 100%);
}

.order-step-secondary {
  gap: 16px;
}

.order-step-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.order-step-title {
  margin: 0;
  font-family: "Alice", serif;
  font-size: 24px;
  text-align: center;
  justify-self: center;
}

.order-step-note {
  margin: 0;
  text-align: center;
  color: var(--ink-1);
}

.order-choice {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 18px;
  padding: 10px 10px 14px;
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(120, 82, 56, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.order-choice img {
  width: 100%;
  max-width: 170px;
  border-radius: 14px;
  display: block;
}

.order-choice:focus-visible {
  outline: 2px solid var(--accent-0);
  outline-offset: 4px;
}

.order-choice-label {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-0);
}

.order-choice.is-selected {
  border-color: var(--accent-0);
  box-shadow: 0 16px 32px rgba(120, 82, 56, 0.2);
  transform: translateY(-4px);
}

.order-next {
  border: none;
  background: var(--accent-0);
  color: var(--ink-0);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px rgba(120, 82, 56, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.order-flavors {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.order-flavor {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 10px;
  justify-items: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(120, 82, 56, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.order-flavor img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.order-flavor-label {
  font-family: "Tenor Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-0);
}

.order-flavor.is-selected {
  border-color: var(--accent-0);
  box-shadow: 0 14px 30px rgba(120, 82, 56, 0.18);
  transform: translateY(-3px);
}

.order-flavor:focus-visible {
  outline: 2px solid var(--accent-0);
  outline-offset: 4px;
}

.order-back {
  border: 1px solid rgba(73, 53, 43, 0.2);
  background: #fff;
  color: var(--ink-0);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(120, 82, 56, 0.12);
}

.order-back:focus-visible {
  outline: 2px solid var(--accent-0);
  outline-offset: 4px;
}

.order-next:focus-visible {
  outline: 2px solid var(--accent-0);
  outline-offset: 4px;
}

.order-next:not([hidden]) {
  animation: orderPulse 1.4s ease-in-out infinite;
}

.order-next:active {
  transform: scale(0.96);
}

.catalog-header p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.catalog-tab {
  border: 1px solid rgba(73, 53, 43, 0.2);
  background: #fff;
  color: var(--ink-0);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: "Tenor Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.catalog-tab.is-active {
  background: var(--accent-0);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(120, 82, 56, 0.18);
}

.catalog-body {
  display: grid;
  gap: 16px;
}

.catalog-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.catalog-carousel[hidden] {
  display: none;
}

.catalog-viewport {
  overflow: hidden;
}

.catalog-track {
  display: flex;
  gap: 0;
  transition: transform 0.6s ease;
  will-change: transform;
}

.catalog-card {
  background: transparent;
  padding: 0;
  width: 100%;
  flex: 0 0 100%;
  text-align: center;
  position: relative;
}

.catalog-card img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 0;
  display: block;
  margin: 0 auto;
  box-shadow: none;
  transform: translateY(18px);
  position: relative;
  z-index: 1;
}

.catalog-caption {
  margin: 0;
  font-family: "Alice", serif;
  font-size: 30px;
  line-height: 1.1;
  font-style: italic;
  color: var(--ink-0);
  letter-spacing: 0.03em;
  position: absolute;
  top: -6px;
  left: 6vw;
  transform: none;
  width: min(560px, 80%);
  text-align: left;
  text-shadow: 0 8px 18px rgba(71, 49, 39, 0.16);
  pointer-events: none;
  z-index: 2;
}

.catalog-nav {
  border: none;
  background: rgba(255, 250, 244, 0.9);
  color: var(--ink-0);
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(120, 82, 56, 0.18);
  cursor: pointer;
}

.catalog-placeholder {
  text-align: center;
  color: var(--ink-1);
  padding: 12px 0;
}

.catalog-error {
  text-align: center;
  color: var(--ink-1);
  padding: 20px 0;
}

@media (min-width: 720px) {
  .logo {
    font-size: 26px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero-content {
    padding: 0 40px 22px;
  }

  .hero-rotator {
    font-size: 28px;
    padding: 14px 12px 0;
  }

  .header-elephant {
    width: 64px;
  }
}

@media (max-width: 520px) {
  .top-cloud {
    padding: 18px 12px 44px;
  }

  .cloud-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .contact {
    margin-left: auto;
    width: auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
  }

  .phone {
    width: auto;
    text-align: right;
    align-self: center;
    font-size: 13px;
    padding: 5px 10px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn img {
    width: 20px;
    height: 20px;
  }

  .logo {
    font-size: 21px;
  }

  .header-elephant {
    width: 50px;
  }

  .logo-wrap {
    margin-top: 0;
  }

  .catalog-panel {
    padding: 20px 16px 24px;
  }

  .order-choice img {
    max-width: 150px;
  }

  .order-step-primary {
    width: 100%;
  }

  .catalog-carousel {
    grid-template-columns: 1fr;
  }

  .catalog-nav {
    display: none;
  }

  .catalog-card img {
    width: 100%;
    border-radius: 0;
  }

  .catalog-caption {
    font-size: 22px;
    top: -2px;
    left: 5vw;
  }
}

@keyframes orderPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides {
    transition: none;
  }
}
@media (max-width: 520px) {
  .top-cloud {
    padding: 24px 14px 36px;
    clip-path: polygon(
      0% 0%,
      100% 0%,
      100% 82%,
      94% 86%,
      88% 96%,
      76% 90%,
      62% 94%,
      50% 88%,
      38% 94%,
      24% 90%,
      12% 96%,
      6% 86%,
      0% 82%
    );
  }
}
