/*
Theme Name: Vibroblog
Theme URI: https://example.com/vibroblog
Author: Vitberg
Description: Spokojny, redakcyjny motyw WordPress dla bloga o zdrowiu, rehabilitacji i wibroterapii.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: vibroblog
*/

:root {
  --ink: #0d2e3f;
  --ink-soft: #3f5964;
  --paper: #fbfaf6;
  --paper-deep: #f1f5f1;
  --white: #ffffff;
  --teal: #167b7a;
  --teal-dark: #0f5e60;
  --mint: #dcece8;
  --coral: #e76f51;
  --line: rgba(13, 46, 63, 0.14);
  --shadow: 0 18px 50px rgba(13, 46, 63, 0.09);
  --radius: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--teal-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto;
  padding: 12px 16px; clip: auto; color: var(--ink); background: var(--white);
}
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 14px; color: var(--teal-dark); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase;
}
.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--white); background: var(--ink); font-size: 0.92rem; font-weight: 750;
  text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { color: var(--white); background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-2px); }
.button--ghost { color: var(--ink); background: transparent; }
.button--ghost:hover { color: var(--white); }

.site-header {
  position: sticky; z-index: 50; top: 0; border-bottom: 1px solid transparent;
  background: rgba(251, 250, 246, 0.91); backdrop-filter: blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 7px 30px rgba(13, 46, 63, .06); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--teal-dark); }
.brand-mark svg { width: 24px; height: 16px; }
.brand-copy { display: grid; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.34rem; font-weight: 700; }
.brand-tagline { margin-top: 6px; color: var(--ink-soft); font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav .current-menu-item a, .site-nav a:hover { color: var(--teal); }
.menu-toggle { display: none; padding: 8px; border: 0; color: var(--ink); background: transparent; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; min-height: 650px; display: grid; align-items: center; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,250,246,.98) 0%, rgba(251,250,246,.92) 34%, rgba(251,250,246,.26) 66%, rgba(251,250,246,.04) 100%); }
.hero-content { position: relative; z-index: 1; width: min(660px, 58%); padding-block: 100px; }
.hero h1 { margin: 0; max-width: 650px; font-family: var(--serif); font-size: clamp(3rem, 5.5vw, 5.4rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero h1 em { color: var(--teal-dark); font-style: normal; }
.hero-lead { max-width: 580px; margin: 28px 0 32px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: var(--ink-soft); font-size: .78rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.hero-note::before { content: ""; width: 38px; height: 1px; background: var(--coral); }

.trust-strip { background: var(--ink); color: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 27px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item:last-child { border: 0; }
.trust-number { color: #8dd3c9; font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.trust-item strong { display: block; font-size: .88rem; }
.trust-item span { display: block; margin-top: 2px; color: rgba(255,255,255,.64); font-size: .76rem; }

.section { padding-block: 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { max-width: 650px; margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.section-intro { max-width: 440px; margin: 0 0 4px; color: var(--ink-soft); font-size: .95rem; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); box-shadow: 0 4px 0 rgba(13,46,63,.02); transition: transform .25s ease, box-shadow .25s ease; }
.article-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; transition: transform .5s ease; }
.article-card:nth-child(2) .card-media img { object-position: 55% 62%; }
.article-card:nth-child(3) .card-media img { object-position: 84% 38%; }
.article-card:hover .card-media img { transform: scale(1.035); }
.card-tag { position: absolute; left: 18px; bottom: 18px; padding: 7px 12px; border-radius: 999px; color: var(--white); background: rgba(13,46,63,.88); font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; backdrop-filter: blur(8px); }
.card-content { padding: 26px 26px 28px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 13px; color: var(--ink-soft); font-size: .73rem; font-weight: 650; }
.article-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.8rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt { margin: 16px 0 0; color: var(--ink-soft); font-size: .91rem; line-height: 1.62; }
.card-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 22px; color: var(--teal-dark); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.editorial-note { background: var(--paper-deep); }
.note-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.note-grid h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 500; line-height: 1.03; }
.note-copy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.note-copy p { margin: 0; color: var(--ink-soft); }
.note-copy strong { color: var(--ink); }

.archive-header { padding: 90px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--paper-deep), var(--paper)); }
.archive-header h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.8rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.archive-description { max-width: 620px; margin: 20px 0 0; color: var(--ink-soft); }
.search-form { display: flex; max-width: 560px; gap: 10px; margin-top: 28px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 50px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); }
.pagination { margin-top: 52px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--ink); }

