/*
Theme Name: Kosiarki Pro
Theme URI: https://codex.audytseo.eu/
Author: Codex
Description: Jednostronicowy motyw WordPress przygotowany na podstawie projektu HTML z katalogu New project.
Version: 1.0.0
Text Domain: kosiarki-pro
*/

:root {
  color-scheme: light;
  --forest: #234236;
  --moss: #55745c;
  --leaf: #7ea06f;
  --mint: #dce8d6;
  --stone: #d9ddd5;
  --ash: #6f7770;
  --charcoal: #1d2421;
  --paper: #f5f6f1;
  --warm: #c59b68;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(29, 36, 33, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 28px), var(--max));
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(245, 246, 241, 0.82);
  box-shadow: 0 14px 48px rgba(29, 36, 33, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav-links,
.hero-actions,
.intro-band,
.check-list li {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 34%, var(--paper) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--forest), var(--leaf));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.26);
}

.nav-links {
  justify-content: center;
  gap: 22px;
  color: #46504a;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a,
.header-cta,
.button {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.header-cta,
.button {
  border-radius: var(--radius);
  font-weight: 800;
}

.header-cta {
  padding: 12px 16px;
  background: var(--forest);
  color: var(--white);
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 130px max(24px, calc((100vw - var(--max)) / 2)) 46px;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 25, 22, 0.78) 0%, rgba(18, 25, 22, 0.55) 42%, rgba(18, 25, 22, 0.18) 78%),
    linear-gradient(0deg, rgba(18, 25, 22, 0.42), rgba(18, 25, 22, 0.08));
}

.hero-content {
  width: min(760px, 100%);
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: #bed7af;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: min(900px, 100%);
  font-size: clamp(2.8rem, 5vw, 4.75rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  color: var(--forest);
}

h3 {
  margin: 0;
  line-height: 1.12;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--leaf);
  color: #102019;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 46px;
  display: grid;
  gap: 1px;
  width: min(320px, calc(100% - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(245, 246, 241, 0.15);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 1.15rem;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.intro-band {
  justify-content: center;
  gap: 1px;
  padding: 0 20px;
  background: var(--forest);
}

.intro-item {
  width: min(33.33%, 390px);
  min-height: 92px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.intro-item span {
  display: block;
  margin-bottom: 6px;
  color: #a9c99b;
  font-size: 0.78rem;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: 34px;
}

.bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.tile {
  min-height: 250px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(35, 66, 54, 0.09);
}

.tile-large {
  position: relative;
  grid-row: span 2;
  min-height: 580px;
}

.tile-large img,
.image-tile img,
.recommendation img,
.service > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(29, 36, 33, 0.62);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.tile-copy span,
.tag {
  color: #b9d8a9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile.muted,
.tile.dark {
  padding: 28px;
}

.tile.muted {
  background: #e8ece3;
}

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

.metric {
  display: block;
  margin-bottom: 36px;
  font-family: "Newsreader", Georgia, serif;
  color: var(--moss);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 0.9;
}

.tile.dark .metric {
  color: #a9c99b;
}

.tile p {
  margin: 12px 0 0;
  color: #5f6a62;
}

.tile.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.image-tile {
  min-height: 300px;
}

.story {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: clamp(28px, 6vw, 86px);
  border-top: 1px solid rgba(35, 66, 54, 0.12);
}

.story-aside {
  position: sticky;
  top: 112px;
  align-self: start;
}

.aside-note {
  margin-top: 22px;
  color: var(--ash);
  font-size: 0.96rem;
}

.story-copy {
  columns: 2 310px;
  column-gap: 34px;
  color: #36413b;
  font-size: 1.02rem;
}

.story-copy p {
  margin: 0 0 18px;
}

.chooser {
  background: #e2e7dd;
}

.chooser-grid {
  display: grid;
  grid-template-columns: 0.43fr 0.57fr;
  gap: 26px;
  align-items: center;
}

.chooser-copy > p:not(.eyebrow),
.service-copy > p {
  color: #526059;
  font-size: 1.08rem;
}

.controls {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(35, 66, 54, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.controls label {
  font-weight: 700;
}

input[type="range"] {
  accent-color: var(--forest);
  width: 100%;
}

.switch {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #37443d;
}

.switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--forest);
}

.recommendation {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow);
}

.recommendation img {
  aspect-ratio: 16 / 8.2;
}

.recommendation-copy {
  padding: 24px;
}

.recommendation-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.service {
  display: grid;
  grid-template-columns: 0.56fr 0.44fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.service > img {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  gap: 12px;
  color: #344139;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--leaf), var(--forest));
  flex: 0 0 auto;
}

.final-cta {
  padding: clamp(76px, 10vw, 126px) 0;
  background:
    linear-gradient(135deg, rgba(35, 66, 54, 0.95), rgba(29, 36, 33, 0.96)),
    radial-gradient(circle at 10% 0%, rgba(126, 160, 111, 0.35), transparent 38%);
  color: var(--white);
}

.final-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: end;
}

.final-inner h2 {
  max-width: 860px;
  color: var(--white);
}

.site-footer {
  padding: 22px 0;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #bed7af;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .section-heading,
  .story,
  .chooser-grid,
  .service,
  .final-inner {
    grid-template-columns: 1fr;
  }

  .story-aside {
    position: static;
  }

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

  .tile-large {
    min-height: 500px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
    min-height: 58px;
    padding: 8px 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    max-width: 138px;
    padding: 10px 11px;
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 92svh;
    padding: 104px 20px 28px;
    overflow-x: hidden;
  }

  .hero-content,
  .hero-lead,
  h1 {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1rem;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .intro-band {
    display: grid;
    padding: 0;
  }

  .intro-item {
    width: 100%;
    min-height: 74px;
  }

  .section {
    padding: 66px 0;
  }

  .tile-large {
    min-height: 430px;
  }

  .metric {
    font-size: 3.5rem;
  }

  .story-copy {
    columns: 1;
  }

  .final-inner .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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