
    /* ============================================================
       ASSECO CEIT — Kalkulačka hlukového rizika
       Verzia: 3.0 | Jún 2026
       § 124 ZP: mzdová kompenzácia = 20 % min. hodinovej mzdy
       Min. hodinová mzda 2025: 4,690 € → príplatok 0,938 €/hod.
       AKTUALIZUJTE konštantu MIN_WAGE_HOURLY každý rok!
    ============================================================ */

    /* --- Tokens --- */
    :root {
      --asseco-blue:  #00AEE8;
      --blue-dark:    #005CA9;
      --blue-mid:     #00AEE8;
      --blue-light:   #E8EEF7;
      --blue-lighter: #F0F5FB;
      --green-dark:   #1A7340;
      --green-light:  #E8F5EE;
      --green-text:   #3B6D11;
      --orange-dark:  #B45C00;
      --orange-light: #FFF3E0;
      --orange-text:  #854F0B;
      --red-dark:     #A32D2D;
      --red-light:    #FCEBEB;
      --red-text:     #791F1F;
      --info-light:   #E6F1FB;
      --info-text:    #185FA5;
      --gray-text:    #444444;
      --gray-muted:   #666666;
      --gray-hint:    #999999;
      --border:       #DDDDDD;
      --border-light: #EEEEEE;
      --bg-section:   #F7F9FC;
      --bg-white:     #FFFFFF;
      --radius-sm:    6px;
      --radius-md:    10px;
      --radius-lg:    14px;
      --shadow-card:  0 1px 4px rgba(0,0,0,.07);
    }

    /* --- Reset & base --- */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    .asseco-noise-calculator-wrap {
      font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
      background: #F0F4F8;
      color: var(--gray-text);
      font-size: 15px;
      line-height: 1.6;
      padding: 2rem 1rem;
    }

    /* --- Widget wrapper --- */
    .kalk-widget {
      max-width: 780px;
      margin: 0 auto;
    }

    /* --- Header --- */
    .kalk-header {
      margin-bottom: 1.5rem;
    }
    .kalk-header h1 {
      font-size: 1.6rem;
      font-weight: 700;
      color: var(--blue-dark);
      margin-bottom: .3rem;
    }
    .kalk-header p {
      font-size: .95rem;
      color: var(--gray-muted);
    }

    /* --- Section card --- */
    .kalk-card {
      background: var(--bg-white);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      margin-bottom: 1rem;
      box-shadow: var(--shadow-card);
    }
    .kalk-card-title {
      font-size: .7rem;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--gray-muted);
      margin-bottom: 1.2rem;
    }

    /* --- Field & label --- */
    .kalk-field { margin-bottom: 1rem; }
    .kalk-field:last-child { margin-bottom: 0; }
    .kalk-field label {
      display: block;
      font-size: .85rem;
      font-weight: 500;
      color: var(--gray-muted);
      margin-bottom: .35rem;
    }

    /* --- Grid layouts --- */
    .kalk-grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }
    @media (max-width: 560px) {
      .kalk-grid2 { grid-template-columns: 1fr; }
    }

    /* --- Inputs & selects --- */
    .kalk-input,
    .kalk-select {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--bg-white);
      color: var(--gray-text);
      font-size: .95rem;
      font-family: inherit;
      transition: border-color .15s, box-shadow .15s;
      appearance: none;
      -webkit-appearance: none;
    }
    .kalk-select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 32px;
      cursor: pointer;
    }
    .kalk-input:focus,
    .kalk-select:focus {
      outline: none;
      border-color: var(--blue-mid);
      box-shadow: 0 0 0 3px rgba(0,174,232,.16);
    }
    .kalk-input:hover,
    .kalk-select:hover {
      border-color: #AAAAAA;
    }

    /* --- Slider --- */
    .kalk-slider-wrap {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: .4rem;
    }
    .kalk-slider {
      flex: 1;
      -webkit-appearance: none;
      appearance: none;
      height: 5px;
      border-radius: 3px;
      background: var(--border-light);
      outline: none;
      cursor: pointer;
    }
    .kalk-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--blue-mid);
      border: 2px solid var(--bg-white);
      box-shadow: 0 1px 4px rgba(0,0,0,.2);
      cursor: pointer;
      transition: transform .1s;
    }
    .kalk-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
    .kalk-slider::-moz-range-thumb {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--blue-mid);
      border: 2px solid var(--bg-white);
      box-shadow: 0 1px 4px rgba(0,0,0,.2);
      cursor: pointer;
    }
    .kalk-slider-val {
      font-size: .95rem;
      font-weight: 600;
      min-width: 58px;
      text-align: right;
      color: var(--gray-text);
    }

    /* --- dB progress bar --- */
    .kalk-bar-bg {
      height: 8px;
      border-radius: 4px;
      background: var(--border-light);
      overflow: hidden;
      margin-bottom: .3rem;
    }
    .kalk-bar-fill {
      height: 100%;
      border-radius: 4px;
      transition: width .35s ease, background-color .35s ease;
    }
    .kalk-bar-label {
      font-size: .8rem;
      font-weight: 500;
      transition: color .35s;
    }

    /* --- Result metric cards --- */
    .kalk-results-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
      gap: .75rem;
      margin-top: .5rem;
    }
    .kalk-metric {
      background: var(--bg-section);
      border-radius: var(--radius-md);
      padding: 1rem;
      border: 1px solid var(--border-light);
    }
    .kalk-metric.kalk-metric--total {
      grid-column: 1 / -1;
      background: var(--blue-lighter);
      border-color: rgba(0,174,232,.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: .5rem;
    }
    .kalk-metric-label {
      font-size: .75rem;
      font-weight: 500;
      color: var(--gray-muted);
      margin-bottom: .3rem;
      line-height: 1.3;
    }
    .kalk-metric--total .kalk-metric-label {
      font-size: .85rem;
      color: var(--blue-dark);
      font-weight: 600;
      margin-bottom: 0;
    }
    .kalk-metric-val {
      font-size: 1.3rem;
      font-weight: 700;
      line-height: 1.2;
    }
    .kalk-metric--total .kalk-metric-val { font-size: 1.6rem; }
    .kalk-val--ok     { color: var(--green-text); }
    .kalk-val--warn   { color: var(--orange-text); }
    .kalk-val--danger { color: var(--red-dark); }

    /* Upozornenie na pokutu */
    .kalk-metric--fine-warn {
      grid-column: 1 / -1;
      background: #FFF8E7;
      border: 1.5px solid #F5C842;
      border-left: 4px solid var(--asseco-blue);
      border-radius: var(--radius-md);
      padding: 0.9rem 1.1rem;
    }
    .kalk-metric--fine-warn .kalk-metric-label {
      font-size: .8rem;
      font-weight: 700;
      color: #7A5A00;
      margin-bottom: .35rem;
    }
    .kalk-fine-warn-text {
      font-size: .8rem;
      color: #5C4200;
      line-height: 1.55;
    }

    /* Badge */
    .kalk-badge {
      display: inline-block;
      font-size: .65rem;
      font-weight: 600;
      background: var(--info-light);
      color: var(--info-text);
      border-radius: 4px;
      padding: 1px 5px;
      margin-left: 5px;
      vertical-align: middle;
      line-height: 1.6;
    }

    /* --- Divider --- */
    .kalk-divider {
      height: 1px;
      background: var(--border-light);
      margin: 1.25rem 0;
    }

    /* --- Findings / alerts --- */
    .kalk-finding {
      display: flex;
      gap: .6rem;
      align-items: flex-start;
      padding: .65rem .9rem;
      border-radius: var(--radius-sm);
      margin-bottom: .5rem;
      font-size: .85rem;
      line-height: 1.5;
    }
    .kalk-finding:last-child { margin-bottom: 0; }
    .kalk-finding--danger {
      background: var(--red-light);
      color: var(--red-text);
      border-left: 3px solid #E24B4A;
    }
    .kalk-finding--warn {
      background: var(--orange-light);
      color: var(--orange-dark);
      border-left: 3px solid #EF9F27;
    }
    .kalk-finding--ok {
      background: var(--green-light);
      color: var(--green-dark);
      border-left: 3px solid #639922;
    }
    .kalk-finding--info {
      background: var(--info-light);
      color: var(--info-text);
      border-left: 3px solid #378ADD;
    }
    .kalk-finding-icon {
      flex-shrink: 0;
      font-size: 1rem;
      margin-top: 1px;
    }

    /* --- Disclaimer --- */
    .kalk-disclaimer {
      font-size: .75rem;
      color: var(--gray-hint);
      line-height: 1.6;
      margin-top: 1rem;
    }

    /* --- CTA button --- */
    .kalk-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      margin-top: 1rem;
      padding: 12px 20px;
      background: var(--blue-dark);
      color: var(--bg-white);
      border: none;
      border-radius: var(--radius-md);
      font-size: .95rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      text-decoration: none;
      transition: background .15s, transform .1s;
    }
    .kalk-cta:hover { background: var(--asseco-blue); }
    .kalk-cta:active { transform: scale(.98); }
    .kalk-cta svg { flex-shrink: 0; }


    /* --- Lead magnet modal --- */
    .kalk-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(11, 24, 44, .62);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      z-index: 9999;
    }
    .kalk-modal-backdrop.is-open { display: flex; }
    .kalk-modal {
      width: 100%;
      max-width: 520px;
      background: var(--bg-white);
      border-radius: var(--radius-lg);
      box-shadow: 0 18px 48px rgba(0,0,0,.25);
      overflow: hidden;
      font-family: inherit;
    }
    .kalk-modal-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.25rem 1.5rem;
      background: var(--blue-dark);
      border-bottom: 4px solid var(--asseco-blue);
      color: var(--bg-white);
    }
    .kalk-modal-title {
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: .25rem;
    }
    .kalk-modal-subtitle {
      font-size: .86rem;
      opacity: .88;
      line-height: 1.45;
    }
    .kalk-modal-close {
      border: 0;
      background: transparent;
      color: var(--bg-white);
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
      opacity: .8;
      font-family: inherit;
    }
    .kalk-modal-close:hover { opacity: 1; }
    .kalk-modal-body { padding: 1.5rem; }
    .kalk-check-row {
      display: flex;
      align-items: flex-start;
      gap: .55rem;
      margin-top: .9rem;
      font-size: .78rem;
      color: var(--gray-muted);
      line-height: 1.45;
    }
    .kalk-check-row input { margin-top: .2rem; }
    .kalk-status {
      display: none;
      margin-top: .9rem;
      padding: .7rem .85rem;
      border-radius: var(--radius-sm);
      font-size: .85rem;
      line-height: 1.45;
    }
    .kalk-status.is-visible { display: block; }
    .kalk-status--ok {
      background: var(--green-light);
      color: var(--green-dark);
    }
    .kalk-status--error {
      background: var(--red-light);
      color: var(--red-text);
    }
    .kalk-cta[disabled] {
      opacity: .65;
      cursor: not-allowed;
    }
  
/* --- Anti-spam / Turnstile --- */
.kalk-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.kalk-turnstile-wrap {
  margin: .85rem 0;
}
