/* ============================================================
   WERONIKA PIESIAK — Agent Nieruchomości Premium
   Style: white editorial luxury (serif + micro-caps)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f6f5f1;
  --ink: #1b1812;
  --ink-dim: rgba(27, 24, 18, 0.62);
  --ink-faint: rgba(27, 24, 18, 0.4);
  --line: rgba(27, 24, 18, 0.1);
  --dark: #14120c;
  --on-dark: #f5f2ea;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- utilities ---------- */
.container { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 56px; } }

.micro {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-block;
}

.section { padding: 90px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 150px 0; } }

.section-head { margin-bottom: 56px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 80px; } }
.section-title { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -0.01em; margin-top: 20px; }
.section-title--xl { font-size: clamp(58px, 9.5vw, 132px); }
.section-title em { font-style: italic; }
.section-sub { margin-top: 18px; max-width: 540px; color: var(--ink-dim); font-size: 15px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-clip { position: relative; }
.reveal-clip::after {
  content: ''; position: absolute; inset: 0; z-index: 6;
  background: var(--bg); pointer-events: none;
  transform: scaleY(1); transform-origin: top;
  transition: transform 1.3s var(--ease-io);
}
.reveal-clip.is-in::after { transform: scaleY(0); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(112%); transition: transform 1.15s var(--ease); }
.is-in .line-mask > span, body.loaded .hero .line-mask > span { transform: translateY(0); }
body.loaded .hero .line-mask:nth-child(1) > span { transition-delay: 0.15s; }
body.loaded .hero .line-mask:nth-child(2) > span { transition-delay: 0.32s; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  transition: transform 0.95s var(--ease-io);
}
.preloader.done { transform: translateY(-100%); }
.preloader-mono { font-family: 'Montserrat', var(--sans); font-weight: 700; font-size: 52px; letter-spacing: 0.1em; opacity: 0; animation: preFade 0.9s var(--ease) 0.1s forwards; }
.preloader-name { font-size: 10px; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; color: var(--ink-faint); opacity: 0; animation: preFade 0.9s var(--ease) 0.4s forwards; }
.preloader-bar { width: 110px; height: 1px; background: var(--line); overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: translateX(-100%); animation: preBar 1.1s var(--ease-io) 0.15s forwards; }
@keyframes preFade { to { opacity: 1; } }
@keyframes preBar { to { transform: translateX(0); } }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
@media (min-width: 1024px) { .nav-inner { height: 80px; padding: 0 48px; } }
.nav-logo { grid-column: 2; font-family: 'Montserrat', var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; white-space: nowrap; }
@media (min-width: 1024px) { .nav-logo { font-size: 16px; } }
.burger { grid-column: 1; justify-self: start; display: flex; flex-direction: column; gap: 7px; padding: 12px 4px; z-index: 140; position: relative; }
.burger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.45s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }
.nav-right { grid-column: 3; justify-self: end; display: none; align-items: center; gap: 34px; }
@media (min-width: 1024px) { .nav-right { display: flex; } }
.nav-link { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); position: relative; padding: 6px 0; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.nav-phone:hover { opacity: 0.6; }

