.site-footer {
  background: var(--surface-contrast);
  color: #dfd4c9;
  padding: 60px 0 24px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

main + .site-footer,
.page-container + .site-footer {
  margin-top: 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .site-footer-logo-img {
  max-width: var(--footer-logo-w, 240px);
  max-height: var(--footer-logo-h, 52px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .footer-brand .site-footer-logo-img {
    max-width: var(--footer-logo-w-mobile, 180px);
    max-height: var(--footer-logo-h-mobile, 44px);
  }
}

.footer-brand .logo-title {
  font-family: var(--font-family) !important;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-brand .logo-subtitle,
.site-footer .logo-subtitle {
  font-size: 11px;
  color: #dfd4c9;
  letter-spacing: 0.06em;
  margin-top: 3px;
  font-weight: 600;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #dfd4c9;
  margin-top: 12px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dfd4c9;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-coffee);
  color: #ffffff;
  border-color: var(--accent-coffee);
  transform: translateY(-2px);
}

.footer-col h3,
.footer-col .footer-col-title,
.footer-col h5 {
  font-family: var(--font-family) !important;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13.5px;
  color: #dfd4c9;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #dfd4c9;
  margin-bottom: 14px;
}

.footer-contact-item svg {
  color: var(--accent-coffee-border);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #dfd4c9;
  flex-wrap: wrap;
  gap: 16px;
}

.payment-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: 12px;
  font-weight: 500;
  color: #decbbe;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.payment-pill svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .site-footer {
    padding-top: 36px;
    padding-bottom: calc(20px + 64px + env(safe-area-inset-bottom, 0px)) !important;
    text-align: center;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 20px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .footer-brand-link,
  .footer-brand .brand-logo {
    order: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
  }

  .footer-brand .site-footer-logo-img {
    margin: 0 auto;
  }

  .footer-brand .footer-desc {
    order: 2 !important;
    text-align: center;
    margin: 8px auto 14px auto;
    max-width: 440px;
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-brand .footer-socials {
    order: 3 !important;
    justify-content: center;
    margin: 0 auto;
    gap: 8px;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col h3,
  .footer-col .footer-col-title,
  .footer-col h5 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 15.5px;
  }

  .footer-links {
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
  }

  .footer-links a {
    text-align: center;
    font-size: 13px;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-contact-item {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    font-size: 13px;
  }

  .footer-contact-item svg {
    margin-top: 0;
  }

  .footer-bottom {
    padding-top: 18px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
    font-size: 12px;
  }

  .payment-badges {
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }

  .payment-pill {
    padding: 4px 8px;
    font-size: 11px;
    gap: 5px;
  }

  .back-to-top-btn {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 940;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--surface-contrast);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--accent-coffee);
  color: #ffffff;
  border-color: var(--accent-coffee);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.back-to-top-btn svg {
  transition: transform 0.22s ease;
}

.back-to-top-btn:hover svg {
  transform: translateY(-2px);
}

.mobile-bottom-bar {
  display: none !important;
}

@media (min-width: 821px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.cookie-banner {
  position: fixed;
  z-index: 99999;
  bottom: 24px;
  left: 50%;
  right: auto;
  transform: translate(-50%, 120%);
  width: calc(100% - 48px);
  max-width: 620px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 16px 42px rgba(36, 24, 19, 0.14), 0 2px 8px rgba(36, 24, 19, 0.05);
  padding: 14px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
}

.cookie-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cookie-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-brown-soft, #f8f1e9);
  border: 1px solid var(--brand-brown-border, #decbbe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-coffee, #7a4d2c);
  font-size: 17px;
  flex-shrink: 0;
}

.cookie-banner-content {
  flex: 1;
  min-width: 0;
}

.cookie-banner-title {
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main, #241813);
  margin: 0 0 2px 0;
  line-height: 1.25;
}

.cookie-banner-text {
  font-family: var(--font-family);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted, #5c473b);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--accent-coffee, #7a4d2c);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition-fast);
}

.cookie-banner-text a:hover {
  color: var(--brand-brown-hover, #5c351b);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cookie-btn-decline {
  background: transparent;
  border: 1px solid var(--border, #e7ddd1);
  color: var(--text-muted, #5c473b);
  padding: 7px 13px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-family);
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  border-color: var(--accent-coffee, #7a4d2c);
  color: var(--accent-coffee, #7a4d2c);
  background: var(--brand-brown-soft, #f8f1e9);
}

.cookie-btn-accept {
  background: var(--accent-coffee, #7a4d2c);
  border: 1px solid var(--accent-coffee, #7a4d2c);
  color: #ffffff;
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-family);
  box-shadow: 0 3px 10px rgba(122, 77, 44, 0.2);
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  background: var(--brand-brown-hover, #5c351b);
  border-color: var(--brand-brown-hover, #5c351b);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    transform: translateY(140%);
    max-width: calc(100% - 24px);
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(36, 24, 19, 0.14);
  }

  .cookie-banner.show {
    transform: translateY(0);
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cookie-banner-icon {
    display: none;
  }

  .cookie-banner-title {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .cookie-banner-text {
    font-size: 11px;
    line-height: 1.35;
  }

  .cookie-banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 2px;
  }

  .cookie-btn-decline,
  .cookie-btn-accept {
    width: 100%;
    text-align: center;
    padding: 7px 6px;
    font-size: 11.5px;
    border-radius: 7px;
  }
}

