*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, video, svg, canvas { max-width: 100%; height: auto; display: block; }

iframe { max-width: 100%; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap > table { width: 100%; border-collapse: collapse; }

.container, .wrapper, .inner { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 1.5vw + 0.9rem, 2rem); line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem); line-height: 1.3; }

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.col { flex: 1 1 300px; min-width: 0; }

.stack-sm > * { min-width: 0; }
.stack-md > * { min-width: 0; }

header, .header, nav, .nav { width: 100%; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
nav a { text-decoration: none; }

input, select, textarea, button { max-width: 100%; font: inherit; }
label { display: inline-block; margin-bottom: 6px; }

@media (max-width: 992px) {
  .hide-md { display: none !important; }
  .stack-md { display: flex; flex-direction: column !important; gap: 16px; }
  [class*="col-"] { max-width: 100% !important; }
}

@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  .stack-sm { display: flex; flex-direction: column !important; gap: 14px; }
  .row { gap: 14px; }
  .container, .wrapper, .inner { padding-inline: 12px; }
  [style*="width:"]:not(img):not(video):not(canvas) { width: auto !important; max-width: 100% !important; }
  [style*="min-width:"] { min-width: 0 !important; }
  [style*="left:"], [style*="right:"], [style*="top:"], [style*="bottom:"] {
    max-width: 100%;
  }
  .footer-container {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    text-align: center;

  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
  nav ul { gap: 8px; }
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

[class*="img"], [class*="image"], figure, picture { max-width: 100%; }
