/* EVRYKA — header + hero (Allbirds-inspired, мінімалізм) */

:root {
  --bg-main: #f8f5f2;
  --bg-section: #f1ece7;
  /* застарілий акцент; кошик/чат — світлі панелі в style.css */
  --ev-panel-chrome: #635d5a;
  --surface-primary: #ffffff;
  --surface-secondary: #fdfcfb;
  --border-light: #e5e7eb;
  --border-soft: #eeeae6;
  --text-primary: #111111;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent-main: #fb923c;
  --accent-hover: #f97316;
  --accent-btn-hover: #fdba74;
  --accent-soft: #fed7aa;
  --icon-default: #6b7280;
  --icon-active: #fb923c;

  --ev-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ev-black: var(--text-primary);
  --ev-milk: var(--bg-main);
  --ev-text-on-accent: var(--text-primary);
  --ev-rgb: 17, 17, 17;
  --ev-shell-bg: var(--bg-main);
  --ev-bg-gradient: var(--bg-main);
  --ev-accent-gradient: var(--accent-main);
  --ev-surface: var(--surface-primary);
  --ev-surface-dark: var(--bg-section);
  --ev-surface-muted: var(--bg-section);
  --ev-surface-elevated: var(--surface-secondary);
  --ev-ink: var(--text-primary);
  --ev-muted: var(--text-secondary);
  --ev-muted-nav: var(--text-muted);
  --ev-line: var(--border-soft);
  --ev-line-strong: var(--border-light);
  --ev-accent: var(--accent-main);
  --ev-accent-hover: var(--accent-hover);
  --ev-accent-soft: var(--accent-soft);
  --ev-header-surface: var(--surface-primary);
  --ev-border-hair: var(--border-light);
  --ev-border-mid: var(--border-soft);
  --ev-heart: var(--accent-main);
  --ev-btn-dark: var(--bg-section);
  --ev-btn-dark-hover: var(--surface-secondary);
  --ev-header-h: 60px;
  --ev-shell-radius: clamp(18px, 2.3vw, 26px);
  --ev-shell-margin: clamp(10px, 1.8vw, 20px);
}

body {
  font-family: var(--ev-font);
}

/* Фон і змінні шапки (плаваюча) — усі сторінки з body.evryka-site */
body.evryka-site {
  background: var(--ev-bg-gradient);
  color: var(--ev-ink);
  --ev-shell-margin: clamp(0px, 0.65vw, 10px);
  --ev-header-float-inset: clamp(6px, 1.4vw, 12px);
  --ev-header-bar-radius: max(
    9px,
    calc(var(--ev-shell-radius) - var(--ev-header-float-inset) + 1px)
  );
  --ev-stack-outer: var(--ev-shell-margin);
  /* Верх плаваючої смуги шапки (кошик вирівнюємо сюди — налягає на хедер, не вище його) */
  --ev-header-bar-top: calc(
    var(--ev-stack-outer) + var(--ev-header-float-inset) + env(safe-area-inset-top, 0px)
  );
  --ev-header-h: calc(
    var(--ev-stack-outer) + var(--ev-header-float-inset) + 52px + env(safe-area-inset-top, 0px)
  );
}

/* Під фіксовану шапку — контент не ховається під нею (крім головної з героєм) */
body.evryka-site:not(.page-home) {
  padding-top: calc(var(--ev-header-h) + 12px);
}

/* Сторінка товару / каталог / кабінет: контент зверху лише на --ev-stack-outer; біла картка під плаваючою шапкою */
body.evryka-site.page-product,
body.evryka-site.page-catalog,
body.evryka-site.page-cabinet,
body.evryka-site.page-about,
body.evryka-site.page-print3d {
  padding-top: var(--ev-stack-outer);
}

.evryka-site #catalog,
.evryka-site #contacts {
  scroll-margin-top: calc(var(--ev-header-h) + 8px);
}

/* Відступ між банером і контентом головної (категорії + каталог) */
.page-home {
  --home-hero-to-content-gap: clamp(28px, 4vw, 52px);
}

