/* ==========================================================================
   AMES – AM Equipment Solutions — design system
   ========================================================================== */

:root {
  --navy-950: #071021;
  --navy-900: #0b1d3a;
  --navy-800: #0f2c54;
  --navy-700: #15396b;
  --navy-600: #1d4d8f;
  --navy-500: #2e63ac;

  --accent-500: #e8871e;
  --accent-600: #c96f0f;
  --accent-100: #fdecd6;

  --gray-50: #f5f7fa;
  --gray-100: #eef1f5;
  --gray-200: #e2e7ee;
  --gray-300: #cbd3dd;
  --gray-600: #5b6572;
  --gray-900: #1a2130;

  --white: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.08), 0 1px 2px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 29, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 29, 58, 0.16);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

/* Defensive click-target reinforcement for mailto links (no visual change) */
a[href^="mailto:"] {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--gray-600); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy-800);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--gray-100); }
.main-nav a.active { color: var(--accent-600); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-switch a {
  padding: 7px 10px;
  color: var(--gray-600);
}
.lang-switch a.active { background: var(--navy-800); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, var(--navy-600), transparent),
              linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: var(--white);
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 54ch; }
.hero-eyebrow { color: var(--accent-500); }
.hero-eyebrow::before { background: var(--accent-500); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero-card img { border-radius: 10px; }
.hero-card-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-card-caption strong { color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: 0.92rem; margin: 0; }

/* Industry chips / grid */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.industry-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s ease, transform .2s ease;
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.industry-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-card h3 { font-size: 1rem; margin-bottom: 4px; }
.industry-card p { font-size: 0.9rem; margin: 0; }

/* Feature grid (product page) */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 24px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-100);
  color: var(--accent-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1rem; }
.feature-card p { font-size: 0.9rem; margin: 0; }

/* Product hero split */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.product-photo {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--white);
}
.badge.alt { background: var(--gray-100); color: var(--navy-800); }

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-table tr:nth-child(odd) { background: var(--gray-50); }
.spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.spec-table td:first-child { font-weight: 700; color: var(--navy-800); width: 45%; }
.spec-table tr:last-child td { border-bottom: none; }

.drawing-frame {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--white);
}

/* Category grid (catalog) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.category-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--navy-500); }
.category-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.category-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.category-card p { font-size: 0.9rem; flex: 1; }
.category-card .link { margin-top: 14px; font-weight: 700; color: var(--navy-700); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.category-card:hover .link { color: var(--accent-600); }

/* Photo product grid (e.g. Części zamienne) — shop-style tiles, uniform height */
.category-grid--photos {
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.category-card--photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-color: var(--gray-100);
}
.category-card--photo:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.category-card--photo .category-card-img {
  width: 100%;
  height: 190px;
  flex: none;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
  box-sizing: border-box;
}
.category-card--photo .category-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.category-card--photo:hover .category-card-img img { transform: scale(1.08); }
.category-card--photo .category-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  align-items: center;
}
.category-card--photo h3 {
  margin-bottom: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-900);
}
.category-card--photo .link {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--gray-600);
}
.category-card--photo:hover .link { color: var(--accent-600); }

/* Product tabs (Produkty page) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 22px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tab-btn:hover { border-color: var(--navy-500); }
.tab-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.empty-state {
  max-width: 520px;
  margin: 20px auto 40px;
  text-align: center;
  padding: 48px 32px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}
.empty-state-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { font-size: 0.94rem; margin-bottom: 22px; }

/* Full hydraulics catalog page */
.catalog-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
}
.catalog-toc a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.86rem;
}
.catalog-toc a:hover { background: var(--navy-800); color: var(--white); }

.catalog-section { margin-bottom: 64px; scroll-margin-top: 90px; }
.catalog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy-800);
}
.catalog-section-head h2 { margin: 0; }

.catalog-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.catalog-image-grid img {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Callout banner */
.callout {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 24px;
}
.callout h2 { color: var(--white); margin-bottom: 8px; }
.callout p { color: rgba(255,255,255,0.78); margin: 0; }

/* Full-catalog highlight banner (top of Produkty > Części hydrauliczne) */
.catalog-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 2px solid var(--accent-500);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}
.catalog-banner-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-banner-body { flex: 1; }
.catalog-banner-body h3 { margin-bottom: 4px; font-size: 1.25rem; }
.catalog-banner-body p { margin: 0; font-size: 0.94rem; }
.catalog-banner .btn { flex: none; }

@media (max-width: 720px) {
  .catalog-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .catalog-banner .btn { width: 100%; justify-content: center; }
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.88rem; color: var(--navy-800); }
.form-field .hint { font-size: 0.78rem; color: var(--gray-600); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-900);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(29, 77, 143, 0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--gray-600); }
.checkbox-field input { margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.form-status--success {
  background: #eaf6ee;
  border-color: #bfe3cb;
  color: #1c7a4f;
}
.form-status--error {
  background: #fdecec;
  border-color: #f3c2c2;
  color: #b3261e;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--gray-50);
}
.contact-info-card h3 { font-size: 0.95rem; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.92rem; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .ico { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: center; }
.todo { color: var(--accent-600); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* Breadcrumb / page header for inner pages */
.page-header {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 56px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 60ch; margin: 0; }
.crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,0.8); }
.crumbs a:hover { color: var(--white); }

/* About page */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.value-card { padding: 22px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.value-card h3 { font-size: 1rem; margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; margin: 0; }

/* FAQ page */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  background: var(--white);
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 { font-size: 1.02rem; margin: 0; color: var(--navy-900); }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  color: var(--navy-700);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 14px 0 0; font-size: 0.95rem; color: var(--gray-600); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.notice-banner {
  border: 1px dashed var(--accent-500);
  background: var(--accent-100);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* Alert box for form success/no-js state */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 20px; }
.alert-info { background: var(--gray-100); color: var(--navy-800); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .product-hero, .two-col { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid--photos { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .callout { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand img { height: 32px; }
  .lang-switch { font-size: 0.72rem; }
  .lang-switch a { padding: 6px 7px; }
  .header-actions { gap: 6px; }
  .header-inner { padding: 12px 16px; gap: 10px; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    height: calc(100vh - 68px);
  }
  body.nav-open .main-nav a { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); }
  .steps, .industries, .features, .category-grid, .value-grid, .form-grid, .catalog-image-grid { grid-template-columns: 1fr; }
  .category-grid--photos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-card--photo .category-card-img { height: 150px; padding: 16px; }
  .category-card--photo .category-card-body { padding: 14px 12px 16px; }
  .category-card--photo h3 { font-size: 0.86rem; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .category-grid--photos { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}
