/* ==========================================================================
   1. ZMIENNE I USTAWIENIA OGÓLNE
   ========================================================================== */
:root {
  --green: #55bd10;
  --lime: #91e300;
  --dark: #0b2029;
  --soft: #f4f8f1;
  --white: #fff;
  --line: #dce7d7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 160px; /* Wysokość nagłówka .site-header */
}

body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.55;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: auto;
}

.center {
  text-align: center;
  margin-top: 31px;
}

/* Dostępność */
.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: var(--white);
  padding: 8px;
  z-index: 99;
}

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

/* ==========================================================================
   2. ELEMENTY INTERFEJSU & PRZYCISKI
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  text-decoration: none;
  padding: 15px 23px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s transform, 0.2s background;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  padding: 11px 18px !important;
}

.button-primary {
  background: var(--green);
  color: var(--white) !important;
  box-shadow: 0 10px 25px rgba(85, 189, 16, 0.2);
}

.button-primary:hover {
  background: #42a400;
}

.button-ghost {
  border: 1px solid #cdd9c8;
  color: var(--dark);
}

.button-white {
  background: var(--white);
  color: var(--dark);
}

.text-link {
  font-size: 14px;
  color: var(--dark);
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  color: var(--green);
  font-size: 18px;
  margin-left: 6px;
}

/* ==========================================================================
   3. NAGŁÓWEK I NAWIGACJA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #edf1eb;
}

.nav {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 184px;
  height: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 57px;
}

.menu a {
  color: var(--dark);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.menu a:not(.button):hover,
.text-link:hover,
footer a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  color: var(--dark);
}

/* ==========================================================================
   4. SEKCJE STRONY (HERO & GENERAL)
   ========================================================================== */
.section {
  padding: 95px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.section-heading h2,
.benefits h2,
.cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0;
}

.section-heading > p:not(.eyebrow) {
  margin: 16px 0 0;
  color: #5b6a70;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #319507;
  margin: 0 0 14px;
}

.eyebrow span {
  display: inline-block;
  width: 27px;
  height: 3px;
  background: var(--green);
  margin: 0 8px 3px 0;
}

/* Hero */
.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #fbfdf9 0%, #eff9e8 100%);
  padding: 78px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 35px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  max-width: 700px;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin: 0;
}

.hero h1 em,
.benefits h2 em {
  color: var(--green);
  font-style: normal;
}

.lead {
  font-size: 17px;
  max-width: 615px;
  color: #42535b;
  margin: 25px 0 31px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: flex;
  gap: 29px;
  margin-top: 45px;
}

.trust-row div {
  border-left: 2px solid var(--green);
  padding-left: 12px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 16px;
}

.trust-row span {
  font-size: 12px;
  color: #607078;
}

.hero-art {
  height: 430px;
  position: relative;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
}

.orb-one {
  height: 365px;
  width: 365px;
  background: linear-gradient(140deg, var(--lime), var(--green));
  right: 50px;
  top: 28px;
}

.orb-two {
  height: 255px;
  width: 255px;
  background: #c7f57f;
  right: 250px;
  bottom: -62px;
}

.cart-card {
  position: absolute;
  z-index: 2;
  right: 102px;
  top: 86px;
  width: 292px;
  min-height: 255px;
  padding: 32px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(10, 40, 18, 0.18);
  transform: rotate(-5deg);
}

.cart-icon {
  font-size: 48px;
}

.cart-card p {
  font-size: 19px;
  line-height: 1.35;
  margin: 18px 0;
}

.mini-line {
  display: flex;
  gap: 7px;
}

.mini-line i {
  display: block;
  height: 8px;
  border-radius: 10px;
  background: #e3efe0;
}

.mini-line i:first-child {
  width: 100px;
  background: var(--green);
}

.mini-line i:nth-child(2) {
  width: 45px;
}

.mini-line i:last-child {
  width: 28px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 15px;
  box-shadow: 0 12px 30px rgba(10, 40, 18, 0.13);
  font-size: 12px;
  font-weight: 700;
}

.floating-card span {
  color: var(--green);
  font-size: 16px;
  margin-right: 5px;
}

.card-top {
  top: 35px;
  right: 0;
}

.card-bottom {
  bottom: 13px;
  left: 35px;
}

/* ==========================================================================
   5. KATEGORIE I ZALETY
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.category-card {
  min-height: 244px;
  padding: 26px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card h3 {
  font-size: 20px;
  margin: 14px 0 5px;
}

.category-card p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 28px;
  margin-bottom: auto;
}

.green {
  background: var(--green);
  color: var(--white);
}

.dark {
  background: var(--dark);
  color: var(--white);
}

.lime {
  background: #b6ed40;
}

.outline {
  border: 1px solid var(--line);
  background: #fafdf8;
}

/* Benefits */
.benefits {
  background: var(--dark);
  color: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 100px;
}

.benefits .eyebrow {
  color: #a9ed73;
}

.benefits h2 {
  margin-bottom: 19px;
}

