/* massmed.pl – 2026 remake of the 2013 design: same blue/lime palette, glossy panels,
   pill buttons and Century-Gothic headings, rebuilt in CSS instead of image slices. */

@font-face {
  font-family: "Didact Gothic";
  src: url("../fonts/DidactGothic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue-950: #022f55;
  --blue-900: #033f72;
  --blue-800: #044d88;
  --blue-700: #055c9f;
  --blue-600: #0a6fb8;
  --blue-500: #1688d4;
  --blue-300: #46b4ee;
  --lime: #a0de00;
  --lime-soft: #c9f25a;
  --green-700: #3f7f0c;
  --green-600: #569c14;
  --green-500: #7ab149;
  --green-400: #8fcf2d;
  --white: #ffffff;
  --ink-soft: #dcefff;
  --gothic: "Century Gothic", "Didact Gothic", "URW Gothic", "Avant Garde", sans-serif;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--blue-900); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font: 15px/1.65 var(--sans);
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(70, 180, 238, .55), transparent 70%),
    radial-gradient(900px 700px at 100% 30%, rgba(3, 63, 114, .55), transparent 70%),
    linear-gradient(180deg, var(--blue-700) 0%, var(--blue-800) 60%, var(--blue-900) 100%);
  background-color: var(--blue-900);
  border-top: 3px solid var(--lime);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--white); }
a:hover { color: var(--lime-soft); }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--lime); color: var(--blue-950); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 12px; }

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 40;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
}

.logo { flex: 0 0 auto; line-height: 0; }
.logo img { width: 340px; filter: drop-shadow(0 4px 10px rgba(2, 30, 60, .35)); }

.lang {
  position: absolute; top: 14px; right: 24px;
  font-size: 12px; display: flex; gap: 10px;
}
.lang a { text-decoration: none; opacity: .8; display: inline-flex; align-items: center; gap: 4px; }
.lang a[aria-current] { opacity: 1; font-weight: 600; }
.lang img { border-radius: 50%; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 12px; align-items: center; }
.nav li { position: relative; }

