/* =========================================================
   MEGAN sp. z o.o. — industrial vacuum cleaners
   Style: minimal, rounded photo cards (reference: stradale.pl)
   Colors: per client brief
   ========================================================= */

:root {
  --bg: #555D61;              /* page background = vacuum housing color */
  --surface: #5E676B;         /* lighter containers */
  --surface-2: #4C5458;       /* darker tiles */
  --card-dark: #2E3336;       /* photo cards (behind the photo) */
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .3);
  --red: #E40707;
  --red-hover: #C90606;
  --brown: #564848;           /* footer */
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, .76);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --page-x: clamp(16px, 5.2vw, 75px);   /* card margin, as on Stradale */
  --wrap: 1400px;
  --r-lg: 28px;
  --r-md: 20px;
  --nav-h: 76px;

  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--red); color: #fff; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
p { margin: 0; max-width: 62ch; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--page-x)); margin: 0 auto; padding: 0 var(--page-x); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #111; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons (Stradale-style: large, rounded) ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 24px;
  border: 1px solid transparent;
  font: 500 1rem var(--font);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, background-color .25s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s; }
.btn:hover { transform: scale(1.02); }
.btn:hover svg.arrow { transform: translateX(2px); }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { box-shadow: 0 0 50px -10px rgba(255, 255, 255, .45); }
.btn-glass {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  font-size: .95rem;
  font-weight: 600;
}
.btn-pill:hover { background: #fff; color: var(--red); transform: none; }
.btn-wide { min-width: 15.5rem; }

/* ---------- Menu bar (red, white text, per brief) ---------- */

.site-header {
  /* --nav-p: 0 at the top of the page, 1 after scrolling (set in main.js).
     The full-width bar morphs into a floating pill, as on Stradale. */
  --nav-p: 0;
  position: sticky;
  top: calc(var(--nav-p) * 17px);
  z-index: 50;
  padding: 0 calc(var(--nav-p) * var(--page-x) * 1.3);
}
.bar {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: calc(var(--nav-h) - var(--nav-p) * 16px);
  padding: 0 clamp(16px, 2vw, 28px);
  background: var(--red);
  border-radius: calc(var(--nav-p) * 38px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, calc(var(--nav-p) * .35));
}

.lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex: none;
}
.lockup-logo { height: calc(38px - var(--nav-p) * 6px); width: auto; }
.lockup-mark { display: flex; flex-direction: column; line-height: 1; }
.lockup-mark strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .1em; }
.lockup-mark small { margin-top: 4px; font-size: .66rem; font-weight: 500; opacity: .9; }
.lockup-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .5); }
/* When the Delfin logo is available: <img class="lockup-logo" src="/img/logo-delfin-biale.png"> instead of .lockup-mark.delfin */

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 10px;
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 1.5px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-divider { width: 1px; height: 30px; background: rgba(255, 255, 255, .4); margin: 0 12px; }

.bar-actions { display: flex; align-items: center; gap: 16px; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .85);
  background: none;
  color: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Narrower screens: menu wraps to a second row */
