
:root{
  --navy:#082e57;--navy2:#0f416f;--cream:#f7f1e7;--sand:#d7b67b;
  --ink:#102a43;--muted:#677786;--white:#fff;--line:#e7e0d5;--soft:#fbf8f2;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;line-height:1.6}
img{max-width:100%;display:block}
a{color:inherit}
.shell{max-width:1240px;margin:auto;padding:0 28px}
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #eee}
.header-inner{height:92px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{width:300px;height:76px;object-fit:contain;object-position:left center}
.nav{display:flex;gap:28px;align-items:center;font-size:14px;font-weight:700}
.nav a{text-decoration:none}
.nav a:hover,.nav a.active{color:var(--navy2)}
.phone{padding:11px 18px;border-radius:999px;background:var(--cream);white-space:nowrap;text-decoration:none;font-weight:800}
.hero{min-height:620px;display:grid;grid-template-columns:.9fr 1.1fr;background:linear-gradient(90deg,var(--soft) 0%,#fff 48%)}
.hero-copy{padding:86px 7vw 76px max(28px,calc((100vw - 1240px)/2 + 28px));display:flex;flex-direction:column;justify-content:center}
.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:900;color:#9a7135;text-transform:uppercase}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;color:#0a2c55}
h1{font-size:clamp(46px,5vw,76px);line-height:1.02;letter-spacing:-.04em;margin:16px 0 22px}
h2{font-size:clamp(34px,4vw,52px);line-height:1.08;letter-spacing:-.025em;margin:12px 0 20px}
h3{font-size:24px;margin:10px 0}
.lead{font-size:19px;max-width:660px;color:#415569}
.hero-photo{position:relative;overflow:hidden}
.hero-photo img{width:100%;height:100%;object-fit:cover}
.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.18),transparent 35%)}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-block;background:var(--navy);color:white;text-decoration:none;padding:13px 22px;border-radius:6px;font-weight:800;border:1px solid var(--navy)}
.btn.alt{background:transparent;color:var(--navy)}
.trust{background:#fff;border-bottom:1px solid var(--line)}
.trust-grid{display:grid;grid-template-columns:repeat(5,1fr)}
.trust-item{padding:30px 20px;text-align:center;border-right:1px solid var(--line)}
.trust-item:last-child{border-right:0}
.icon{width:42px;height:42px;margin:0 auto 12px;border:2px solid var(--navy);border-radius:50%;display:grid;place-items:center;font-size:20px}
.trust-item b{display:block;font-size:15px;margin-bottom:6px}
.trust-item span{font-size:12px;color:var(--muted)}
.section{padding:88px 0}
.section.soft{background:var(--soft)}
.split{display:grid;grid-template-columns:1fr 1.15fr;gap:64px;align-items:center}
.visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.visual-grid .photo{border-radius:18px;overflow:hidden;min-height:255px}
.visual-grid .photo img{width:100%;height:100%;object-fit:cover}
.visual-grid .photo.tall{grid-row:span 2;min-height:524px}
.line-art{border:1px solid var(--line);background:linear-gradient(135deg,#fff,#f7f0e4);border-radius:18px;padding:32px;min-height:255px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}
.line-art:before{content:"KZN";position:absolute;right:-12px;top:2px;font-size:110px;font-weight:900;color:rgba(8,46,87,.055);letter-spacing:-.08em}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:26px;min-height:210px;box-shadow:0 10px 24px rgba(20,40,60,.04)}
.card .num{color:#a47b3b;font-weight:900;font-size:12px;letter-spacing:.12em}
.card p{color:var(--muted);font-size:14px}
.city-band{display:grid;grid-template-columns:1.15fr .85fr;background:var(--navy);color:#fff}
.city-band .city-photo{min-height:360px;background:url('assets/szczecin-waly-chrobrego.jpg') center/cover no-repeat}
.city-copy{padding:58px}
.city-copy h2{color:#fff}
.city-copy p{color:#d6e0ea}
.local-note{display:inline-flex;gap:10px;align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);padding:10px 14px;border-radius:999px;font-size:13px}
.page-hero{padding:82px 0 50px;background:linear-gradient(180deg,var(--soft),#fff)}
.page-hero .lead{max-width:760px}
.wide-photo{height:360px;border-radius:22px;overflow:hidden;margin-top:36px}
.wide-photo img{width:100%;height:100%;object-fit:cover}
.value-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.value{padding:28px 24px;border-top:3px solid var(--sand);background:#fff;border-radius:0 0 14px 14px;box-shadow:0 8px 22px rgba(20,40,60,.05)}
.offer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.offer{border:1px solid var(--line);border-radius:18px;padding:28px;background:#fff;min-height:225px}
.offer b{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--cream);font-size:22px;margin-bottom:18px}
.faq{max-width:920px}
.faq-item{border:1px solid var(--line);border-radius:12px;margin-bottom:12px;background:#fff;overflow:hidden}
.faq-q{padding:18px 22px;font-weight:800;display:flex;justify-content:space-between;cursor:pointer}
.faq-a{padding:0 22px 20px;color:#526577}
.contact{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px}
.contact-card{padding:34px;background:var(--navy);color:white;border-radius:18px}
.contact-card h2{color:white}
.contact-card a{color:white}
.map iframe{width:100%;height:100%;min-height:500px;border:0;border-radius:18px}
.footer{background:#06294d;color:#fff;padding:36px 0}
.footer-grid{display:flex;justify-content:space-between;gap:30px;align-items:center;flex-wrap:wrap}
.footer-logo{width:270px;background:white;border-radius:8px;padding:6px}
.small{font-size:12px;color:#b8c7d6}
.note{background:#fff3dc;border:1px solid #eed3a2;padding:18px 20px;border-radius:12px;color:#6d542e}
@media(max-width:900px){
 .header-inner{height:auto;padding:12px 0;align-items:flex-start}.logo{width:210px;height:60px}.nav{display:none}.phone{font-size:12px}
 .hero{grid-template-columns:1fr}.hero-copy{padding:60px 28px}.hero-photo{min-height:390px}
 .trust-grid{grid-template-columns:1fr 1fr}.trust-item{border-bottom:1px solid var(--line)}
 .split,.city-band,.contact{grid-template-columns:1fr}.cards,.offer-grid{grid-template-columns:1fr 1fr}.value-grid{grid-template-columns:1fr 1fr}
 .city-copy{padding:40px 28px}
}
@media(max-width:600px){.cards,.offer-grid,.value-grid,.trust-grid{grid-template-columns:1fr}.shell{padding:0 18px}.visual-grid{grid-template-columns:1fr}.visual-grid .photo.tall{grid-row:auto;min-height:300px}}

.photo-strip{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:14px;margin-top:32px}
.photo-strip figure,.city-gallery figure{margin:0;position:relative;border-radius:18px;overflow:hidden;background:#eee}
.photo-strip figure{height:300px}
.photo-strip img,.city-gallery img{width:100%;height:100%;object-fit:cover}
.photo-strip figcaption,.city-gallery figcaption{position:absolute;left:12px;bottom:12px;background:rgba(4,31,58,.82);color:#fff;padding:7px 10px;border-radius:7px;font-size:11px}
.city-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.city-gallery figure{height:260px}
.map-tools{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.map-note{font-size:12px;color:#7b8791;margin-top:10px}
.credit-link{color:#d7e4ef;text-decoration:underline}
@media(max-width:900px){.photo-strip,.city-gallery{grid-template-columns:1fr 1fr}.photo-strip figure{height:240px}.city-gallery figure{height:220px}}
@media(max-width:600px){.photo-strip,.city-gallery{grid-template-columns:1fr}}


.form-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 10px 24px rgba(20,40,60,.04)}
.form-card h2{margin-top:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-field{display:flex;flex-direction:column;gap:8px}
.form-field.full{grid-column:1 / -1}
.form-field label{font-weight:700;font-size:14px;color:var(--ink)}
.form-field input,.form-field textarea{width:100%;padding:14px 15px;border:1px solid var(--line);border-radius:10px;font:inherit;color:var(--ink);background:#fff}
.form-field textarea{min-height:160px;resize:vertical}
.form-note{font-size:12px;color:var(--muted);margin-top:10px}
.phone{display:inline-flex;align-items:center;justify-content:center;min-width:150px;text-align:center}
@media(max-width:800px){.form-grid{grid-template-columns:1fr}}


/* Stabilizacja głównej sekcji hero */
.hero{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  min-height:600px;
}
.hero-copy{
  min-width:0;
  padding-right:46px;
}
.hero-photo{
  min-width:0;
  height:600px;
}
.hero-photo img{
  width:100%;
  height:600px;
  object-fit:cover;
  object-position:center;
}
@media(max-width:900px){
  .hero{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:56px 28px 44px}
  .hero-photo{height:360px;min-height:360px}
  .hero-photo img{height:360px}
}
@media(max-width:600px){
  .hero-copy{padding:44px 18px 34px}
  .hero h1{font-size:40px}
  .hero-photo{height:280px;min-height:280px}
  .hero-photo img{height:280px}
}


/* ===== Korekta układu strony głównej ===== */
.hero{
  width:min(1240px, calc(100% - 48px));
  margin:28px auto 0;
  min-height:540px;
  display:grid;
  grid-template-columns:46% 54%;
  background:var(--soft);
  border-radius:24px;
  overflow:hidden;
}
.hero-copy{
  width:100%;
  max-width:none;
  min-width:0;
  padding:58px 46px;
  justify-content:center;
  overflow:hidden;
}
.hero-copy h1{
  max-width:100%;
  font-size:clamp(42px,4.1vw,62px);
  line-height:1.04;
  overflow-wrap:normal;
  word-break:normal;
}
.hero-copy .lead{
  max-width:520px;
  font-size:18px;
}
.hero-photo{
  position:relative;
  min-width:0;
  width:100%;
  height:540px;
}
.hero-photo img{
  display:block;
  width:100%;
  height:540px;
  object-fit:cover;
  object-position:center;
}
.hero-photo:after{display:none}

/* Spójna sekcja komunikatu o wspólnotach */
.community-priority{
  background:#fff;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:58px 0;
}
.community-priority-inner{
  max-width:1000px;
  margin:0 auto;
  display:grid;
  grid-template-columns:110px 1fr;
  gap:30px;
  align-items:center;
}
.community-priority-mark{
  width:88px;
  height:88px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  display:grid;
  place-items:center;
  font-family:Georgia,'Times New Roman',serif;
  font-size:30px;
  font-weight:700;
}
.community-priority h2{
  margin:0 0 10px;
  font-size:clamp(30px,3vw,44px);
}
.community-priority p{
  margin:0;
  color:var(--muted);
  font-size:17px;
  max-width:760px;
}
.note{
  background:#fff;
  border:1px solid var(--line);
  border-left:4px solid var(--navy);
  color:var(--ink);
  box-shadow:none;
}

@media(max-width:900px){
  .hero{
    width:calc(100% - 32px);
    margin-top:16px;
    grid-template-columns:1fr;
    min-height:auto;
  }
  .hero-copy{padding:44px 30px}
  .hero-copy h1{font-size:clamp(38px,8vw,52px)}
  .hero-photo,.hero-photo img{height:360px}
  .community-priority-inner{
    grid-template-columns:80px 1fr;
    gap:20px;
    padding:0 24px;
  }
  .community-priority-mark{width:68px;height:68px;font-size:24px}
}
@media(max-width:600px){
  .hero{
    width:calc(100% - 20px);
    border-radius:16px;
  }
  .hero-copy{padding:34px 20px}
  .hero-copy h1{font-size:34px}
  .hero-copy .lead{font-size:16px}
  .hero-photo,.hero-photo img{height:260px}
  .community-priority{padding:42px 0}
  .community-priority-inner{
    grid-template-columns:1fr;
    text-align:center;
    padding:0 20px;
  }
  .community-priority-mark{margin:0 auto}
}


/* ===== FINALNA KOREKTA HERO ===== */
.hero{
  width:min(1240px, calc(100% - 48px)) !important;
  margin:28px auto 0 !important;
  display:grid !important;
  grid-template-columns:minmax(0, 52%) minmax(0, 48%) !important;
  min-height:540px !important;
  overflow:hidden !important;
  border-radius:24px !important;
}
.hero-copy{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  padding:54px 42px !important;
  overflow:hidden !important;
  position:relative !important;
  z-index:2 !important;
}
.hero-copy h1{
  display:block !important;
  width:100% !important;
  max-width:560px !important;
  margin:16px 0 22px !important;
  font-size:50px !important;
  line-height:1.06 !important;
  letter-spacing:-0.025em !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  white-space:normal !important;
}
.hero-copy .lead{
  width:100% !important;
  max-width:540px !important;
}
.hero-photo{
  width:100% !important;
  min-width:0 !important;
  height:540px !important;
  overflow:hidden !important;
  position:relative !important;
  z-index:1 !important;
}
.hero-photo img{
  width:100% !important;
  height:540px !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center !important;
}

@media(max-width:1100px){
  .hero{
    grid-template-columns:minmax(0, 55%) minmax(0, 45%) !important;
  }
  .hero-copy h1{
    font-size:44px !important;
    max-width:500px !important;
  }
  .hero-copy{
    padding:46px 34px !important;
  }
}

@media(max-width:900px){
  .hero{
    width:calc(100% - 32px) !important;
    grid-template-columns:1fr !important;
    min-height:auto !important;
  }
  .hero-copy{
    padding:42px 28px !important;
  }
  .hero-copy h1{
    max-width:100% !important;
    font-size:42px !important;
  }
  .hero-photo,
  .hero-photo img{
    height:340px !important;
  }
}

@media(max-width:600px){
  .hero{
    width:calc(100% - 20px) !important;
    margin-top:10px !important;
    border-radius:16px !important;
  }
  .hero-copy{
    padding:32px 18px !important;
  }
  .hero-copy h1{
    font-size:34px !important;
    line-height:1.08 !important;
    letter-spacing:-0.015em !important;
  }
  .hero-copy .lead{
    font-size:16px !important;
  }
  .hero-photo,
  .hero-photo img{
    height:260px !important;
  }
}


/* Strefa Klienta */
.client-zone{
  padding:78px 0 96px;
  background:linear-gradient(180deg,var(--soft),#fff);
}
.client-zone-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  align-items:stretch;
}
.client-intro{
  background:var(--navy);
  color:#fff;
  border-radius:22px;
  padding:42px;
}
.client-intro h1,.client-intro h2{color:#fff}
.client-intro p{color:#dce7f0}
.client-login{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:42px;
  box-shadow:0 14px 34px rgba(20,40,60,.06);
}
.client-login .form-field{margin-bottom:15px}
.client-login input{
  width:100%;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:10px;
  font:inherit;
}
.client-features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:42px;
}
.client-feature{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
}
.client-feature b{display:block;margin-bottom:7px;color:var(--navy)}
.client-feature p{margin:0;color:var(--muted);font-size:14px}
.client-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  margin-bottom:18px;
}
.client-login .btn[aria-disabled="true"]{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:none;
}
@media(max-width:900px){
  .client-zone-grid{grid-template-columns:1fr}
  .client-features{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .client-zone{padding:48px 0 62px}
  .client-intro,.client-login{padding:28px 20px}
  .client-features{grid-template-columns:1fr}
}
