
:root{
  --navy:#17324a;
  --navy-dark:#10283c;
  --green:#627d2a;
  --green-dark:#4f651f;
  --green-soft:#eef4e3;
  --cream:#faf8f3;
  --text:#17324a;
  --muted:#5f7080;
  --white:#ffffff;
  --line:#e4e8ea;
  --shadow:0 20px 48px rgba(23,50,74,.12);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Montserrat",sans-serif;
  color:var(--text);
  background:var(--cream);
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.container{
  width:min(1260px, calc(100% - 40px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(23,50,74,.08);
}
.nav-wrap{
  min-height:94px;
  display:grid;
  grid-template-columns:250px 1fr 180px;
  gap:26px;
  align-items:center;
}
.brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.brand img{
  width:170px;
}
.brand-city{
  font-size:12px;
  font-weight:700;
  letter-spacing:.28em;
  color:var(--green);
}
.desktop-nav{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:34px;
}
.desktop-nav a,
.footer-links a{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.16em;
}
.desktop-nav a:hover,
.footer-links a:hover{
  color:var(--green);
}
.header-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:16px;
}
.book-btn,
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  border-radius:999px;
  padding:0 24px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:.2s ease;
}
.book-btn,
.cta-primary{
  background:var(--green);
  color:#fff;
}
.book-btn:hover,
.cta:hover{
  transform:translateY(-2px);
}
.menu-btn{
  display:none;
  border:0;
  background:transparent;
  font-size:28px;
  color:var(--navy);
  cursor:pointer;
}
.mobile-nav{
  display:none;
}

.hero{
  padding:40px 0 28px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1.02fr;
  gap:42px;
  align-items:center;
}
.eyebrow,
.section-kicker{
  margin:0 0 12px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.28em;
  color:var(--green);
  text-transform:uppercase;
}
.hero h1{
  margin:0;
  font-size:clamp(44px, 6vw, 78px);
  line-height:.92;
  font-weight:800;
  letter-spacing:-.04em;
}
.hero h1 span{
  color:var(--green);
}
.hero-text{
  max-width:560px;
  margin:24px 0 28px;
  font-size:20px;
  line-height:1.55;
  color:var(--navy);
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.cta-secondary{
  background:#fff;
  color:var(--navy);
  border:1px solid var(--line);
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.hero-badges span{
  display:inline-flex;
  padding:12px 16px;
  border-radius:999px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:13px;
  font-weight:700;
}
.hero-visual{
  position:relative;
}
.hero-visual img{
  width:100%;
  height:100%;
  min-height:500px;
  object-fit:cover;
  border-radius:32px;
  box-shadow:var(--shadow);
}
.hero-note{
  position:absolute;
  right:24px;
  bottom:26px;
  font-family:"Patrick Hand",cursive;
  font-size:32px;
  line-height:1;
  color:#fff;
  text-shadow:0 4px 18px rgba(0,0,0,.28);
}

.stats{
  padding:18px 0 26px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.stat-card{
  background:#fff;
  border-radius:20px;
  padding:24px 22px;
  box-shadow:var(--shadow);
}
.icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-size:24px;
  font-weight:700;
  margin-bottom:16px;
}
.stat-card h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.15;
}
.stat-card p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.about-section,
.spaces-section,
.gallery-section{
  padding:58px 0;
}
.split-section{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:42px;
  align-items:center;
}
.split-image img{
  width:100%;
  border-radius:26px;
  box-shadow:var(--shadow);
}
.split-copy h2,
.section-heading h2,
.cta-box h2{
  margin:0;
  font-size:clamp(30px, 4vw, 48px);
  line-height:1.04;
  letter-spacing:-.03em;
}
.split-copy > p{
  margin:18px 0 0;
  line-height:1.7;
  color:var(--muted);
}
.check-list{
  list-style:none;
  padding:0;
  margin:22px 0 0;
  display:grid;
  gap:12px;
}
.check-list li{
  position:relative;
  padding-left:34px;
  line-height:1.55;
}
.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--green);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
}

