/*
Theme Name: Przejrzeć Gruźlicę
Theme URI: https://example.com/
Author: OpenAI
Description: Dedykowany, responsywny motyw kampanii „Przejrzeć Gruźlicę”.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: przejrzec-gruzlice
*/


:root {
  --red: #df2029;
  --red-dark: #c91922;
  --ink: #202329;
  --muted: #5b5d62;
  --pale: #f5f5f5;
  --pink: #fbe2e1;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 104px;
  background: #fff;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .025);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: block;
  width: 220px;
  flex: 0 0 220px;
}

.brand img {
  display: block;
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: block;
  padding: 15px 0;
}

.nav-menu .current-menu-item>a:after,
.nav-menu a:hover:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  background: var(--red);
  border-radius: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 30px;
  background: var(--red);
  color: #fff;
  padding: 13px 27px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  color: #fff;
}

.button span {
  font-size: 20px;
  line-height: 1;
}

.button-small {
  padding: 10px 24px;
  font-size: 12px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 5px;
}

.hero {
  background: linear-gradient(90deg, #fafafa 0%, #f7f7f7 42%, #eee 100%);
  overflow: hidden;
}

.hero-inner {
  min-height: 450px;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
}

.hero-copy {
  padding: 50px 0 54px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .045em;
  color: #666;
  margin: 0 0 12px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(42px, 5.1vw, 64px);
  line-height: .99;
  letter-spacing: -.035em;
  margin: 0 0 16px;
  font-weight: 900;
}

.hero h1 span {
  color: var(--red);
}

.hero-intro {
  font-size: 17px;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 0 23px;
}

.hero-visual {
  height: 100%;
  min-height: 450px;
  position: relative;
  background: #f4f4f4 url('../images/hero-pluca-lupa.jpg') center center/cover no-repeat;
}

.lung-art {
  position: relative;
  width: min(100%, 540px);
  height: 400px;
}

.lung-art svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #202124;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.magnifier {
  position: absolute;
  width: 155px;
  height: 155px;
  right: 12%;
  top: 35%;
  border: 11px solid #171719;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}

.magnifier:after {
  content: "";
  position: absolute;
  width: 28px;
  height: 100px;
  background: #171719;
  border-radius: 9px;
  right: -23px;
  bottom: -78px;
  transform: rotate(-37deg);
  z-index: -1;
}

.magnifier span {
  position: absolute;
  width: 48px;
  height: 12px;
  border-radius: 10px;
  background: var(--red);
  transform: rotate(-35deg);
}

.magnifier span:nth-child(1) {
  top: 44px;
  left: 36px;
}

.magnifier span:nth-child(2) {
  top: 70px;
  left: 60px;
  width: 13px;
  height: 45px;
  transform: rotate(-20deg);
}

.magnifier span:nth-child(3) {
  top: 87px;
  left: 31px;
  width: 34px;
  transform: rotate(35deg);
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 42px;
  padding-bottom: 44px;
}

.feature-card {
  padding: 0 36px 0 18px;
  position: relative;
}

.feature-card:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 38px;
  bottom: 0;
  width: 1px;
  background: #eee;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pink);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #25282d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h2 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 800;
}

.feature-card p {
  font-size: 14px;
  color: #45464a;
  margin: 0 0 15px;
  max-width: 300px;
}

.text-link,
.read-more {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

.text-link span,
.read-more span {
  font-size: 18px;
  margin-left: 10px;
}

.check-banner-wrap {
  width: 100%;
  background: #f3f3f3;
  margin: 4px 0 44px;
  overflow: hidden;
}

.check-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  width: 100%;
  overflow: hidden;
  background: #f3f3f3;
  min-height: 292px;
  border-radius: 0;
}

.check-photo {
  min-height: 292px;
  position: relative;
  background: url('../images/baner-zbadaj-sie.jpg') center center/cover no-repeat;
}

.check-copy {
  padding: 34px clamp(28px, 4.5vw, 84px);
  align-self: center;
  max-width: 720px;
}

.check-copy .eyebrow {
  margin-bottom: 5px;
}

.check-copy h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 900;
}

.check-copy>p:not(.eyebrow) {
  font-size: 14px;
  color: #4b4d52;
  margin: 0 0 17px;
}

.check-copy .button {
  padding: 12px 24px;
}

.news-section {
  background: #fafafa;
  padding: 40px 0 42px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  font-size: 27px;
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
}

.all-news {
  font-size: 12px;
  margin-bottom: 5px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .045);
  display: flex;
  flex-direction: column;
}

