/* WEST FRUIT — кастомні стилі прототипу (поверх Tailwind CDN) */

html { scroll-behavior: smooth; }
body { background: #000618; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: #FD0A2B; color: #fff; }

/* ---------- поява секцій ---------- */
.rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--d, 0s);
}
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- заголовки ---------- */
.h-hero { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.04; letter-spacing: -0.02em; }
.h-sec  { font-size: clamp(2rem, 4.6vw, 3.8rem);  line-height: 1.08; letter-spacing: -0.015em; }
.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .34em; text-transform: uppercase;
  color: #7fa8e8;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 2px;
  background: #FD0A2B; margin-right: 14px; vertical-align: 4px;
}

/* ---------- кнопки ---------- */
.btn-red {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  background: #FD0A2B; color: #fff; font-weight: 700; letter-spacing: .01em;
  padding: 1rem 2rem; border-radius: 999px; overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}
.btn-red::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, .28) 50%, transparent 75%);
  transform: translateX(-110%); transition: transform .6s ease;
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(253, 10, 43, .55); }
.btn-red:hover::after { transform: translateX(110%); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 2rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600;
  transition: background .3s ease, border-color .3s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }

/* ---------- шапка: трансформація логотипа ---------- */
.hd {
  position: fixed; inset-inline: 0; top: 0; z-index: 60;
  transition: background .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
}
.hd-compact {
  background: rgba(0, 9, 30, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(125, 168, 232, .16), 0 18px 50px -30px rgba(0, 0, 0, .8);
}
.logo-full, .logo-mark { transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.logo-box { position: relative; height: 42px; display: flex; align-items: center; }
.logo-box img { height: 100%; width: auto; position: absolute; left: 0; }
.logo-full { opacity: 1; transform: none; }
.logo-mark { opacity: 0; transform: translateX(-14px) scale(.92); }
.hd.on .logo-full { opacity: 0; transform: translateX(10px) scale(.96); }
.hd.on .logo-mark { opacity: 1; transform: none; }

/* ---------- hero-слайдер ---------- */
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.active { opacity: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }
.slide img { animation: kb 9.5s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }

/* hero: компактний текст — фото/відео на першому плані */
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,6,24,.92) 0%, rgba(0,8,30,.5) 36%, rgba(0,10,36,.08) 64%, transparent 100%),
              linear-gradient(95deg, rgba(0,6,24,.66) 0%, rgba(0,10,40,.22) 36%, transparent 60%),
              linear-gradient(to bottom, rgba(0,6,24,.78) 0%, rgba(0,6,24,.28) 10%, transparent 20%);
}
@media (max-width: 1023px) {
  .hero-scrim { background: linear-gradient(to top, rgba(0,6,24,.94) 0%, rgba(0,8,30,.55) 46%, rgba(0,10,36,.12) 76%, transparent 100%),
    linear-gradient(to bottom, rgba(0,6,24,.82) 0%, rgba(0,6,24,.35) 14%, transparent 26%); }
}
.hero-title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; }
.hero-sub { font-size: 1.02rem; line-height: 1.65; }

/* ---------- панелі категорій ---------- */
.panels { display: flex; gap: 12px; height: 540px; }
.panel {
  position: relative; flex: 1; border-radius: 22px; overflow: hidden; cursor: pointer;
  transition: flex .8s cubic-bezier(.16, 1, .3, 1);
  outline: 1px solid rgba(125, 168, 232, .14); outline-offset: -1px;
}
.panels:hover .panel { flex: .72; }
.panels .panel:hover { flex: 2.6; }
.panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1);
}
.panel:hover img { transform: scale(1.07); }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 6, 24, .88) 0%, rgba(0, 6, 24, .25) 44%, rgba(0, 6, 24, .05) 100%); transition: background .6s ease; }
.panel:hover .panel-shade { background: linear-gradient(to top, rgba(0, 6, 24, .92) 0%, rgba(0, 20, 66, .45) 60%, rgba(0, 40, 120, .12) 100%); }
.panel-body { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 24px; }
.panel-idx {
  font-family: "Space Grotesk", sans-serif; font-size: .8rem; letter-spacing: .3em;
  color: #8fb6ef; opacity: 0; transition: opacity .45s ease;
}
.panel:hover .panel-idx { opacity: .85; }
.panel-title { font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em; white-space: nowrap; transition: opacity .45s ease; }
.panel-title-v {
  position: absolute; left: 22px; bottom: 24px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap;
  color: #fff; transition: opacity .45s ease; opacity: 1;
}
.panel-title { opacity: 0; }
.panel:hover .panel-title { opacity: 1; }
.panel:hover .panel-title-v { opacity: 0; }
.panel-meta { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s cubic-bezier(.16, 1, .3, 1), opacity .5s ease .1s; }
.panel:hover .panel-meta { max-height: 90px; opacity: 1; }
.panel-line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #0051EA, #FD0A2B); transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.panel:hover .panel-line { width: 100%; }
@media (max-width: 900px) {
  .panels { flex-direction: column; height: auto; }
  .panel { flex: 0 0 210px; }
  .panels:hover .panel { flex: 0 0 210px; }
  .panel-meta { max-height: 130px; opacity: 1; }
  .panel-title { opacity: 1; }
  .panel-title-v { display: none; }
  .panel-idx { opacity: .85; }
}