/* full-screen menu (all viewports) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 0 8vw;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.open { clip-path: inset(0 0 0% 0); visibility: visible; }
body.menu-open { overflow: hidden; touch-action: none; }
.mobile-menu a.m-link {
  font-family: var(--serif); font-size: clamp(16px, 3vw, 24px); padding: 8px 0;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.mobile-menu a.m-link:last-of-type { border-bottom: none; }
.mobile-menu.open a.m-link { opacity: 1; transform: none; }
.mobile-menu.open a.m-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a.m-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a.m-link:hover { color: var(--ink-dim); }
.mobile-menu a.m-link small { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: 0.25em; color: var(--ink-faint); }
.mobile-menu .m-contact { margin-top: 24px; color: var(--ink-dim); font-size: 12px; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.6s 0.35s; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mobile-menu.open .m-contact { opacity: 1; }
.mobile-menu .m-contact a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.m-close {
  position: absolute; top: 0; left: 0; z-index: 10;
  height: 68px; padding: 0 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 22px; font-weight: 300; line-height: 1;
  color: var(--ink); background: none; border: none; cursor: pointer;
  transition: opacity 0.3s;
}
.m-close:hover { opacity: 0.5; }
@media (min-width: 1024px) { .m-close { height: 80px; padding: 0 48px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 19px 40px; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s;
  white-space: nowrap;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: #3d382c; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white::before { background: var(--bg-2); }
.btn--ghost { border: 1px solid rgba(27, 24, 18, 0.35); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; border-color: var(--ink); }
.btn--ghost-light { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--ink); border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.link-arrow svg { transition: transform 0.4s var(--ease); }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(6px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 6, 0.42) 0%, rgba(10, 9, 6, 0.3) 45%, rgba(10, 9, 6, 0.55) 100%);
}
.hero-content { position: relative; z-index: 5; text-align: center; padding: 120px 24px 90px; max-width: 1100px; }
.hero-overline { font-size: 10.5px; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; color: rgba(255,255,255,0.85); opacity: 0; animation: preFade 1s var(--ease) 0.9s forwards; }
.hero-title { font-size: clamp(56px, 10vw, 140px); letter-spacing: -0.01em; margin-top: 26px; }
.hero-title i { font-style: italic; }
.hero-sub { margin: 30px auto 0; max-width: 520px; font-size: 15.5px; color: rgba(255, 255, 255, 0.88); opacity: 0; animation: preFade 1s var(--ease) 1.15s forwards; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; opacity: 0; animation: preFade 1s var(--ease) 1.35s forwards; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.scroll-hint i { width: 1px; height: 48px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; display: block; }
.scroll-hint i::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff; animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

/* ---------- page header (subpages) ---------- */
.page-header { padding: 80px 24px 10px; text-align: center; }
.page-header__inner { max-width: 800px; margin: 0 auto; }
.page-header .hero-overline { color: var(--ink-faint); opacity: 1; animation: none; }
.page-header .hero-title { margin-top: 8px; font-size: clamp(32px, 5vw, 56px); }
.page-header .hero-title .line-mask > span { transform: translateY(0); }
.page-header .hero-sub { color: var(--ink-dim); opacity: 1; animation: none; margin-top: 8px; }
@media (min-width: 1024px) { .page-header { padding: 90px 24px 12px; } }

/* ---------- statement ---------- */
.statement { text-align: center; padding: 110px 0; }
@media (min-width: 1024px) { .statement { padding: 170px 0; } }
.statement-title { font-size: clamp(36px, 5vw, 68px); max-width: 900px; margin: 26px auto 0; }
.statement-title em { font-style: italic; }
.statement p { max-width: 620px; margin: 28px auto 0; color: var(--ink-dim); font-size: 16px; }
.statement .micro.last { margin-top: 34px; }
.statement .rule { width: 1px; height: 56px; background: var(--line); margin: 34px auto 0; }

/* ---------- property cards (editorial grid) ---------- */
.pcards { display: grid; grid-template-columns: 1fr; gap: 64px 32px; }
@media (min-width: 720px) { .pcards { grid-template-columns: repeat(2, 1fr); } }