.section-heading{
  margin-bottom:26px;
}
.spaces-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
}
.space-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.space-card img{
  width:100%;
  height:280px;
  object-fit:cover;
}
.space-content{
  padding:22px;
}
.space-content h3{
  margin:0 0 10px;
  font-size:24px;
}
.space-content p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.gallery-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:16px;
}
.gallery-item{
  margin:0;
  overflow:hidden;
  border-radius:18px;
  box-shadow:var(--shadow);
  background:#fff;
}
.gallery-item img{
  width:100%;
  height:100%;
  min-height:220px;
  object-fit:cover;
}
.gallery-item.large{
  grid-row:span 2;
}
.gallery-item.wide{
  grid-column:span 2;
}

.cta-section{
  padding:0 0 70px;
}
.cta-box{
  background:linear-gradient(135deg, var(--navy-dark), var(--navy));
  color:#fff;
  border-radius:32px;
  padding:42px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:32px;
  align-items:center;
  box-shadow:var(--shadow);
}
.cta-box p{
  max-width:720px;
  line-height:1.7;
  color:rgba(255,255,255,.82);
}
.cta-box .section-kicker{
  color:#cde59b;
}
.cta-box-actions{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:290px;
}
.cta-outline{
  color:#fff;
  border:1px solid rgba(255,255,255,.26);
  background:transparent;
}

.site-footer{
  padding:42px 0;
  background:#fff;
  border-top:1px solid var(--line);
}
.footer-wrap{
  display:grid;
  grid-template-columns:1.2fr .9fr 1fr;
  gap:24px;
  align-items:start;
}
.footer-logo{
  font-size:28px;
  font-weight:800;
  letter-spacing:-.03em;
}
.footer-logo span{
  color:var(--green);
}
.footer-brand p,
.footer-contact p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
}
.footer-links{
  display:grid;
  gap:12px;
}

@media (max-width: 1050px){
  .nav-wrap{
    grid-template-columns:1fr auto;
  }
  .desktop-nav{
    display:none;
  }
  .menu-btn{
    display:block;
  }
  .mobile-nav{
    padding:0 20px 18px;
    flex-direction:column;
    gap:14px;
  }
  .mobile-nav.open{
    display:flex;
  }
  .mobile-nav a{
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.13em;
  }
  .hero-grid,
  .split-section,
  .cta-box,
  .footer-wrap{
    grid-template-columns:1fr;
  }
  .stats-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .gallery-grid{
    grid-template-columns:1fr 1fr;
  }
  .gallery-item.large,
  .gallery-item.wide{
    grid-column:auto;
    grid-row:auto;
  }
}

@media (max-width: 760px){
  .container{
    width:min(100% - 24px, 1260px);
  }
  .header-actions .book-btn{
    display:none;
  }
  .hero{
    padding-top:24px;
  }
  .hero-text{
    font-size:17px;
  }
  .hero-visual img{
    min-height:320px;
  }
  .stats-grid,
  .spaces-grid,
  .gallery-grid{
    grid-template-columns:1fr;
  }
  .cta-box{
    padding:30px 22px;
  }
  .cta-box-actions{
    min-width:0;
  }
  .cta,
  .cta-box-actions .cta{
    width:100%;
  }
}



