:root {
  --bg: #fff9ee;
  --paper: #fffdf8;
  --cream: #f7ead3;
  --wheat: #f2b632;
  --gold: #d79320;
  --brown: #321f14;
  --muted: #745f4f;
  --line: rgba(50, 31, 20, 0.12);
  --shadow: 0 16px 40px rgba(75, 44, 22, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--brown);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(50, 31, 20, 0.94);
  color: #fff9ee;
  box-shadow: 0 8px 28px rgba(20, 11, 5, 0.2);
  backdrop-filter: blur(10px);
}

.brand img,
.footer-logo img {
  width: min(144px, 36vw);
  max-height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a,
.site-footer a {
  opacity: 0.9;
}

.site-nav a:hover,
.site-footer a:hover {
  opacity: 1;
  color: var(--wheat);
}

.language-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 249, 238, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff9ee;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.lang-button.active {
  color: var(--brown);
  background: var(--wheat);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 249, 238, 0.25);
  border-radius: 8px;
  background: transparent;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff9ee;
}

.section {
  position: relative;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0;
}

.hero {
  min-height: calc(100vh - 74px);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(50, 31, 20, 0.98) 0%, rgba(82, 50, 25, 0.92) 46%, rgba(236, 178, 67, 0.52) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px),
    var(--brown);
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.hero-media::before {
  width: 44vw;
  height: 44vw;
  min-width: 300px;
  min-height: 300px;
  right: -12vw;
  top: 10%;
  background: rgba(242, 182, 50, 0.28);
}

.hero-media::after {
  width: 34vw;
  height: 34vw;
  min-width: 240px;
  min-height: 240px;
  left: -12vw;
  bottom: -14vw;
  background:
    radial-gradient(circle, rgba(255, 249, 238, 0.24), rgba(255, 249, 238, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.hero-content {
  color: #fffdf8;
}

.hero-showcase {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(255, 249, 238, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 249, 238, 0.22), rgba(255, 249, 238, 0.08)),
    rgba(50, 31, 20, 0.2);
  box-shadow: 0 26px 60px rgba(20, 11, 5, 0.25);
  backdrop-filter: blur(8px);
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 20%, rgba(242, 182, 50, 0.26), transparent 62%);
}

.hero-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fffdf8;
}

.hero-showcase-header img {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  object-fit: contain;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 28px rgba(20, 11, 5, 0.18);
}

.showcase-kicker {
  display: block;
  color: var(--wheat);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-showcase-header strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.hero-product-card {
  overflow: hidden;
  border: 1px solid rgba(50, 31, 20, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffdf8 0%, #fbf0dd 100%);
  box-shadow: 0 18px 34px rgba(20, 11, 5, 0.18);
  opacity: 1;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  will-change: opacity;
}

.hero-product-card.is-fading {
  opacity: 0;
  transform: translateY(2px);
}

.hero-product-image {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(250, 239, 218, 0.88) 70%);
}

.hero-product-image img {
  width: 100%;
  height: 100%;
  max-height: 245px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-product-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--brown);
  background: rgba(255, 249, 238, 0.9);
  border-top: 1px solid rgba(50, 31, 20, 0.08);
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.hero-product-featured .hero-product-image {
  min-height: 260px;
  padding: 24px;
}

.hero-supporting-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-product-card.is-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-product-card {
    transition: none;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.84rem;
}

.hero .eyebrow {
  color: var(--wheat);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  word-break: normal;
  text-wrap: balance;
}

h1 {
  margin: 0 0 20px;
  max-width: 760px;
  font-size: clamp(2.2rem, 7vw, 5.1rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 22px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h4 {
  margin: 16px 0 0;
  font-size: 1.04rem;
  line-height: 1.3;
}

.hero-text {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--brown);
  background: var(--wheat);
}

.button.secondary,
.button.social {
  color: #fffdf8;
  border-color: rgba(255, 253, 248, 0.55);
  background: rgba(255, 253, 248, 0.08);
}

.social-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: currentColor;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.story-layout {
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1.16fr);
}

.story-heading {
  max-width: 520px;
}

.story-heading h2 {
  font-size: clamp(2.15rem, 4.15vw, 3.15rem);
  line-height: 1.08;
  overflow-wrap: normal;
  hyphens: none;
}

.story-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.story-card p:first-child {
  margin-top: 0;
}

.signature {
  margin-bottom: 0;
  font-weight: 800;
}

.products-section {
  background: #fffdf8;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 40px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.category-block {
  margin-top: 42px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(50, 31, 20, 0.1);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 14px 32px rgba(75, 44, 22, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: 20px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(50, 31, 20, 0.09);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.96), rgba(249, 238, 217, 0.92) 72%),
    #fbefdc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease, opacity 0.25s ease;
  mix-blend-mode: multiply;
}

