/* ==========================================================================
   Apartament Sopocki — modern visual refresh
   Loaded after the legacy theme stylesheets; "body " prefixes and a small
   set of !important flags are used deliberately so these rules win
   regardless of the original stylesheets' load order / specificity.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --ink: #1c2024;
  --ink-soft: #5b6169;
  --ink-faint: #8b9096;
  --accent: #1f6f78;
  --accent-dark: #154f56;
  --accent-soft: rgba(31, 111, 120, 0.08);
  --border: #e7e4de;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px -20px rgba(20, 30, 35, 0.28);
  --shadow-sm: 0 10px 26px -14px rgba(20, 30, 35, 0.22);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
/* legacy theme nests container-fluid > .row > .container (inverted from normal
   Bootstrap use) — the row's -15px gutter margins then have no padding to
   counteract them and bleed content off-screen at narrow widths */
body .container-fluid.master-top > .row,
body .container-fluid.footer > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body {
  font-family: var(--font) !important;
  color: var(--ink) !important;
  background: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .navbar-brand {
  font-family: var(--font) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
}
p { color: var(--ink-soft); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-dark); }
hr { border-color: var(--border) !important; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- header / nav ---------- */
body .head {
  margin-top: 84px !important;
  background: none !important;
}
body .navbar.menu {
  background: rgba(255, 255, 255, 0.97) !important;
  border: none !important;
  box-shadow: 0 1px 0 var(--border), 0 12px 30px -24px rgba(20, 30, 35, 0.35);
  min-height: 84px;
}
body .head .menu .master-top { padding: 0; }
body .head .menu .navbar-header { padding: 18px 0; }
body .head .menu .navbar-brand {
  padding: 0;
  margin-top: 3px !important;
}
body .head .menu .navbar-brand img {
  max-height: 34px;
  width: auto;
}
/* Desktop nav: put the logo and the menu links on one visually centered
   line — the legacy theme relies on float + a fixed margin-top on the
   nav list to fake this, which drifts out of alignment with the logo. */
@media (min-width: 1200px) {
  body .head .menu .master-top .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  body .head .menu .navbar-header {
    float: none !important;
    display: flex !important;
    align-items: center !important;
  }
  body .head .menu .mmenu,
  body .head .menu .navbar-collapse.collapse {
    float: none !important;
  }
  body .head .menu .navbar-nav {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }
  body .head .menu .navbar-brand {
    margin-top: 0 !important;
    display: flex;
    align-items: center;
  }
}
body .head .menu .navbar-nav { margin-top: 24px; }
body .head .menu .navbar-nav > li > a {
  color: var(--ink) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 10px 18px !important;
  transition: color 0.15s ease;
}
body .head .menu a .divider { display: none !important; }
body .head .menu li a:hover,
body .head .menu li a:hover .text,
body .head .menu li a.active,
body .head .menu li a.active .text {
  color: var(--accent) !important;
}
body .navbar-toggle {
  border-color: var(--border) !important;
  margin-top: 24px;
}
body .navbar-toggle .icon-bar { background-color: var(--ink) !important; }
body .navbar-toggle:hover { background-color: var(--bg-soft) !important; }
@media (max-width: 1200px) {
  body .head .menu .navbar-collapse {
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    margin-top: 12px;
  }
  body .head .menu .navbar-nav > li > a {
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- buttons ---------- */
body .custom-btn {
  background: var(--accent) !important;
  color: #fff !important;
  border: 1.5px solid var(--accent) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  padding: 15px 34px !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1 !important;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  display: inline-block;
}
body .custom-btn:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm) !important;
}
body .custom-btn-oposite {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75) !important;
}
body .custom-btn-oposite:hover {
  background: #fff !important;
  color: var(--accent-dark) !important;
  border-color: #fff !important;
}
body .designe.services .custom-btn-oposite,
body .designe.portfolio .col-xs-12 > .custom-btn-oposite {
  background: transparent !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
body .designe.services .custom-btn-oposite:hover,
body .designe.portfolio .col-xs-12 > .custom-btn-oposite:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
body .custom-btn-big { padding: 18px 42px !important; }

/* ---------- hero sliders (home) ---------- */
body .designe.slider .display-table,
body .designe.graph .display-table {
  height: 620px !important;
  min-height: 620px !important;
}
@media (max-width: 767px) {
  body .designe.slider .display-table,
  body .designe.graph .display-table {
    height: 460px !important;
    min-height: 460px !important;
  }
}
body .designe.graph .display-table { height: 380px !important; min-height: 380px !important; }
@media (max-width: 767px) {
  body .designe.graph .display-table { height: 320px !important; min-height: 320px !important; }
}
body .designe.slider .bg-photo,
body .designe.graph .bg-photo { position: relative; }
body .designe.slider .bg-photo::before,
body .designe.graph .bg-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 26, 0.25) 0%, rgba(10, 18, 22, 0.62) 100%);
  z-index: 1;
}
body .designe.slider .bg-photo > .container,
body .designe.graph .bg-photo > .container {
  position: relative;
  z-index: 2;
}
body .designe.slider h1,
body .designe.graph h1 {
  font-size: 42px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) {
  body .designe.slider h1,
  body .designe.graph h1 { font-size: 62px !important; }
}
body .designe.slider p,
body .designe.graph p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 18px !important;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 26px auto !important;
}
body .designe.graph p { margin-bottom: 0 !important; }