.page-home .evryka-hero-stack + .container {
  margin-top: var(--home-hero-to-content-gap);
}

/* Одна «картка» з банером (усі кути) + компактна шапка поверх банера */
.page-home .evryka-hero-stack {
  position: relative;
  margin: var(--ev-stack-outer);
}

.page-home .evryka-shell {
  margin: 0;
  border-radius: var(--ev-shell-radius);
  background: transparent;
  box-shadow: none;
}

.page-home .evryka-shell .hero-evryka--allbirds,
.page-home .evryka-hero-stack .hero-evryka--allbirds {
  border-radius: var(--ev-shell-radius);
}

/* Плаваюча шапка: fixed — завжди видима при скролі; вирівняна з «карткою» */
.evryka-site .header.header--in-shell.header--home-detached {
  position: fixed;
  top: var(--ev-header-bar-top);
  left: calc(var(--ev-stack-outer) + var(--ev-header-float-inset) + env(safe-area-inset-left, 0px));
  right: calc(var(--ev-stack-outer) + var(--ev-header-float-inset) + env(safe-area-inset-right, 0px));
  z-index: 990;
  margin: 0;
  width: auto;
  max-width: none;
  border-radius: var(--ev-header-bar-radius);
  background: var(--ev-header-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-bottom-color: rgba(17, 17, 17, 0.08);
  box-sizing: border-box;
  box-shadow:
    0 1px 0 rgba(17, 17, 17, 0.04),
    0 14px 44px rgba(0, 0, 0, 0.1),
    0 5px 16px rgba(0, 0, 0, 0.06);
}

/* Header: без ліній; на головній позицію й фон задає .header--home-detached */
.header.header--in-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.header.header--in-shell .header-inner {
  max-width: none;
  padding: clamp(14px, 2vw, 22px) clamp(16px, 3vw, 36px);
  min-height: 56px;
}

.evryka-site .header.header--home-detached .header-inner {
  --ev-logo-gutter: 5px;
  --ev-logo-inset-left: 12px;
  padding: var(--ev-logo-gutter) 20px var(--ev-logo-gutter) var(--ev-logo-inset-left);
  min-height: 44px;
  gap: 12px 20px;
}

.evryka-site .header.header--home-detached .header-logo {
  margin-left: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.evryka-site .header.header--home-detached .header-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.header.header--in-shell nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px 7px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ev-black);
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header.header--in-shell nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: var(--ev-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.header.header--in-shell nav a.active::after {
  transform: scaleX(1);
}

.header.header--in-shell .header-nav:hover a::after {
  transform: scaleX(0);
}

.header.header--in-shell .header-nav:hover a:hover::after {
  transform: scaleX(1);
}

.header.header--in-shell nav a:focus-visible::after {
  transform: scaleX(1);
}

.header.header--in-shell .header-nav:hover a:focus-visible:not(:hover)::after {
  transform: scaleX(0);
}

.evryka-site .header.header--home-detached nav a {
  font-size: 12px;
  padding: 5px 8px 6px;
  letter-spacing: 0.07em;
}

.evryka-site .header.header--home-detached nav a::after {
  left: 8px;
  right: 8px;
  bottom: 2px;
}

/* Без «капсули»: при наведенні на меню інші пункти сіріють, активний — чорний */
.header.header--in-shell .header-nav:hover a {
  color: var(--ev-muted-nav);
}

.header.header--in-shell .header-nav:hover a:hover {
  color: var(--ev-black);
}

.header.header--in-shell nav a:hover,
.header.header--in-shell nav a:focus-visible {
  background: transparent;
}

.header.header--in-shell nav a.active {
  background: transparent;
  color: var(--ev-black);
  font-weight: 700;
}

.header.header--in-shell #search {
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--ev-black);
}

.header.header--in-shell #search:focus {
  background-color: #fff;
  border-color: var(--ev-accent-soft);
  outline: none;
}

.evryka-site .header.header--home-detached .search-box {
  flex: 0 1 160px;
  max-width: 180px;
}

