:root {
  --page-gutter: 24px;
  --section-space: 96px;
}

body { font-size: 16px; }
img, video, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }

.site-logo img { display: block; max-height: 56px; }
.top .site-logo img { max-height: 48px; }
.footer-logo { max-height: 72px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.menu-toggle { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.calculator-results { padding: 40px; gap: 28px; }
.calculator-total { font-size: 56px; }
.calculator-value { font-size: 30px; }
.pricing-summary { padding: 36px; }
.contact-card { padding: clamp(32px, 6vw, 72px); }
.contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#faq details { border-bottom: 1px solid #DEDCD5; padding: 22px 0; }

@media (max-width: 720px) {
  :root {
    --page-gutter: 16px;
    --section-space: 56px;
    --reading-size: 16px;
  }

  body { line-height: 1.5; overflow-wrap: anywhere; }
  a, button, summary, input:not([type="hidden"]), textarea, select {
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
  }
  a { display: inline-flex; align-items: center; vertical-align: middle; }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .site-logo { justify-self: start; }
  .site-header .site-logo img { max-height: 44px; }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #DEDCD5;
    border-radius: 12px;
    background: #FEFEFE;
    color: #0E1336;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-toggle[aria-expanded="true"] { background: #E7E4FF; border-color: #E7E4FF; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + .site-nav { display: none; }
  .site-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #ECEAF4;
    font-size: 16px;
  }
  .site-nav a { padding: 8px 12px; border-radius: 12px; }
  .site-nav .nav-cta { justify-content: center; margin-top: 4px; }

  #top { --hero-top: 40px; --hero-gap: 32px; }
  #top h1 { --hero-title-size: clamp(32px, 8vw, 40px); }
  .chat-preview { --chat-padding: 18px; }
  .chat-bubble { box-sizing: border-box; }
  #kalkulacka label { gap: 8px; }
  .range-value { white-space: nowrap; }
  #kalkulacka input[type="range"] { height: 44px; margin-inline: 0; }
  .calculator-results { padding: 20px; gap: 16px; }
  .calculator-total { font-size: clamp(34px, 9vw, 56px); }
  .calculator-value { font-size: clamp(22px, 6vw, 30px); }
  .pricing-summary { padding: 24px; }
  .contact-card { padding: 20px; }
  .contact-methods, .contact-form { min-width: 0; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  #faq details { padding: 0 0 12px; }
  #faq summary { align-items: center; padding: 12px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions a { justify-content: center; text-align: center; }
  .hero-benefits { --benefit-columns: minmax(0, 1fr); }
  .contact-methods { flex-basis: 100%; }
}
