:root{
    --accent: #2aa874;
    --accent-dark: #1f8a60;
    --dark: #0b3b2a;

    --bg: #f6f7f8;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #475467;
    --line: #e6e8ec;
    --shadow: 0 18px 45px rgba(16,24,40,.12);
    --radius: 18px;

    --header-h: 74px;
    --max: 1120px;

    /* szerokość panelu tła (może być jak było – szeroko) */
    --panel-width: 1040px;

    /* KLUCZ: jak "krótkie" ma być tło (większe = krótszy panel) */
    --panel-inset-y: clamp(90px, 16vh, 260px);
}

/* base */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
    margin:0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
h1,h2,h3{
    font-family: Fraunces, ui-serif, Georgia, serif;
    letter-spacing: .2px;
}
a{ color: inherit; }
.muted{ color: var(--muted); }
.on-dark{ color: rgba(255,255,255,.92); }
.on-dark-muted{ color: rgba(255,255,255,.78); }

.container{
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 18px;
}

/* screen = “ekran” */
.snap{ scroll-snap-type: y mandatory; }
.screen{
    min-height: 100vh;
    scroll-snap-align: start;
    padding: calc(var(--header-h) + 34px) 0 42px;
    display:flex;
    align-items:center;
    position: relative;
    overflow: hidden;
}
.light{ background: var(--bg); }
.light.alt{ background: linear-gradient(180deg, #f6f7f8, #ffffff); }
.dark{ background: var(--dark); }

/* ZIELONA SEKCJA */
.green{
    background:
            radial-gradient(900px 420px at 15% 20%, rgba(255,255,255,.18), transparent 55%),
            linear-gradient(180deg, rgba(42,168,116,1), rgba(31,138,96,1));
}

/* anchor offset for fixed header */
section{ scroll-margin-top: var(--header-h); }

/* ========== KRÓTSZY PANEL TŁA (CENNIK/KONTAKT) ========== */
.short-bg{
    position: relative;
}
.short-bg::before{
    content:"";
    position:absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--panel-inset-y);
    bottom: var(--panel-inset-y);
    width: min(var(--panel-width), calc(100% - 24px));
    border-radius: 34px;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 16px 44px rgba(16,24,40,.10);
}
.short-bg > .container{
    position: relative;
    z-index: 1; /* treść nad panelem */
}
.short-bg--light::before{
    background: linear-gradient(180deg, #f6f7f8, #ffffff);
    border: 1px solid var(--line);
}
.short-bg--dark::before{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
}

/* header */
.site-header{
    position: fixed;
    top:0; left:0; right:0;
    height: var(--header-h);
    z-index: 60;
    display:flex;
    align-items:center;
    background: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(230,232,236,.8);
    backdrop-filter: blur(10px);
}
.header-inner{
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 18px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 16px;
}
.brand{
    text-decoration:none;
    display:flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}
.brand-title{ font-weight: 800; font-size: 1.05rem; }
.brand-sub{ color: var(--muted); font-size: .88rem; }

/* desktop nav */
.nav-desktop{
    display:flex;
    align-items:center;
    gap: 18px;
}
.nav-desktop a{
    text-decoration:none;
    color: rgba(15,23,42,.86);
    padding: 10px 10px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.nav-desktop a:hover{
    background: rgba(42,168,116,.12);
    color: rgba(15,23,42,1);
}
.nav-desktop .nav-cta{
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
}
.nav-desktop .nav-cta:hover{ background: var(--accent-dark); }

/* hamburger */
.hamburger{
    width: 46px; height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(230,232,236,.9);
    background: #fff;
    box-shadow: 0 12px 28px rgba(16,24,40,.10);
    cursor:pointer;
    display:none;
    align-items:center;
    justify-content:center;
    gap: 4px;
    flex-direction: column;
    padding: 0;
}
.hamburger span{
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
body.menu-open .hamburger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2){ opacity: 0; }
body.menu-open .hamburger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* overlay + mobile menu */
.overlay{
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 40;
}
body.menu-open .overlay{
    opacity: 1;
    pointer-events: auto;
}
.nav-mobile{
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .22s ease;
    z-index: 50;
    padding: 14px;
    display:flex;
    flex-direction: column;
    gap: 12px;
}
body.menu-open .nav-mobile{ transform: translateX(0); }

.nav-mobile__top{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 10px 10px;
    border-radius: 14px;
    background: #fbfbfc;
    border: 1px solid var(--line);
}
.nav-mobile__title{ font-weight: 800; }
.nav-mobile__close{
    cursor:pointer;
    width: 36px; height: 36px;
    border-radius: 12px;
    display:grid;
    place-items:center;
    border: 1px solid var(--line);
    background:#fff;
}
.nav-mobile__links{
    display:grid;
    gap: 10px;
    padding: 6px 6px;
}
.nav-mobile__links a{
    text-decoration:none;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}
.nav-mobile__links a:hover{ background: #f2f4f7; }

/* buttons */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    text-decoration:none;
    transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn--primary:hover{ background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost{
    background: transparent;
    border-color: rgba(255,255,255,.65);
    color: #fff;
}
.btn--ghost:hover{ background: rgba(255,255,255,.10); }

/* section head */
.section-head{ margin-bottom: 18px; }
.section-head h2{
    margin:0;
    font-size: clamp(2rem, 1.4rem + 1.6vw, 3.1rem);
}
.section-head p{
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 70ch;
}
.section-head--center{ text-align:center; }
.section-head--center p{ margin-left:auto; margin-right:auto; }

/* nagłówki w zielonej sekcji */
.section-head--green h2{ color: rgba(255,255,255,.95); }
.section-head--green p{ color: rgba(255,255,255,.86); }

/* hero */
.hero{ padding-top: var(--header-h); }
.hero-bg{
    position:absolute; inset:0;
    background-image: url("https://picsum.photos/seed/forest-hero/1800/1200");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}
.hero-overlay{
    position:absolute; inset:0;
    background:
            linear-gradient(180deg, rgba(11,59,42,.55), rgba(11,59,42,.72)),
            radial-gradient(800px 400px at 20% 20%, rgba(42,168,116,.35), transparent 55%);
}
.hero-content{
    position: relative;
    text-align: center;
    color: #fff;
    padding: 42px 0;
}
.hero-title{
    margin: 0 0 12px;
    font-weight: 700;
    font-size: clamp(2.3rem, 1.3rem + 3vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: .4px;
}
.hero-subtitle{
    margin: 0 0 10px;
    font-weight: 600;
    font-size: 1.2rem;
    opacity: .95;
}
.hero-text{
    margin: 0 auto;
    max-width: 78ch;
    line-height: 1.85;
    font-size: 1.02rem;
    opacity: .92;
}
.hero-actions{
    margin-top: 18px;
    display:flex;
    gap: 12px;
    justify-content:center;
    flex-wrap: wrap;
}

/* grid/cards */
.grid{ display:grid; gap: 14px; }
.cards-3{ grid-template-columns: 1fr; }
@media (min-width: 980px){ .cards-3{ grid-template-columns: repeat(3, 1fr); } }

.card{
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(16,24,40,.10);
    padding: 16px 16px;
}
.card h3{ margin: 0 0 10px; }
.card p{ margin: 10px 0; color: var(--muted); line-height: 1.7; }
.card--accent{
    background: linear-gradient(180deg, rgba(42,168,116,.12), #fff 60%);
    border-color: rgba(42,168,116,.26);
}
.card--soft{ background: #fbfbfc; }
.card-top{
    display:flex;
    align-items:flex-start;
    justify-content: space-between;
    gap: 10px;
}
.pill{
    font-size: .82rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f2f4f7;
    color: var(--muted);
    white-space: nowrap;
}
.pill--dark{
    background: rgba(11,59,42,.10);
    border-color: rgba(11,59,42,.18);
    color: #0f172a;
}
.list{
    margin: 10px 0 0;
    padding-left: 18px;
    line-height: 1.75;
    color: var(--muted);
}

/* OFERTA: większa czcionka na kartach */
.oferta .card h3{ font-size: 1.22rem; }
.oferta .card p{ font-size: 1.05rem; }
.oferta .list{ font-size: 1.02rem; }

/* split layouts */
.split{
    display:grid;
    gap: 14px;
    align-items: start;
}
@media (min-width: 980px){
    .split{ grid-template-columns: 1fr 1fr; }
    .split--image{ grid-template-columns: 1.1fr .9fr; }
}

.quote{
    border-radius: 22px;
    padding: 18px 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.90);
    line-height: 1.85;
}
.panel{
    border-radius: 22px;
    padding: 18px 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}
.panel h3{ margin:0 0 8px; }
.panel p{ margin:0 0 14px; line-height: 1.8; }

.mini-grid{ display:grid; gap: 10px; }
@media (min-width: 560px){ .mini-grid{ grid-template-columns: 1fr 1fr; } }
.mini{
    border-radius: 18px;
    padding: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    display:grid;
    gap: 6px;
}
.mini b{ color: #fff; }
.mini span{ color: rgba(255,255,255,.80); line-height: 1.5; }

/* image blocks */
.image-block{
    border-radius: 26px;
    min-height: 420px;
    border: 1px solid rgba(42,168,116,.25);
    box-shadow: var(--shadow);
    background:
            linear-gradient(180deg, rgba(11,59,42,.10), rgba(11,59,42,.05)),
            url("https://picsum.photos/seed/edu-side/1100/1400");
    background-size: cover;
    background-position: center;
}

/* ABOUT */
.about{
    display:grid;
    gap: 14px;
    align-items: start;
}
@media (min-width: 980px){
    .about{ grid-template-columns: .85fr 1.15fr; }
}
.about-name{
    margin: 0 0 6px;
    font-size: 1.55rem;
}
.about-name--on-green{ color: rgba(255,255,255,.95); }
.about-lead{
    color: rgba(255,255,255,.86);
    line-height: 1.7;
    margin: 0 0 12px;
}
.about-photo{
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: var(--shadow);
    min-height: 520px;
    background: rgba(255,255,255,.12);
}
.about-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
}
.badge-float{
    position:absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 10px 26px rgba(16,24,40,.12);
}
.badge-float__big{ font-weight: 800; color: var(--accent-dark); }
.badge-float__small{ color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* pricing */
.pricing{
    display:grid;
    gap: 14px;
    align-items: start;
}
@media (min-width: 980px){
    .pricing{ grid-template-columns: 1.2fr .8fr; }
}
.table-wrap{
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: auto;
}
table{
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
th, td{
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
thead th{
    background: rgba(42,168,116,.14);
    font-weight: 800;
}
tbody td{ color: var(--muted); }

/* contact */
.contact-grid{
    display:grid;
    gap: 14px;
}
@media (min-width: 980px){
    .contact-grid{ grid-template-columns: 1fr 1fr 1fr; }
}
.contact-card{
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}
.contact-card h3{
    margin: 0 0 10px;
    color: rgba(255,255,255,.92);
}
.contact-big{
    display:inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
}
.addr{
    display:grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.addr:first-of-type{ border-top: none; padding-top: 0; }
.addr b{ color: rgba(255,255,255,.92); }
.addr span{ color: rgba(255,255,255,.78); line-height: 1.6; }

.contact-card--map{ padding: 0; overflow: hidden; }
.map-placeholder{
    min-height: 240px;
    display:grid;
    place-items:center;
    text-align:center;
    padding: 18px;
    color: rgba(255,255,255,.80);
    background:
            radial-gradient(700px 280px at 30% 20%, rgba(42,168,116,.35), transparent 60%),
            rgba(255,255,255,.06);
}

.footer-mini{
    margin-top: 18px;
    text-align:center;
    color: rgba(255,255,255,.65);
}

/* RESPONSIVE NAV */
@media (max-width: 980px){
    .nav-desktop{ display:none; }
    .hamburger{ display:flex; margin-left:auto; }
}
@media (min-width: 981px){
    .hamburger{ display:none; }
    .overlay{ display:none; }
    .nav-mobile{ display:none; }
}