.nav-btn {
  display: inline-block;
  font: 17px/1 var(--gothic);
  color: var(--white);
  text-decoration: none;
  padding: 9px 14px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: linear-gradient(180deg, #3aa6e6 0%, #1a7fc8 52%, #0f69ae 53%, #1270b6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 rgba(2, 47, 85, .35), 0 6px 14px rgba(2, 47, 85, .25);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.nav-btn:hover, .nav-btn:focus-visible { filter: brightness(1.15); color: var(--white); }
.nav-btn[aria-current="page"], .has-sub.is-active > .nav-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 var(--lime), 0 6px 14px rgba(2, 47, 85, .25);
}
.has-sub > .nav-btn::after { content: " ▾"; font-size: 12px; opacity: .85; }

.sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  margin: 0;
  min-width: 270px; padding: 8px;
  background: linear-gradient(180deg, rgba(26, 128, 200, .98), rgba(6, 92, 159, .98));
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(2, 30, 60, .45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.sub::before {        /* invisible bridge over the 6 px gap, so the mouse keeps :hover */
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.sub a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font: 15px/1.3 var(--gothic); text-decoration: none;
}
.sub a:hover, .sub a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: var(--lime-soft); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub {
  opacity: 1; visibility: visible; transform: none;
}

.menu-toggle { display: none; }

/* ---------- side tabs ---------- */

.side-tabs {
  position: fixed; left: 0; top: 100px; z-index: 30;
  display: flex; flex-direction: column; gap: 8px;
}
.tab {
  writing-mode: vertical-rl;
  font: 15px/1 var(--gothic);
  text-decoration: none;
  padding: 14px 6px;
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, .3); border-left: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 2px 4px 12px rgba(2, 30, 60, .35);
}
.tab--green { background: linear-gradient(90deg, #6fb81d, #9bd83a); }
.tab--fb { background: linear-gradient(90deg, #4458a8, #6175c4); font-weight: 700; letter-spacing: .5px; }
.tab:hover { color: var(--white); filter: brightness(1.1); }

/* ---------- main panels ---------- */

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 20px 10px;
  display: grid;
  gap: 34px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 40px 56px 46px;
  border-radius: var(--radius) 34px var(--radius) 34px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, rgba(48, 172, 236, .58) 0%, rgba(14, 116, 190, .5) 38%, rgba(5, 92, 159, .32) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 22px 44px rgba(2, 30, 60, .35);
}
.panel::before {           /* glossy highlight of the 2013 slices */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 18% 0%, rgba(255, 255, 255, .22), transparent 70%);
}
.panel > * { position: relative; }

.panel--green {
  background: linear-gradient(180deg, #96d636 0%, #6fb51d 42%, #4f9410 100%);
  border-color: rgba(255, 255, 255, .35);
}

h1, h2.gothic, .panel--green h2 {
  font-family: var(--gothic);
  font-weight: 400;
  letter-spacing: .2px;
}
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 22px; text-shadow: 0 2px 10px rgba(2, 30, 60, .3); }
.panel--green h2 { font-size: 30px; line-height: 1.15; margin: 0 0 16px; color: var(--white); }

.content h2, .hero-text h2 {
  font: 700 16px/1.4 var(--sans);
  color: var(--lime);
  margin: 26px 0 12px;
}
.hl { color: var(--lime); }

.content p, .hero-text p { margin: 0 0 14px; text-align: justify; hyphens: auto; }
.content ul, .content ol { margin: 6px 0 18px; padding-left: 22px; }
.content li { margin: 3px 0; }
.content li::marker { color: var(--lime); }
.content strong { color: var(--white); }
.content::after { content: ""; display: block; clear: both; }

.content img { margin: 6px 0 16px; }   /* the 2013 photos carry their own white frame and glow */
.content img.img-right { float: right; clear: right; margin: 6px 0 16px 28px; max-width: 42%; }
.content img.img-left { float: left; clear: left; margin: 6px 28px 16px 0; max-width: 42%; }
.content img[src$="loga.jpg"] { display: block; margin: 0 auto; border-radius: 6px; }

.content iframe, .video iframe {
  width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0;
  border-radius: 10px; box-shadow: 0 0 18px rgba(160, 225, 255, .6);
}

/* see-also / call-to-action rows */
.see-also { text-align: center; clear: both; padding-top: 10px; }
.content p.btns, p.btns { text-align: center; margin: 14px 0 6px; clear: both; }
.btns .btn { margin: 6px 14px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  min-width: 160px;
  text-align: center;
  font: 18px/1 var(--gothic);
  color: var(--white);
  text-decoration: none;
  padding: 9px 26px 10px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  background: linear-gradient(180deg, #3aa1e2 0%, #1675bd 52%, #0d62a3 53%, #1169ad 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px rgba(110, 215, 255, .28);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.15); color: var(--white); transform: translateY(-1px); }
.btn--green, .panel--green .btn {
  background: linear-gradient(180deg, #8fd23a 0%, #5ea81a 52%, #4b9210 53%, #56a012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px rgba(205, 255, 120, .3);
}

/* ---------- home ---------- */

.panel--hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text .btn { margin-top: 6px; }
.panel--green { padding: 34px 40px 40px; display: flex; flex-direction: column; }
.panel--green .main_green_text { flex: 1; }
.panel--green .btn { align-self: center; margin-top: 10px; }
.panel--green p { text-align: justify; }
.green-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }

/* ---------- decoration ---------- */

.swoosh {
  position: absolute; left: -14px; bottom: -18px;
  width: 170px; height: auto; opacity: .9; pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(200, 255, 100, .45));
}
.panel--page { padding-bottom: 120px; }
.panel--hero { padding-bottom: 60px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-info p { text-align: left; }
.contact-info h2 { margin-top: 18px; }
.phone-img { height: 24px; width: auto; vertical-align: -6px; margin: 0 0 0 4px !important;
  pointer-events: none; -webkit-user-select: none; user-select: none; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.field--wide, .form-actions, .form-status { grid-column: 1 / -1; }
.field input, .field textarea {
  font: 15px/1.4 var(--sans);
  color: var(--blue-950);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  background: linear-gradient(180deg, #d9f3a6, #b6e06a);
  box-shadow: inset 0 2px 4px rgba(40, 80, 0, .25);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--lime); outline-offset: 1px; background: #f2ffd9; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ffb3b3; box-shadow: 0 0 0 2px rgba(255, 120, 120, .55); }
.form-actions { text-align: center; margin: 4px 0 0; }
.form-status { margin: 0; min-height: 1.2em; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--lime-soft); }
.form-status.err { color: #ffd0d0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.target-note { display: none; grid-column: 1 / -1; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.target-note:target { display: block; }      /* confirmation after a form post without JavaScript */
.target-note.ok { background: rgba(160, 222, 0, .2); color: var(--lime-soft); }
.target-note.err { background: rgba(255, 120, 120, .2); color: #ffd0d0; }

/* ---------- footer ---------- */

.site-footer {
  max-width: calc(var(--wrap) - 40px);
  margin: 34px auto 30px;
  padding: 22px 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
  border-radius: 18px 28px 18px 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(48, 172, 236, .32), rgba(5, 92, 159, .22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.foot-links { text-align: right; }
.unect { color: var(--lime); font-weight: 700; letter-spacing: 1.5px; }
.unect:hover { color: var(--white); text-shadow: 0 0 10px rgba(160, 222, 0, .8); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; min-height: 0; padding-top: 30px; }
  .logo img { width: 250px; }
  .menu-toggle {
    display: inline-block;
    font: 17px/1 var(--gothic); color: var(--white);
    padding: 10px 16px; border-radius: 9px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .3);
    background: linear-gradient(180deg, #3aa6e6, #1270b6);
  }
  .menu-toggle::before { content: "☰  "; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 6px; }
  .nav-btn { width: 100%; text-align: left; }
  .sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; margin-top: 6px; box-shadow: none; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open:hover > .sub { display: block; }
  .panel { padding: 30px 26px 40px; }
  .panel--hero, .green-row, .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .side-tabs { display: none; }
  .panel--page { padding-bottom: 90px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  h1 { font-size: 28px; }
  .panel--green h2 { font-size: 25px; }
  .content p, .hero-text p, .panel--green p { text-align: left; hyphens: manual; }
  .content img.img-right, .content img.img-left { float: none; display: block; max-width: 100%; margin: 10px auto 16px; }
  .site-footer { flex-direction: column; text-align: center; }
  .foot-links { text-align: center; }
  .lang { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