/* ---------- section headings ---------- */
body .designe .top h1,
body .designe.services h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
}
@media (min-width: 768px) {
  body .designe .top h1,
  body .designe.services h1 { font-size: 38px !important; }
}
body .designe .top p,
body .designe.services .txt p {
  color: var(--ink-soft) !important;
  font-weight: 400;
}
body .designe { margin-top: 46px; margin-bottom: 46px; }
body .designe.slider, body .designe.graph { margin-top: 0; margin-bottom: 0; }

/* ---------- services / feature cards (home) ---------- */
body .designe.services .master { margin-top: 44px; }
body .designe.services .master .item { margin: 15px 0; text-decoration: none; }
body .designe.services .master .item .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
body .designe.services .master .item .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body .designe.services .master .item:hover .row {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
body .designe.services .service-photo .photo {
  height: 240px !important;
  transition: transform 0.5s ease;
}
body .designe.services .master .item:hover .photo { transform: scale(1.06); }
body .designe.services .service-photo h2 {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  min-height: auto !important;
  padding: 22px 20px !important;
  font-size: 16.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
}

/* ---------- photo gallery grids ---------- */
body .gallery-in-view #links .bg { background: var(--bg-soft) !important; }
body .gallery-in-view #links .bg .item,
body #links .item {
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
body .gallery-in-view #links .bg .item:hover,
body #links .item:hover {
  opacity: 1 !important;
  transform: scale(1.025);
  box-shadow: var(--shadow-sm);
}
body .designe.portfolio .gallery-in-view { margin-top: 32px; }

/* ---------- home: contact section ---------- */
body .designe.contact { margin-top: 16px; }
body .designe.contact .row.kontakt .dane {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px !important;
}
body .designe.contact .dane p,
body .kontakt .dane p {
  color: var(--ink) !important;
  font-family: var(--font) !important;
  font-size: 15.5px !important;
  line-height: 1.9 !important;
}

/* ---------- inner-page hero banner ---------- */
body .top-block {
  background: var(--bg-soft) !important;
  min-height: 220px !important;
  height: auto !important;
  padding: 46px 0;
}
body .top-block h1 {
  font-size: 38px !important;
  font-weight: 700 !important;
}
@media (min-width: 768px) {
  body .top-block h1 { font-size: 46px !important; }
}
body .top-block p { color: var(--ink-soft) !important; }

/* ---------- breadcrumb ---------- */
body ol.breadcrumb {
  background: transparent !important;
  margin: 28px 0 20px 0 !important;
  padding: 0 !important;
  font-size: 13px;
}
body ol.breadcrumb li,
body ol.breadcrumb li a {
  color: var(--ink-faint) !important;
  font-size: 13px !important;
}
body ol.breadcrumb li.home-bread a,
body ol.breadcrumb li.active {
  color: var(--accent) !important;
}

/* ---------- page content typography ---------- */
body .desc { color: var(--ink-soft); }
body .desc big { font-size: inherit !important; }
body .desc p, body .desc li { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
body .desc h2, body .desc h3 { margin-top: 28px; }
body .desc ul { padding-left: 0; list-style: none; margin: 18px 0; }
body .desc ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
body .desc ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
body .desc a { border-bottom: 1px solid var(--accent-soft); }
body .desc a:hover { border-color: var(--accent); }
body .site-content { padding-bottom: 20px; }

/* ---------- sitemap ---------- */
body ul.sitemap { list-style: none; padding: 0; margin: 20px 0; }
body ul.sitemap li { margin-bottom: 6px; }
body ul.sitemap h2 { font-size: 17px !important; font-weight: 600 !important; }
body ul.sitemap a { color: var(--ink) !important; }
body ul.sitemap a:hover { color: var(--accent) !important; }

/* ---------- map embed (kontakt) ---------- */
body .mapa-contact { padding: 0 0 60px 0; }
body .mapa-contact h1 { font-size: 30px !important; margin-bottom: 26px !important; }
body .mapa-contact iframe {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm);
  max-width: 1100px;
}

/* ---------- footer ---------- */
body .container-fluid.footer {
  background: var(--bg-soft) !important;
  padding: 44px 0 30px 0;
  margin-top: 0;
}
body .container-fluid.footer hr { display: none; }
body .container-fluid.footer .desc,
body .container-fluid.footer .desc a {
  color: var(--ink-faint) !important;
  font-size: 13.5px !important;
}
body .container-fluid.footer .desc a:hover { color: var(--accent) !important; }
body .container-fluid.footer .desc img { opacity: 0.6; }

/* ---------- cookie notice ---------- */
body .alert.alert-warning {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--ink-soft) !important;
  font-size: 12.5px !important;
  padding: 16px 44px 16px 20px !important;
  box-shadow: var(--shadow-sm);
}
body .alert.alert-warning strong { color: var(--ink) !important; }
body .alert.alert-warning .close {
  color: var(--ink-faint) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-size: 14px !important;
}

/* ---------- misc ---------- */
body .fb-like,
#fb-root { display: none !important; }