.pcard { display: block; }
.pcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease), filter 0.7s; }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-badge {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 30px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}
.pcard.is-sold .pcard-media img { filter: grayscale(0.5) brightness(0.92); }
.pcard-body { padding-top: 22px; }
.pcard-title { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.18; }
.pcard-meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }
.pcard-meta svg { opacity: 0.6; }
.pcard-foot { margin-top: 14px; display: flex; align-items: baseline; gap: 16px; }
.pcard-price { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.pcard-status { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.pcard-status--ok { color: var(--ink-faint); border-color: var(--line); }

/* ---------- bento services ---------- */
.services { background: var(--bg); }
.bento { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
.bento-card { background: var(--bg); padding: 46px 40px; position: relative; min-height: 250px; display: flex; flex-direction: column; transition: background 0.5s; }
.bento-card .nr { font-size: 10.5px; font-weight: 600; letter-spacing: 0.34em; color: var(--ink-faint); }
.bento-card h3 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 20px; max-width: 420px; }
.bento-card p { margin-top: auto; padding-top: 30px; color: var(--ink-dim); font-size: 14px; max-width: 440px; }
.bento-card svg.icon { position: absolute; top: 44px; right: 40px; color: var(--ink-faint); }
.bento-card--dark { background: var(--dark); color: var(--on-dark); }
.bento-card--dark .nr { color: rgba(245, 242, 234, 0.5); }
.bento-card--dark p { color: rgba(245, 242, 234, 0.65); }
.bento-card--dark svg.icon { color: rgba(245, 242, 234, 0.5); }
.bento-card:not(.bento-card--dark):hover { background: var(--bg-2); }

/* ---------- about / expert ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expert { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .expert { grid-template-columns: 400px 1fr; gap: 90px; } }
.expert-photo { overflow: hidden; }
.expert-photo img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.expert-photo:hover img { transform: scale(1.04); }
.expert-name { font-size: clamp(36px, 4vw, 54px); }
.expert-role { margin-top: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint); }
.expert-bio { margin-top: 30px; max-width: 640px; }
.expert-bio p { color: var(--ink-dim); margin-bottom: 16px; font-size: 15px; }
.expert-bio p:first-child { color: var(--ink); }
.expert-contact { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 34px; font-size: 13.5px; }
.expert-contact a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s; }
.expert-contact a:hover { border-color: var(--ink); }

/* ---------- dark CTA band ---------- */
.cta { background: var(--dark); color: var(--on-dark); text-align: center; padding: 110px 0; }
@media (min-width: 1024px) { .cta { padding: 160px 0; } }
.cta .micro { color: rgba(245, 242, 234, 0.55); }
.cta-title { font-size: clamp(38px, 5.4vw, 72px); max-width: 800px; margin: 24px auto 0; }
.cta-title em { font-style: italic; }
.cta p { max-width: 480px; margin: 24px auto 0; color: rgba(245, 242, 234, 0.7); font-size: 15px; }
.cta-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 60px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid var(--line); padding: 46px 40px; transition: background 0.5s; }
.contact-card:hover { background: var(--bg-2); }
.contact-card h3 { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 13px 0; color: var(--ink-dim); font-size: 15.5px; transition: color 0.3s, transform 0.3s var(--ease); }
.contact-item:hover { color: var(--ink); transform: translateX(6px); }
.contact-item svg { flex-shrink: 0; opacity: 0.7; }
.contact-item.big { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); }
.socials { display: flex; gap: 12px; }
.socials a { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.45s var(--ease); }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-4px); }
.hours { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-dim); line-height: 2; }

/* ---------- mapa ofert ---------- */
.map-wrap { position: relative; height: clamp(420px, 62vw, 640px); border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
#offerMap { position: absolute; inset: 0; }
#offerMap .leaflet-tile-pane { filter: grayscale(1) brightness(1.03); opacity: 0.85; }
.map-pin { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(27,24,18,.25), 0 6px 16px rgba(0,0,0,.28); cursor: pointer; transition: transform .25s var(--ease); }
.map-pin::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(27,24,18,.45); animation: pinPulse 2.4s ease-out infinite; }
.map-pin:hover, .map-pin.is-open { transform: scale(1.25); }
.map-pin.is-sold { background: #8d8674; }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.leaflet-popup-content-wrapper { background: transparent; border-radius: 0; box-shadow: none; border: none; }
.leaflet-popup-content { margin: 0; width: 236px !important; line-height: 1.4; }
.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button { display: none !important; }

/* pływająca karta oferty — zdjęcie z paskiem tytułu */
.map-card { display: block; color: var(--ink); text-decoration: none; }
.map-card:hover { color: var(--ink); }
.map-card .mc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); box-shadow: 0 22px 44px rgba(20, 18, 12, 0.3); }
.map-card .mc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.map-card:hover .mc-media img { transform: scale(1.05); }
.map-card .mc-badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 6px 12px; }
.map-card .mc-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.25; color: #fff; background: linear-gradient(to top, rgba(20, 18, 12, 0.82), rgba(20, 18, 12, 0)); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-legal { flex-basis: 100%; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.footer-logo { font-family: 'Montserrat', var(--sans); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-dim); }
.footer-links a, .footer-links button { font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color 0.3s; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }

/* ============================================================
   OFFER DETAIL PAGE
   ============================================================ */
.offer-main { padding-top: 68px; }
@media (min-width: 1024px) { .offer-main { padding-top: 80px; } }
.crumbs { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin: 34px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-dim); transition: color 0.3s; }
.crumbs a:hover { color: var(--ink); }

.gallery-main { position: relative; aspect-ratio: 16 / 10; max-height: 78vh; overflow: hidden; background: var(--bg-2); cursor: zoom-in; margin: 0 auto; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s var(--ease), transform 6s var(--ease); }

.gallery-main:hover img { transform: scale(1.03); }
.gallery-main img.fading { opacity: 0; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease); opacity: 0;
}
.gallery-main:hover .g-nav { opacity: 1; }
.g-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-nav.prev { left: 22px; } .g-nav.next { right: 22px; }
.g-counter {
  position: absolute; bottom: 18px; right: 20px; z-index: 4;
  font-family: var(--serif); font-style: italic; font-size: 16px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  padding: 7px 16px; border: 1px solid var(--line); color: var(--ink);
}
.g-hint { position: absolute; bottom: 18px; left: 20px; z-index: 4; font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); padding: 10px 16px; border: 1px solid var(--line); }
.g-badge { position: absolute; top: 24px; left: 24px; z-index: 4; background: var(--ink); color: #fff; font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 16px 34px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3); }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; overscroll-behavior: contain; }
.g-thumbs button { flex: 0 0 104px; aspect-ratio: 4/3; overflow: hidden; opacity: 0.45; border: 1px solid transparent; transition: all 0.4s var(--ease); padding: 0; background: var(--bg-2); }
.g-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs button.active, .g-thumbs button:hover { opacity: 1; border-color: var(--ink); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(255, 255, 255, 0.97); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; transform: scale(0.96); transition: transform 0.5s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox .lb-close { position: absolute; top: 26px; right: 30px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); display: flex; align-items: center; gap: 10px; }
.lightbox .lb-close:hover { color: var(--ink); }
.lightbox .g-nav { opacity: 1; }

.offer-grid { display: grid; grid-template-columns: 1fr; gap: 56px; margin-top: 60px; }
@media (min-width: 1100px) { .offer-grid { grid-template-columns: 1fr 360px; gap: 90px; } }
.offer-loc { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 10.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; }
.offer-title { font-size: clamp(34px, 4.2vw, 58px); margin-top: 18px; }
.offer-price-row { margin-top: 26px; display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.offer-price { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); white-space: nowrap; }
.offer-status { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.offer-status--ok { color: var(--ink-faint); border-color: var(--line); }
.offer-number { font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); }

.sold-banner {
  margin-top: 30px; border: 1px solid var(--line); border-left: 3px solid var(--ink);
  background: var(--bg-2);
  padding: 24px 28px; display: flex; align-items: flex-start; gap: 18px;
}
.sold-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-top: 7px; flex-shrink: 0; animation: soldPulse 2.2s infinite; }
@keyframes soldPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.sold-banner strong { font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.sold-banner span { font-size: 13.5px; color: var(--ink-dim); }

.key-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
@media (min-width: 700px) { .key-stats { grid-template-columns: repeat(4, 1fr); } }
.key-stat { background: var(--bg); padding: 26px 22px; }
.key-stat .l { font-size: 9.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-faint); }
.key-stat .v { font-family: var(--serif); font-size: 27px; margin-top: 8px; }

.offer-h2 { font-size: clamp(28px, 3vw, 40px); margin: 74px 0 30px; display: flex; align-items: baseline; gap: 20px; }
.offer-h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.offer-h2 .nr { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.34em; color: var(--ink-faint); }