.benefits > div > p:not(.eyebrow) {
  color: #c2d0d0;
  max-width: 500px;
  margin-bottom: 28px;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list article {
  display: flex;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-list b {
  font-size: 13px;
  color: var(--lime);
}

.benefit-list h3 {
  margin: 0;
  font-size: 17px;
}

.benefit-list p {
  margin: 5px 0 0;
  font-size: 13px;
  color: #bdcccc;
}

/* Steps */
.compact {
  margin-bottom: 35px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps article {
  padding: 26px;
  border-radius: 16px;
  background: var(--soft);
}

.steps span {
  display: grid;
  place-items: center;
  background: var(--green);
  width: 37px;
  height: 37px;
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.steps h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}

.steps p {
  font-size: 13px;
  color: #5c6c70;
  margin: 0;
}

/* Call to Action */
.cta {
  padding: 0 0 90px;
}

.cta-box {
  border-radius: 23px;
  padding: 50px 62px;
  background: linear-gradient(115deg, #e5f7d5, #b4e865);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  font-size: clamp(30px, 3.5vw, 44px);
}

/* ==========================================================================
   6. MEDIA SPOŁECZNOŚCIOWE (SEKCJA & PASEK BOCZNY)
   ========================================================================== */

/* 6.1. Sekcja kafelków Social Media w treści */
.social-heading {
  margin-bottom: 34px;
}

.social-heading h2 em {
  color: var(--green);
  font-style: normal;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.social-card {
  min-height: 200px;
  padding: 28px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.2s transform, 0.2s box-shadow;
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(10, 40, 18, 0.12);
}

.social-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  font-size: 25px;
  font-weight: 800;
}

.social-arrow {
  font-size: 20px;
  font-weight: 800;
}

.social-card h3 {
  font-size: 22px;
  margin: 0 0 7px;
}

.social-card p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 190px;
  margin: 0 0 20px;
  color: #42535b;
}

.social-link {
  font-size: 13px;
  font-weight: 800;
}

.social-link b {
  color: var(--green);
  font-size: 17px;
  margin-left: 5px;
}

/* Warianty kolorystyczne kafelków */
.social-facebook {
  background: #bad7a7;
}

.social-instagram {
  background: #eef7e8;
}

.social-tiktok {
  background: #f5f9ef;
}

.social-whatsapp {
  background: #fafcf6;
}

.social-allegro p {
  color: #c2d0d0;
}

.social-allegro .social-icon {
  background: rgba(255, 255, 255, 0.12);
}

.social-allegro .social-link {
  color: var(--white);
}

/* 6.2. Pływający pasek boczny (Floating Sidebar) */
.social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.social-sidebar a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background-color: #1c2621;
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  font-size: 22px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-sidebar a:hover {
  background-color: #55a828;
  transform: translateX(-5px);
  box-shadow: 0 6px 15px rgba(85, 168, 40, 0.4);
}

/* ==========================================================================
   7. STOPKA
   ========================================================================== */
footer {
  background: #f2f6ef;
  padding: 0px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.9fr;
  gap: 30px;
}

.footer-logo {
  width: 200px;
}

.footer-grid p {
  font-size: 13px;
  color: #536269;
  margin-top: 15px;
}

.footer-grid h3 {
  font-size: 13px;
  margin: 4px 0 12px;
}

.footer-grid a {
  display: block;
  color: var(--dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.footer-grid small {
  display: block;
  color: #718087;
  font-size: 10px;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid #dce5d8;
  margin-top: 0px;
  padding-top: 0px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #68777c;
}

.footer-bottom a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 800;
}

/* ==========================================================================
   8. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */

/* Tablet (max-width: 820px) */
@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 22px 20px;
    background: var(--white);
    border-bottom: 1px solid #e6eee3;
    flex-direction: column;
    align-items: stretch;
  }

  .menu.open {
    display: flex;
  }

  .menu.button {
    text-align: center;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-art {
    height: 330px;
    max-width: 500px;
    width: 100%;
    margin: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    gap: 38px;
  }

  .cta-box {
    padding: 38px;
    align-items: flex-start;
    flex-direction: column;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile - pasek boczny (max-width: 768px) */
@media (max-width: 768px) {
  .social-sidebar {
    right: 10px;
  }

  .social-sidebar a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* Smartfon (max-width: 510px) */
@media (max-width: 510px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .brand img {
    width: 155px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 15px;
  }

  .trust-row {
    gap: 14px;
  }

  .trust-row span {
    font-size: 10px;
  }

  .hero-art {
    height: 280px;
  }

  .orb-one {
    width: 260px;
    height: 260px;
    right: 18px;
  }

  .cart-card {
    right: 50px;
    top: 48px;
    width: 225px;
    min-height: 190px;
    padding: 22px;
  }

  .cart-card p {
    font-size: 15px;
  }

  .card-top {
    right: 0;
  }

  .card-bottom {
    left: 0;
  }

  .category-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 65px 0;
  }

  .category-card {
    min-height: 190px;
  }

  .cta {
    padding-bottom: 60px;
  }

  .cta-box {
    padding: 30px;
  }

  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }
}