.news-image {
  display: block;
  height: 115px;
  overflow: hidden;
  background: #e8e8e8;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}

.news-card:hover .news-image img {
  transform: scale(1.04);
}

.news-content {
  padding: 13px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-content time,
.post-date {
  font-size: 10px;
  color: #777;
}

.news-content h3 {
  font-size: 15px;
  line-height: 1.22;
  margin: 4px 0 7px;
  font-weight: 800;
}

.news-content p {
  font-size: 12px;
  line-height: 1.45;
  color: #555;
  margin: 0 0 12px;
}

.read-more {
  font-size: 11px;
  margin-top: auto;
}

.read-more span {
  font-size: 15px;
  margin-left: 5px;
}

.image-placeholder {
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d9e4e8, #f5eeee 55%, #e3e3e3);
  color: #30343a;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  background: #20252b;
  color: #fff;
  padding: 25px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  width: 220px;
  max-width: 28%;
  display: block;
}

.footer-brand img {
  display: block;
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.footer-message {
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  border-left: 1px solid #4a4e53;
  padding-left: 50px;
}

.social-links {
  display: flex;
  gap: 13px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--red);
  border-color: var(--red);
}

.page-header {
  background: #f6f6f6;
  padding: 55px 0;
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
}

.content-area {
  padding-top: 42px;
  padding-bottom: 65px;
  min-height: 350px;
}

.entry-content {
  max-width: 850px;
  margin: 0 auto 35px;
  font-size: 17px;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.25;
}

.entry-content a {
  color: var(--red);
  text-decoration: underline;
}

.page-featured-image {
  display: block;
  border-radius: 8px;
  margin: 0 auto 30px;
  max-height: 500px;
  object-fit: cover;
}

.archive-grid {
  padding-bottom: 20px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, var(--max));
  }

  .site-header {
    height: 86px;
  }

  .brand {
    width: 175px;
    flex-basis: 175px;
  }

  .primary-navigation {
    gap: 18px;
  }

  .nav-menu {
    gap: 18px;
  }

  .nav-menu a {
    font-size: 12px;
  }

  .header-cta {
    padding: 9px 15px;
  }

  .hero-inner {
    grid-template-columns: 47% 53%;
    min-height: 390px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .lung-art {
    height: 330px;
  }

  .magnifier {
    width: 125px;
    height: 125px;
    border-width: 9px;
  }

  .feature-card {
    padding-right: 20px;
    padding-left: 10px;
  }

  .check-copy {
    padding: 28px;
  }

  .news-grid {
    gap: 18px;
  }

  .footer-message {
    padding-left: 28px;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 36px);
  }

  .site-header {
    height: 78px;
  }

  .brand {
    width: 165px;
    flex-basis: 165px;
  }

  .brand img {
    max-height: 68px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    cursor: pointer;
  }

  .primary-navigation {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 18px 22px 22px;
    box-shadow: 0 12px 18px #0001;
    align-items: stretch;
    gap: 14px;
  }

  .primary-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu li a {
    padding: 11px 4px;
    font-size: 14px;
  }

  .nav-menu .current-menu-item>a:after,
  .nav-menu a:hover:after {
    left: 4px;
    right: auto;
    width: 34px;
    bottom: 3px;
  }

  .header-cta {
    align-self: flex-start;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    width: 100%;
  }

  .hero-copy {
    padding: 42px 24px 20px;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 62px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 250px;
    height: 250px;
    overflow: hidden;
    background-position: center center;
  }

  .check-banner-wrap {
    margin-bottom: 30px;
  }

  .feature-section {
    grid-template-columns: 1fr;
    padding-top: 25px;
    padding-bottom: 26px;
    gap: 22px;
  }

  .feature-card {
    padding: 0 0 22px 0;
    border-bottom: 1px solid #eee;
  }

  .feature-card:not(:last-child):after {
    display: none;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .feature-icon svg {
    width: 41px;
    height: 41px;
  }

  .feature-card h2 {
    font-size: 20px;
  }

  .feature-card p {
    max-width: 100%;
  }

  .check-banner {
    grid-template-columns: 1fr;
  }

  .check-copy {
    max-width: none;
    padding: 26px 23px 30px;
  }

  .check-photo {
    min-height: 220px;
    background-position: 44% center;
  }

  .check-copy {
    padding: 26px 23px 30px;
  }

  .check-copy h2 {
    font-size: 28px;
  }

  .news-section {
    padding: 32px 0;
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .news-image,
  .image-placeholder {
    height: 180px;
  }

  .news-content {
    padding: 15px 16px 18px;
  }

  .news-content h3 {
    font-size: 17px;
  }

  .news-content p {
    font-size: 13px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-brand {
    width: 165px;
    max-width: 48%;
  }

  .footer-message {
    order: 3;
    flex-basis: 100%;
    border-left: 0;
    border-top: 1px solid #4a4e53;
    padding: 15px 0 0;
  }

  .social-links {
    margin-left: auto;
  }

  .page-header {
    padding: 40px 0;
  }

  .content-area {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .entry-content {
    font-size: 16px;
  }
}