/* ---------- картки продуктів ---------- */
.prod { position: relative; border-radius: 20px; overflow: hidden; background: #03102e; outline: 1px solid rgba(125, 168, 232, .13); outline-offset: -1px; transition: box-shadow .5s cubic-bezier(.16, 1, .3, 1), outline-color .5s ease; }
.prod:hover { outline-color: rgba(253, 10, 43, .55); box-shadow: 0 22px 46px -24px rgba(0, 0, 0, .85); }
.prod-img { aspect-ratio: 4 / 5; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.prod:hover .prod-img img { transform: scale(1.08); }
.badge-ex {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #FD0A2B, #d00b26);
  padding: .42rem .8rem; border-radius: 999px; box-shadow: 0 8px 24px -6px rgba(253, 10, 43, .6);
}

/* ---------- стрічка країн ---------- */
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- карта ---------- */
.map-glow { position: relative; }
.map-glow::before {
  content: ""; position: absolute; inset: -8% -4%;
  background: radial-gradient(55% 60% at 62% 40%, rgba(0, 81, 234, .16), transparent 70%),
              radial-gradient(38% 45% at 22% 72%, rgba(253, 10, 43, .07), transparent 72%);
  pointer-events: none;
}

/* ---------- фото-рамки ---------- */
.frame { position: relative; border-radius: 24px; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.frame:hover img { transform: scale(1.045); }
.frame-cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(0, 12, 40, .66); backdrop-filter: blur(6px);
  border: 1px solid rgba(125, 168, 232, .25); border-radius: 999px; padding: .4rem .9rem;
}

/* ---------- інфраструктурний банер ---------- */
.infra-overlay { position: absolute; inset-inline: 0; bottom: 0; }
@media (max-width: 1023px) {
  .infra-overlay { position: static; }
  #quality .frame img { height: 320px; }
}

/* ---------- дрібні ---------- */
.hairline { height: 1px; background: linear-gradient(90deg, rgba(125, 168, 232, .4), transparent); }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  border: 1px solid rgba(125, 168, 232, .25); border-radius: 999px; font-size: .85rem; color: #c7d6f2;
  transition: border-color .3s ease, color .3s ease;
}
.chip:hover { border-color: #FD0A2B; color: #fff; }
.chip i { width: 6px; height: 6px; border-radius: 99px; background: linear-gradient(180deg, #0051EA, #FD0A2B); }
/* чіпи-країни: наведення/фокус підсвічує точку й підказку на карті (JS у site.js) */
.chip { cursor: pointer; }
.chip.is-active, .chip:hover { border-color: #FD0A2B; color: #fff; }
.chip:focus-visible { outline: 2px solid rgba(120, 190, 255, .55); outline-offset: 2px; }

.lang-btn { transition: color .3s ease, background .3s ease; }

/* фонова сітка точок для темних секцій */
.dotfield {
  background-image: radial-gradient(rgba(125, 168, 232, .13) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ---------- лого-стрічка брендів ---------- */
.blogo { display: inline-flex; align-items: center; padding: .35rem .9rem; border-radius: 14px;
  transition: background .35s ease, box-shadow .35s cubic-bezier(.16,1,.3,1); }
.blogo svg, .blogo img { height: 44px; width: auto; filter: grayscale(.9) brightness(1.5); opacity: .55;
  transition: filter .4s ease, opacity .4s ease; }
.blogo:hover { background: rgba(125,168,232,.07); box-shadow: 0 10px 24px -14px rgba(0,0,0,.7); }
.blogo:hover svg, .blogo:hover img { filter: none; opacity: 1; }
.brand-logo img { width: 300px; max-width: 100%; height: auto; }
/* картка-посилання на бренд */
a.prod { display: block; }

/* ---------- емблема-лев у CTA-блоках (повна фігура, без обрізки) ---------- */
.cta-crest {
  position: absolute; right: 4%; bottom: 7%; top: auto; transform: none;
  height: min(80%, 400px); width: auto; aspect-ratio: 760 / 745;
  pointer-events: none;
}
.crest-lion {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .17; filter: saturate(1.15);
  transition: opacity .8s ease;
}
.cta-shell:hover .crest-lion { opacity: .24; }
@media (max-width: 1023px) {
  .cta-crest { right: 1%; bottom: 4%; height: 190px; }
  .crest-lion { opacity: .13; }
}


/* ---------- карта «Географія постачання» ---------- */
.sourcing-map { position: relative; }
.sourcing-map object { display: block; }
.sourcing-tip {
  position: absolute; z-index: 30; transform: translate(-50%, calc(-100% - 14px));
  min-width: 170px; max-width: 260px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(142,190,255,.4); background: rgba(4,16,44,.97);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.75);
  pointer-events: none; opacity: 0; transition: opacity .14s ease;
}
.sourcing-tip.is-on { opacity: 1; }
.sourcing-tip__title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9fc3ff; font-weight: 700; }
.sourcing-tip__list { margin-top: 8px; font-size: 13px; line-height: 1.55; color: #dbe8ff; }
.sourcing-tip__list li { display: block; }
.sourcing-tip__more { color: #7fa8e8; }