.evryka-site .header.header--home-detached #search {
  padding: 7px 12px 7px 34px;
  font-size: 13px;
  color: var(--ev-black);
  background-color: rgba(255, 255, 255, 0.75);
  background-position: 10px 50%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.evryka-site .header.header--home-detached #search:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--ev-accent-soft);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.25);
}

.evryka-site .header.header--home-detached .auth-icon-btn {
  width: 40px;
  height: 40px;
}

.evryka-site .header.header--home-detached .auth-icon-btn svg {
  width: 23px;
  height: 23px;
}

.evryka-site .header.header--home-detached .cart-icon {
  width: 27px;
  height: 27px;
}

/* Hero Allbirds: справа по вертикалі, легкий overlay + панель з blur */
.hero-evryka--allbirds {
  align-items: center;
  justify-content: flex-end;
  background: var(--ev-bg-gradient);
}

.hero-evryka--allbirds .hero-evryka__overlay {
  background: rgba(0, 0, 0, 0.14);
}

.hero-evryka--allbirds .hero-evryka__content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) clamp(20px, 4vw, 56px);
  width: 100%;
  box-sizing: border-box;
}

/* Карусель у банері (текст + фон, як раніше) */
.hero-evryka--allbirds .hero-evryka-carousel {
  position: absolute;
  inset: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-track {
  position: relative;
  min-height: min(92vh, 980px);
  max-width: none;
  margin: 0;
}

.hero-evryka--allbirds .hero-slide--evryka {
  display: block;
  padding: 0;
  align-items: unset;
  justify-content: unset;
}

.hero-evryka--allbirds .hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero.png");
  /* cover: заповнює ширину без сірих смуг по боках (легкий кроп зверху/знизу можливий) */
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-color: var(--ev-shell-bg);
}

/* Перший слайд: фон images/hero-banner-repair.png (url у HTML) */
.hero-evryka--allbirds .hero-slide--repair .hero-evryka__overlay {
  background: rgba(0, 0, 0, 0.32);
}

/* Другий слайд: images/hero-banner-3d-print.png — світліший фон зліва, принтер справа */
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__overlay {
  background: rgba(0, 0, 0, 0.11);
}

/* Третій слайд: images/hero-banner-gift-toys.png — текст зліва, персонажі справа на фото */
.hero-evryka--allbirds .hero-slide--gift .hero-slide__bg {
  background-position: right center;
}

.hero-evryka--allbirds .hero-slide--gift .hero-evryka__overlay {
  background: rgba(0, 0, 0, 0.3);
}

.hero-evryka--allbirds .hero-slide--repair .hero-evryka__content,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__content,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__content {
  justify-content: flex-start;
  align-items: center;
  padding-left: clamp(20px, 3.5vw, 48px);
  padding-right: clamp(20px, 4vw, 56px);
}

