/* =========================================================
   Месарница „Данина“ – traditional butcher's shop styles
   Palette taken from the shop's own sign: deep red, cream,
   charcoal shopfront, warm wood.
   ========================================================= */

:root {
  --red: #a3201b;
  --red-dark: #7a1712;
  --red-soft: #c9473a;
  --cream: #f7f0e3;
  --paper: #fbf7ef;
  --wood: #8a5a32;
  --charcoal: #2a2827;
  --ink: #2f2a26;
  --muted: #6d625a;
  --line: #e4d8c4;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sign: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "PT Sans", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(42, 40, 39, .12);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--charcoal); }
h3 { font-family: var(--font-sign); font-weight: 500; letter-spacing: .02em; font-size: 1.3rem; text-transform: uppercase; color: var(--red-dark); }
p { margin: 0 0 1em; }
figure { margin: 0; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-sign);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(42, 40, 39, .97);
  color: #fff;
  border-bottom: 3px solid var(--red);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-family: var(--font-sign); font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: #e8c9a5; }
.brand-name { font-family: var(--font-sign); font-weight: 700; font-size: 1.55rem; letter-spacing: .08em; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  color: #f1e6d6;
  text-decoration: none;
  font-family: var(--font-sign);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
  padding: .3em 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-color: var(--red-soft); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 6px;
  font-family: var(--font-sign); font-weight: 500; letter-spacing: .08em;
  padding: .35em .75em; cursor: pointer;
}
.lang-switch:hover { background: var(--red); border-color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(30,22,20,.94) 0%, rgba(30,22,20,.82) 45%, rgba(30,22,20,.25) 100%);
}
.hero-content { position: relative; padding: 4rem 0; max-width: 640px; margin-left: max(1.25rem, (100% - 1180px) / 2); }
.eyebrow { font-family: var(--font-sign); letter-spacing: .2em; text-transform: uppercase; color: #f0c9a0; font-size: .95rem; }
.hero h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.8rem, 7vw, 5rem); margin-bottom: .3em; }
.hero-small { display: block; font-family: var(--font-sign); font-weight: 500; font-size: .38em; letter-spacing: .35em; text-transform: uppercase; color: #f0c9a0; }
.hero-lead { font-size: 1.2rem; max-width: 34em; color: #f6eee4; }
.hero-badges { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badges li {
  font-family: var(--font-sign); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
  padding: .4em 1em; border-radius: 999px;
  background: rgba(163, 32, 27, .9);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-phone {
  display: inline-flex; align-items: center; gap: .8rem;
  margin-top: 1.6rem; color: #fff; text-decoration: none;
}
.hero-phone-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #f0c9a0; color: #f0c9a0; font-size: 1.4rem;
  transition: background .2s, color .2s;
}
.hero-phone:hover .hero-phone-icon { background: #f0c9a0; color: var(--charcoal); }
.hero-phone-label { display: block; font-family: var(--font-sign); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: #f0c9a0; }
.hero-phone-number { display: block; font-family: var(--font-sign); font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; line-height: 1.1; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-kicker {
  font-family: var(--font-sign); text-transform: uppercase; letter-spacing: .28em;
  color: var(--red); font-size: .9rem; margin-bottom: .6rem;
  display: inline-flex; align-items: center; gap: .8rem;
}
.section-kicker::before, .section-kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .6; }
.section-kicker--light { color: #f0c9a0; }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-text .section-kicker { margin-bottom: .4rem; }
.features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.8rem; }
.features li { display: flex; gap: .9rem; align-items: flex-start; }
.features h3 { font-size: 1.05rem; margin-bottom: .2em; }
.features p { margin: 0; font-size: .98rem; color: var(--muted); }
.feature-icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  font-family: var(--font-sign); font-weight: 700; font-size: 1rem;
}
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--red); border-radius: var(--radius); z-index: -1;
}
figcaption { font-size: .92rem; color: var(--muted); margin-top: .7rem; font-style: italic; }

/* ---------- Products ---------- */
.products { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 14px rgba(42,40,39,.08);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: 1.3rem 1.4rem 1.5rem; }
.product-body h3 { font-size: 1.45rem; border-bottom: 2px solid var(--line); padding-bottom: .4rem; }
.product-body ul { margin: 0; padding-left: 1.1rem; }
.product-body li { margin: .25em 0; }
.product-body li::marker { color: var(--red); }

.product-card--plain .product-mark {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; font-size: 6rem; color: rgba(255,255,255,.95);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.08) 0 30%, transparent 31%),
    repeating-linear-gradient(45deg, var(--red) 0 18px, var(--red-dark) 18px 36px);
}

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.strip figcaption { text-align: center; font-style: normal; font-family: var(--font-sign); text-transform: uppercase; letter-spacing: .06em; color: var(--charcoal); margin-top: .5rem; }

