.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  line-height: 0;
  height: 2.75rem;
}
@media (min-width: 768px) {
  .site-logo { height: 3.5rem; }
}
.site-logo--lg { height: 3rem; }
.site-logo-snowman,
.site-logo-word {
  display: block;
  width: auto;
  max-width: none;
}
.site-logo-snowman {
  height: 70%;
  transform-origin: 50% 85%;
  animation: logo-dance 2.4s ease-in-out infinite;
  will-change: transform;
}
.site-logo-word { height: 26%; }

@keyframes logo-dance {
  0%, 100% { transform: rotate(0deg) translateY(0) scale(1); }
  12%      { transform: rotate(-8deg) translateY(-2px) scale(1.04); }
  25%      { transform: rotate(7deg) translateY(-5px) scale(1.06); }
  37%      { transform: rotate(-6deg) translateY(-1px) scale(1.03); }
  50%      { transform: rotate(8deg) translateY(-6px) scale(1.07); }
  62%      { transform: rotate(-5deg) translateY(0) scale(1.02); }
  75%      { transform: rotate(6deg) translateY(-4px) scale(1.04); }
  87%      { transform: rotate(-3deg) translateY(-1px) scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  .site-logo-snowman { animation: none; }
}

/* ── Кнопка заказа в шапке ── */
.header-order-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  background: #C85E32;
  color: #FEFCF8;
  transition: background-color 0.2s ease;
  text-decoration: none;
}
@media (min-width: 768px) {
  .header-order-btn { display: inline-flex; }
}
.header-order-btn:hover { background: #A84D28; }

/* ── Шаги заказа ── */
.order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.order-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #F5EDD8;
  color: #9A7A62;
}
.order-step-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: rgba(200,94,50,.15);
  color: #C85E32;
}
.order-step--active {
  background: #C85E32;
  color: #FEFCF8;
}
.order-step--active .order-step-num {
  background: rgba(255,255,255,.25);
  color: #FEFCF8;
}
.order-step--done {
  background: #EDE0C4;
  color: #5C3D28;
}

/* ── Карточки «Как заказать» ── */
.how-card {
  background: #FEFCF8;
  border: 1px solid #EDE0C4;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}
.how-card-num {
  font-family: 'Amatic SC', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: #C85E32;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ── FAQ ── */
.faq-item {
  border: 1px solid #EDE0C4;
  border-radius: 0.75rem;
  background: #FEFCF8;
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #3D2B1F;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  color: #C85E32;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #7A5A42;
}
.faq-item.open .faq-a { display: block; }

/* ── Липкая корзина (моб.) ── */
.sticky-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(254, 252, 248, 0.97);
  border-top: 1px solid #EDE0C4;
  box-shadow: 0 -8px 32px rgba(61,43,31,.12);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-cart-bar--hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.sticky-cart-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sticky-cart-info { flex: 1; min-width: 0; }
.sticky-cart-sum {
  font-weight: 700;
  font-size: 1.125rem;
  color: #3D2B1F;
}
.sticky-cart-count {
  font-size: 0.75rem;
  color: #9A7A62;
}
.sticky-cart-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: #C85E32;
  color: #FEFCF8;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.sticky-cart-btn:disabled,
.sticky-cart-btn[href="#"] {
  opacity: 0.45;
  pointer-events: none;
}
@media (min-width: 768px) {
  .sticky-cart-bar { display: none; }
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(200,94,50,.1);
  color: #8B3D1E;
}

/* ── iOS / Android: Safari, Chrome mobile ── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-tap-highlight-color: transparent;
}

@supports (-webkit-touch-callout: none) {
  .min-h-screen {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }
}

@media (max-width: 767px) {
  input,
  select,
  textarea,
  .field,
  .form-field {
    font-size: 16px !important;
  }
}

#site-header,
header.sticky {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

#mobile-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sticky-cart-bar {
  -webkit-backdrop-filter: blur(8px);
}

#cart-drawer .backdrop-blur-sm,
.backdrop-blur-sm {
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur {
  -webkit-backdrop-filter: blur(8px);
}