.article-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 0; height: 3px; background: var(--coral); }
.article-hero { position: relative; overflow: hidden; padding: 82px 0 72px; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.article-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -270px; border: 1px solid rgba(22,123,122,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(22,123,122,.045), 0 0 0 160px rgba(22,123,122,.03); }
.breadcrumbs { position: relative; z-index: 1; margin-bottom: 42px; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.article-heading { position: relative; z-index: 1; max-width: 900px; }
.article-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.article-subtitle { max-width: 720px; margin: 24px 0 0; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.article-cover { width: min(1180px, calc(100% - 40px)); height: min(42vw, 500px); margin: 44px auto -145px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: 70px; padding-top: 210px; padding-bottom: 110px; }
.article-toc { position: sticky; top: 112px; align-self: start; padding-top: 8px; }
.toc-title { margin: 0 0 16px; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.article-toc ol { margin: 0; padding: 0; list-style: none; }
.article-toc li { border-top: 1px solid var(--line); }
.article-toc a { display: block; padding: 11px 0; color: var(--ink-soft); font-size: .76rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.article-toc a:hover { color: var(--teal-dark); }
.article-body { min-width: 0; color: #263f49; font-family: var(--serif); font-size: 1.12rem; line-height: 1.84; }
.article-body > p:first-child { color: var(--ink); font-size: 1.3rem; line-height: 1.65; }
.article-body h2 { margin: 2.4em 0 .7em; color: var(--ink); font-family: var(--sans); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; }
.article-body h3 { margin: 1.7em 0 .45em; color: var(--teal-dark); font-family: var(--sans); font-size: 1.12rem; line-height: 1.3; }
.article-body h3 + p { margin-top: 0; }
.article-body p { margin: 0 0 1.45em; }
.article-body a { color: var(--teal-dark); }
.article-note-ref {
  position: relative;
  top: -.15em;
  margin-left: .12em;
  font-family: var(--sans);
  font-size: .67em;
  font-weight: 800;
}
.article-note-ref a { text-decoration: none; }
.article-cta { margin: 3.2em 0; padding: 34px 38px; border-left: 4px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; background: var(--mint); }
.article-cta h2 { margin-top: 0; }
.article-cta p:last-child { margin-bottom: 0; }
.article-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-cta-link::after { content: "\2192"; transition: transform .2s ease; }
.article-cta-link:hover::after,
.article-cta-link:focus-visible::after { transform: translateX(3px); }
.article-references { margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--sans); font-size: .78rem; line-height: 1.55; }
.article-references h2 { margin-top: 0; font-size: 1.25rem; }
.article-references ol { padding-left: 1.4em; }
.article-references li { margin-bottom: 1em; }
.article-references li:target {
  padding: .7em .8em;
  border-radius: 8px;
  background: var(--mint);
}
.medical-note { margin-top: 44px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); font-family: var(--sans); font-size: .75rem; line-height: 1.55; }
.related { padding-block: 80px; background: var(--paper-deep); }
.related .articles-grid { grid-template-columns: repeat(2, 1fr); }

.site-footer { color: rgba(255,255,255,.74); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 70px; padding-block: 70px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: var(--ink); background: #8dd3c9; }
.site-footer .brand-tagline { color: rgba(255,255,255,.55); }
.footer-about { max-width: 450px; margin: 20px 0 0; font-size: .86rem; }
.footer-heading { margin: 0 0 18px; color: var(--white); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { font-size: .84rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .71rem; }
.empty-state { padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; background: var(--white); }

/* Contact page */
.contact-page-hero {
  position: relative; overflow: hidden; padding: 86px 0 74px; color: var(--white);
  background: var(--teal-dark);
}
.contact-page-hero::before {
  content: ""; position: absolute; width: 430px; height: 430px; left: -210px; bottom: -310px;
  border: 72px solid rgba(255,255,255,.07); border-radius: 50%;
}
.contact-page-hero::after {
  content: ""; position: absolute; width: 360px; height: 360px; right: -125px; top: -235px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 68px rgba(255,255,255,.035);
}
.contact-hero-inner { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 42px; }
.contact-page-hero .eyebrow { color: #a9ded5; }
.contact-page-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 6.8rem); font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.contact-hero-lead { max-width: 610px; margin: 26px 0 0; color: rgba(255,255,255,.78); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; }
.contact-hero-label { color: rgba(255,255,255,.1); font-family: var(--serif); font-size: clamp(3rem, 8vw, 7rem); line-height: .8; text-transform: uppercase; }
.contact-section { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: clamp(38px, 6vw, 84px); align-items: start; }
.contact-story h2, .contact-panel h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.contact-person { display: grid; grid-template-columns: 150px 1fr; align-items: end; gap: 28px; margin: 46px 0 40px; }
.contact-person img { width: 150px; height: 150px; object-fit: cover; border-radius: 50% 50% 16px 50%; background: var(--mint); box-shadow: 13px 13px 0 var(--mint); }
.contact-person div { padding-bottom: 8px; }
.contact-person strong { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.contact-person span { display: block; margin-top: 8px; color: var(--teal-dark); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-description { max-width: 760px; color: var(--ink-soft); font-family: var(--serif); font-size: 1.05rem; line-height: 1.82; }
.contact-description p { margin: 0 0 1.5em; }
.contact-description .contact-signature { color: var(--ink); font-weight: 700; }
.contact-panel { margin-top: -168px; padding: clamp(32px, 4vw, 48px); border-top: 6px solid var(--coral); background: var(--white); box-shadow: var(--shadow); }
.contact-panel h2 { font-size: clamp(2.05rem, 3.5vw, 3rem); }
.contact-details { margin-top: 30px; border-top: 1px solid var(--line); font-style: normal; }
.contact-detail { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--teal-dark); background: var(--mint); font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.contact-detail small, .contact-hours small { display: block; margin-bottom: 4px; color: var(--ink-soft); font-family: var(--sans); font-size: .62rem; font-style: normal; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-detail strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: .87rem; font-style: normal; line-height: 1.5; }
.contact-detail:hover strong { color: var(--teal-dark); }
.contact-hours { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin: 20px 0 30px; padding: 22px; background: var(--paper-deep); }
.contact-hours strong { display: block; font-family: var(--serif); font-size: 1.13rem; line-height: 1.3; }
.contact-hours b { display: block; margin-top: 3px; color: var(--teal-dark); font-size: 1.05rem; }
.contact-call { width: 100%; justify-content: space-between; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 82px 0 auto; padding: 28px 20px; border-bottom: 1px solid var(--line); background: var(--paper); transform: translateY(-130%); transition: transform .25s ease; }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero { min-height: 600px; }
  .hero-content { width: 66%; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 760px); padding-top: 190px; }
  .article-toc { display: none; }
  .note-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-panel { margin-top: 0; }
  .contact-hero-label { display: none; }
}

@media (max-width: 640px) {
  .container, .narrow, .article-cover { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand-tagline { display: none; }
  .site-nav { inset-block-start: 72px; }
  .hero { min-height: auto; }
  .hero-media { opacity: .4; }
  .hero-media::after { background: linear-gradient(90deg, rgba(251,250,246,.99), rgba(251,250,246,.75)); }
  .hero-content { width: 100%; padding-block: 82px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .trust-grid, .articles-grid, .related .articles-grid, .note-copy { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .section { padding-block: 74px; }
  .section-head { display: block; }
  .section-intro { margin-top: 20px; }
  .article-hero { padding-top: 56px; }
  .article-heading h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .article-cover { height: 58vw; margin-bottom: -90px; }
  .article-layout { padding-top: 140px; padding-bottom: 80px; }
  .article-body { font-size: 1.04rem; }
  .article-body > p:first-child { font-size: 1.15rem; }
  .article-cta { padding: 26px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .contact-page-hero { padding: 64px 0 58px; }
  .contact-person { grid-template-columns: 112px 1fr; gap: 20px; }
  .contact-person img { width: 112px; height: 112px; box-shadow: 9px 9px 0 var(--mint); }
  .contact-person strong { font-size: 1.3rem; }
  .contact-panel { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
