/*
 * Súbor: css/general/base.css
 * Obsah: Spoločný základ všetkých stránok: reset, premenné rozmerov, typografia, kontajnery, všeobecné sekcie, tlačidlá, karty, gridy a štítky.
 * Použitie: sluzby.html, index.html, sluzba-betonove_a_oporne_mury.html, sluzba-havarie.html, sluzba-pripojky.html, sluzba-stavba-domu-a-holodomu.html.
 * Zapojenie: <link rel="stylesheet" href="css/general/base.css">; zachovaj pozíciu v hlavičke podľa css/README.md.
 * Závislosti: Základ dokumentu; farby dodáva príslušná téma stránky.
 */
:root {
      --container: 1200px;
      --radius: 12px;
      --control-radius: 8px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--text);
      background: var(--bg);
      font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
      font-size: 18px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    body.menu-open {
      overflow: hidden;
    }

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

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button,
    a {
      -webkit-tap-highlight-color: transparent;
    }

    a {
      color: inherit;
    }

    h1,
    h2,
    h3,
    h4,
    p {
      margin-top: 0;
    }

    h1,
    h2,
    h3,
    h4 {
      line-height: 1.15;
      letter-spacing: -0.025em;
    }

    h1 {
      max-width: 760px;
      margin-bottom: 24px;
      font-size: clamp(38px, 5vw, 56px);
    }

    h2 {
      margin-bottom: 18px;
      font-size: clamp(30px, 3.5vw, 40px);
    }

    h3 {
      margin-bottom: 10px;
      font-size: 23px;
    }

    h4 {
      margin-bottom: 8px;
      font-size: 19px;
    }

    p:last-child {
      margin-bottom: 0;
    }

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

    .section {
      padding-bottom: 96px;
    }


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

    .section-head {
      max-width: 720px;
      margin-bottom: 48px;
    }

    .section-head p {
      color: var(--muted);
    }

    .eyebrow {
      margin-bottom: 12px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .lead {
      max-width: 700px;
      color: var(--muted);
      font-size: 20px;
      line-height: 1.6;
    }

    .muted {
      color: var(--muted);
    }

    .small {
      font-size: 14px;
    }

    .placeholder-label {
      display: inline-block;
      margin-bottom: 12px;
      color: var(--accent);
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .btn {
      min-height: 52px;
      padding: 0 24px;
      border: 1px solid transparent;
      border-radius: var(--control-radius);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 700;
      text-decoration: none;
      transition:
        background-color 180ms ease-out,
        border-color 180ms ease-out,
        color 180ms ease-out;
    }

    .btn--primary {
      color: var(--palette-light);
      background: var(--accent);
      border-color: var(--accent);
    }

    .btn--primary:hover {
      background: var(--accent-hover);
      border-color: var(--accent-hover);
    }

    .btn--secondary {
      color: var(--text);
      background: transparent;
      border-color: var(--border-strong);
    }

    .btn--secondary:hover {
      background: var(--bg-alt);
    }

    .btn:focus-visible,
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 3px solid var(--accent-soft);
      outline-offset: 3px;
    }

    .card {
      padding: 28px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
    }

    .grid {
      display: grid;
      gap: 24px;
    }

    .grid--2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid--4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tag-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .tag {
      padding: 7px 11px;
      background: var(--bg-alt);
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }

    .image-placeholder {
      min-height: 360px;
      padding: 32px;
      border: 1px dashed var(--border-strong);
      border-radius: var(--radius);
      background: var(--bg-alt);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--muted);
    }

    .image-placeholder strong {
      color: var(--text);
      display: block;
      margin-bottom: 8px;
    }
