/* Krassi.bg — mayonnaise factory site (structure from Hissar recreation) */
:root {
  /* Primary accent = brand yellow; --cyan kept as alias for existing rules */
  --cyan: #fab400;
  --cyan-dark: #e09f00;
  --cyan-soft: #fff8e0;
  --navy: #004080;
  --navy-deep: #002f5c;
  --heading: #404040;
  --text: #4a5568;
  --text-dark: #1a2b3c;
  --muted: #8a96a3;
  --red: #d02020;
  --gold: #fab400;
  --line: #eee3e3;
  --bg: #faf7f6;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 64, 128, 0.08);
  --radius: 18px;
  --container: 1200px;
  --header-h: 90px;
  --font: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html.is-rocket {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(11, 44, 74, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: flex-start;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.logo img {
  width: 96px;
  height: auto;
  margin-bottom: -28px;
  filter: drop-shadow(0 8px 16px rgba(11, 44, 74, 0.15));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--cyan-dark);
}

.nav-item {
  position: relative;
}

.nav-item > button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item > button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.dropdown a:hover {
  background: var(--cyan-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  border-radius: 2px;
  transition: 0.2s;
}

/* ========== PAGE HERO / BANNER ========== */
.page-intro {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 760px;
}

.page-intro h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-intro .breadcrumb {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.page-intro .breadcrumb a:hover {
  color: var(--cyan);
}

/* ========== HOME HERO (match live krassi.bg .krassi-hero) ========== */
.home-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #fffaf0;
}

.home-hero-photo,
.home-hero-banner {
  display: block;
}

.home-hero-banner {
  width: 100%;
  height: auto;
}

/* Desktop: wide banner scaled by height, side-cropped like live */
@media (min-width: 768px) {
  .home-hero {
    height: clamp(420px, 35vw, 700px);
  }

  .home-hero-photo {
    width: max-content;
    height: 100%;
    margin: 0 auto;
  }

  .home-hero-banner {
    width: auto;
    max-width: none;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section.tight {
  padding: 56px 0;
}

/* Match live feature-section .inner-container tuck */
.home-hero + .section {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 64px;
  position: relative;
  z-index: 3;
  background: transparent !important;
}

.section-alt {
  background: var(--bg);
}

.intro-card {
  position: relative;
  z-index: 3;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(11, 44, 74, 0.14);
  padding: clamp(28px, 5vw, 56px);
  margin-top: -100px;
}

.intro-card h2 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.intro-card .lead {
  text-align: center;
  color: var(--heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 760px;
  margin: 0 auto 42px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
}

.feature {
  text-align: center;
  padding: 8px 22px;
  position: relative;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 12px;
  height: 121px;
  background: url("/images/2021/07/shape-3.png") center / contain no-repeat;
  transform: translateX(50%);
  opacity: 0.85;
  pointer-events: none;
}

.feature-icon {
  width: auto;
  height: auto;
  margin: 0 auto 18px;
  background: none;
  border-radius: 0;
  color: var(--gold);
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon i {
  font-size: 48px;
  line-height: 1;
  color: var(--gold);
}

.feature-icon i::before {
  color: var(--gold);
}

.feature h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.68;
  color: #8a96a3;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
}

.section-head h2.section-title-cyan {
  color: var(--cyan);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-head .section-accent {
  margin-top: 14px;
  color: var(--red);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.section--range {
  background: var(--white);
}

.about-media--products {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.about-media--products img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.about-copy h2 {
  margin: 0 0 22px;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .accent {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ========== TRADITION / HISTORY ========== */
.tradition-section {
  background: #f7f4ef;
}

.tradition-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.tradition-head h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.25;
}

.tradition-title {
  color: var(--heading);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tradition-subtitle {
  color: var(--heading);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tradition-tagline {
  color: var(--cyan);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  margin-top: 4px;
}

.tradition-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.tradition-timeline {
  position: relative;
}

.tradition-timeline__rail {
  position: absolute;
  left: 13px;
  top: 0;
  width: 2px;
  height: 0;
  background: rgba(11, 44, 74, 0.12);
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
  transform: translateX(-50%);
}

.tradition-timeline__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--red) 100%);
  border-radius: inherit;
  will-change: height;
}

.tradition-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.tradition-list > li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}

.tradition-check {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(11, 44, 74, 0.28);
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.tradition-check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 12px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.55);
  opacity: 0;
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.tradition-check.is-active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(208, 32, 32, 0.22);
  transform: scale(1.05);
}

.tradition-check.is-active::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.tradition-list p {
  margin: 0;
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.75;
}

.tradition-list strong {
  color: var(--navy);
  font-weight: 700;
}

.tradition-awards {
  margin: 10px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tradition-awards li {
  position: relative;
  padding-left: 16px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

.tradition-awards li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%);
}

.tradition-media {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.tradition-media img {
  width: 100%;
  max-height: min(560px, 70vh);
  height: auto;
  display: block;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: var(--cyan-dark);
  color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: #b01818;
  color: var(--white);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(11, 44, 74, 0.12);
}

.category-card .thumb {
  background: var(--white);
  padding: 28px;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.category-card img {
  max-height: 220px;
  object-fit: contain;
}

.category-card h3 {
  margin: 0;
  padding: 20px 18px 8px;
  color: var(--heading);
  font-size: 1.05rem;
}

.category-card .link {
  display: inline-block;
  padding: 0 18px 22px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* ========== PRODUCTS PAGE ========== */
.products-section {
  padding-top: 40px;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.filter-list {
  display: grid;
  gap: 10px;
  position: sticky;
  align-self: start;
  top: max(calc(var(--header-h) + 16px), 20vh);
}

.filter-btn {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: 0.2s;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.filter-btn img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card .media {
  position: relative;
  background: transparent;
  margin: 0;
  border-radius: 0;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 16px 12px 8px;
}

.product-card .media img {
  max-height: 190px;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

.product-card h3 {
  margin: 0 16px 6px;
  font-size: 0.98rem;
  color: var(--text-dark);
  min-height: 2.8em;
}

.product-card .meta {
  margin: 0 16px 18px;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.product-card[hidden] {
  display: none;
}

.products-outro {
  margin-top: 36px;
  max-width: 920px;
}

.products-outro p {
  margin: 0 0 14px;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}

.products-outro p:last-child {
  margin-bottom: 0;
}

.products-outro strong {
  color: var(--heading);
  font-weight: 700;
}

/* ========== GALLERY / CERTS ========== */
/* Flex columns — natural image heights, no grid row gaps. JS packs items left→right across tops. */
.masonry {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.masonry a {
  display: block;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.masonry img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s;
}

.masonry a:hover img {
  transform: scale(1.04);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.certs-grid a {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.certs-grid img {
  max-height: 280px;
  object-fit: contain;
}

/* ========== NEWS ========== */
.news-list {
  display: grid;
  gap: 24px;
}

.news-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card > a:first-child {
  display: block;
  align-self: stretch;
  min-height: 220px;
  overflow: hidden;
  background: #f7f4ef;
}

.news-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
}

.news-body {
  padding: 24px 24px 24px 0;
}

.news-body .meta {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.news-body h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--heading);
}

.news-body h2 a {
  color: inherit;
  text-decoration: none;
}

.news-body h2 a:hover {
  color: var(--cyan-dark);
}

.news-body p {
  margin: 0 0 14px;
}

.article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
}

.article .meta {
  color: var(--cyan-dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.article h1 {
  margin: 0 0 20px;
  color: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}

/* Same footprint as news-card thumb (~280px), centered in the article */
.article img.cover {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.article p {
  margin: 0 0 16px;
}

.article figure {
  margin: 0 auto 24px;
  max-width: 280px;
  text-align: center;
}

.article figure img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
}

.article figcaption {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.article blockquote {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--cyan);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 14px 14px 0;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.55;
}

.article .article-credit {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.news-body .read-more {
  font-weight: 700;
  color: var(--cyan-dark);
}

.news-body .read-more:hover {
  color: var(--navy);
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.article-gallery img {
  display: block;
  border-radius: 14px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ========== ABOUT CONTENT ========== */
.content-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  max-width: 920px;
  margin: 0 auto;
}

.content-card h1,
.content-card h2 {
  margin: 0 0 18px;
  color: var(--text-dark);
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.content-card h1::after,
.content-card .title-line::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  margin-top: 12px;
  border-radius: 2px;
}

.content-card p {
  margin: 0 0 16px;
  font-size: 1.02rem;
}

.content-card .quote {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
  margin-top: 24px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-box,
.contact-form {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.contact-box h3,
.contact-form h3 {
  margin: 0 0 22px;
  color: var(--heading);
  font-size: 1.35rem;
}

.info-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.info-row p {
  margin: 0 0 4px;
  color: var(--muted, #5a6a7a);
  line-height: 1.45;
}

.info-row p:last-child {
  margin-bottom: 0;
}

.info-row a {
  color: inherit;
  text-decoration: none;
}

.info-row a:hover {
  color: var(--cyan-dark);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-form form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  background: #fff;
  font: inherit;
  color: var(--navy);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #9aa8b5;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(0, 209, 249, 0.35);
  border-color: var(--cyan);
}

.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.maps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.map-card h4 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 1.1rem;
}

.map-card > p {
  margin: 0 0 14px;
  color: var(--muted, #5a6a7a);
  font-size: 0.95rem;
}

.map-embed {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  background: var(--bg);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ========== FOOTER ========== */
.site-footer {
  --footer-blue: #0a3a6b;
  --footer-blue-mid: #0d4a85;
  --footer-blue-deep: #062848;
  position: relative;
  color: #fff;
  padding: 64px 0 0;
  margin-top: 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 12% 0%, rgba(30, 110, 185, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 60% at 88% 100%, rgba(20, 90, 160, 0.4), transparent 50%),
    radial-gradient(ellipse 70% 50% at 55% 40%, rgba(14, 70, 130, 0.35), transparent 60%),
    linear-gradient(145deg, var(--footer-blue-deep) 0%, var(--footer-blue) 42%, var(--footer-blue-mid) 72%, #08325c 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 45% at 30% 110%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(ellipse 100% 40% at 75% -10%, rgba(0, 209, 249, 0.08), transparent 50%);
  opacity: 0.9;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 0.95fr;
  grid-template-areas: "brand tpk bk links";
  gap: 0;
  padding-bottom: 40px;
  align-items: start;
}

.footer-col {
  padding: 8px 28px;
  min-width: 0;
}

.footer-brand {
  grid-area: brand;
}

.footer-col--tpk {
  grid-area: tpk;
}

.footer-col--bk {
  grid-area: bk;
}

.footer-links {
  grid-area: links;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.footer-brand img {
  width: 92px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}

.footer-brand p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
}

.footer-brand h4,
.footer-col h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-col li.footer-label {
  margin-top: 10px;
  margin-bottom: 4px;
}

.footer-col a {
  color: #fff;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.footer-icon--pin {
  color: var(--cyan);
  width: 16px;
  height: 16px;
}

.footer-icon--phone {
  color: rgba(180, 210, 230, 0.75);
}

.footer-links li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-accent-link {
  color: #f5c518 !important;
  font-weight: 600;
}

.footer-accent-link:hover {
  color: #ffd54a !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom a {
  color: var(--cyan);
  font-weight: 600;
}

.footer-bottom a:hover {
  color: #fff;
}

.back-top {
  position: fixed;
  right: 8px;
  bottom: 20px;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.92);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease;
  z-index: 1100;
  filter: drop-shadow(0 10px 18px rgba(11, 44, 74, 0.22));
  will-change: transform, left, top;
}

.back-top img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.back-top:hover.show:not(.is-flying):not(.is-docked) {
  transform: translate3d(0, -3px, 0) scale(1.06);
  filter: drop-shadow(0 14px 22px rgba(0, 184, 220, 0.35));
}

.back-top:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.back-top.is-flying {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: none;
  transition: none;
  z-index: 1300;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter: drop-shadow(0 16px 22px rgba(0, 40, 70, 0.45));
}

.back-top.is-docked {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  cursor: default;
  animation: none;
  filter: drop-shadow(0 6px 12px rgba(11, 44, 74, 0.18));
  transition: none;
}

.rocket-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 22, 38, 0.5) 0%, rgba(3, 10, 18, 0.74) 100%);
  -webkit-transition: opacity 0.35s linear, visibility 0.35s linear;
  transition: opacity 0.35s linear, visibility 0.35s linear;
}

.rocket-overlay.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  touch-action: none;
}

.rocket-bubbles {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1140;
  overflow: hidden;
  pointer-events: none;
}

.rocket-bubble {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.28) 14%, rgba(255, 255, 255, 0.04) 32%, transparent 48%),
    radial-gradient(circle at 72% 74%, rgba(0, 190, 220, 0.32) 0%, transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(176, 228, 242, 0.3) 64%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 0 10px rgba(170, 225, 245, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 0 10px rgba(170, 225, 245, 0.35);
}

.rocket-bubble:nth-child(3n) {
  background:
    radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.2) 16%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(210, 244, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.7) 100%);
}

@media (max-width: 768px) {
  .back-top {
    width: 70px;
    height: 70px;
    right: 4px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-top,
  .back-top.is-docked {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .back-top.is-flying,
  .rocket-overlay {
    -webkit-transition: none;
    transition: none;
  }

  .tradition-check,
  .tradition-check::after,
  .tradition-timeline__fill {
    transition: none;
  }

  .tradition-check.is-active {
    transform: none;
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 51, 0.88);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

/* animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature:nth-child(2n)::after {
    display: none;
  }

  .about-grid,
  .tradition-layout,
  .category-cards,
  .products-layout,
  .products-grid,
  .contact-grid,
  .maps-grid,
  .news-card,
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand links"
      "tpk bk";
  }

  .footer-col {
    padding: 16px 12px;
    border-left: 0 !important;
  }

  .footer-brand,
  .footer-col--tpk {
    padding-left: 0;
  }

  .footer-links,
  .footer-col--bk {
    padding-right: 0;
  }

  .footer-col--tpk,
  .footer-col--bk {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
    padding-top: 24px;
  }

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

  .tradition-media {
    position: static;
    max-width: 420px;
    margin: 0 auto;
    order: -1;
  }

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

  .filter-list {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

}

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 12px;
    display: none;
  }

  .nav-item.open .dropdown {
    display: block;
  }

  .features,
  .about-grid,
  .tradition-layout,
  .category-cards,
  .products-grid,
  .contact-grid,
  .maps-grid,
  .news-card,
  .certs-grid,
  .form-grid,
  .filter-list,
  .article-gallery {
    grid-template-columns: 1fr;
  }

  .about-copy {
    text-align: center;
  }

  .news-body {
    padding: 0 20px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand links"
      "tpk bk";
  }

  .footer-col,
  .footer-col:first-child,
  .footer-col:last-child {
    padding: 16px 10px;
    border-left: 0 !important;
  }

  .footer-brand,
  .footer-col--tpk {
    padding-left: 0;
  }

  .footer-links,
  .footer-col--bk {
    padding-right: 0;
  }

  .footer-col--tpk,
  .footer-col--bk {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 0;
    padding-top: 24px;
  }

  .tradition-head {
    margin-bottom: 32px;
  }

  .tradition-list {
    gap: 18px;
  }

  .tradition-media {
    max-width: 360px;
  }

  .feature::after {
    display: none;
  }

  .feature {
    padding: 18px 8px;
  }

  .news-body {
    padding: 0 18px 18px;
  }

  /* Mobile hero: tall asset, natural height (match live ≤767) */
  .home-hero {
    height: auto;
    background: #fffaf0;
  }

  .home-hero-photo,
  .home-hero-banner {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-hero + .section {
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .intro-card {
    margin-top: 0;
    border-radius: 20px;
    padding: 24px 18px 28px;
  }

  .intro-card .lead {
    margin-bottom: 28px;
  }

  /* Products page — mobile: sticky left filter rail + 1 product/row */
  .products-section {
    padding-top: 20px;
    background: var(--white);
  }

  .products-section .container {
    width: min(100% - 20px, var(--container));
  }

  .products-layout {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .products-main {
    padding-left: 0;
    min-width: 0;
  }

  /* Sticky rail: stays mid-viewport while in products, stops before footer */
  .filter-list {
    position: sticky;
    top: var(--header-h);
    left: auto;
    bottom: auto;
    width: 80px;
    margin: 0;
    padding: 8px 0;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    z-index: 5;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: unset;
    align-self: start;
    transform: none;
  }

  .filter-btn {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    padding: 0;
    gap: 0;
    border-radius: 16px;
    border-color: #e8eef2;
    background: var(--white);
  }

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

  .filter-btn img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .filter-btn.active,
  .filter-btn:hover {
    border-color: var(--cyan);
    background: var(--white);
  }

  .products-layout .section-head {
    text-align: left;
    margin: 0 0 14px !important;
    max-width: none;
  }

  .products-layout .section-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
  }

  .products-layout .section-head p {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(11, 44, 74, 0.07);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card .media {
    margin: 0;
    border-radius: 0;
    min-height: 180px;
    padding: 14px 10px 6px;
    background: transparent;
  }

  .product-card .media img {
    max-height: 160px;
  }

  .badge {
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 5px 10px;
  }

  .product-card h3 {
    margin: 0 12px 6px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 0;
    color: var(--text-dark);
  }

  .product-card .meta {
    margin: 0 12px 14px;
    font-size: 0.78rem;
  }
}