/* ---------- Offal ---------- */
.offal { background: var(--paper); }
.offal-grid { display: grid; grid-template-columns: minmax(240px, .55fr) 1.45fr; gap: 2.2rem; align-items: start; }
.offal-tall img { width: 100%; max-height: 760px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.offal-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.offal-box {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem;
}
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; font-size: .95rem; }
.offal-photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: .6rem; }
.offal-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.offal-photos figcaption { text-align: center; font-style: normal; margin-top: .4rem; }

/* ---------- Delicacies ---------- */
.delicacies {
  background:
    linear-gradient(rgba(42,40,39,.94), rgba(42,40,39,.94)),
    repeating-linear-gradient(90deg, #3a3634 0 2px, transparent 2px 60px);
  color: #efe5d7;
}
.delicacies h2 { color: #fff; }
.delicacies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.delicacy-list { display: grid; gap: 1rem; margin: 1.6rem 0; }
.delicacy { border-left: 4px solid var(--red-soft); padding: .3rem 0 .3rem 1.1rem; }
.delicacy h3 { color: #f0c9a0; font-size: 1.4rem; margin-bottom: .1em; }
.delicacy p { margin: 0; }
.note { font-style: italic; color: #cbbca8; }
.delicacies-photo img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.delicacies-photo figcaption { color: #cbbca8; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery-grid .g-tall { grid-row: span 2; }

/* ---------- Payment ---------- */
.payment { background: var(--red); color: #fff; padding: 2.5rem 0; }
.payment-inner { display: flex; align-items: center; gap: 2rem; }
.payment img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius); background: #fff; flex: none; }
.payment h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3em; }
.payment p { margin: 0; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { margin: 1.5rem 0 2rem; display: grid; gap: 1.1rem; }
.contact-list div { border-bottom: 1px dashed var(--line); padding-bottom: .9rem; }
.contact-list dt { font-family: var(--font-sign); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--red); }
.contact-list dd { margin: .15rem 0 0; font-size: 1.15rem; }
.contact-list a { text-decoration: none; }
.placeholder { background: #fff3c4; outline: 2px dashed #d8a400; padding: 0 .3em; border-radius: 4px; color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: #ddd; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc3b3; padding: 2.2rem 0; border-top: 4px solid var(--red); }
.footer-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-inner img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: #fff; font-family: var(--font-sign); letter-spacing: .05em; font-weight: 500; }
.copy { margin-left: auto !important; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .main-nav { gap: 1.1rem; }
  .main-nav a { font-size: .85rem; }
  .offal-lists { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--charcoal);
    border-bottom: 3px solid var(--red);
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 1rem 1.5rem; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }

  .about-grid, .delicacies-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 520px; margin: 1rem auto 0; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .strip, .offal-photos { grid-template-columns: 1fr 1fr; }
  .offal-grid { grid-template-columns: 1fr; }
  .offal-tall { max-width: 420px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1.3rem; }
  .hero { min-height: 82vh; }
  .hero-overlay { background: linear-gradient(180deg, rgba(30,22,20,.55) 0%, rgba(30,22,20,.88) 70%); }
  .hero-content { margin-left: 1.25rem; margin-right: 1.25rem; padding: 3rem 0; }
  .features, .product-grid, .offal-lists { grid-template-columns: 1fr; }
  .payment-inner { flex-direction: column; text-align: center; }
  .copy { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