/* ===== Trójmiasto overrides and additions ===== */
.brand{
  display:flex;
  align-items:center;
}
.brand img{
  height:86px;
  width:auto;
}
.header-actions{
  gap:14px;
}
.header-social-links{
  display:flex;
  gap:10px;
  align-items:center;
}
.header-social-links a{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(18,48,78,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#12304e;
  text-decoration:none;
  font-weight:700;
  background:#fff;
}
.desktop-nav{
  display:flex;
  align-items:center;
  gap:28px;
}
.nav-inline-btn,
.footer-inline-btn{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
  padding:0;
}
.book-btn{
  white-space:nowrap;
}
.hero-visual img,
.split-image img,
.space-card img,
.gallery-item img{
  object-fit:cover;
}
.hero-note{
  background:rgba(255,255,255,.92);
}
.space-card img{
  height:250px;
}
.gallery-item.large img,
.gallery-item.wide img{
  height:100%;
}

/* ===== Modal system ===== */
.simple-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:2000;
}
.simple-modal.open{
  display:flex;
}
.simple-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(18,48,78,.58);
  backdrop-filter:blur(4px);
}
.simple-modal-dialog{
  position:relative;
  z-index:1;
  width:min(820px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:#fff;
  border-radius:28px;
  padding:34px;
  box-shadow:0 32px 90px rgba(18,48,78,.28);
}
.simple-modal-close{
  position:absolute;
  right:18px;
  top:16px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:0;
  background:rgba(213,17,148,.10);
  color:#12304e;
  font-size:28px;
  cursor:pointer;
}
body.modal-open{
  overflow:hidden;
}
.price-table{
  display:grid;
  gap:8px;
  margin-top:18px;
}
.price-row{
  display:grid;
  grid-template-columns:1.4fr .7fr 1fr;
  gap:12px;
  align-items:center;
  min-height:64px;
  padding:0 18px;
  border:1px solid rgba(18,48,78,.09);
  border-radius:16px;
}
.price-head-row{
  background:rgba(213,17,148,.08);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.price-row strong{
  text-align:center;
  color:#d51194;
}
.info-pill{
  margin-top:18px;
  padding:16px 18px;
  border-radius:16px;
  background:rgba(213,17,148,.08);
  line-height:1.6;
}
.modal-actions{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.events-dialog{
  width:min(1080px,100%);
}
.events-modal-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
  padding-right:40px;
}
.month-badge{
  flex:0 0 auto;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(18,48,78,.12);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}
.event-highlight{
  display:grid;
  grid-template-columns:38% 62%;
  border:1px solid rgba(18,48,78,.10);
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(90deg,#fff 0%, rgba(213,17,148,.05) 100%);
}
.event-highlight img{
  width:100%;
  height:100%;
  min-height:300px;
  object-fit:cover;
  display:block;
}
.event-highlight-copy{
  padding:28px;
}
.event-highlight-copy h3{
  margin:10px 0 10px;
  font-size:30px;
  line-height:1.1;
}
.event-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  background:#d51194;
  color:#fff;
  font-size:11px;
  letter-spacing:.08em;
  font-weight:800;
}
.event-list{
  display:grid;
  gap:14px;
  margin-top:18px;
}
.event-card{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:18px;
  align-items:stretch;
  border:1px solid rgba(18,48,78,.10);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
}
.event-card img{
  width:100%;
  height:100%;
  min-height:180px;
  object-fit:cover;
  display:block;
}
.event-card > div{
  padding:20px 22px 20px 0;
}
.event-card h3{
  margin:10px 0 10px;
  font-size:24px;
  line-height:1.15;
}
.event-card p{
  margin:0 0 8px;
  line-height:1.6;
}
.event-link{
  display:inline-block;
  margin-top:4px;
  color:#d51194;
  font-weight:700;
  text-decoration:none;
}
.footer-contact a{
  color:inherit;
  text-decoration:none;
}
.footer-social-text a{
  text-decoration:none;
}

@media (max-width: 990px){
  .desktop-nav{
    gap:18px;
  }
  .brand img{
    height:76px;
  }
  .event-highlight{
    grid-template-columns:1fr;
  }
  .event-card{
    grid-template-columns:1fr;
  }
  .event-card > div{
    padding:20px;
  }
}

@media (max-width: 768px){
  .brand img{
    height:68px;
  }
  .header-social-links{
    display:none;
  }
  .simple-modal{
    padding:12px;
  }
  .simple-modal-dialog{
    max-height:calc(100vh - 24px);
    padding:24px 16px 18px;
    border-radius:22px;
  }
  .price-row{
    grid-template-columns:1.1fr .7fr .95fr;
    gap:8px;
    padding:0 10px;
    font-size:13px;
  }
  .price-head-row{
    font-size:9px;
    letter-spacing:.04em;
  }
  .events-modal-top{
    flex-direction:column;
    padding-right:36px;
  }
  .event-highlight-copy{
    padding:20px 16px;
  }
  .event-highlight-copy h3{
    font-size:24px;
  }
  .modal-actions .cta{
    width:100%;
    justify-content:center;
  }
}


/* ===== TROJMIASTO FINAL TUNING ===== */
.hero-grid{
  grid-template-columns: minmax(0, .95fr) minmax(420px, .82fr) !important;
  gap: 32px !important;
  align-items: center !important;
}
.hero h1{
  font-size: clamp(42px, 5.6vw, 70px) !important;
}
.hero-text{
  max-width: 540px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
}
.hero-visual{
  max-width: 560px !important;
  margin-left: auto !important;
}
.hero-visual img{
  min-height: 390px !important;
  max-height: 560px !important;
  aspect-ratio: 4 / 5 !important;
  object-position: center center !important;
}
.section-heading h2{
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.08 !important;
  max-width: 760px !important;
}
.space-card img{
  height: 235px !important;
}
.space-content{
  padding: 20px !important;
}
.space-content h3{
  font-size: 22px !important;
  margin-bottom: 8px !important;
}
.space-content p{
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.gallery-grid,
.gallery-grid-simple{
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 18px !important;
}
.gallery-item,
.gallery-item.large,
.gallery-item.wide{
  grid-column: auto !important;
  grid-row: auto !important;
}
.gallery-item img{
  min-height: 0 !important;
  height: 260px !important;
  object-fit: cover !important;
}
.gallery-section .section-heading{
  margin-bottom: 18px !important;
}
.gallery-section{
  padding-top: 46px !important;
}
@media (max-width: 1050px){
  .hero-grid{
    grid-template-columns: 1fr !important;
  }
  .hero-visual{
    max-width: 620px !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 760px){
  .hero-visual img{
    min-height: 280px !important;
    max-height: 360px !important;
  }
  .gallery-grid,
  .gallery-grid-simple{
    grid-template-columns: 1fr !important;
  }
  .gallery-item img{
    height: 220px !important;
  }
}

.contact-hours{
  display:inline-block;
  margin-top:5px;
  font-size:13px;
  color:var(--muted);
}


/* V4 hero photo refinement */
.hero-grid{
  grid-template-columns: minmax(0,1fr) minmax(420px,540px) !important;
  gap: 34px !important;
}
.hero-visual{
  max-width: 540px !important;
}
.hero-visual img{
  width: 100% !important;
  aspect-ratio: 5 / 4 !important;
  min-height: 0 !important;
  max-height: 440px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 28px !important;
}
@media (max-width: 1050px){
  .hero-grid{
    grid-template-columns: 1fr !important;
  }
  .hero-visual{
    max-width: 620px !important;
  }
}
@media (max-width: 760px){
  .hero-visual img{
    aspect-ratio: 4 / 3 !important;
    max-height: 320px !important;
  }
}


/* V5 - embedded regulation PDF */
.rules-dialog{
  width:min(1080px,100%) !important;
  padding:30px !important;
}

.rules-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-right:48px;
  margin-bottom:10px;
}

.rules-modal-head h2{
  margin:0;
  font-size:clamp(34px,4vw,52px);
  line-height:1;
}

.rules-open-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(23,50,74,.14);
  background:#fff;
  color:var(--navy);
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.rules-open-link:hover{
  border-color:#d51194;
  color:#d51194;
}

.rules-modal-intro{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.6;
}

.rules-pdf-wrap{
  width:100%;
  height:min(68vh,760px);
  min-height:520px;
  overflow:hidden;
  border:1px solid rgba(23,50,74,.10);
  border-radius:18px;
  background:#f4f5f6;
}

.rules-pdf-wrap iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}

@media(max-width:680px){
  .rules-dialog{
    padding:24px 14px 14px !important;
  }

  .rules-modal-head{
    flex-direction:column;
    gap:12px;
    padding-right:40px;
  }

  .rules-open-link{
    width:100%;
  }

  .rules-pdf-wrap{
    min-height:440px;
    height:64vh;
    border-radius:14px;
  }
}
