/* FENO / VIOMEDIC — global styling from supplied PSD. Sections built later in Elementor. */
:root {
  --feno-blue: #0077bd;
  --feno-teal: #159fb2;
  --feno-ink: #26282c;
  --feno-muted: #747981;
  --feno-line: #e3e6e8;
  --feno-pale: #f2f7fb;
  --feno-shell: 1440px;
  --feno-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --feno-header-h: 108px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--feno-header-h) + 20px); }
body { margin: 0; color: var(--feno-ink); background: #fff; font-family: var(--feno-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.feno-menu-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
a { color: var(--feno-blue); text-decoration: none; }
a:hover { color: #005b97; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--feno-blue); outline-offset: 3px; }
img, iframe, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--feno-ink); line-height: 1.2; margin: 0 0 .65em; letter-spacing: -.025em; }
h1 { font-size: clamp(34px, 4.8vw, 62px); font-weight: 700; }
h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 500; }
h3 { font-size: clamp(23px, 2.4vw, 32px); font-weight: 600; }
h4 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1.15em; }
::selection { background: #b8e5f4; color: #172c35; }
.feno-shell { width: min(var(--feno-shell), calc(100% - 80px)); margin-inline: auto; }
.feno-skip-link { position: fixed; z-index: 9999; left: 12px; top: -100px; background: #fff; padding: 10px 15px; }
.feno-skip-link:focus { top: 12px; }

/* Header, menu */
.feno-header { height: var(--feno-header-h); position: relative; z-index: 1000; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.feno-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.feno-brand { flex: 0 0 auto; display: flex; align-items: center; }
.feno-brand .custom-logo-link, .feno-brand__link { display: inline-flex; align-items: center; line-height: 0; }
.feno-brand img { display: block; width: 255px; max-height: 78px; object-fit: contain; }
.feno-nav { margin-left: auto; height: 100%; }
.feno-nav__list { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; gap: clamp(17px, 2.35vw, 39px); align-items: center; }
.feno-nav__list > li { position: relative; display: flex; height: 100%; align-items: center; }
.feno-nav__list > li > a { display: flex; align-items: center; height: 100%; font-size: 13px; font-weight: 400; letter-spacing: .018em; color: #3a3a3a; text-transform: uppercase; position: relative; white-space: nowrap; }
.feno-nav__list > li > a::after { content: ""; position: absolute; bottom: 29px; left: 0; width: 0; height: 3px; background: var(--feno-blue); transition: width .2s ease; }
.feno-nav__list > li:hover > a::after, .feno-nav__list > li:focus-within > a::after, .feno-nav__list > li.current-menu-item > a::after, .feno-nav__list > li.current_page_item > a::after { width: 100%; }
.feno-nav__list > li.current-menu-item > a, .feno-nav__list > li > a:hover { color: #111; }
.feno-nav .sub-menu { position: absolute; display: none; margin: 0; padding: 7px 0; top: 88%; left: -15px; min-width: 220px; z-index: 3; background: #fff; border: 1px solid var(--feno-line); list-style: none; box-shadow: 0 10px 30px #00000012; }
.feno-nav li:hover > .sub-menu, .feno-nav li:focus-within > .sub-menu { display: block; }
.feno-nav .sub-menu a { display: block; color: var(--feno-ink); padding: 9px 15px; font-size: 13px; }
.feno-nav .sub-menu a:hover { color: var(--feno-blue); background: var(--feno-pale); }
.feno-header__toggle { display: none; }

/* Shared buttons, forms, basic content */
.feno-button, .feno-main input[type="submit"], .feno-main input[type="button"],
.feno-main .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 13px 24px; border: 1px solid var(--feno-blue); border-radius: 3px; background: var(--feno-blue); color: #fff; font-weight: 500; font-size: 15px; line-height: 1.3; transition: background .2s ease, border-color .2s ease; cursor: pointer; }
.feno-button:hover, .feno-main input[type="submit"]:hover, .feno-main input[type="button"]:hover, .feno-main .wp-block-button__link:hover { background: #005f99; border-color: #005f99; color: #fff; }
.feno-button--outline { background: #e4e4e4; border-color: #e4e4e4; color: #333; }
.feno-button--outline:hover { background: #d0d0d0; color: #111; }
.feno-main :where(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],input[type="number"],textarea,select) { max-width: 100%; border: 1px solid #d7dce0; border-radius: 3px; background: #fff; color: var(--feno-ink); padding: 11px 13px; }
.feno-main :where(input,textarea,select):focus { border-color: var(--feno-blue); }
.feno-main .elementor-widget-heading .elementor-heading-title { font-family: var(--feno-font); }
.feno-main .elementor-widget-text-editor { font-family: var(--feno-font); }
.feno-main .elementor-widget-button .elementor-button { font-family: var(--feno-font); }
.feno-main--elementor { width: 100%; max-width: 100%; min-height: 35vh; }
.feno-main--regular { padding: 65px 0 85px; min-height: 45vh; }
.feno-reading-area { max-width: 1080px; }
.feno-page-title { margin-bottom: 28px; }
.feno-article { margin-bottom: 48px; }
.feno-article + .feno-article { padding-top: 40px; border-top: 1px solid var(--feno-line); }
.feno-article a:not(.feno-button) { overflow-wrap: anywhere; }

/* Footer: logo + contact + links + address + optional social, based on supplied PSD. */
.feno-footer { position: relative; background: #fff; color: #343434; padding: 65px 0 18px; border-top: 1px solid #e4e4e4; }
.feno-footer::before { content: ""; position: absolute; height: 1px; left: 0; right: 0; top: -1px; background: linear-gradient(90deg, #ddd 0 4%, transparent 4% 96%, #ddd 96% 100%); }
.feno-footer__grid { display: grid; grid-template-columns: minmax(205px, 1.17fr) minmax(170px, .9fr) minmax(195px, .92fr) minmax(180px, .9fr) auto; align-items: start; gap: clamp(16px, 3vw, 55px); }
.feno-footer__brand img { width: 260px; display: block; max-width: 100%; }
.feno-footer__column { position: relative; padding-top: 21px; font-size: 14px; line-height: 1.8; }
.feno-footer__column::before { position: absolute; content: ""; height: 5px; width: min(100%, 215px); top: 0; left: 0; background: #e8e8e8; }
.feno-footer__contact::before { background: var(--feno-blue); }
.feno-footer__column a { color: inherit; }
.feno-footer__column a:hover { color: var(--feno-blue); }
.feno-footer__contact > div { white-space: nowrap; }
.feno-footer__contact span { display: inline-block; width: 24px; }
.feno-footer__contact a { font-weight: 400; }
.feno-footer__contact > div:first-child a { font-weight: 700; }
.feno-footer__links { list-style: none; padding: 0; margin: 0; }
.feno-footer__links > li { margin: 0; padding: 0; }
.feno-footer__address { color: #707070; }
.feno-footer__address strong { display: block; font-weight: 500; }
.feno-footer__social { display: flex; align-items: flex-start; gap: 8px; }
.feno-footer__social::before { display: none; }
.feno-footer__social a { display: inline-flex; width: 23px; height: 23px; align-items: center; justify-content: center; color: #333; }
.feno-footer__social svg { width: 19px; height: 19px; }
.feno-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: #999; font-size: 11px; margin-top: 55px; }
.feno-footer__bottom a { color: inherit; }
.feno-footer__bottom a:hover { color: var(--feno-blue); }

/* Useful anchor offsets when Elementor sections receive CSS ID. */
[id="o-urzadzeniu"], [id="obsluga"], [id="dane-techniczne"], [id="baza-wiedzy"], [id="kontakt"] { scroll-margin-top: calc(var(--feno-header-h) + 20px); }

@media (max-width: 1180px) {
  :root { --feno-header-h: 92px; }
  .feno-shell { width: calc(100% - 60px); }
  .feno-brand img { width: 210px; }
  .feno-nav__list { gap: 20px; }
  .feno-nav__list > li > a { font-size: 11px; }
  .feno-nav__list > li > a::after { bottom: 23px; }
  .feno-footer__grid { gap: 22px; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .feno-footer__social { grid-column: 4; padding-top: 0; }
}
@media (max-width: 1024px) {
  :root { --feno-header-h: 82px; }
  .feno-header__inner { gap: 20px; }
  .feno-brand img { width: 210px; }
  .feno-header__toggle { margin-left: auto; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 43px; border: 1px solid #e1e4e6; border-radius: 3px; background: #fff; cursor: pointer; padding: 10px 11px; }
  .feno-header__toggle-line { display: block; width: 100%; height: 2px; background: #29333a; transition: transform .2s ease, opacity .2s ease; }
  .feno-header--open .feno-header__toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .feno-header--open .feno-header__toggle-line:nth-child(2) { opacity: 0; }
  .feno-header--open .feno-header__toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feno-nav { position: absolute; top: 100%; left: 0; right: 0; height: auto; display: none; margin: 0; background: #fff; border-top: 1px solid var(--feno-line); box-shadow: 0 13px 22px #00000016; overflow-y: auto; max-height: calc(100vh - var(--feno-header-h)); }
  .feno-header--open .feno-nav { display: block; }
  .feno-nav__list { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 10px 30px 18px; }
  .feno-nav__list > li { display: block; height: auto; border-bottom: 1px solid #eee; }
  .feno-nav__list > li > a { width: 100%; height: auto; min-height: 46px; padding: 13px 0; font-size: 13px; }
  .feno-nav__list > li > a::after { bottom: 5px; height: 2px; }
  .feno-nav .sub-menu { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 10px 14px; }
  .feno-nav .sub-menu a { padding: 6px 0; }
}
@media (max-width: 768px) {
  .feno-shell { width: calc(100% - 40px); }
  .feno-brand img { width: 183px; }
  .feno-footer { padding-top: 42px; }
  .feno-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .feno-footer__brand { grid-column: 1 / -1; }
  .feno-footer__brand img { width: 235px; }
  .feno-footer__column { padding-top: 15px; }
  .feno-footer__social { grid-column: auto; padding-top: 15px; }
  .feno-footer__bottom { margin-top: 35px; }
  .feno-main--regular { padding: 42px 0 65px; }
}
@media (max-width: 520px) {
  :root { --feno-header-h: 74px; }
  .feno-shell { width: calc(100% - 32px); }
  .feno-brand img { width: 164px; }
  .feno-header__toggle { width: 42px; height: 41px; }
  .feno-nav__list { padding-inline: 20px; }
  .feno-footer__grid { grid-template-columns: 1fr; gap: 23px; }
  .feno-footer__brand { grid-column: auto; }
  .feno-footer__column::before { width: 95px; }
  .feno-footer__contact > div { white-space: normal; }
  .feno-footer__bottom { margin-top: 28px; flex-direction: column; gap: 5px; }
  h1 { font-size: clamp(30px, 9vw, 42px); }
  h2 { font-size: clamp(26px, 7.5vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* Feno v1.1.2 — sticky navigation and footer corrections matching client's layout. */
.feno-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
}
body.admin-bar .feno-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .feno-header { top: 46px; }
}

.feno-footer {
  border-top: 0;
  padding: 34px 0 15px;
}
.feno-footer::before {
  top: 50px;
  background: linear-gradient(90deg, #e8e8e8 0 4.5%, transparent 4.5% 95.5%, #e8e8e8 95.5% 100%);
}
.feno-footer .feno-shell {
  width: min(1160px, calc(100% - 11.6vw));
}
.feno-footer__grid {
  grid-template-columns: minmax(190px,230px) minmax(185px,200px) minmax(195px,215px) minmax(190px,210px) minmax(68px,80px);
  gap: 22px;
  justify-content: space-between;
  align-items: start;
}
.feno-footer__brand { padding-top: 0; }
.feno-footer__brand img { width: 220px; }
.feno-footer__column {
  padding-top: 33px;
  font-size: 14px;
  line-height: 1.76;
}
.feno-footer__column::before {
  top: 14px;
  width: 100%;
  height: 5px;
}
.feno-footer__contact > div { white-space: nowrap; }
.feno-footer__links > li { line-height: 1.76; }
.feno-footer__address strong { font-weight: 400; }
.feno-footer__social {
  padding-top: 43px;
  grid-column: auto;
  display: flex;
  gap: 3px;
  align-items: flex-start;
}
.feno-footer__social::before { content: none; }
.feno-footer__social a,
.feno-footer__social .feno-footer__social-placeholder {
  display: inline-flex;
  width: 22px;
  height: 23px;
  justify-content: center;
  align-items: center;
  color: #323232;
  flex: 0 0 22px;
}
.feno-footer__social svg { width: 18px; height: 18px; }
.feno-footer__bottom {
  justify-content: flex-end;
  margin-top: 37px;
  padding: 0;
  font-size: 10px;
  color: #969696;
}

@media (max-width: 1180px) {
  .feno-footer__grid {
    grid-template-columns: minmax(140px, 1.1fr) minmax(155px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) 74px;
    gap: 20px;
  }
  .feno-footer__brand img { width: min(210px, 100%); }
  .feno-footer__column { font-size: 13px; }
}
@media (max-width: 970px) {
  .feno-footer .feno-shell { width: calc(100% - 60px); }
  .feno-footer__grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 22px; }
  .feno-footer__brand { grid-column: 1 / 3; }
  .feno-footer__contact { grid-column: 3 / 5; }
  .feno-footer__navigation { grid-column: 1 / 3; }
  .feno-footer__address { grid-column: 3 / 5; }
  .feno-footer__social { grid-column: 1 / 5; padding-top: 6px; }
  .feno-footer__column::before { width: min(100%, 220px); }
  .feno-footer__contact > div { white-space: normal; }
  .feno-footer__bottom { margin-top: 26px; }
}
@media (max-width: 520px) {
  .feno-footer { padding: 29px 0 18px; }
  .feno-footer .feno-shell { width: calc(100% - 40px); }
  .feno-footer::before { display: none; }
  .feno-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .feno-footer__brand { grid-column: 1 / -1; }
  .feno-footer__brand img { width: 205px; }
  .feno-footer__contact,
  .feno-footer__navigation,
  .feno-footer__address { grid-column: 1 / -1; }
  .feno-footer__column { padding-top: 20px; font-size: 14px; }
  .feno-footer__column::before { top: 0; height: 4px; width: 135px; }
  .feno-footer__social { grid-column: 1 / -1; padding-top: 0; }
  .feno-footer__bottom { justify-content: flex-start; margin-top: 27px; }
}
