/* ==========================================================================
   Bono s.r.o. — site styles
   Palette & type derived from the Claude Design source. Mobile-responsive.
   ========================================================================== */

:root {
  --ink: #16181B;
  --muted: #5A5F66;
  --faint: #9CA1A8;
  --red: #C72028;
  --red-dark: #A91B22;
  --red-tint: #FBE9EA;
  --cream: #F5F4F1;
  --border: #ECEAE5;
  --input-border: #D9D6CF;
  --green: #1F8A4C;
  --green-tint: #E8F5EC;
  --font-head: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: #FFFFFF;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;            /* contain decorative overflow without breaking sticky */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

@keyframes bonoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bonoPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { max-width: 1180px; margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 56px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar__logo { height: 56px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 24px; }
.navlink { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color .15s; }
.navlink:hover, .navlink:focus-visible { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 15px 26px; border-radius: 3px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--red-dark); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--input-border); }
.btn--secondary:hover, .btn--secondary:focus-visible { border-color: var(--ink); }
.btn--pill { padding: 10px 18px; border-radius: 3px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 56px; background: var(--cream); }
.hero__glow { position: absolute; right: -80px; top: -80px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,32,40,.06), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; max-width: 760px; }
.badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 26px; }
.badge__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.badge__text { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: normal; }
.hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(40px, 8vw, 72px); line-height: 1.03;
  letter-spacing: -.02em; margin: 0 0 22px; }
.hero__title .accent { color: var(--red); }
.hero__sub { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 34px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 56px; }
.section--cream { background: var(--cream); }
.section--bordered { border-top: 1px solid var(--border); }
[id] { scroll-margin-top: 84px; }
.section-head { text-align: center; margin-bottom: 46px; }
.eyebrow { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.h2 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 40px); font-weight: 600; margin: 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.service { padding: 30px 28px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.service:hover { border-color: #DBD8D1; box-shadow: 0 8px 24px rgba(22,24,27,.06); transform: translateY(-2px); }
.service__icon { width: 48px; height: 48px; border-radius: 8px; background: var(--red-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service__title { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.service__text { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why__lead { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.why__h2 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 40px); font-weight: 600; margin: 0 0 18px; }
.why__list { display: flex; flex-direction: column; gap: 12px; }
.why__item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 18px 20px; font-size: 15px; font-weight: 500; }
.why__item svg { flex: none; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.partners__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.partners__row { display: flex; gap: 24px; width: 100%; max-width: 760px; align-items: stretch; }
.partner { flex: 1; min-height: 150px; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; padding: 28px 32px; }
.partner img { width: 100%; max-width: 220px; height: auto; }
.partner .jablotron { max-width: 200px; }
.partner__caption { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); text-align: center; }
.partner__wordmark { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: .02em; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-lead { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 auto; max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 26px 30px; border-radius: 8px;
  text-decoration: none; text-align: left; font-family: inherit; width: 100%; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; }
.contact-card:hover { border-color: #DBD8D1; box-shadow: 0 8px 24px rgba(22,24,27,.06); }
.contact-card__icon { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--red-tint);
  display: flex; align-items: center; justify-content: center; }
.contact-card__label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 4px; }
.contact-card__value { font-family: var(--font-head); font-size: 26px; font-weight: 600; color: var(--ink); }
.contact-card__value--email { font-size: 22px; color: var(--red); word-break: break-word; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.addr { padding: 22px 30px; border-radius: 8px; }
.addr__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.addr__value { font-size: 16px; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { padding: 34px 56px; background: var(--ink); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__legal { font-size: 12px; line-height: 1.7; color: var(--faint); }
.footer__privacy { font-size: 12px; color: #fff; text-decoration: underline; white-space: nowrap; cursor: pointer;
  background: none; border: none; font-family: inherit; padding: 0; }

/* ---------- Modals ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(22,24,27,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: bonoFadeIn .18s ease; }
.modal-overlay.open { display: flex; }
.modal { position: relative; width: 100%; background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.28);
  animation: bonoPop .22s ease; }
.modal--form { max-width: 540px; max-height: 90vh; overflow-y: auto; border-radius: 14px; padding: 38px 40px 30px; }
.modal--privacy { max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 8px; border: none;
  background: var(--cream); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--border); }
.modal__eyebrow { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.modal__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--red-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.modal__title { font-family: var(--font-head); font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.modal__lead { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }

/* Privacy modal specifics */
.privacy__header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 40px; border-bottom: 1px solid var(--border); }
.privacy__title { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin: 0; }
.privacy__body { overflow-y: auto; padding: 28px 40px 34px; }
.privacy__intro { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 26px; }
.privacy__sections { display: flex; flex-direction: column; gap: 24px; }
.privacy__sections h4 { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.privacy__sections p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.privacy__sections a, .form__consent a { color: var(--red); }
.privacy__updated { font-size: 12px; color: var(--faint); margin: 28px 0 0; }

/* ---------- Form ---------- */
.form__fields { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form label .opt { color: var(--faint); font-weight: 400; }
.form input, .form textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 7px; background: #fff; }
.form textarea { resize: vertical; min-height: 104px; }
.form input:focus, .form textarea:focus { border-color: var(--red); outline: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 4px; }
.form__consent { font-size: 12px; line-height: 1.5; color: var(--faint); margin: 2px 0 0; }
.form__error { font-size: 13px; color: var(--red); margin: 0; display: none; }
.form__error.show { display: block; }

/* Success state */
.form-success { text-align: center; padding: 18px 8px 8px; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success__title { font-family: var(--font-head); font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.form-success__text { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 auto 24px; max-width: 340px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .topbar, .hero, .section, .footer { padding-left: 24px; padding-right: 24px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .topbar__logo { height: 44px; }
  .topbar__nav { gap: 14px; }
  .topbar__nav .navlink { display: none; }      /* keep header clean on phones */
  .services { grid-template-columns: 1fr; }
  .partners__row { flex-direction: column; }
  .contact-grid, .addr-grid, .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .modal--form { padding: 30px 22px 24px; }
  .privacy__header, .privacy__body { padding-left: 24px; padding-right: 24px; }
  .contact-card__value { font-size: 22px; }
}
