:root{
  color-scheme: light dark;

  /* ===== LIGHT – WAG EXPERT ===== */
  --bg: #f4f8fc;
  --bg2: #eef4fa;
  --panel: #ffffff;

  --text: #0f1e2e;
  --muted: rgba(15,30,46,.65);

  /* brand blue */
  --accent: #1e88c8;
  --accent2: #4fb3e8;
  --accent3: #0d5fa3;

  --success: #3bb273;
  --border: rgba(15,30,46,.18);

  /* header */
  --header-bg: #d6e6f4;

  --radius: 16px;
  --header-h: 74px;

  /* shadows */
  --sh-1: 0 10px 18px rgba(15,30,46,.14);
  --sh-2: 0 28px 70px rgba(15,30,46,.10);
  --sh-header: 0 14px 36px rgba(15,30,46,.18);
  --sh-float: 0 20px 56px rgba(15,30,46,.22);
  --sh-inset: 0 0 0 1px rgba(15,30,46,.06) inset;

  /* section backgrounds (LIGHT) – więcej koloru */
  --A1: rgba(30,136,200,.24);
  --A2: rgba(79,179,232,.18);
  --B1: rgba(13,95,163,.12);
  --B2: rgba(79,179,232,.22);
  --C1: rgba(30,136,200,.18);
  --C2: rgba(79,179,232,.26);

  /* overlay hero */
  --hero-dim-top: rgba(0,0,0,.10);
  --hero-dim-bot: rgba(0,0,0,.18);
  --hero-glow: rgba(30,136,200,.18);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1220;
    --bg2:#070d18;
    --panel:#0f1b2b;

    --text:#eaf2ff;
    --muted:rgba(234,242,255,.72);

    --border:rgba(234,242,255,.16);
    --header-bg:#0a1627;

    /* dark – więcej koloru, ale spójne "światło" */
    --A1: rgba(30,136,200,.28);
    --A2: rgba(79,179,232,.22);
    --B1: rgba(13,95,163,.20);
    --B2: rgba(79,179,232,.26);
    --C1: rgba(30,136,200,.24);
    --C2: rgba(79,179,232,.30);

    --sh-1:0 12px 20px rgba(0,0,0,.58);
    --sh-2:0 32px 76px rgba(0,0,0,.48);
    --sh-header:0 18px 48px rgba(0,0,0,.60);
    --sh-float:0 24px 62px rgba(0,0,0,.64);
    --sh-inset:0 0 0 1px rgba(255,255,255,.06) inset;

    --hero-dim-top: rgba(0,0,0,.22);
    --hero-dim-bot: rgba(0,0,0,.42);
    --hero-glow: rgba(79,179,232,.18);
  }
}

/* ===== RESET ===== */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 560px at 12% 12%, rgba(30,136,200,.18), transparent 62%),
    radial-gradient(1000px 520px at 88% 10%, rgba(79,179,232,.14), transparent 62%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  max-width:1100px;
  margin:auto;
  padding:0 20px;
}

/* ===== HEADER ===== */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-header);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  min-height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.header__right{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ===== BRAND / LOGO ===== */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Logo: większe + okrągłe (crop) */
.brand__logo{
  width:88px;
  height:88px;
  border-radius:50%;
  object-fit:contain;

  /* kluczowe rzeczy */
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  outline: none;

  /* lekkie optyczne powiększenie, żeby wypełnić koło */
  transform: scale(1.15);
}


@media (prefers-color-scheme: dark){
  .brand__logo{
    outline-color: rgba(255,255,255,.16);
  }
}

/* responsywność */
@media (max-width: 520px){
  .brand__logo{ width:72px; height:72px; transform:scale(1.18); }
}
@media (min-width: 900px){
  .brand__logo{ width:94px; height:94px; transform:scale(1.18); }
}


/* ===== PHONE LINK ===== */
.phone-link{
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
  position:relative;
  padding-bottom:2px;
}
.phone-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  transition:width .25s ease;
}
.phone-link:hover::after{ width:100%; }

/* ===== NAV ===== */
.nav{
  display:flex;
  gap:8px;
}
.nav a{
  font-weight:800;
  padding:10px 12px;
  border-radius:12px;
}
.nav a:hover{
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ===== MENU BUTTON ===== */
.menu-btn{
  display:none;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  box-shadow: var(--sh-inset);
}
.menu-btn__icon{
  width:22px;
  height:3px;
  background:var(--text);
  border-radius:999px;
  position:relative;
}
.menu-btn__icon::before,
.menu-btn__icon::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:3px;
  background:var(--text);
  border-radius:999px;
  transition:.2s ease;
}
.menu-btn__icon::before{ top:-7px; }
.menu-btn__icon::after{ top: 7px; }

.header.is-open .menu-btn__icon{ background:transparent; }
.header.is-open .menu-btn__icon::before{ top:0; transform:rotate(45deg); }
.header.is-open .menu-btn__icon::after{ top:0; transform:rotate(-45deg); }

/* ===== SECTIONS ===== */
.section{
  padding:64px 0;
}

/* Styl A */
.section--A{
  background:
    radial-gradient(980px 520px at 16% 14%, var(--A1), transparent 60%),
    radial-gradient(860px 480px at 86% 18%, var(--A2), transparent 62%);
}