.product-card h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 54px;
  margin: 12px 0 0;
  padding: 0 4px 2px;
  text-align: center;
  color: var(--brown);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 147, 32, 0.34);
  box-shadow: 0 18px 38px rgba(75, 44, 22, 0.14);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-card.is-hidden {
  display: none;
}

.crumbs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

[data-lang="ua"] {
  display: none;
}

body[data-language="ua"] [data-lang="hu"] {
  display: none;
}

body[data-language="ua"] [data-lang="ua"] {
  display: inline;
}

.market-section {
  background: var(--cream);
}

.market-layout,
.social-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.market-layout {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.market-photo-card {
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(90, 58, 28, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 234, 211, 0.94));
  box-shadow:
    0 24px 54px rgba(54, 32, 14, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.market-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 47%;
  border-radius: 7px 7px 4px 4px;
  border: 1px solid rgba(90, 58, 28, 0.1);
  filter: brightness(1.045) contrast(1.045) saturate(1.035);
}

.market-photo-card figcaption {
  margin-top: 10px;
  padding: 12px 14px;
  color: var(--brown);
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(90, 58, 28, 0.1);
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.92rem;
}

.market-content {
  min-width: 0;
}

.market-logo-small {
  width: min(210px, 64vw);
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 1px solid rgba(90, 58, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(75, 44, 22, 0.08);
}

.market-content p {
  color: var(--muted);
}

.market-content .eyebrow {
  color: var(--gold);
}

.market-content .market-note {
  margin-bottom: 0;
  font-weight: 800;
  color: var(--brown);
}

@media (hover: hover) and (pointer: fine) {
  .market-photo-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 30px 64px rgba(54, 32, 14, 0.17),
      0 1px 0 rgba(255, 255, 255, 0.72) inset;
  }
}

.social-section {
  color: #fffdf8;
  background: var(--brown);
}

.social-section .eyebrow {
  color: var(--wheat);
}

.social-layout {
  grid-template-columns: 1fr auto;
}

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

.contact-card {
  min-width: 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(75, 44, 22, 0.08);
}

.contact-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 1.05rem;
}

.feedback-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 28px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(90, 58, 28, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(247, 234, 211, 0.94));
  box-shadow: 0 18px 42px rgba(54, 32, 14, 0.1);
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--brown);
  background: var(--wheat);
  box-shadow: 0 12px 24px rgba(215, 147, 32, 0.22);
}

.feedback-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feedback-content h3 {
  margin: 0 0 8px;
}

.feedback-content p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
}

.feedback-button {
  width: fit-content;
}

.map-block {
  grid-column: 1 / -1;
  margin-top: 32px;
}

.section-heading.small {
  max-width: 680px;
  margin-bottom: 18px;
}

.section-heading.small h3 {
  margin-bottom: 8px;
}

.section-heading.small p:last-child {
  margin: 0;
  color: var(--muted);
}

.map-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(90, 58, 28, 0.16);
  box-shadow: 0 20px 50px rgba(54, 32, 14, 0.12);
  background: #f6efe2;
}

.map-frame iframe {
  width: 100%;
  min-height: 380px;
  display: block;
}

.site-footer {
  color: #fff9ee;
  background: #1c110b;
}

.footer-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.site-footer nav,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  opacity: 0.9;
}

.cookie-settings-link:hover {
  color: var(--wheat);
  opacity: 1;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 249, 238, 0.74);
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 249, 238, 0.2);
  border-radius: 8px;
  color: #fffdf8;
  background: rgba(50, 31, 20, 0.98);
  box-shadow: 0 22px 60px rgba(20, 11, 5, 0.32);
}

.cookie-consent p {
  margin: 0;
  color: rgba(255, 253, 248, 0.92);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: rgba(50, 31, 20, 0.98);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 249, 238, 0.12);
  }

  .language-switcher {
    align-self: flex-start;
    margin-top: 10px;
  }

  .split,
  .hero-inner,
  .market-layout,
  .social-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
  }

  .hero-inner {
    min-height: calc(100vh - 66px);
  }

  .hero-showcase-header img {
    width: 64px;
    height: 64px;
  }

  .hero-product-featured .hero-product-image {
    min-height: 190px;
  }

  .hero-supporting-products {
    grid-template-columns: 1fr;
  }

  .hero-product-image {
    min-height: 140px;
  }

  .product-grid,
  .crumbs-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.12;
  }

  .product-card {
    padding: 12px;
  }

  .product-image {
    height: 190px;
    padding: 18px;
  }

  .map-frame iframe {
    min-height: 300px;
  }

  .feedback-card {
    grid-template-columns: 1fr;
  }

  .feedback-button {
    width: 100%;
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent-inner {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }
}