.hero-evryka--allbirds .hero-slide--repair .hero-evryka__panel,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__panel,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__panel {
  max-width: 340px;
  width: 100%;
  padding: 20px 22px 22px;
  text-align: left;
  background: rgba(28, 28, 28, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-radius: clamp(16px, 2vw, 22px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-evryka--allbirds .hero-slide--repair .hero-evryka__title,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__title,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__title {
  max-width: none;
  font-size: clamp(1.32rem, 2.9vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.hero-evryka--allbirds .hero-slide--repair .hero-evryka__lede,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__lede,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__lede {
  max-width: none;
  font-size: clamp(0.88rem, 1.55vw, 0.98rem);
  line-height: 1.45;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-evryka--allbirds .hero-slide--repair .hero-evryka__actions,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__actions,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__actions {
  gap: 10px;
  flex-wrap: wrap;
}

.hero-evryka--allbirds .hero-slide--repair .hero-evryka__btn,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__btn,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-evryka--allbirds .hero-slide--evryka .hero-evryka__overlay {
  z-index: 1;
}

.hero-evryka--allbirds .hero-slide--evryka .hero-evryka__content {
  position: relative;
  z-index: 2;
  min-height: min(92vh, 980px);
  height: auto;
}

.hero-evryka--allbirds .hero-evryka__lede {
  font-family: var(--ev-font);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 22px;
  max-width: 28rem;
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-prev,
.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-next {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-prev:hover,
.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-next:hover {
  background: #fff;
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-prev svg path,
.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-next svg path {
  fill: none;
  stroke: var(--ev-black);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-dots {
  z-index: 5;
  bottom: clamp(20px, 3.2vh, 36px);
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-dot {
  background: rgba(255, 255, 255, 0.38);
}

.hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-dot.is-active {
  background: var(--ev-accent);
}

.hero-evryka__panel {
  max-width: 420px;
  width: 100%;
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px);
  border-radius: clamp(18px, 2.2vw, 24px);
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
}

/* Користувач прибрав текст з hero повністю: лишаємо тільки зображення банера */
.hero-evryka--allbirds .hero-evryka__panel,
.hero-evryka--allbirds .hero-slide--repair .hero-evryka__panel,
.hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__panel,
.hero-evryka--allbirds .hero-slide--gift .hero-evryka__panel {
  display: none !important;
}

.hero-evryka--allbirds .hero-evryka__eyebrow {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-evryka--allbirds .hero-evryka__title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 12px;
  color: #fff;
}

.hero-evryka--allbirds .hero-evryka__actions {
  gap: 12px;
}

.hero-evryka--allbirds .hero-evryka__btn {
  border-radius: 12px;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  box-sizing: border-box;
}

.hero-evryka--allbirds .hero-evryka__btn--primary {
  background: var(--accent-main);
  color: var(--ev-text-on-accent) !important;
}

.hero-evryka--allbirds .hero-evryka__btn--primary:hover {
  background: var(--accent-btn-hover);
  color: var(--ev-text-on-accent) !important;
  filter: none;
  transform: scale(1.02);
}

.hero-evryka--allbirds .hero-evryka__btn--ghost {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.hero-evryka--allbirds .hero-evryka__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .hero-evryka--allbirds .hero-evryka__btn--primary:hover,
  .hero-evryka--allbirds .hero-evryka__btn--ghost:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-evryka__panel .hero-evryka__eyebrow {
    animation: evHeroIn 0.75s ease backwards;
    animation-delay: 0.05s;
  }

  .hero-evryka__panel .hero-evryka__title {
    animation: evHeroIn 0.8s ease backwards;
    animation-delay: 0.12s;
  }

  .hero-evryka__panel .hero-evryka__actions {
    animation: evHeroIn 0.85s ease backwards;
    animation-delay: 0.22s;
  }
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  margin: 0;
  background: var(--ev-header-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  box-shadow: none;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 28px;
  min-height: var(--ev-header-h);
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: none;
}

.header .header-logo {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}

.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.header-burger:hover {
  background: rgba(17, 17, 17, 0.06);
}

.header-burger__line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ev-black);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-burger.is-open .header-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger.is-open .header-burger__line:nth-child(2) {
  opacity: 0;
}

.header-burger.is-open .header-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header .header-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.header-utilities {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
  flex-wrap: nowrap;
}

.header .search-box {
  flex: 0 1 200px;
  min-width: 0;
  max-width: 220px;
  margin: 0;
}

.header #search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background-color: rgba(255, 255, 255, 0.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 16px 16px;
  font-family: var(--ev-font);
  font-weight: 400;
  font-size: 14px;
  color: var(--ev-black);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header #search::placeholder {
  color: var(--ev-muted);
  font-weight: 400;
}

.header #search:focus {
  outline: none;
  border-color: var(--ev-accent-soft);
  background-color: #fff;
  box-shadow: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
}

.header .auth-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  color: var(--ev-black);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header .auth-icon-btn:hover {
  background: rgba(17, 17, 17, 0.06);
  color: var(--ev-black);
  transform: none;
}

.header .auth-icon-btn:active {
  transform: scale(0.96);
}

.header .auth-icon-btn svg {
  width: 24px;
  height: 24px;
}

.header .auth-initials {
  color: var(--ev-black);
  font-size: 12px;
  font-weight: 700;
}

.header .cart-icon {
  width: 29px;
  height: 29px;
}

.header .cart:hover .cart-icon {
  transform: none;
  filter: none;
  opacity: 0.7;
}

.mobile-more-links {
  display: none;
}

/* Кошик відкритий — іконка в шапці не показується (колізії з кешем / специфічністю) */
body.cart-open .header .header-actions .cart,
body.cart-open .header .cart {
  visibility: hidden !important;
  pointer-events: none !important;
}

.header #cartCount {
  background: var(--ev-accent);
  color: var(--ev-text-on-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  top: -2px;
  right: -4px;
}

.header #favoritesBtn .heart-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.header #favoritesBtn .heart-icon path {
  stroke: var(--ev-heart);
}

.header #favoritesBtn:hover .heart-icon path {
  fill: var(--ev-heart);
  stroke: var(--ev-heart);
  opacity: 1;
}

.header nav a {
  font-family: var(--ev-font);
  color: var(--ev-black);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 10px 14px;
  margin: 0;
  border-radius: 8px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header nav a:hover {
  opacity: 1;
  background: transparent;
  color: var(--ev-black);
}

.header nav a.active {
  font-weight: 600;
  color: var(--ev-black);
  background: var(--ev-accent-soft);
}

body.header-nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  body.evryka-site {
    --ev-shell-margin: clamp(0px, 1.5vw, 10px);
    --ev-stack-outer: var(--ev-shell-margin);
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 8px 12px;
    gap: 8px 12px;
    min-height: 50px;
  }

  .header .header-logo {
    grid-column: 1;
    margin: 0;
    justify-self: start;
  }

  .header .header-logo-img {
    width: 32px;
    height: 32px;
  }

  .header-burger {
    display: none;
    width: 40px;
    height: 40px;
  }

  .header-utilities {
    grid-column: 2;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
    justify-self: end;
  }

  .header-actions {
    gap: 2px;
  }

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

  .header .auth-icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .header .cart-icon {
    width: 24px;
    height: 24px;
  }

  .header .search-box {
    display: none;
  }

  body.header-nav-open .header .search-box {
    display: none;
  }

  body.header-nav-open .header #search {
    min-height: 44px;
  }

  .header .header-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    top: var(--ev-header-h);
    bottom: 10px;
    grid-column: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 6px;
    background: var(--surface-primary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    transform: translateX(calc(100% + 24px));
    transition: transform 0.28s ease, opacity 0.2s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  }

  .evryka-site .header .header-nav {
    background: var(--surface-primary);
    border-top: none;
  }

  .header .header-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  body.header-nav-open .header .header-nav {
    top: calc(var(--ev-header-h) + 8px);
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .header nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
  }

  .header.header--in-shell nav a {
    text-align: left;
    font-size: 15px;
    letter-spacing: 0.03em;
    border-radius: 10px;
    font-weight: 700;
    color: var(--ev-black);
    background: #f7f7f7;
  }

  .header.header--in-shell .header-nav:hover a {
    color: var(--ev-black);
  }

  .header.header--in-shell .header-nav:hover a:hover {
    color: var(--ev-black);
  }

  .header.header--in-shell nav a::after {
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
  }

  .mobile-more-links {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mobile-more-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f7f7f7;
    color: var(--ev-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .mobile-more-link:hover,
  .mobile-more-link:focus-visible {
    background: #efefef;
    color: var(--ev-black);
  }

  body.header-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    top: var(--ev-header-h);
    background: rgba(0, 0, 0, 0.25);
    z-index: 1000;
    pointer-events: auto;
  }
}

/* ——— Hero (лише головна) ——— */
.hero-evryka {
  position: relative;
  min-height: min(88vh, 920px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--ev-bg-gradient);
}

/* Перекриває .hero-evryka min-height (порядок у файлі): трек і контент не вищі за секцію — без обрізання низу */
.hero-evryka.hero-evryka--allbirds {
  min-height: min(92vh, 980px);
}

.hero-evryka__media {
  position: absolute;
  inset: 0;
  background: url("../images/hero.png") center 40% / cover no-repeat;
}

.hero-evryka__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.hero-evryka__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 80px) 20px clamp(48px, 10vh, 100px);
  box-sizing: border-box;
}

.hero-evryka__eyebrow {
  font-family: var(--ev-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}

.hero-evryka__title {
  font-family: var(--ev-font);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 16ch;
}

.hero-evryka__lede {
  font-family: var(--ev-font);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px;
  max-width: 36rem;
}

.hero-evryka__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.hero-evryka__btn {
  font-family: var(--ev-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-evryka__btn--primary {
  background: var(--accent-main);
  color: var(--ev-text-on-accent) !important;
  margin-left: 0;
  box-shadow: none;
}

.hero-evryka__btn--primary:hover {
  transform: scale(1.02);
  background: var(--accent-btn-hover);
  color: var(--ev-text-on-accent) !important;
  filter: none;
}

.hero-evryka__btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-evryka__btn--ghost:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .hero-evryka__btn--primary:hover,
  .hero-evryka__btn--ghost:hover {
    transform: none;
  }

  .header-burger__line {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-evryka__eyebrow {
    animation: evHeroIn 0.75s ease backwards;
    animation-delay: 0.05s;
  }

  .hero-evryka__title {
    animation: evHeroIn 0.8s ease backwards;
    animation-delay: 0.12s;
  }

  .hero-evryka__lede {
    animation: evHeroIn 0.8s ease backwards;
    animation-delay: 0.2s;
  }

  .hero-evryka__actions {
    animation: evHeroIn 0.85s ease backwards;
    animation-delay: 0.28s;
  }
}

@keyframes evHeroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .page-home {
    --home-hero-to-content-gap: clamp(10px, 2.4vw, 18px);
  }

  .hero-evryka {
    min-height: clamp(210px, 34vh, 280px);
    align-items: flex-end;
  }

  .hero-evryka__media {
    background-position: center center;
  }

  .hero-evryka__overlay {
    background: rgba(0, 0, 0, 0.26);
  }

  .hero-evryka__content {
    padding: 12px 12px 16px;
    text-align: left;
  }

  .hero-evryka__title {
    max-width: none;
    font-size: clamp(1.02rem, 4vw, 1.22rem);
    line-height: 1.12;
    margin-bottom: 3px;
  }

  .hero-evryka__lede {
    font-size: clamp(0.74rem, 2.5vw, 0.82rem);
    line-height: 1.24;
    margin-bottom: 6px;
  }

  .hero-evryka__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-evryka__btn {
    width: auto;
    min-height: 36px;
    font-size: 10px;
    padding: 8px 12px;
    border-radius: 10px;
  }

  /* Allbirds home: центр, кнопки стовпчиком */
  .hero-evryka.hero-evryka--allbirds {
    min-height: clamp(238px, 38vh, 320px);
  }

  .hero-evryka--allbirds {
    justify-content: center;
    align-items: center;
  }

  .hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-track {
    min-height: clamp(238px, 38vh, 320px);
  }

  .hero-evryka--allbirds .hero-slide--evryka .hero-evryka__content {
    min-height: clamp(238px, 38vh, 320px);
  }

  .hero-evryka--allbirds .hero-evryka__overlay {
    background: rgba(0, 0, 0, 0.2);
  }

  .hero-evryka--allbirds .hero-evryka__content {
    justify-content: flex-start;
    align-items: flex-end;
    padding: 10px 14px 14px;
    text-align: left;
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__content,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__content,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__content {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
    padding: 10px 14px 14px;
  }

  /* Перший банер: не обрізати фон на мобілці */
  .hero-evryka--allbirds .hero-slide--repair .hero-slide__bg {
    background-size: 100% auto !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-color: var(--ev-shell-bg) !important;
  }

  .hero-evryka--allbirds .hero-slide--3d-print .hero-slide__bg,
  .hero-evryka--allbirds .hero-slide--gift .hero-slide__bg {
    background-size: auto 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--ev-shell-bg) !important;
  }

  .page-home .evryka-hero-stack .hero-evryka--allbirds .hero-evryka__content {
    padding-top: 12px;
  }

  .hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-prev,
  .hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-next {
    display: none !important;
  }

  .hero-evryka--allbirds .hero-evryka__panel {
    width: 30%;
    max-width: 30%;
    min-width: 114px;
    text-align: left;
    padding: 2px 4px;
    border-radius: 9px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__panel,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__panel,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__panel {
    width: 30%;
    max-width: 30%;
    min-width: 114px;
    text-align: left;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-evryka--allbirds .hero-evryka__title {
    max-width: 10ch;
    font-size: clamp(0.8rem, 3vw, 0.96rem);
    line-height: 1.08;
    margin-bottom: 4px;
    margin-left: 0;
    margin-right: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__title,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__title,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__title {
    max-width: 10ch;
    font-size: clamp(0.8rem, 3vw, 0.96rem);
    line-height: 1.08;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__title,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__title,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__title {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-evryka--allbirds .hero-evryka__actions {
    align-items: flex-start;
    gap: 4px;
  }

  .hero-evryka--allbirds .hero-evryka__lede {
    display: block;
    font-size: clamp(0.62rem, 2.3vw, 0.72rem);
    line-height: 1.18;
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__lede,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__lede,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__lede {
    font-size: clamp(0.62rem, 2.3vw, 0.72rem);
    line-height: 1.18;
    margin: 0 0 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  }

  .hero-evryka--allbirds .hero-evryka__btn {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 8px;
    line-height: 1.1;
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
  }

  .hero-evryka--allbirds .hero-evryka__btn--ghost {
    display: none;
  }

  .hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-dots {
    bottom: 6px;
  }
}

@media (max-width: 430px) {
  /* На частині вузьких телефонів cover занадто сильно кропає банер.
     Тут даємо contain + стабільне співвідношення сторін, щоб не обрізало. */
  .hero-evryka.hero-evryka--allbirds,
  .hero-evryka--allbirds .hero-evryka-carousel .hero-carousel-track,
  .hero-evryka--allbirds .hero-slide--evryka .hero-evryka__content {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-evryka--allbirds .hero-slide__bg {
    background-size: contain;
    background-position: center 60%;
    background-repeat: no-repeat;
    background-color: var(--ev-shell-bg);
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-slide__bg {
    background-size: 100% auto !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-color: var(--ev-shell-bg) !important;
  }

  .hero-evryka--allbirds .hero-slide--3d-print .hero-slide__bg,
  .hero-evryka--allbirds .hero-slide--gift .hero-slide__bg {
    background-size: auto 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--ev-shell-bg) !important;
  }

  .hero-evryka--allbirds .hero-evryka__panel,
  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__panel,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__panel,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__panel {
    width: 30%;
    max-width: 30%;
    min-width: 104px;
  }

  .hero-evryka--allbirds .hero-evryka__title {
    max-width: 9ch;
    font-size: clamp(0.72rem, 2.8vw, 0.84rem);
    line-height: 1.06;
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__title,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__title,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__title {
    max-width: 9ch;
    font-size: clamp(0.72rem, 2.8vw, 0.84rem);
    line-height: 1.06;
  }

  .hero-evryka--allbirds .hero-evryka__lede {
    font-size: clamp(0.56rem, 2.15vw, 0.64rem);
    line-height: 1.16;
    margin-bottom: 4px;
  }

  .hero-evryka--allbirds .hero-slide--repair .hero-evryka__lede,
  .hero-evryka--allbirds .hero-slide--3d-print .hero-evryka__lede,
  .hero-evryka--allbirds .hero-slide--gift .hero-evryka__lede {
    font-size: clamp(0.56rem, 2.15vw, 0.64rem);
    line-height: 1.16;
    margin-bottom: 4px;
  }

  .hero-evryka--allbirds .hero-evryka__btn {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 7px;
    border-radius: 7px;
    line-height: 1.1;
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
  }
}