/* Styl B */
.section--B{
  background:
    radial-gradient(980px 520px at 86% 16%, var(--B2), transparent 60%),
    radial-gradient(860px 480px at 16% 26%, var(--B1), transparent 62%);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section--C{
  background:
    radial-gradient(980px 520px at 20% 18%, var(--C1), transparent 60%),
    radial-gradient(860px 480px at 86% 24%, var(--C2), transparent 62%);
}

h2{
  font-size:30px;
  margin:0 0 22px;
  letter-spacing:-.2px;
}

/* ===== ABOUT (hero with photo) ===== */
.about{
  position:relative;
  min-height:420px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#000;
}

/* to jest warstwa ze zdjęciem – BEZ TEGO nie było tła */
.about__bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.03);
  filter:saturate(1.05) contrast(1.02);
}

.about__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 18% 26%, var(--hero-glow), transparent 55%),
    linear-gradient(180deg, var(--hero-dim-top), var(--hero-dim-bot));
}

.about__content{
  position:relative;
  width:100%;
  z-index:1;
}

.about__panel{
  max-width:860px;
  margin:0 auto;
  padding:26px;
  border-radius:18px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(18px);
  border:1px solid rgba(255,255,255,.22);
  box-shadow: var(--sh-1), var(--sh-2), var(--sh-inset);
}

@media (prefers-color-scheme: dark){
  .about__panel{
    background: rgba(12,18,32,.58);
    border:1px solid rgba(255,255,255,.12);
  }
}

.about__panel p{
  margin:10px 0 0;
  line-height:1.6;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

/* ===== SERVICES / BOXES ===== */
.services{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:22px;
}
.service,
.contact-box,
.map-box{
  background: var(--panel);
  border-radius: var(--radius);
  border:1px solid var(--border);
  padding:22px;
  box-shadow: var(--sh-1), var(--sh-2), var(--sh-inset);
}
.service p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

/* ===== CONTACT ===== */
.contact-box p{ margin:10px 0; line-height:1.6; }
.contact-box a{
  color:var(--accent);
  font-weight:900;
}
.contact-box p:first-child{ font-size:18px; }

/* ===== MAP ===== */
.map-box{
  padding:0;
  overflow:hidden;
}
.map-box iframe{
  width:100%;
  height:360px;
  border:0;
  display:block;
}

/* ===== BUTTON ===== */
.btn{
  display:inline-block;
  border-radius:14px;
  font-weight:900;
  padding:14px 16px;
}
.btn.primary{
  display:block;
  margin-top:18px;
  text-align:center;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#001018;
  box-shadow:0 16px 38px rgba(30,136,200,.35);
}
.btn.primary:hover{ box-shadow:0 22px 60px rgba(30,136,200,.55); }
.btn.full{ width:100%; }

/* ===== ANIM ===== */
.anim{
  opacity:0;
  transform:translateY(12px);
  transition:.5s ease;
}
.anim.in{
  opacity:1;
  transform:none;
}

/* ===== FOOTER ===== */
.footer{
  padding:22px;
  text-align:center;
  border-top:1px solid var(--border);
  color:var(--muted);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 820px){
  .nav{ display:none; }
  .menu-btn{ display:inline-flex; }

  .header.is-open .nav{
    display:flex;
    flex-direction:column;
    position:absolute;
    right:16px;
    top:100%;
    padding:14px;
    gap:10px;
    background: color-mix(in srgb, var(--header-bg) 92%, transparent);
    border-radius:18px;
    box-shadow: var(--sh-float);
    border:1px solid var(--border);
  }

  /* trochę większy oddech na mobilce */
  .container{ padding:0 18px; }

  .about{ min-height:360px; }
  .about__panel{ margin:0 6px; }
}

@media (max-width: 420px){
  h2{ font-size:28px; }
}

/* ===== ABOUT – LCP friendly background ===== */

.about{
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.about__bgimg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.about__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0,0,0,.55),
    rgba(0,0,0,.35)
  );
  z-index: 1;
}

.about__content{
  position: relative;
  z-index: 2;
}

.about__panel{
  max-width: 720px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px 36px;
}

/* dark mode */
@media (prefers-color-scheme: dark){
  .about__panel{
    background: rgba(30,30,30,.75);
  }
}
/* ===== LOGO: wieksze i nizej, BEZ powiekszania headera ===== */
.header{
  overflow: visible; /* logo moze wystawac dolem */
}

/* Nie ruszamy wysokosci headera ani wyrownania */
.header__inner{
  align-items: center; /* zostaje jak bylo */
  padding-top: 0;
  padding-bottom: 0;
}

/* Zostawiamy "pudelko" logo takie jak bylo (zeby header sie nie rozrastal),
   a powiekszamy je tylko wizualnie transformem */
.brand__logo{
  width: 88px;
  height: 88px;

  /* wieksze + nizej (transform nie zmienia layoutu) */
  transform: translateY(14px) scale(1.35);
  transform-origin: center;

  border-radius: 50%;
  object-fit: contain;

  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  outline: none;
}

/* mobilka */
@media (max-width: 520px){
  .brand__logo{
    width: 72px;
    height: 72px;
    transform: translateY(12px) scale(1.40);
  }
}

/* duze ekrany */
@media (min-width: 900px){
  .brand__logo{
    width: 94px;
    height: 94px;
    transform: translateY(36px) scale(1.75);
  }
}
