.project-modal[hidden]{display:none}
.project-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:rgba(29,25,21,.68);backdrop-filter:blur(6px);animation:modal-backdrop-in .38s ease both}
.project-modal__dialog{position:relative;width:min(680px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:17px;padding:46px 58px 26px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28);text-align:center;animation:modal-card-in .48s cubic-bezier(.2,.8,.2,1) both}
.project-modal.is-closing{animation:modal-backdrop-out .25s ease both}.project-modal.is-closing .project-modal__dialog{animation:modal-card-out .25s ease both}
.project-modal__close{position:absolute;top:18px;right:20px;border:0;background:transparent;color:#927044;font-size:38px;line-height:1;cursor:pointer;transition:transform .2s,color .2s}.project-modal__close:hover{color:#68461f;transform:rotate(90deg)}
.project-modal__title{margin:0;color:#2d2b2a;font-size:19px;line-height:1.42;font-weight:700;letter-spacing:.002em;text-transform:uppercase}.project-modal__title strong{display:block;color:#9b7040;font-weight:700}.project-modal__title::after{content:"";display:block;width:100%;height:3px;margin:18px auto 0;background:#bd9765;border-radius:99px}
.project-modal__logos{display:grid;grid-template-columns:1fr 1px 1fr;align-items:center;gap:34px;margin:34px 0 27px}.project-modal__logos img{display:block;width:100%;height:112px;object-fit:contain}.project-modal__divider{height:112px;background:#ddd0bd}
.project-modal__details{padding-top:20px}.project-modal__detail{padding:2px 0 18px}.project-modal__detail+.project-modal__detail{padding-top:19px}.project-modal__label{display:block;color:#9b7040;font-size:16px;font-weight:600;margin-bottom:5px}.project-modal__value{display:block;color:#29282a;font-family:inherit;font-size:21px;line-height:1.3;font-weight:600;letter-spacing:-.012em}.project-modal__amount{font-size:22px;font-weight:600}
.project-modal__project-name{font-size:22px;font-weight:600}
.project-modal__pdfs{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:8px 0 25px}.project-modal__pdf{display:flex;align-items:center;justify-content:center;gap:10px;min-height:65px;border:1px solid #bd9765;border-radius:8px;padding:10px;color:#8c6635;background:transparent;font:600 15px/1.3 inherit;text-decoration:none}.project-modal__pdf[aria-disabled="true"]{opacity:.64;cursor:not-allowed}.project-modal__pdf-icon{width:27px;height:27px;object-fit:contain}
.project-modal__confirm{min-width:230px;border:0;border-radius:6px;padding:14px 30px;background:#123b67;color:#fff;font:500 20px inherit;cursor:pointer;transition:transform .2s,background .2s}.project-modal__confirm:hover{background:#0c2e52;transform:translateY(-2px)}
@keyframes modal-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes modal-card-in{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:none}}@keyframes modal-backdrop-out{to{opacity:0}}@keyframes modal-card-out{to{opacity:0;transform:translateY(16px) scale(.97)}}
.project-modal__pdf{justify-content:flex-start;gap:13px;padding:10px 18px;color:#6f4d26;text-align:left;line-height:1.35}.project-modal__pdf[aria-disabled="true"]{opacity:.84}.project-modal__pdf-icon{width:34px;height:34px;flex:0 0 34px}
@media(min-width:621px) and (max-height:760px){
  .project-modal{padding:16px}
  .project-modal__dialog{max-height:calc(100vh - 32px);padding:27px 44px 18px}
  .project-modal__close{top:9px;right:14px;font-size:32px}
  .project-modal__title{font-size:16px;line-height:1.28}
  .project-modal__title::after{margin-top:10px;height:2px}
  .project-modal__logos{gap:27px;margin:16px 0 10px}
  .project-modal__logos img,.project-modal__divider{height:74px}
  .project-modal__details{padding-top:3px}
  .project-modal__detail{padding:2px 0 8px}
  .project-modal__detail+.project-modal__detail{padding-top:6px}
  .project-modal__label{margin-bottom:2px;font-size:13px}
  .project-modal__value{font-size:17px;line-height:1.22}
  .project-modal__project-name,.project-modal__amount{font-size:18px}
  .project-modal__pdfs{gap:10px;margin:3px 0 11px}
  .project-modal__pdf{min-height:48px;padding:7px 12px;font-size:13px;line-height:1.22}
  .project-modal__pdf-icon{width:26px;height:26px;flex-basis:26px}
  .project-modal__confirm{min-width:190px;padding:9px 24px;font-size:16px}
}
@media(max-width:620px){.project-modal{padding:14px}.project-modal__dialog{padding:46px 24px 24px}.project-modal__title{font-size:18px}.project-modal__logos{gap:16px;margin:26px 0}.project-modal__logos img,.project-modal__divider{height:82px}.project-modal__value{font-size:21px}.project-modal__pdfs{grid-template-columns:1fr}.project-modal__close{font-size:32px}}
@media(prefers-reduced-motion:reduce){.project-modal,.project-modal__dialog{animation:none!important}}
.project-modal__value,.project-modal__amount{font-weight:400}.project-modal__project-name{font-weight:700}.project-modal__pdfs{gap:10px;margin:5px 0 18px}.project-modal__pdf{min-height:46px;padding:7px 10px;font-size:12px;gap:8px}.project-modal__pdf-icon{width:22px;height:22px;flex-basis:22px}@media(max-width:620px){.project-modal__pdf{min-height:43px;font-size:11px}.project-modal__pdf-icon{width:20px;height:20px;flex-basis:20px}}
.project-modal__logos{grid-template-columns:1fr 1fr;gap:30px}.project-modal__pdfs{grid-template-columns:repeat(2,auto);justify-content:center;gap:8px;margin:14px 0 0}.project-modal__pdf{min-height:34px;border-color:#d5d5d5;border-radius:7px;padding:5px 8px;background:rgba(255,255,255,.45);color:#777;font-size:10px;font-weight:500;opacity:.68}.project-modal__pdf:hover{opacity:1;color:#555;border-color:#aaa}.project-modal__pdf-icon{width:17px;height:17px;flex-basis:17px;filter:grayscale(1) brightness(.7)}@media(max-width:620px){.project-modal__pdfs{grid-template-columns:1fr;width:100%;margin-top:12px}.project-modal__pdf{min-height:32px;font-size:10px}.project-modal__pdf-icon{width:16px;height:16px;flex-basis:16px}}
.project-modal__dialog{width:min(620px,100%);padding-inline:48px}.project-modal__pdf{border-color:#dedede;background:#fafafa;color:#8a8a8a;opacity:.72}.project-modal__pdf:hover{color:#6f6f6f;border-color:#c9c9c9;background:#fff}@media(max-width:620px){.project-modal__dialog{width:100%;padding-inline:24px}}
.project-modal__detail{padding-bottom:11px}.project-modal__detail+.project-modal__detail{padding-top:10px}.project-modal__pdf{min-height:39px;padding:6px 10px;border-color:#d8d8d8;color:#838383;font-size:11px}.project-modal__pdf-icon{width:18px;height:18px;flex-basis:18px}@media(max-width:620px){.project-modal__pdf{min-height:36px;font-size:10px}.project-modal__pdf-icon{width:17px;height:17px;flex-basis:17px}}
.project-modal__title::after{height:1px;margin-top:15px;background:color-mix(in srgb,var(--gold) 42%,transparent)!important}.project-modal__detail:last-child::after{content:"";display:block;width:100%;height:1px;margin:15px auto 0;background:color-mix(in srgb,var(--gold) 42%,transparent)}
.project-modal__title::after,.project-modal__detail:last-child::after{width:74%}.project-modal__detail:last-child::after{margin-top:20px}.project-modal__pdfs{margin-top:20px}
.project-modal__title::after,.project-modal__detail:last-child::after{height:2px}.project-modal__detail:last-child::after{margin-top:29px}
.project-modal__logos{gap:20px}.project-modal__detail:last-child::after{margin-top:39px}.project-modal__pdfs{margin-top:27px}
.project-modal__title::after,.project-modal__detail:last-child::after{height:1px}.project-modal__confirm{margin-top:26px}
.project-modal__title::after,.project-modal__detail:last-child::after{width:74%}
.project-modal__title strong,.project-modal__close,.project-modal__label{color:#0b619e}.project-modal__close:hover{color:#084d7d}.project-modal__title::after,.project-modal__detail:last-child::after{background:rgba(11,97,158,.42)!important}.project-modal__confirm,html[data-theme="green"] .project-modal__confirm{background:#0b619e}.project-modal__confirm:hover,html[data-theme="green"] .project-modal__confirm:hover{background:#084d7d}html[data-theme="green"] .project-modal__title strong,html[data-theme="green"] .project-modal__label,html[data-theme="green"] .project-modal__close{color:#0b619e}
.project-modal__detail:first-child .project-modal__value,.project-modal__amount{font-weight:700}@media(max-width:620px){.project-modal__pdfs{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;width:auto}.project-modal__pdf{width:auto;justify-content:center}}
.project-modal__amount{font-size:37px!important;line-height:1.08;letter-spacing:-.035em}@media(max-width:620px){.project-modal__amount{font-size:31px!important}}
.project-modal__label{margin-bottom:2px}
.project-modal__detail:nth-child(4) .project-modal__value,.project-modal__detail:nth-child(5) .project-modal__value{font-weight:700}.project-modal__title::after{height:2px}
.project-modal__title::after,.project-modal__detail:last-child::after{height:3px;background:#0b619e!important}
.project-modal__detail:last-child::after{height:1px;background:rgba(11,97,158,.42)!important}
.project-modal__confirm{border-radius:999px}
.project-modal__detail:last-child::after{display:none}

/* Kompaktné projektové oznámenie pre mobil: neprekrýva celú obrazovku. */
@media (max-width:620px){
  .project-modal{
    padding:10px;
    place-items:center;
  }

  .project-modal__dialog{
    width:min(420px,100%);
    max-height:calc(100svh - 20px);
    padding:32px 20px 16px;
    border-radius:18px;
    overscroll-behavior:contain;
  }

  .project-modal__close{
    top:10px;
    right:12px;
    font-size:29px;
  }

  .project-modal__title{
    padding-right:18px;
    font-size:15px;
    line-height:1.28;
  }

  .project-modal__title::after{
    width:78%;
    margin-top:11px;
    height:2px;
  }

  .project-modal__logos{
    gap:16px;
    margin:16px 0 11px;
  }

  .project-modal__logos img{
    height:62px;
  }

  .project-modal__details{
    padding-top:2px;
  }

  .project-modal__detail,
  .project-modal__detail + .project-modal__detail{
    padding:0 0 9px;
  }

  .project-modal__label{
    margin-bottom:1px;
    font-size:12px;
  }

  .project-modal__value{
    font-size:17px;
    line-height:1.18;
  }

  .project-modal__project-name{
    font-size:18px;
  }

  .project-modal__amount{
    font-size:29px!important;
  }

  .project-modal__confirm{
    min-width:180px;
    margin-top:10px;
    padding:9px 22px;
    font-size:15px;
  }

  .project-modal__pdfs{
    display:none;
  }
}

@media (max-width:620px) and (max-height:700px){
  .project-modal__dialog{padding-top:28px}
  .project-modal__logos{margin:11px 0 7px}
  .project-modal__logos img{height:52px}
  .project-modal__detail,
  .project-modal__detail + .project-modal__detail{padding-bottom:6px}
  .project-modal__amount{font-size:26px!important}
  .project-modal__confirm{margin-top:6px;padding-block:7px}
}
