@font-face { font-family: Jost; src: url(Jost-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Jost; src: url(Jost-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Jost; src: url(Jost-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
:root { --ink: #1b2a21; --green: #2f4a3a; --free: #7fe08f; --sold: #f2efe8; --paper: #f4f1ea; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: Jost, system-ui, sans-serif; }

.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px max(24px, calc((100% - 1440px) / 2 + 24px)); color: #fff;
  background: linear-gradient(rgba(14, 22, 17, .72), rgba(14, 22, 17, 0)); pointer-events: none; }
.brand__name { display: block; font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.brand__sub { display: block; font-size: 14px; opacity: .85; }
.stats { display: flex; gap: 28px; }
.stats div { display: flex; flex-direction: column; align-items: flex-end; }
.stats b { font-size: 26px; font-weight: 600; line-height: 1; }
.stats span { font-size: 12px; opacity: .85; }

.stage-wrap { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #2b3a2e; }
.canvas { position: absolute; inset: 0; overflow: hidden; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .95s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.zones { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.world.is-zoomed .zones { opacity: 1; transition-delay: .55s; }
.canvas .zones img { position: absolute; width: 40%; height: 40%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect; }
.canvas img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.back { position: absolute; z-index: 6; left: max(24px, calc((100% - 1440px) / 2 + 24px)); top: 92px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font: 500 15px Jost, system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.back[hidden] { display: none; }
.back:hover { background: #fff; }

.plot { fill: transparent; stroke: transparent; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .18s, stroke .18s; }
.plot--free { fill: rgba(127, 224, 143, .26); stroke: rgba(170, 245, 180, .95); stroke-width: 1.6; }
.plot--sold.is-active { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .85); }
.plot--free.is-active { fill: rgba(127, 224, 143, .55); stroke: #fff; stroke-width: 2.4; }
/* užvedimas tik pele: telefone paliestas sklypas likdavo „užstrigęs“ baltas šalia pasirinktojo */
@media (hover: hover) {
  .plot--sold:hover { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .85); }
  .plot--free:hover { fill: rgba(127, 224, 143, .55); stroke: #fff; stroke-width: 2.4; }
}
.plot.is-active { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .85)); }
.plot--free.is-active { fill: rgba(127, 224, 143, .62); }
.plot:focus { outline: none; }
.plot:focus-visible { outline: none; stroke: #fff; stroke-width: 3; }

.legend { position: absolute; left: max(24px, calc((100% - 1440px) / 2 + 24px)); bottom: 24px; display: flex; gap: 18px; padding: 10px 16px;
  border-radius: 999px; background: rgba(14, 22, 17, .62); color: #fff; font-size: 14px; backdrop-filter: blur(8px); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.dot--free { background: rgba(127, 224, 143, .7); border: 1px solid #c9f7d0; }
.dot--sold { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .85); }

.card { position: absolute; z-index: 6; width: 250px; padding: 18px 18px 16px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); pointer-events: auto; }
.card[hidden] { display: none; }
.card__status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.card__status.is-free { background: #e3f6e6; color: #1f6b2e; }
.card__status.is-sold { background: #eeeae2; color: #6d665a; }
.card__addr { margin-top: 10px; font-size: 20px; font-weight: 600; }
.card__area { margin-top: 2px; font-size: 15px; color: #56605a; }
.card__btn { display: block; margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--green); color: #fff; text-align: center;
  text-decoration: none; font-weight: 500; }
.card__btn:hover { background: #24392c; }
.card__btn:focus-visible, .chip:focus-visible { outline: 3px solid #7fe08f; outline-offset: 2px; }
.card__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; color: #8a8f8b; cursor: pointer; display: none; }

.free { max-width: 1440px; margin: 0 auto; padding: 56px 24px 72px; }
.free h2 { margin: 0; font-size: 32px; font-weight: 600; }
.free p { margin: 6px 0 24px; color: #5c655f; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border: 1px solid #d9d3c6; border-radius: 10px; background: #fff;
  font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.chip b { font-weight: 500; }
.chip span { color: #6b736d; font-size: 14px; }
.chip.is-active { border-color: var(--green); background: #eef5ef; }
@media (hover: hover) { .chip:hover { border-color: var(--green); background: #eef5ef; } }

@media (max-width: 767px) {
  .top { padding: 14px 16px; }
  .brand__name { font-size: 18px; }
  .brand__sub { display: none; }
  .stats { gap: 16px; }
  .stats b { font-size: 20px; }
  .stage { height: 78svh; }
  .legend { left: 16px; bottom: 12px; font-size: 13px; }
  .back { top: 64px; left: 16px; }
  .card { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .card__close { display: block; }
  .free { padding: 36px 16px 56px; }
  .free h2 { font-size: 26px; }
}

.stage { touch-action: pan-y; cursor: grab; }
.stage.is-zoomed { touch-action: none; }
.stage.is-dragging { cursor: grabbing; }
.stage.is-dragging .plot { pointer-events: none; }

/* įžanginis drono skrydis: video kadras = bendro vaizdo centrinė iškarpa (4,94–95,02 % aukščio) */
.intro { position: absolute; left: 0; top: 4.94%; width: 100%; height: 90.08%; object-fit: fill; z-index: 2; pointer-events: none;
  transform: scale(1.111); transform-origin: 50% 50%; transition: opacity .7s ease; }
.intro.is-landing { transform: scale(1); transition: transform 2.6s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
.intro.is-done { opacity: 0; }
.stage.is-intro .canvas { background: #9fae8c; }
.stage.is-intro .world { visibility: hidden; }
.stage.is-intro #plots, .stage.is-intro .legend, .stage.is-intro .stats { opacity: 0; }
#plots, .legend, .stats { transition: opacity .8s ease .2s; }
.skip { position: absolute; z-index: 7; right: max(24px, calc((100% - 1440px) / 2 + 24px)); bottom: 24px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: rgba(14, 22, 17, .62); color: #fff; font: 500 14px Jost, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
.skip[hidden] { display: none; }
.stage.is-intro #plots { pointer-events: none; }
.canvas .depth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.legend, .back { transition: opacity .25s ease; }
body.past-stage .legend, body.past-stage .back { opacity: 0; pointer-events: none; }

/* įdėjimas į svetainę (iframe): be antraštės, sąrašo ir su rėmo aukščiu */
html.embed .top, html.embed .free { display: none; }
html.embed body { background: transparent; }
html.embed .stage { height: 100vh; }
@media (max-width: 767px) { html.embed .stage { height: 100vh; } }

/* laisvų sklypų kontūrų įėjimas: linija apibėga sklypą, tada atsiranda užpildas */
.plot--free.is-wait { fill-opacity: 0; stroke-opacity: 0; }
.plot--free.is-draw { animation: plot-draw .5s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes plot-draw {
  from { fill-opacity: 0; stroke-opacity: 1; stroke-dasharray: 0 1; }
  65% { fill-opacity: 0; stroke-dasharray: 1 0; }
  to { fill-opacity: 1; stroke-dasharray: 1 0; }
}
/* įdėtame žemėlapyje „Visas kvartalas“ – viršuje, žemiau puslapio paslėptos dalies */
html.embed .back { top: var(--bt, 0px); }

/* įdėtas į svetainę žemėlapis kalba svetainės kalba (KRYPTIS.md): Supreme, kampai be apvalinimo, žalia #2F7A1A tik mygtukui ir laisvam sklypui */
html.embed body, html.embed .back { font-family: 'Supreme', system-ui, sans-serif; }
html.embed .card { width: 264px; padding: 22px 22px 20px; border-radius: 0; background: #F5F1EA; color: #1A1A18; box-shadow: 0 16px 44px rgba(0, 0, 0, .3); }
html.embed .card__status { display: flex; align-items: center; gap: 8px; padding: 0; background: none; color: #5C5A55; font-size: 13px; font-weight: 400; letter-spacing: .01em; }
html.embed .card__status::before { content: ''; width: 10px; height: 10px; background: rgba(255, 255, 255, .5); border: 1px solid #5C5A55; }
html.embed .card__status.is-free::before { background: #2F7A1A; border-color: #2F7A1A; }
html.embed .card__addr { margin-top: 8px; font-size: 26px; font-weight: 300; line-height: 1.2; letter-spacing: -.005em; }
html.embed .card__area { margin-top: 4px; font-size: 15px; color: #5C5A55; }
html.embed .card__btn { margin-top: 18px; padding: 15px 14px; border-radius: 2px; background: #2F7A1A; font-weight: 500; line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(0 0 0 / .2), 0 1px 2px rgb(0 0 0 / .4); transition: background-color .2s; }
html.embed .card__btn:hover { background: #1f5411; }
html.embed .card__btn:focus-visible { outline: 2px solid #1A1A18; outline-offset: 3px; }
html.embed .card__close { color: #5C5A55; }
html.embed .back { left: 0; padding: 16px 24px 16px max(24px, calc((100% - 1440px) / 2 + 48px)); border-radius: 0; background: #F5F1EA; color: #1A1A18; font-weight: 400; font-size: 14px; box-shadow: none; }
html.embed .back:hover { background: #fff; }
html.embed .legend { left: 0; bottom: 0; padding: 12px 20px 12px max(24px, calc((100% - 1440px) / 2 + 48px)); border-radius: 0; background: rgba(26, 26, 24, .72); font-size: 13px; letter-spacing: .01em; backdrop-filter: none; }
html.embed .dot { border-radius: 0; width: 10px; height: 10px; }
@media (max-width: 767px) {
  html.embed .card { width: auto; }
  html.embed .legend { left: 0; bottom: 0; padding-left: 20px; }
  html.embed .back { top: var(--bt, 0px); padding-left: 20px; }
}

/* Parduotam sklypui mygtuko nėra (11-28) */
.card__btn[hidden] { display: none !important; }

/* Mobile QA 11-28: kortelės „×“ – pakankamas paspaudimo plotas pirštui */
@media (max-width: 767px) {
  .card__close { top: 2px; right: 2px; width: 44px; height: 44px; padding: 0; line-height: 44px; text-align: center; }
}

