/* Idę na grzyby (idenagrzyby.pl) – strona główna. */
:root {
  --ink: #102e23;
  --green: #18813e;
  --deep: #123c2d;
  --mint: #8cc995;
  --cream: #f7f6ee;
  --gold: #e9c75c;
  --muted: #56615b;
  --line: #e7e8df;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--cream); }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1170px; margin: auto; padding: 0 34px; }

/* Pasek górny */
.top { height: 65px; background: #fcfbf5; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px #142c2316; }
.nav { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { font-weight: 900; font-size: 21px; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 4px #0003; flex-shrink: 0; }
.links { display: flex; gap: 26px; margin: auto; font-size: 13px; font-weight: 700; }
.links a:hover { color: var(--green); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(140deg, #279947, #096d30); color: #fff; border-radius: 13px; padding: 16px 22px; font-weight: 800; box-shadow: 0 9px 18px #072b182a; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.09); }
.btn.small { font-size: 12px; padding: 11px 16px; }
.btn.soon { background: #ffffff22; box-shadow: none; border: 1px solid #ffffff66; cursor: default; }
.btn.soon:hover { filter: none; }
.outline { border: 1px solid #fff; color: #fff; border-radius: 12px; padding: 13px 19px; display: inline-block; font-weight: 700; font-size: 14px; margin-top: 10px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 28% 75%, #6c7830aa, transparent 47%), linear-gradient(90deg, #071c11e6 0%, #16331cbd 48%, #182f1940 100%), url("assets/hero-las.jpg") center/cover; }
.hero .wrap { min-height: 500px; display: grid; grid-template-columns: 60% 40%; align-items: center; }
.hero-copy { padding: 44px 0 46px 40px; }
.hero h1 { font-size: clamp(44px, 5.5vw, 69px); letter-spacing: -2.4px; margin: 0 0 6px; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h2 { font-size: clamp(20px, 2.3vw, 27px); margin: 0 0 15px; }
.hero p { max-width: 520px; line-height: 1.55; font-size: 17px; margin: 0 0 24px; }
.benefits { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.benefits div { display: flex; gap: 9px; align-items: center; font-size: 12px; font-weight: 700; }
.benefits b { font-size: 24px; color: #c9e4a5; }

/* Sekcje */
.section { padding: 50px 0; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: #6f9f68; font-weight: 800; text-transform: uppercase; }
.section h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.13; letter-spacing: -1.2px; margin: 12px 0 16px; }
.section p { font-size: 17px; color: var(--muted); line-height: 1.5; }
.cols { display: grid; grid-template-columns: 39% 25% 36%; align-items: center; }
.cols > * { min-width: 0; }

/* Legenda drzewostanów */
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: 0 4px 15px #13271910; font-size: 13px; max-width: 420px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.swatch { height: 20px; width: 26px; border-radius: 5px; flex-shrink: 0; }

/* Makieta telefonu */
.phone-center { display: flex; justify-content: center; align-items: center; }
.phone { height: 400px; width: 210px; flex-shrink: 0; border: 8px solid #0c1514; border-radius: 36px; background: #101918; box-shadow: 0 0 0 2px #888, 0 18px 27px #0003; position: relative; overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 70px; height: 15px; background: #07100e; border-radius: 0 0 12px 12px; z-index: 6; }
.screen { position: absolute; inset: 3px; color: var(--ink); background: #f7f8f4; border-radius: 25px; overflow: hidden; display: flex; flex-direction: column; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hero .phone { width: 225px; height: 455px; margin: 34px auto; transform: rotate(-3deg); }
.hero .screen { background: var(--deep); }

/* Panele */
.panel { background: #fffefa; border: 1px solid var(--line); box-shadow: 0 4px 15px #18281b12; border-radius: 16px; padding: 19px; color: var(--ink); }
.panel h3 { font-size: 17px; margin: 0 0 14px; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #f5f5ee; border-radius: 12px; padding: 15px 12px; }
.stat strong { display: block; font-size: 24px; margin-bottom: 4px; }
.stat small { font-size: 12px; color: #59615c; }
.rate { display: grid; grid-template-columns: 82px 1fr 52px; gap: 8px; align-items: center; font-size: 13px; margin: 9px 0; }
.rate .bar { height: 12px; background: #e9eddf; border-radius: 20px; overflow: hidden; }
.rate .bar div { height: 100%; background: #48a348; border-radius: 20px; }
.rate.small-sample { color: #9aa39c; }
.rate.small-sample .bar div { background: #c5cec2; }
.rate b { text-align: right; }
.muted { font-size: 11px; color: #8b938a; margin-top: 10px; }

/* Historia (ciemne tło) */
.history { color: #fff; background: linear-gradient(90deg, #092c1ce9 0%, #0a2c1ccf 55%, #123820ad 100%), url("assets/historia-las.jpg") center/cover; }
.history h2 { color: #fff; }
.history p { color: #e9f0e9; }
.history .panel p { color: #6f7a72; }
.history .eyebrow { color: #8bd38b; }

/* Więcej funkcji */
#funkcje {
  background: #f7f6ee;
  border-block: 1px solid #dce5d5;
}
.feature-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 44px; align-items: start; margin-top: 32px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.feature-item { min-width: 0; }
.feature { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 62px; text-align: left; font-family: inherit; color: inherit; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; transition: background 200ms, border-color 200ms, box-shadow 200ms; }
.feature:hover, .feature[aria-selected="true"] { background: #edf6e9; border-color: var(--green); box-shadow: 0 4px 14px #123c2d16; }
.feature:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.feature i { font-style: normal; font-size: 26px; }
.feature b { display: block; margin: 0; font-size: 14px; line-height: 1.4; flex: 1; }
.feature span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.feature-preview { position: sticky; top: 94px; min-width: 0; padding: 4px 4px 24px; }
.feature-detail[hidden] { display: none; }
.feature-detail { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 28px; }
.feature-description { min-width: 0; }
.feature-description .eyebrow { font-size: 10px; letter-spacing: 2px; }
.feature-description h3 { font-size: 25px; line-height: 1.2; margin: 12px 0; }
.feature-description p { font-size: 15px; margin: 0; }
.feature-phone { width: 260px; height: 510px; max-width: 100%; }
.feature-frame { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease; }
.feature-frame.is-visible { opacity: 1; }
.feature-fallback { height: 100%; padding: 36px 18px 24px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 14px; background: linear-gradient(150deg, #f7f8f4, #e3efde); }
.feature-fallback i { font-size: 42px; font-style: normal; }
.feature-fallback b { font-size: 19px; }
.feature-fallback span { font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .feature, .feature-frame { transition: none; }
}

/* Jak to działa */
.how { padding: 52px 0 56px; text-align: center; background: #e0ebdc; border-block: 1px solid #cbdcc6; }
.how h2 { margin: 6px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.step { display: flex; gap: 14px; align-items: center; }
.step-icon { font-size: 40px; min-width: 66px; text-align: center; }
.number { background: var(--green); color: #fff; border-radius: 50%; padding: 6px 11px; font-size: 16px; font-weight: 900; margin-right: 7px; }
.step b { font-size: 15px; }
.step p { font-size: 13px; line-height: 1.5; margin: 8px 0; }

/* Zasady */
#zasady { background: #fffefa; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule { background: #fff; border-radius: 14px; padding: 18px; border-left: 5px solid var(--green); }
.rule.warn { border-left-color: #d98a2b; }
.rule b { display: block; margin-bottom: 6px; }
.rule span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Zakończenie i stopka */
.closing { color: #fff; background: linear-gradient(90deg, #10271a50, #102b20db), url("assets/footer-las.jpg") center 55%/cover; padding: 44px 0; }
.closing .wrap { display: flex; justify-content: flex-end; }
.closing-content { width: 62%; display: flex; align-items: center; gap: 30px; }
.closing h2 { font-size: 32px; line-height: 1.1; margin: 0 0 10px; }
.closing p { line-height: 1.5; }
.closing ul { list-style: none; padding: 0; line-height: 2.4; white-space: nowrap; font-size: 13px; }
.footer { background: #102b20; color: #b6c8bb; padding: 24px 0; font-size: 12px; line-height: 1.7; }
.footer a { text-decoration: underline; }

@media (max-width: 900px) {
  .feature-detail { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .feature-description { max-width: 300px; }
  .links { display: none; }
  .nav { justify-content: space-between; }
  .hero .wrap { grid-template-columns: 55% 45%; }
  .hero-copy { padding-left: 0; }
  .cols { grid-template-columns: 1fr 220px; gap: 20px; }
  .cols > :nth-child(3) { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature-gallery { gap: 22px; }
  .steps { gap: 12px; }
  .closing-content { width: 85%; }
}
@media (max-width: 650px) {
  #funkcje {
    background: #f7f6ee;
  }
  .wrap { padding: 0 16px; }
  .top { height: 58px; }
  .brand { font-size: 18px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 40px 0 5px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 15px; }
  .hero .phone { margin: 25px auto 34px; height: 390px; width: 198px; }
  .benefits { gap: 14px; }
  .benefits div { font-size: 11px; }
  .cols { grid-template-columns: 1fr; }
  .phone-center { padding: 18px 0; }
  .legend { grid-template-columns: 1fr; }
  .features, .rules, .steps { grid-template-columns: 1fr; }
  .feature-gallery { display: block; }
  .feature-preview { display: none; }
  .feature { height: auto; }
  .feature[aria-expanded] b::after { content: '+'; float: right; margin-left: 12px; }
  .feature[aria-expanded="true"] b::after { content: '−'; }
  .feature-item > .feature-detail { margin: 20px auto 28px; }
  .feature-description { grid-row: 1; width: 100%; }
  .section { padding: 40px 0; }
  .closing .wrap { justify-content: flex-start; }
  .closing-content { width: 100%; display: block; }
}