@media (max-width: 1679px) {
  .bar { flex-wrap: wrap; gap: 0 24px; }
  .lockup { margin-right: auto; min-height: calc(70px - var(--nav-p) * 14px); }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    margin: 0 calc(-1 * clamp(16px, 2vw, 28px));
    padding: 4px clamp(16px, 2vw, 28px) 6px;
    border-top: 1px solid rgba(255, 255, 255, .22);
  }
  .main-nav ul { justify-content: center; }
}
@media (max-width: 1240px) {
  .main-nav ul { justify-content: space-between; gap: 0; }
  .main-nav a { padding: 8px 6px; font-size: .86rem; }
  .main-nav a::after { left: 6px; right: 6px; }
  .nav-divider { margin: 0 4px; }
}
@media (max-width: 960px) {
  .bar-actions .btn-pill { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .lockup { min-width: 0; }
  .bar { column-gap: 12px; }
  .bar-actions { margin-left: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 4px 0 12px; }
  .main-nav a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .main-nav a::after { display: none; }
  .nav-divider { display: none; }
}
@media (max-width: 600px) {
  .site-header { padding: 0 calc(var(--nav-p) * 10px); }
  .lockup { gap: 10px; }
  .lockup-logo { height: calc(28px - var(--nav-p) * 3px); }
  .lockup-sep { height: 26px; }
  .lockup-mark strong { font-size: .85rem; }
  .lockup-mark small { font-size: .55rem; }
}

/* Floating contact buttons on phones */
.mobile-call { display: none; }
@media (max-width: 960px) {
  .mobile-call {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
  }
  .mobile-call .btn { padding: 14px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  .mobile-call .btn-glass { background: rgba(40, 44, 46, .85); }
  body { padding-bottom: 80px; }
  body.nav-open .mobile-call { display: none; }
}

/* ---------- Page frame (rule + card, as on Stradale) ---------- */

.frame { padding: 12px var(--page-x) 0; }
.frame-line { height: 2px; background: rgba(255, 255, 255, .22); margin-bottom: 20px; }

/* Photo card: shared base for hero and subpage headers */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background-color: var(--card-dark);
  isolation: isolate;
}
.photo-card > .photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .85;
  transform: scale(1.05);
}
/* Overlays and grain, as on Stradale */
.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 22, 23, .85) 0%, rgba(20, 22, 23, .4) 22%, rgba(20, 22, 23, 0) 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 60%, rgba(20, 22, 23, .75));
}
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  height: calc(100dvh - var(--nav-h) - 34px);
  min-height: 560px;
  max-height: 940px;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 28px;
}
.hero::before {
  background:
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)),
    linear-gradient(to right, rgba(20, 22, 23, .8) 0%, rgba(20, 22, 23, .3) 22%, rgba(20, 22, 23, 0) 50%),
    linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 60%, rgba(20, 22, 23, .75));
}
.hero > .photo { background-image: url("/img/hero.jpg"); background-position: center 72%; }

/* Vacuum sketch as background when there is no hero photo */
.hero-sketch {
  position: absolute;
  right: 4%;
  bottom: -2%;
  width: min(46%, 560px);
  z-index: -2;
  opacity: .22;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: -24px;
}
.tagline-bar { width: 112px; height: 6px; background: #fff; flex: none; }
.tagline p { line-height: 1.25; }
.tagline strong { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.tagline span { display: block; margin-top: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  padding: 16px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 7.25rem);
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.hero-sub {
  max-width: 36ch;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: .005em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-left: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .hero-actions { animation: rise .8s cubic-bezier(.22, 1, .36, 1) both; }
  .hero-sub { animation-delay: .15s; }
  .hero-actions { animation-delay: .3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 640px) {
  .hero { padding: 28px 16px 16px; min-height: 520px; }
  .tagline { margin-left: -16px; gap: 12px; }
  .tagline-bar { width: 64px; }
  .hero-actions { padding-left: 0; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-glass { display: none; } /* phone is in the floating bar */
  .hero-sketch { width: 80%; right: -10%; opacity: .14; }
}

/* ---------- Subpage header (title card) ---------- */

.page-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4.5vw, 64px);
}
.page-card h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); letter-spacing: -0.045em; }
.page-card .rule { width: 48px; height: 3px; background: rgba(255, 255, 255, .7); margin: 22px 0 18px; border-radius: 2px; }
.page-card p { font-size: 1.15rem; font-weight: 500; color: var(--text-2); max-width: 52ch; }
@media (max-width: 640px) { .page-card { min-height: 340px; } }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}
.section-head p.lead { margin-top: 14px; color: var(--text-2); font-size: 1.1rem; }