.description p { color: var(--ink-dim); margin-bottom: 16px; font-size: 15.5px; }
.description p strong, .description strong { color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }
.description ul { margin: 6px 0 20px; }
.description li { color: var(--ink-dim); font-size: 15px; padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.description li::before { content: '—'; position: absolute; left: 0; color: var(--ink); }

.features { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line);
  padding: 19px 24px; font-size: 14.5px; color: var(--ink-dim);
  transition: all 0.45s var(--ease);
}
.feature:hover { border-color: var(--ink); transform: translateX(6px); color: var(--ink); }
.feature svg { flex-shrink: 0; opacity: 0.8; }

.specs { border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; transition: background 0.3s, padding 0.3s var(--ease); }
.spec-row:hover { background: var(--bg-2); padding-left: 14px; padding-right: 14px; }
.spec-row .k { color: var(--ink-faint); }
.spec-row .v { text-align: right; font-weight: 400; }

.pdf-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 16px 32px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5; transition: all 0.3s var(--ease); }
.pdf-button:hover { background: #3d382c; transform: translateY(-2px); color: #fff; }
.pdf-button svg { flex: 0 0 20px; }

.sidebar { position: sticky; top: 110px; align-self: start; }
.sidebar-card { border: 1px solid var(--line); background: var(--bg-2); padding: 42px 36px; text-align: center; }
.sidebar-card .agent-photo { width: 100%; max-width: 240px; height: auto; object-fit: contain; margin: 0 auto 24px; display: block; }
.sidebar-card h3 { font-size: 28px; }
.sidebar-card .role { font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint); margin: 10px 0 28px; }
.sidebar-card .btn { width: 100%; margin-bottom: 12px; }
.sidebar-note { margin-top: 18px; font-size: 12px; color: var(--ink-faint); text-align: center; line-height: 1.9; }

.similar { border-top: 1px solid var(--line); }

/* to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all 0.5s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   COOKIES
   ============================================================ */
.cookie-bar {
  position: fixed; left: 24px; bottom: 24px; z-index: 600;
  max-width: 470px; width: calc(100% - 48px);
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  padding: 30px 32px;
  transform: translateY(140%); opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  box-shadow: 0 24px 70px rgba(27, 24, 18, 0.14);
}
.cookie-bar.show { transform: none; opacity: 1; }
.cookie-bar h4 { font-family: var(--serif); font-size: 25px; }
.cookie-bar p { margin: 12px 0 22px; font-size: 13px; color: var(--ink-dim); line-height: 1.75; }
.cookie-bar p button { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 15px 22px; font-size: 9.5px; flex: 1; white-space: nowrap; }

.cookie-modal { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(27, 24, 18, 0.4); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; }
.cookie-modal.open { opacity: 1; visibility: visible; }
.cookie-modal-box {
  max-width: 700px; width: 100%; max-height: 82vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); padding: 48px;
  transform: translateY(30px); transition: transform 0.5s var(--ease);
  scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent;
}
.cookie-modal.open .cookie-modal-box { transform: none; }
.cookie-modal-box h3 { font-size: 34px; margin-bottom: 6px; }
.cookie-modal-box h3 em { font-style: italic; }
.cookie-modal-box .cm-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 30px; }
.cookie-modal-box h5 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin: 28px 0 10px; }
.cookie-modal-box p, .cookie-modal-box li { font-size: 13.5px; color: var(--ink-dim); line-height: 1.8; }
.cookie-modal-box ul { margin: 8px 0 8px 4px; }
.cookie-modal-box li { padding: 4px 0 4px 20px; position: relative; }
.cookie-modal-box li::before { content: '·'; position: absolute; left: 4px; font-size: 20px; line-height: 1.2; }
.cookie-modal-box li strong { color: var(--ink); }
.cookie-modal-close { position: sticky; top: 0; float: right; color: var(--ink-dim); font-size: 10.5px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; background: var(--bg); padding: 6px 0 6px 16px; }
.cookie-modal-close:hover { color: var(--ink); }

@media (max-width: 640px) {
  .cookie-modal-box { padding: 32px 24px; }
  .sold-banner { padding: 20px; }
  .cookie-bar { left: 14px; bottom: 14px; width: calc(100% - 28px); padding: 24px 22px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { flex: none; width: 100%; white-space: normal; text-align: center; letter-spacing: 0.22em; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