/* Category tiles (bento, like AppleGrid on Stradale) */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  transition: box-shadow .5s;
}
.tile:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.tile .photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform .7s ease;
}
.tile:hover .photo { transform: scale(1.05); }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 65%);
}
/* Without a photo: large category letter as watermark */
.tile .mark {
  position: absolute;
  right: -0.06em;
  top: -0.18em;
  z-index: -2;
  font-size: 11rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, .06);
}
.tile-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  transition: transform .3s;
}
.tile:hover .tile-body { transform: translateY(-2px); }
.tile-sub {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.tile h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.tile-go {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .25s, color .25s;
}
.tile-go svg { width: 16px; height: 16px; }
.tile:hover .tile-go { background: #fff; color: #111; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile.big .mark { font-size: 22rem; }
.tile.big h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.tile.big .tile-body { padding: 36px; }
.tile.red { background: var(--red); }
.tile.red::before { background: none; }
.tile.red .mark { color: rgba(255, 255, 255, .1); }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 600px) {
  .site-header { padding: 0 calc(var(--nav-p) * 10px); }
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 180px; gap: 14px; }
  .tile.big, .tile.wide { grid-column: auto; grid-row: auto; }
  .tile.big { grid-row: span 2; }
  .tile .mark { font-size: 8rem; }
  .tile.big .mark { font-size: 14rem; }
}

/* Big text (like BigTextScroll on Stradale) */
.big-text {
  padding: clamp(96px, 14vw, 200px) 0;
  text-align: center;
}
.big-text p {
  max-width: none;
  font-size: clamp(2.6rem, 7.4vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.15;
}
.big-text p + p { margin-top: .15em; }
.big-text p:nth-child(2) { color: rgba(255, 255, 255, .55); }
.big-text p:nth-child(3) { color: rgba(255, 255, 255, .3); }

/* Demo panel + service */
.duo {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}
.panel {
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
}
.panel.dark { background: var(--surface-2); }
.panel h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.panel > p { margin-top: 14px; color: var(--text-2); font-size: 1.08rem; }
.panel .btn { margin-top: 32px; }

.steps {
  list-style: none;
  counter-reset: s;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.steps li {
  counter-increment: s;
  padding: 20px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .12);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: .85rem;
  font-weight: 700;
}
.steps strong { display: block; font-weight: 600; }
.steps span { display: block; margin-top: 2px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }

.ticks { list-style: none; margin: 28px 0 0; padding: 0; }
.ticks li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks svg { width: 18px; height: 18px; flex: none; color: #fff; }

@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact (details + form in a soft container) ---------- */

.contact {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact h2 { font-weight: 400; letter-spacing: -0.02em; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; }
.contact-list li { display: flex; gap: 20px; align-items: flex-start; }
.c-icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
}
.c-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.contact-list a { text-decoration: none; color: var(--text-2); overflow-wrap: anywhere; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.contact-list a.c-phone { color: #fff; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.contact-list span { color: var(--text-2); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.form h3 { grid-column: 1 / -1; font-size: 1.5rem; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 500; color: var(--text-2); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, .14);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: #fff; background: rgba(0, 0, 0, .2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: .9rem; font-weight: 500; color: var(--text-2); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: #fff; }
.chips input:checked + span { background: #fff; border-color: #fff; color: #111; font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; border-radius: 16px; background: rgba(0, 0, 0, .2); font-weight: 500; }
.form-status[hidden] { display: none; }
.form .btn { justify-self: start; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ---------- Products (category subpages) ---------- */

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow .5s;
}
.product:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2) center / cover;
}
.product-img span {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  font-size: .8rem;
}
.product-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 24px 26px 28px; }
.product-body p { color: var(--text-2); font-size: .98rem; }
.product-body .btn { margin-top: 16px; align-self: flex-start; padding: 12px 22px; border-radius: 18px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

.uses { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.uses li { padding: 10px 18px; border-radius: 999px; background: var(--surface); font-size: .95rem; }

/* CTA band */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-lg);
  background: var(--red);
}
.cta h2 { max-width: 18ch; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer (brown, per brief) ---------- */

.site-footer {
  margin-top: clamp(72px, 9vw, 120px);
  background: var(--brown);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(56px, 7vw, 88px) 0 32px;
  font-size: .98rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h3 { font-size: 1rem; letter-spacing: 0; margin-bottom: 16px; }
.footer-grid p { color: var(--text-2); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-cats { grid-template-columns: 1fr 1fr; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: .88rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

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