/* ============================================================
   Namai šeimai — shared styles
   Design source: Figma "Namai seimai (Copy)"
   ============================================================ */

:root {
  --clr-orange: #bc6c35;
  --clr-sage: #91997c;
  --clr-tan: #dbcdbd;
  --clr-cream: #fff9f0;
  --clr-ink: #353535;
  --clr-heading: #383a2e;
  --clr-brown: #382619;
  --clr-footer-dark: #303329;

  --font-serif: "Bodoni Moda", "Bodoni Moda 9pt", Didot, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-label: "Afacad", "DM Sans", sans-serif;

  --radius-lg: 40px;
  --radius-md: 7.5px;
  --radius-sm: 6px;

  --container: 1460px;
  --gutter: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Fokuso apvadas išjungtas visoje svetainėje (kliento sprendimas).
   Pastaba: dėl to naršant klaviatūra nesimato, kuris elementas aktyvus. */
*:focus,
*:focus-visible,
*:focus-within { outline: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--clr-ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  min-height: 46px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn--orange { background: var(--clr-orange); }
.btn--orange:hover { background: #cb7539; }
.btn--sage { background: var(--clr-sage); }
.btn--sage:hover { background: #9da586; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 24px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

/* nuscrollinus — kompaktiškesnė juosta ir mažesnis logo */
.site-header.is-scrolled {
  background: #f4eee9;
  box-shadow: 0 2px 14px rgba(56, 38, 25, 0.1);
  padding: 14px 0;
}

.site-header.is-scrolled .site-header__logo img { height: 34px; }

/* fixed header must not cover anchor targets */
section[id], footer[id] { scroll-margin-top: 100px; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header__logo img { height: 44px; width: auto; transition: height 0.25s ease; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.55vw, 49px);
  margin-right: 22px;
}

/* on the transparent header the nav sits slightly above the logo center */
.site-header:not(.site-header--solid) .site-nav { margin-bottom: 0; }

.site-nav a {
  font-size: 15px;
  color: var(--clr-heading);
  letter-spacing: 0.02em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s ease;
}

.site-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  border-radius: 2px;
  background: var(--clr-heading);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 942px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.hero__bg {
  position: absolute;
  /* Apačia išleista 100px už .hero ribų (jis su overflow: hidden), todėl kadras
     pasislenka žemyn. Siaurinant langą cover perskaičiuoja mastelį, tad viršuje
     neatsiranda baltos juostos. */
  inset: 0 0 -100px 0;
  width: 100%;
  height: calc(100% + 100px);
  object-fit: cover;
  object-position: center bottom;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 215px;
  max-width: 640px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.2;
  color: var(--clr-heading);
}

.hero__text {
  margin-top: 21px;
  font-weight: 400;
  color: var(--clr-heading);
  max-width: 494px;
  line-height: 20px;
}

.hero__btn { margin-top: 40px; padding-inline: 37px; }

/* ---------- Section headings ---------- */

.h-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--clr-ink);
  line-height: 1.17;
}

/* ---------- About / intro ---------- */

.about { padding: 110px 0 90px; }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 640px);
  justify-content: space-between;
  gap: clamp(40px, 4vw, 80px);
}

.about__grid > div:first-child { padding-left: 10px; }

.about__heading { font-size: clamp(30px, 2.8vw, 40px); max-width: 540px; }

.about__text {
  margin-top: 34px;
  line-height: 1.55;
  display: grid;
  gap: 16px;
}

.about__more {
  display: none;
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about__btn { margin-top: 36px; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
  align-content: start;
  padding-top: 46px;
}

.benefit { text-align: left; }

/* begalinės karuselės klonai — reikalingi tik mobilioje versijoje */
.benefit.carousel-clone,
.chip.carousel-clone { display: none; }

.benefit__icon {
  height: 84px;
  display: flex;
  align-items: flex-end;
}

.benefit__icon img { height: 100%; width: auto; object-fit: contain; }

.benefit__rule {
  width: 58px;
  height: 1px;
  background: var(--clr-orange);
  margin: 18px 0 22px;
}

.benefit__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.17;
  white-space: pre-line;
}

.benefit__text { margin-top: 16px; line-height: 1.5; max-width: 100%; }

.benefits-nav { display: none; }

/* ---------- Band (tan strip section intro) ---------- */

.band {
  position: relative;
  background: var(--clr-tan);
  border-radius: var(--radius-md);
  padding: 26px 0 30px;
  overflow: visible;
}

.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.band__heading { font-size: clamp(28px, 2.8vw, 40px); }

.band__text { max-width: 510px; margin-top: 10px; line-height: 1.5; }

.band__actions { display: flex; gap: 16px; }

/* ---------- House type cards ---------- */

.types { padding: 40px 0 0; }

/* Simetriska parastė — mygtukas atsistoja tiksliai juostos vertikaliame centre
   (bazine .band paraste 26/30 nustumdavo ji 2px auksciau). Bendras juostos
   auks tis nesikeicia. */
.types .band { padding: 28px 0; }

/* Baltas burbulas ant juostos virsutinio kraso. Kabinamas prie mygtuko, todel
   lieka centruotas su juo visada. Mygtuko virsus nuo juostos virsaus 65px,
   burbulas turi kilti 80px virs juostos: jo apacia gula 28px zemiau juostos
   kraso, t. y. 26px virs mygtuko apacios + mygtuko aukstis. */
.types .band__actions .btn { position: relative; }

.types .band__actions .btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 26px);
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

.types__stage { position: relative; }

.carousel-arrow.types-arrow {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: var(--clr-sage);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.types-arrow:hover { background: #9da586; }
.types-arrow[hidden] { display: none; }
.types-arrow .icon { width: 24px; height: 24px; }
.types-arrow.carousel-arrow--prev { left: 18px; }
.types-arrow.carousel-arrow--next { right: 18px; }

.types__cards {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: 56px;
  padding: 0 100px 0 213px;
  scrollbar-width: none;
}

.types__cards::-webkit-scrollbar { display: none; }

.house-card {
  position: relative;
  flex: 0 0 min(1021px, 94vw);
  scroll-snap-align: center;
  min-height: 572px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.house-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Baltas fade (fade2.svg: 690px plocio, baltas 0.6 -> skaidrus) uzdedamas ant
   KIEKVIENOS korteles — makiete abi korteles turi vienoda sviesejima kaireje. */
.house-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 690px;
  max-width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  /* .house-card__bg yra pozicionuotas ir eina VELIAU DOM'e, todel be z-index
     nuotrauka uzdengdavo si fade. Tekstas lieka virsuje (body z-index: 2). */
  z-index: 1;
  pointer-events: none;
}

.house-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 51px 40px 26px 84px;
  text-align: left;
}

.house-card__name { font-size: clamp(28px, 2.4vw, 35px); }

.house-card__specs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  font-weight: 500;
  font-size: 18px;
}

.house-card__specs .sep {
  width: 1px;
  height: 13px;
  background: var(--clr-orange);
}

/* Vienodas aukstis visose kortelese: deze laikosi auksciausio plano proporciju
   (1412x1114), o abu planai i ja idedami per contain — nei vienas neapkarpomas. */
.house-card__plan {
  width: min(462px, 100%);
  aspect-ratio: 1412 / 1114;
  margin: 22px 0 0 -26px;
  position: relative;
}

.house-card__plan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.house-card__btn {
  margin-top: auto;
  width: min(400px, 100%);
  border-radius: var(--radius-md);
  min-height: 57px;
}

/* carousel arrows (mobile) */
.carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--clr-ink);
  padding: 10px;
}

.carousel-arrow--prev { left: 2px; }
.carousel-arrow--next { right: 2px; }

/* ---------- Video ---------- */

.video-section { padding: 0; margin-top: 100px; }

.video-section .container { width: min(1834px, 100% - 2 * var(--gutter)); }

.video-block {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(320px, 41vw, 792px);
}

.video-block img.video-block__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-block__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-block__play:hover { transform: translate(-50%, -50%) scale(1.08); }

.video-block__play svg { width: 56px; height: 66px; display: block; }

/* visas blokas yra paleidimo mygtukas, kai video nuoroda nustatyta */
.video-block[data-video-src] { cursor: pointer; }

/* paleidus — viršelis ir mygtukas dingsta, grotuvas užima visą bloką */
.video-block.is-playing { background: #000; cursor: default; }
.video-block.is-playing .video-block__poster,
.video-block.is-playing .video-block__play { display: none; }

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

video.video-player { object-fit: cover; background: #000; }

/* ---------- Video lightbox (mobile) ---------- */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 22, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-lightbox__frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.video-lightbox__frame video.video-player { object-fit: contain; }

.video-lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* ---------- Location ---------- */

.location {
  position: relative;
  margin-top: 110px;
  min-height: 749px;
  display: flex;
  align-items: stretch;
}

/* Namo vidiniame ir „Rinktis busta" puslapiuose „Vieta" eina iškart po
   ankstesnio bloko — be tarpo. */
body.single-namas .location,
.select-page .location { margin-top: 0; }

/* Ten „Vieta" yra ir paskutinis blokas (Pradžioje po jo dar eina galerija).
   Sudėtame išdėstyme jis baigiasi mygtuku, tad be tarpo šis remtųsi į footerio
   kraštą. Ribos tos pačios, kuriomis blokas persirikiuoja. Virš 900px footeris
   vis dar užlipa -40px, tad ten pridedame juos prie tarpo; ≤900px jo margin
   jau yra 0, todėl užtenka 70px. */
@media (max-width: 1810px) {
  body.single-namas .location:not(.location--live) { padding-bottom: 110px; }
}

@media (max-width: 1250px) {
  body.single-namas .location--live { padding-bottom: 110px; }
}

@media (max-width: 900px) {
  body.single-namas .location:not(.location--live),
  body.single-namas .location--live { padding-bottom: 70px; }
}

/* Tas pats „Rinktis busta" puslapyje — ten „Vieta" irgi paskutinis blokas.
   Prie 70px tarpo pridedamas footerio uzlipimas (-40px, o iki 900px -25px),
   kad realus tarpas liktu vienodas. */
@media (max-width: 1810px) {
  .select-page .location:not(.location--live) { padding-bottom: 110px; }
}

@media (max-width: 1250px) {
  .select-page .location--live { padding-bottom: 110px; }
}

@media (max-width: 900px) {
  .select-page .location:not(.location--live),
  .select-page .location--live { padding-bottom: 95px; }
}

.location__mapwrap {
  position: absolute;
  inset: 0;
}

.location__map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location__panel {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  /* proporcinga ekranui: ties 1920px lieka dizaino 1010px, siauresniame lange
     traukiasi kartu, kad žemėlapis nebūtų uždengtas */
  width: min(1010px, 53%);
  /* kairė paraštė ties 1920px lieka dizaino 240px, o siaurėjant langui
     traukiasi greičiau nei pati panelė — taip turiniui lieka daugiau vietos */
  padding: 100px clamp(24px, 4vw, 66px) 90px
    clamp(24px, calc(240px - (1920px - 100vw) / 4), 240px);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.location__heading { font-size: clamp(30px, 2.8vw, 40px); }

.location__text { margin-top: 26px; line-height: 1.55; margin-inline: auto; }

/* pastraipos buvo sulipusios — tarpas tik TARP jų, be papildomo po paskutine */
.location__text p + p { margin-top: 14px; }

.location__chips {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  /* nowrap — siaurėjant panelei kortelės traukiasi, o ne krenta į antrą eilutę.
     align-self: stretch — kitaip eilutė būtų max-content pločio ir kortelės
     apskritai negautų komandos trauktis. */
  flex-wrap: nowrap;
  justify-content: center;
}

/* eilutę laiko .chips-wrap — be stretch jis būtų max-content pločio */
.chips-wrap { align-self: stretch; min-width: 0; }

.chip {
  /* siaurėjant panelei kortelės traukiasi kartu, kad eilė liktų viena */
  flex: 0 1 122px;
  min-width: 0;
  width: 122px;
  /* min-height, ne height — siauresnėje kortelėje užrašas gali lūžti į tris
     eilutes ir tada turinys nebeišlipa (visos eilės kortelės susilygina) */
  min-height: 150px;
  border: 1px solid var(--clr-orange);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px 14px;
  text-align: center;
}

.chip img { width: 24px; height: 24px; }

.chip__label {
  font-family: var(--font-label);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.2;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.chip__time {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 25px;
  margin-top: 14px;
}

.location__btn { margin-top: 28px; width: 275px; }

/* ---------- Gallery ---------- */

.gallery { padding: 56px 0 0; }

.gallery .band { padding: 50px 0; }

/* Balti burbulai ant juostos virsutinio kraso. Kabinami prie pacio mygtuko,
   todel lieka centruoti bet kokiame lange. Mygtuko virsus nuo juostos virsaus
   visada 50px (juostos padding), o burbulas turi kilti 51px virs juostos, tad
   nuo mygtuko virsaus jis yra 101px, t. y. 16px + mygtuko aukstis. */
.gallery .band__actions .btn { position: relative; }

.gallery .band__actions .btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%);
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}

/* Aktyvi galerija zymima spalva: aktyvus mygtukas zalsvas, neaktyvus - oranzinis. */
.gallery .band__actions .btn { background: var(--clr-orange); }
.gallery .band__actions .btn:hover { background: #cb7539; }
.gallery .band__actions .btn.is-active { background: var(--clr-sage); }
.gallery .band__actions .btn.is-active:hover { background: #9da586; }

.gallery__grid {
  margin-top: 7px;
  position: relative;
  display: grid;
  grid-template-columns: 23.3% 36.4% 1fr;
  grid-template-rows: clamp(200px, 20.3vw, 390px) clamp(210px, 21.3vw, 408px);
  gap: 6px;
}

.gallery__grid figure {
  overflow: hidden;
  margin: 0;
}

.gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item--1 { grid-column: 1; grid-row: 1 / span 2; }
.gallery__item--1 img { object-position: right; }
.gallery__item--2 { grid-column: 2; grid-row: 1; }
.gallery__item--3 { grid-column: 2; grid-row: 2; }
.gallery__item--4 { grid-column: 3; grid-row: 1 / span 2; }
.gallery__item--4 img { object-position: left; }


/* ---------- Footer / contact ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--clr-sage);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -40px;
  color: #fff;
  overflow: hidden;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 645px);
  gap: clamp(40px, 5vw, 100px);
  padding: 120px 0 72px;
  position: relative;
}

.site-footer__watermark {
  width: min(705px, 90%);
  margin-inline: auto;
  opacity: 0.1;
  pointer-events: none;
}

.site-footer__watermark img { display: block; width: 100%; height: auto; }

.contact-cards {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 49px;
  align-items: flex-start;
  justify-content: center;
  margin-top: -55px;
  padding-left: 0;
}

@media (max-width: 1400px) {
  .contact-cards { margin-top: -35px; }
}

.contact-card { text-align: center; width: 250px; }

.contact-card__photo {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-inline: auto;
  border-radius: 20px;
  overflow: hidden;
}

.contact-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.contact-card__name { font-weight: 700; font-size: 16px; margin-top: 20px; line-height: 1.4; }
.contact-card__phone { font-weight: 600; font-size: 16px; line-height: 1.4; margin-top: 8px; }

.contact-card__phone a { color: inherit; transition: color 0.2s ease; }
.contact-card__phone a:hover { color: #bc6c35; }

.contact-form {
  position: relative;
  z-index: 1;
}

.contact-form h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 48px);
  color: #fff;
}

.contact-form__sub { font-weight: 600; margin-top: 14px; }

.contact-form form { margin-top: 80px; }

.form-field { margin-bottom: 44px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 630px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 8px 0;
  outline: none;
  resize: none;
}

.form-field textarea { min-height: 77px; }

.form-field .iti { width: 100%; display: block; }

.iti__dropdown-content { color: var(--clr-ink); }

/* white placeholders on the sage form (dropdown search excluded below) */
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.65); }

/* white dropdown arrow on the flag button (library derives both states from this var) */
.form-field .iti { --iti-arrow-color: #fff; }

/* dropdown search field: restore the library layout our input styles override */
.form-field .iti__search-input {
  color: var(--clr-ink);
  border: none;
  padding: 8px 10px 8px 32px;
}

.form-field .iti__search-input::placeholder { color: #8a8a8a; }

.form-field input:focus,
.form-field textarea:focus { border-bottom-color: #fff; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 630px;
}

.form-consent input[type="checkbox"] {
  appearance: none;
  width: 29px;
  height: 30px;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  flex: none;
  display: grid;
  place-content: center;
}

.form-consent input[type="checkbox"]:checked::before {
  content: "✓";
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

.form-consent__label { font-weight: 600; line-height: 1.35; max-width: 273px; }

.form-consent .btn {
  margin-left: auto;
  width: 250px;
  min-height: 52px;
}

.form-status { font-weight: 600; }
.form-status:not(:empty) { margin-top: 18px; }

.form-success {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px 34px;
  max-width: 630px;
}

.form-success[hidden] { display: none; }

.form-success svg {
  width: 56px;
  height: 56px;
  flex: none;
}

.form-success__title {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.form-success__sub {
  margin-top: 6px;
  font-weight: 500;
  font-size: 16px;
}

.req { color: #ff6b52; }

.form-field.has-error input,
.form-field.has-error textarea { border-bottom-color: #ff8a70; }

.form-consent.has-error input[type="checkbox"] { border-color: #ff8a70; }

.field-error {
  color: #ffb4a2;
  font-weight: 600;
  font-size: 13px;
  margin-top: 8px;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 30px 0 35px;
}

.site-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-footer__bar img.logo-word { height: 48px; width: auto; }
.site-footer__bar img.logo-oii { height: 55px; width: auto; }
.site-footer__bar .by { font-weight: 500; }
.site-footer__bar .privacy { font-weight: 500; transition: color 0.2s ease; }
.site-footer__bar .privacy:hover { color: var(--clr-orange); }

/* ============================================================
   Rinktis bustą page
   ============================================================ */

.site-header--solid {
  background: #f4eee9;
  padding: 14px 0 15px;
}

/* solid header is fixed too — push page content below it */
.site-header--solid + main { padding-top: 73px; }

.select-hero {
  position: relative;
  height: clamp(380px, 49vw, 945px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.select-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.plot {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.plot img { width: 100%; height: 100%; display: block; opacity: 0.85; transition: opacity 0.2s; }
.plot:hover img, .plot:focus-visible img { opacity: 1; }

.plot--1 { left: 30%; top: 55%; width: 13.8%; }
.plot--2 { left: 48.2%; top: 45%; width: 12.2%; }
.plot--3 { left: 57%; top: 39.5%; width: 11.2%; }

.plot-tooltip {
  position: absolute;
  left: 33.7%;
  top: 41%;
  width: 255px;
  background: rgba(244, 238, 233, 0.94);
  border-radius: 10px;
  padding: 18px 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 5;
  pointer-events: none;
}

.plot-tooltip__title { font-weight: 600; font-size: 23px; color: var(--clr-ink); }

.plot-tooltip__rows { margin-top: 14px; display: grid; gap: 7px; font-size: 16px; color: var(--clr-ink); }

.plot-tooltip__rows > div { display: flex; justify-content: space-between; gap: 18px; }
.plot-tooltip__rows dt { font-weight: 200; }
.plot-tooltip__rows dd { margin: 0; }

.plot-tooltip__cursor {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 34px;
}

.status--laisvas { color: #34c759; }
.status--rezervuotas { color: #ff8d28; }
.status--parduotas { color: #ff383c; }

.select-intro { padding: 85px 0 85px; background: #f1ece4; }

.select-intro__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.select-intro__heading { font-size: clamp(34px, 3.2vw, 50px); }

.select-intro__text { margin-top: 22px; max-width: unset; line-height: 1.5; }

.status-legend {
  display: flex;
  gap: 34px;
  align-items: center;
  padding-top: 16px;
}

.status-legend span { display: flex; align-items: center; gap: 12px; color: #556455; font-weight: 300; font-size: 16px; }

.status-legend i {
  width: 21px;
  height: 20px;
  border-radius: 100px;
  display: inline-block;
}

.status-legend .dot--laisvas { background: #34c759; }
.status-legend .dot--rezervuotas { background: #ff8d28; }
.status-legend .dot--parduotas { background: #ff383c; }

.filters {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 2.2vw, 44px);
  margin-top: 48px;
  flex-wrap: wrap;
}

.filter { min-width: 180px; }

.filter__label { font-weight: 600; font-size: 16px; letter-spacing: -0.03em; }

.filter__track {
  position: relative;
  height: 15px;
  margin: 18px 0 10px;
  width: 180px;
}

.filter__track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--clr-ink);
}

.filter__track i {
  /* Naršyklė neturi šio gesto laikyti puslapio slinkimu. */
  touch-action: none;
  position: absolute;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--clr-ink);
  cursor: pointer;
}

/* Rankenėlė vos 15 px — pirštui per maža. Nematoma zona ją padidina iki ~43 px,
   vaizdas nesikeičia. */
.filter__track i::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.filter__track i:first-child { left: 0; }
.filter__track i:last-child { right: 0; }

.filter__values {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.03em;
}

.filter--check { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }

.filter--check input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--clr-ink);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.filter--check input:checked::before { content: "✓"; font-size: 13px; color: var(--clr-ink); }

.filters .btn { min-width: 187px; }

.filters-toggle { display: none; }

.filters__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin-left: auto;
}

.filters__actions .filter--check { padding-bottom: 0; }

.filters__reset {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--clr-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.filters__reset:hover { color: #bc6c35; }

.select-table { padding: 70px 0 0; }

.select-table .objects-table tbody tr.is-hidden { display: none; }

.select-table__more {
  display: block;
  margin: 44px auto 0;
  min-width: 187px;
}

.select-table__more[hidden] { display: none; }

.table-wrap {
  border: 1px solid #d5d5d5;
  border-radius: 20px 20px 0 0;
  overflow-x: auto;
  max-width: 1370px;
  margin-inline: auto;
}

.objects-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border-collapse: collapse;
  color: #556455;
  font-size: 16px;
}

.objects-table th:last-child { width: 58px; }

.objects-table th {
  background: var(--clr-tan);
  font-family: "Outfit", var(--font-sans);
  font-weight: 300;
  text-transform: uppercase;
  text-align: left;
  padding: 21px 12px 21px 38px;
  white-space: nowrap;
}

.objects-table th .sort { display: inline-block; margin-left: 10px; width: 7px; }

.objects-table td {
  font-family: "Outfit", var(--font-sans);
  font-weight: 300;
  padding: 19px 12px 19px 38px;
  border-top: 1px solid #ececec;
}

.objects-table tbody tr { cursor: pointer; transition: background 0.15s; }
.objects-table tbody tr:hover { background: #f4f4f2; }

.badge {
  display: inline-block;
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 0px;
  font-size: 14px;
  text-align: center;
  padding: 5px 10px;
}

.objects-table .chev { padding-left: 0; padding-right: 24px; }
.objects-table .chev img { width: 14px; min-width: 14px; transform: rotate(-90deg); display: block; margin-left: auto; }

.info-band { padding: 120px 0 142px; position: relative; }

.info-band__card {
  position: relative;
  background: var(--clr-tan);
  border-radius: var(--radius-md);
  min-height: 394px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 56%);
  overflow: hidden;
}

.info-band__content { padding: 76px clamp(24px, 4vw, 70px); }

.info-band__heading { font-size: clamp(28px, 2.8vw, 40px); max-width: 540px; }

.info-band__text {
  font-family: var(--font-label);
  margin-top: 24px;
  max-width: 533px;
  line-height: 1.5;
  display: grid;
  gap: 14px;
}

.info-band__photo { position: relative; }

.info-band__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-band__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--clr-tan) 0%, rgba(219, 205, 189, 0) 55%);
}

.info-band__circle {
  position: absolute;
  top: -54px;
  right: 110px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
}

/* ============================================================
   House detail page (namas-1)
   ============================================================ */

.house-detail {
  background: #fff;
  padding: 96px 0;
}

.house-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 100px);
  align-items: start;
}

.plan-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 727 / 422;
  overflow: hidden;
}

.plan-viewer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plan-toggle { display: flex; gap: 0; margin-top: 42px; justify-content: center; }

.plan-toggle button {
  min-width: 141px;
  min-height: 46px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.03em;
  cursor: pointer;
  border: 1px solid var(--clr-orange);
  background: transparent;
  color: var(--clr-ink);
  transition: background 0.2s, color 0.2s;
}

.plan-toggle button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.plan-toggle button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: none; }

.plan-toggle button.is-active {
  background: var(--clr-orange);
  border-color: var(--clr-orange);
  color: #fff;
}

.house-specs__name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--clr-orange);
}

.house-specs__rows { margin-top: 40px; max-width: 487px; }

.house-specs__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 10px;
  border-bottom: 1px solid rgba(53, 53, 53, 0.35);
  font-size: 16px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.house-specs__rows .value { font-weight: 500; }

.house-specs__actions { display: flex; gap: 22px; margin-top: 44px; flex-wrap: wrap; }

.house-specs__actions .btn { min-width: 244px; font-size: 14px; }

.info-band__cta { margin-top: 34px; min-width: 243px; }

@media (min-width: 901px) {
  .info-band__cta {
    position: absolute;
    right: 115px;
    bottom: 30px;
    margin: 0;
    z-index: 3;
  }
}

/* ============================================================
   Specifikacijos page
   ============================================================ */

.spec-hero {
  position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.spec-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  opacity: 0.2;
}

.spec-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(710px, 55%));
  gap: clamp(32px, 5vw, 120px);
  padding: 96px 0 90px;
  align-items: start;
}

.spec-hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 4vw, 58px);
  color: var(--clr-orange);
}

.spec-hero__sub {
  margin-top: 16px;
  font-weight: 600;
  font-size: 25px;
  color: #556455;
}

.spec-hero__sub b { font-weight: 700; }

.spec-hero__text { line-height: 1.5; display: grid; gap: 14px; }

.spec-list {
  padding: 90px 0 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 44px clamp(40px, 8vw, 160px);
}

.spec-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.spec-item__icon {
  height: 42px;
  display: flex;
  align-items: center;
}

.spec-item__icon img { max-height: 42px; max-width: 44px; }

.spec-item h3 { font-weight: 500; font-size: 25px; color: var(--clr-ink); }

.spec-item p { margin-top: 8px; font-size: 16px; line-height: 1.35; max-width: 380px; }

.spec-note {
  text-align: right;
  font-weight: 600;
  font-size: 16px;
  padding: 20px 0 0;
}

/* ============================================================
   Simple pages (privacy, 404)
   ============================================================ */

.simple-page {
  padding: 60px 0 60px;
  min-height: unset;
}

.simple-page h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 3.5vw, 50px);
  color: var(--clr-ink);
}

.simple-page article {
  margin-top: 40px;
  line-height: 1.6;
  font-size: 15px;
}

.simple-page article h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 12px;
}

.simple-page article p { margin-bottom: 14px; }
.simple-page article ul { margin: 0 0 14px 20px; }
.simple-page article li { margin-bottom: 6px; }

body.error404 .site-footer,
body.page-template-default .site-footer { margin-top: 0; }

/* Pradzia yra page-template-default, bet ten footeris turi uzlipti ant
   galerijos apacios. Taisykle butinai PO virsutines - vienodas svoris. */
body.home .site-footer { margin-top: -40px; }
body.page-rinktis-busta .site-footer { margin-top: -40px; }

.error-page {
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--gutter) 100px;
}

.error-page__code {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(90px, 14vw, 180px);
  line-height: 1;
  color: var(--clr-orange);
}

.error-page h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--clr-ink);
  margin-top: 18px;
}

.error-page p { margin-top: 16px; max-width: 420px; line-height: 1.5; }

.error-page .btn { margin-top: 36px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; padding-top: 70px; }
  .footer-team { order: -1; }
  .contact-cards { gap: 40px; padding: 0; margin-top: -35px; justify-content: center; }
  .contact-card { flex: 0 1 250px; width: auto; min-width: 0; }
  .contact-form { order: 1; }
  .site-footer__watermark { width: min(680px, 92%); margin: 0 auto; }
  .form-field input,
  .form-field textarea,
  .form-consent { max-width: none; }
  .form-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; }
  .form-consent__label { max-width: none; }
  .form-consent .btn { grid-column: 1 / -1; justify-self: center; width: 250px; margin: 26px 0 0; }
}

/* ---------- Vieta: siauresni desktop pločiai ----------
   Ženkliukas įkomponuotas į nuotrauką, tad jis visada stovi ant savo vietos —
   bet kartu su kadru slenka kairėn siaurėjant langui. Suskaičiuota: pro
   1010px panelę jis išlenda tik nuo ~1810px. Todėl žemiau to blokai dedami
   vienas po kito ir ženkliukas visada matomas visas. */
@media (max-width: 1810px) {
  .location:not(.location--live) {
    display: block;
    min-height: 0;
    background: #fff;
  }

  .location:not(.location--live) .location__mapwrap {
    position: relative;
    inset: auto;
    height: 380px;
    width: calc(100% - 2 * var(--gutter));
    margin-inline: auto;
    border-radius: 12px;
    overflow: hidden;
  }

  .location:not(.location--live) .location__panel {
    width: 100%;
    background: none;
    backdrop-filter: none;
    padding: 56px clamp(24px, 4vw, 66px) 0;
  }
}

/* Gyvame režime kadrą valdome patys, tad šoninė kompozicija veikia daug
   siauriau — bet žemiau 1250px panelėje nebetelpa 5 kortelių eilė. */
@media (max-width: 1250px) {
  .location--live {
    display: block;
    min-height: 0;
    background: #fff;
  }

  .location--live .location__mapwrap {
    position: relative;
    inset: auto;
    height: 380px;
    width: calc(100% - 2 * var(--gutter));
    margin-inline: auto;
    border-radius: 12px;
    overflow: hidden;
  }

  .location--live .location__panel {
    width: 100%;
    background: none;
    backdrop-filter: none;
    padding: 56px clamp(24px, 4vw, 66px) 0;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0;
    margin: 0 !important;
    background: var(--clr-cream);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }

  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 20px; }

  .nav-toggle { display: block; position: relative; z-index: 100; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* hero: full-height photo, cream gradient fading from the top (per design) */
  .hero {
    position: relative;
    flex-direction: column;
    min-height: 0;
    border-radius: 0 0 16px 16px;
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    height: 100%;
    /* laikina: mobile dizaine yra ATSKIRA nuotrauka, ne šis kadras.
       40% — arčiausias įmanomas atitikmuo su desktop hero.jpg. */
    object-position: 40% 100%;
  }

  .hero .container { position: relative; z-index: 2; }

  .hero__content {
    padding: 135px 0 360px;
    max-width: none;
  }

  .hero__title { font-size: 34px; line-height: 36px; }
  .hero__text { margin-top: 15px; font-size: 14px; line-height: 20px; }
  .hero__btn { margin-top: 40px; }

  .about { padding: 70px 0 60px; text-align: center; }
  .about__heading { margin-inline: auto; }
  .about__text { text-align: center; }
  .about__more { display: inline-block; }
  .about__more[hidden] { display: none; }
  .about__text > p:nth-child(n + 2) { display: none; }
  .about__text.is-expanded > p { display: block; }

  /* benefits: swipe carousel — per visą plotį, iš šonų matosi gretimi
     slaidai, kraštuose jie išnyksta (pagal Pradžia-mobile.jpg) */
  /* min-width:0 — be jo grid'o elementas išsiplėstų iki visų slaidų pločio */
  .benefits-wrap { margin-inline: calc(var(--gutter) * -1); min-width: 0; }

  .benefits {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 24px 84px 0;
    scrollbar-width: none;
    min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  }

  .benefits::-webkit-scrollbar { display: none; }

  .benefit {
    flex: 0 0 234px;
    scroll-snap-align: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .benefit.carousel-clone { display: flex; }

  .benefit__rule { margin-inline: auto; }
  .benefit__text { max-width: 280px; }

  .band { border-radius: 0; }
  .band__inner { justify-content: center; text-align: center; gap: 20px; }

  /* Antraste visada atskiroje eiluteje - ir tada, kai mygtukas tik vienas ir
     abu tilptu i viena eile. */
  .band__heading { flex: 0 0 100%; }

  .types__cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin-top: 0;
    padding: 0;
    scrollbar-width: none;
  }

  .types__cards::-webkit-scrollbar { display: none; }

  .house-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    min-height: 0;
  }

  .house-card__body {
    align-items: center;
    text-align: center;
    padding: 30px;
  }

  /* Rodykles (34px, 10px nuo kraso) uzima 44px is kiekvieno sono, o korteles
     paraste tik 30px — todel planas siaurinamas, kad ant ju neuzliptu. */
  .house-card__plan {
    margin: 40px 0 0;
    width: calc(100% - 44px);
  }
  .house-card__btn {
    margin-top: 40px;
    /* min-height turi buti perrasytas kartu su height — bazinis 57px kitaip nugaletu */
    min-height: 50px;
    height: 50px;
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Mygtukas cia paslėptas, todel ir jo deze neturi uzimti vietos —
     kitaip band__inner gap paliktu tuscia tarpa. */
  .types .band__actions { display: none; }
  .types .band__actions .btn::before { display: none; }

  /* Makiete mobiliajame juostoje mygtuko nera. */
  .types__btn { display: none; }

  /* Svoris turi atitikti .carousel-arrow.types-arrow bazine taisykle. */
  .carousel-arrow.types-arrow {
    width: 34px;
    height: 34px;
  }

  .types-arrow .icon { width: 17px; height: 17px; }
  .types-arrow.carousel-arrow--prev { left: 10px; }
  .types-arrow.carousel-arrow--next { right: 10px; }
  .gallery .band__actions .btn::before { display: none; }

  .carousel-arrow { display: block; }

  /* Mobiliajame tarpai maziname tuo paciu santykiu kaip „Vieta" bloke (110 -> 70). */
  .video-section { padding-top: 0; margin-top: 60px; }
  /* mobile dizaine blokas irgi apvalus ir siauresnis paraštėmis (12px, ne 24px) */
  .video-section .container { width: min(1834px, 100% - 24px); }
  .video-block { border-radius: 16px; height: 228px; }

  .location { margin-top: 70px; min-height: 0; display: block; background: #fff; }
  .location__mapwrap {
    position: relative;
    inset: auto;
    height: 300px;
    width: calc(100% - 2 * var(--gutter));
    margin: 36px auto 0;
    border-radius: 12px;
    overflow: hidden;
  }

  /* siaurame kadre įkomponuotas ženkliukas atsidurtų dešinėje — pastumiame
     kadrą, kad jis stovėtų kairiau centro, kaip eksporte (tik nuotraukai) */
  img.location__map { object-position: 92% center; }
  .location__panel {
    background: none;
    width: 100%;
    padding: 24px var(--gutter) 0;
    text-align: center;
  }
  .location__text { margin-inline: auto; margin-top: 0; }
  .location__chips { justify-content: flex-start; margin-top: 36px; }
  .location__btn { order: 10; }
  .gallery .band { padding: 30px 0; }
  .location__btn { margin-top: 36px; width: 100%; max-width: 340px; }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }

  .gallery__item--1, .gallery__item--2, .gallery__item--3, .gallery__item--4 {
    grid-column: 1;
    grid-row: auto;
    height: 260px;
  }

  .select-hero { border-radius: 0; }
  .house-detail__grid { grid-template-columns: 1fr; }
  .house-detail { text-align: center; padding: 64px 0; }
  .plan-toggle { justify-content: center; }
  .house-specs__rows { margin-inline: auto; text-align: left; max-width: none; }
  .house-specs__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .house-specs__actions .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
  .plot-tooltip { display: none; }
  .select-intro { text-align: center; }
  .select-intro__top { justify-content: center; }
  /* Turi tilpti į vieną eilutę ir siauriausiuose telefonuose — todėl
     nebeleidžiame laužyti ir sumažiname tarpus bei tašką. */
  .status-legend { justify-content: center; flex-wrap: nowrap; gap: clamp(8px, 3vw, 18px); }
  .status-legend span { gap: 6px; font-size: clamp(11px, 3.1vw, 16px); white-space: nowrap; }
  .status-legend i { width: 10px; height: 10px; min-width: 10px; }

  .about__grid > div:first-child { padding-left: 0; }
  .about__heading { font-size: 24px; }
  .band__text { font-size: 12px; }
  .house-card__specs { font-size: 16px; }
  .filters { justify-content: center; }
  .filters .btn { width: 100%; max-width: 340px; }
  .filters__actions { margin-left: 0; width: 100%; flex-direction: column; align-items: center; gap: 20px; }
  .filters__reset { margin-top: 34px; }
  .info-band__card { grid-template-columns: 1fr; }
  .info-band__content { padding-top: 50px; padding-bottom: 40px; text-align: center; }
  .info-band__heading,
  .info-band__text { margin-inline: auto; }
  .info-band__heading { font-size: 22px; }
  .info-band__text { font-size: 13px; }
  .info-band__circle { display: none; }
  .spec-note { text-align: center; }
  .info-band__photo { min-height: 240px; }
  .info-band__photo::before { background: linear-gradient(180deg, var(--clr-tan) 0%, rgba(219, 205, 189, 0) 45%); }

  .site-footer { border-radius: 24px 24px 0 0; margin-top: 0; }
  body.home .site-footer { margin-top: -25px; }
  body.page-rinktis-busta .site-footer { margin-top: -25px; }
  .site-footer__inner { padding: 60px 0 40px; gap: 60px; }
  .site-footer__bar { margin-top: 40px; }
  .error-page { padding: 64px var(--gutter) 64px; }
  .contact-card__name { margin-top: 20px; }
  .contact-card__name span { display: block; }
  .contact-form { text-align: center; }
  .contact-form h2 { font-size: 48px; }
  .contact-form__sub { font-size: 16px; }
  .site-footer__brand { gap: 18px; }
  .contact-form form { margin-top: 40px; text-align: left; }
  .site-footer__bar-inner { flex-wrap: wrap; gap: 18px; justify-content: space-between; }
  .site-footer__bar img.logo-word { height: 40px; margin-left: 0; }
  .site-footer__bar img.logo-oii { height: 40px; }
  .site-footer__bar .privacy { margin-left: 0; }
}

@media (max-width: 620px) {
  .contact-cards { gap: 20px; }
}

/* ---------- Specifikacijos: mobile collapse ---------- */

.spec-list__toggle { display: none; }

@media (max-width: 900px) {
  .spec-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0 48px;
  }

  .spec-hero__title { text-align: center; font-size: 32px; }
  .spec-hero__sub { text-align: center; font-size: 18px; margin-top: 8px; }

  .spec-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .spec-list.is-collapsed .spec-item:nth-child(n+6) { display: none; }
  .spec-list.is-collapsed ~ .spec-list__toggle {
    display: block;
    margin: 34px auto 34px;
    min-width: 250px;
  }
}

/* Specifikacijos page: footer sits flush below the info band */
body.page-template-page-specifikacijos .site-footer { margin-top: 0; }

@media (max-width: 900px) {
  .info-band { padding-top: 64px; padding-bottom: 64px; }
}

/* ---------- Pradžia: mobile karuseliu rodykles ir Vieta antraste ---------- */

.benefits-wrap,
.chips-wrap { position: relative; }

.benefits-arrow,
.chips-arrow,
.location__title-mobile { display: none; }

@media (max-width: 900px) {
  .benefits-arrow,
  .chips-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .benefits-arrow.carousel-arrow--prev,
  .chips-arrow.carousel-arrow--prev { left: 2px; }
  .benefits-arrow.carousel-arrow--next,
  .chips-arrow.carousel-arrow--next { right: 2px; }

  /* chip'ų rodyklės eksporte oranžinės ir stovi prie pat kraštų */
  .chips-arrow { color: var(--clr-orange); }
  .chips-arrow.carousel-arrow--prev { left: 14px; }
  .chips-arrow.carousel-arrow--next { right: 14px; }

  /* tik didesnės ir arčiau kraštų — storis ir spalva kaip anksčiau */
  .benefits-arrow {
    font-size: 44px;
    padding: 10px 8px;
  }

  .benefits-arrow.carousel-arrow--prev { left: 10px; }
  .benefits-arrow.carousel-arrow--next { right: 10px; }

  .location__title-mobile {
    display: block;
    text-align: center;
    font-size: 32px;
    margin-bottom: 24px;
  }

  .location__heading { display: none; }

  /* „iki…" kortelės — begalinė karuselė, ekrane telpa 3 (pagal eksportą:
     kortelė 83×102, tarpas 8). Šoninis padding'as toks, kad bet kuri
     kortelė galėtų atsistoti tiksliai centre.
     align-self: stretch + min-width:0 — be jų flex elementas išsipučia iki
     visų kortelių pločio; neigiamos paraštės ištempia juostą per visą ekraną. */
  .chips-wrap {
    align-self: stretch;
    min-width: 0;
    margin-inline: calc(var(--gutter) * -1);
  }

  .location__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 0;
    /* lygiai 3 kortelės — be pusiau matomų kraštuose, kaip eksporte */
    width: calc(3 * 83px + 2 * 8px);
    margin-inline: auto;
    min-width: 0;
  }

  .location__chips::-webkit-scrollbar { display: none; }

  .location__chips .chip {
    flex: none;
    width: 83px;
    /* min-height:0 — kitaip bazinė 150px riba nugali šį aukštį */
    min-height: 0;
    height: 102px;
    padding: 10px 4px 12px;
    scroll-snap-align: center;
  }

  /* turinys sumažintas proporcingai 83×102 dėžutei (desktop 122×150) */
  .location__chips .chip img { width: 17px; height: 17px; }

  .location__chips .chip__label {
    font-size: 9.5px;
    margin-top: 6px;
    min-height: 24px;
  }

  .location__chips .chip__time { font-size: 16px; }

  .chip.carousel-clone { display: flex; }
}

/* ---------- Galerija: dvi galerijos + mobili karuselė ---------- */

.gallery__stage { position: relative; }

/* Rodykles matomos ir desktope: ten jos vercia galerija po keturias nuotraukas. */
.gallery-arrow {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  /* .carousel-arrow padding 10px suspaustu ikona mazame apskritime */
  padding: 0;
  color: #fff;
  background: var(--clr-sage);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.gallery-arrow:hover { background: #9da586; }
.gallery-arrow.carousel-arrow--prev { left: 18px; }
.gallery-arrow.carousel-arrow--next { right: 18px; }

/* display: flex nugaletu hidden atributa, todel nurodoma atskirai. */
.gallery-arrow[hidden] { display: none; }

.gallery-arrow .icon { width: 24px; height: 24px; }

/* ---------- Galerijos lightbox ---------- */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 64px);
  background: rgba(24, 24, 24, 0.92);
}

.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }

.gallery-lightbox__close {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 38px;
  line-height: 1;
}

.gallery-lightbox__nav--prev { left: 20px; }
.gallery-lightbox__nav--next { right: 20px; }

.gallery-lightbox__nav .icon { width: 26px; height: 26px; }
.gallery-lightbox__close .icon { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .gallery-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .gallery-lightbox__nav--prev { left: 8px; }
  .gallery-lightbox__nav--next { right: 8px; }
}

.gallery__item--rest { display: none; }


@media (max-width: 900px) {
  .gallery-arrow {
    width: 34px;
    height: 34px;
  }

  .gallery-arrow .icon { width: 17px; height: 17px; }

  .gallery-arrow.carousel-arrow--prev { left: 10px; }
  .gallery-arrow.carousel-arrow--next { right: 10px; }

  .gallery__grid { display: block; margin-top: 0; }

  .gallery__grid figure { display: none; }

  .gallery__grid figure.is-current { display: block; height: 350px; }

  .gallery__grid figure.is-current img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Mobile: filtru akordeonas ir lentele kortelemis */
@media (max-width: 900px) {
  .select-intro { background: none; padding-bottom: 0; }

  /* „Rinktis būstą" puslapyje virš šios sekcijos jau yra kvartalo planas, todėl
     mobiliame tarpo beveik nereikia. Kituose puslapiuose paraštė lieka. */
  .select-page .select-intro { padding-top: 20px; }
  .select-intro__top { flex-direction: column; align-items: center; }
  .select-intro__top .status-legend { order: -1; padding-top: 0; }

  .filter,
  .filter--range { width: 100%; min-width: 0; }
  .filter__track { width: 100%; }
  .filter__label { text-align: center; }

  .table-wrap { position: relative; }

  .table-wrap::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -5px;
    height: 155px;
    background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
    pointer-events: none;
  }

  .table-wrap.is-expanded::after { content: none; }

  .filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px auto 0;
    min-width: 187px;
  }

  .filters-toggle img { width: 14px; transition: transform 0.2s; }
  .filters-toggle.is-open img { transform: rotate(180deg); }

  .filters { display: none; }
  .filters.is-open { display: flex; }

  .table-wrap { overflow: visible; }
  .objects-table { min-width: 0; display: block; }
  .objects-table thead { display: none; }
  .objects-table tbody { display: block; }

  .objects-table tbody tr {
    display: block;
    position: relative;
    padding: 14px 24px 22px;
    border-top: 1px solid #ececec;
  }

  /* Rėmelis mobiliame turi `overflow: visible` (kad tilptų apatinis perėjimas),
     todėl eilutės fonas pats turi kartoti apvalintus viršutinius kampus —
     kitaip užvedus jis kyšo kvadratiniais kampais. 19px = 20px minus rėmelis. */
  .objects-table tbody tr:first-child {
    border-top: 0;
    border-radius: 19px 19px 0 0;
  }

  .objects-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0;
    padding: 9px 0;
  }

  .objects-table td::before {
    content: attr(data-label);
    text-transform: uppercase;
  }

  .objects-table td:nth-child(6)::before,
  .objects-table .chev::before { content: none; }

  .objects-table td:nth-child(6) { justify-content: flex-start; margin-top: 8px; }
  .objects-table td:nth-child(6) .badge { width: auto; min-width: 100px; padding: 5px 18px; }

  .objects-table .chev {
    position: absolute;
    right: 24px;
    bottom: 30px;
    width: auto;
    padding: 0;
  }
}

/* ---------- Kvartalo planas (2D, rinktis-busta) ---------- */

.kvartalas {
  padding: 90px 0 70px;
  background: #fff;
}

.kvartalas__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}

.kvartalas__heading { font-size: 44px; color: var(--clr-heading); }

.kvartalas__compass { width: 55px; height: 57px; flex: none; }

.kvartalas__stage { position: relative; }

/* Zoom valdikliai — plano kairiajame viršuje, virš tuščio kampo. */
.kvartalas__zoom {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.kvartalas__zoom-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: #586355;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.kvartalas__zoom-btn svg { width: 20px; height: 20px; }
.kvartalas__zoom-btn:hover:not(:disabled) { background: #46503f; }
.kvartalas__zoom-btn:disabled { background: #bcc1bb; cursor: default; }

.kvartalas__viewport {
  overflow: auto;
  overscroll-behavior-x: contain;
  /* Priartintas planas tampomas žymikliu, todėl slinkties juostų nerodome. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kvartalas__viewport::-webkit-scrollbar { display: none; }

.kvartalas__viewport { user-select: none; }
.kvartalas__viewport.is-pannable { cursor: grab; }
.kvartalas__viewport.is-panning,
.kvartalas__viewport.is-panning * { cursor: grabbing; }

/* Be width perėjimo: plotis turi pasikeisti tą pačią kadrą, kitaip po jo
   nustatomas slinkimo taškas nukerpamas prie dar nepakitusio plano pločio. */
.kvartalas__canvas {
  width: calc(100% * var(--plan-zoom, 1));
  min-width: 100%;
}

.kvartalas__view { display: block; }
.kvartalas__view[hidden] { display: none; }

.kvartalas__svg { width: 100%; height: auto; display: block; overflow: visible; }

/* 3D rodinys — aerofoto iškirpta į nubraižytų kontūrų gaubtą.
   `width: 100%` būtinas: kai JS priskiria aukštį (aukščių suvienodinimui),
   `aspect-ratio` kitaip imtų diktuoti ir plotį, ir juosta nustotų būti per
   visą plotį. Su fiksuotu pločiu proporcija naudojama tik tada, kai aukštis
   neapibrėžtas. */
.kvartalas__view--3d { position: relative; overflow: hidden; width: 100%; }

.kvartalas__foto { position: absolute; }
.kvartalas__foto-img { width: 100%; height: 100%; display: block; object-fit: fill; }

/* 3D rodomas per visą puslapio plotį — iššokame iš konteinerio. Antraštė,
   kompasas ir perjungėjas lieka konteineryje. */
.kvartalas.is-3d .kvartalas__stage {
  /* `--vw` nustatomas iš JS pagal clientWidth: `100vw` įskaičiuoja slinkties
     juostą ir kadras pasislenka per pusę jos pločio. */
  width: var(--vw, 100vw);
  margin-left: calc(50% - var(--vw, 100vw) / 2);
}

.kvartalas.is-3d .kvartalas__zoom { top: 28px; left: 28px; }

/* 3D rodinyje antraštė ir kompasas nereikalingi — lieka tik nuotrauka, ir ji
   prasideda iškart, be viršutinės paraštės. 2D paraštė būtina: ten sekcija
   pirma puslapyje, o antraštė kitaip atsidurtų po fiksuota navigacija. */
.kvartalas.is-3d { padding-top: 0; }
.kvartalas.is-3d .kvartalas__top { display: none; }

.kvartalas.is-3d .kvartalas__view--3d { border-radius: 0 0 32px 32px; }

/* 3D režime rėmelio aukštį nustato JS (kad sekcija būtų tokio pat aukščio kaip
   2D), todėl mobilus fiksuotas aukštis čia netinka. */
.kvartalas.is-3d .kvartalas__viewport { height: auto; }

/* Perjungėjas užkeliamas ant nuotraukos, dešinėje, sulygiuotas su konteinerio
   kraštu — kaip ir 2D režime. */
.kvartalas.is-3d .plan-toggle--kvartalas {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  right: calc((100% - min(var(--container), 100% - 2 * var(--gutter))) / 2);
  margin: 0;
}

.kvartalas.is-3d .plan-toggle--kvartalas button:not(.is-active) {
  background: #fff;
}

.kvartalas__foto-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Namų kontūrai ant nuotraukos: laisvi nedažomi, kol neužvedama; rezervuoti
   ir parduoti dažomi visada. Danga permatoma, kad matytųsi stogo šviesa. */
.kvartalas__foto-svg .house polygon {
  fill: transparent;
  stroke: none;
  transition: fill 0.18s;
}

.kvartalas__foto-svg .house--rezervuotas polygon { fill: rgba(255, 141, 40, 0.58); }
.kvartalas__foto-svg .house--parduotas polygon { fill: rgba(255, 56, 60, 0.58); }

.kvartalas__foto-svg .house:hover polygon,
.kvartalas__foto-svg .house:focus-visible polygon { fill: rgba(52, 199, 89, 0.58); }

.kvartalas__foto-svg .house--rezervuotas:hover polygon,
.kvartalas__foto-svg .house--rezervuotas:focus-visible polygon { fill: rgba(226, 122, 20, 0.72); }

.kvartalas__foto-svg .house--parduotas:hover polygon,
.kvartalas__foto-svg .house--parduotas:focus-visible polygon { fill: rgba(214, 34, 38, 0.72); }

/* Klaviatūros fokusas 3D rodinyje: vien užpildo neužtenka — pridedame baltą
   apvadą, kad būtų aišku, kuris namas pasirinktas. */
.kvartalas__foto-svg .house:focus-visible polygon {
  stroke: #fff;
  stroke-width: 2.5;
  paint-order: stroke;
}

.kvartalas__foto-svg .house.is-current polygon,
.kvartalas__foto-svg .house.is-current:hover polygon { fill: rgba(255, 255, 255, 0.5); }

/* Namų ląstelės. Užpildas pagal statusą, užvedus — patamsėja sava spalva. */
.house { cursor: pointer; }
.house rect { fill: #c2d3b6; stroke: #9bae8c; stroke-width: 1; transition: fill 0.18s; }

.house text {
  fill: #4f4f4f;
  font-family: var(--font-sans);
  font-size: 28px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
}

.house--rezervuotas rect { fill: #e1af6f; }
.house--parduotas rect { fill: #e18579; }

.house:hover rect,
.house:focus-visible rect { fill: #7bcc87; }
.house--rezervuotas:hover rect,
.house--rezervuotas:focus-visible rect { fill: #d2954f; }
.house--parduotas:hover rect,
.house--parduotas:focus-visible rect { fill: #d06a5c; }

.house:focus-visible rect { stroke: var(--clr-orange); stroke-width: 2.5; }

.kvartalas__view--2d { position: relative; }

/* Namo vidiniame puslapyje pažymimas namas, kuriame esame. Taisyklė eina po
   hover'io, kad žyma nedingtų užvedus — kitaip nebūtų aišku, kur esi. */
.house.is-current rect,
.house.is-current:hover rect { fill: rgba(255, 255, 255, 0.5); }

/* Plane nupieštas, bet duomenų bazėje neegzistuojantis namas. */
.house--nera { cursor: default; }
.house--nera rect { fill: #e8e8e4; stroke: #cdcdcd; }
.house--nera text { fill: #9a9a9a; }

.kvartalas__band { fill: #e5e5e5; stroke: #cdcdcd; stroke-width: 1; }

.plan-toggle--kvartalas { justify-content: flex-end; margin-top: 34px; }
.plan-toggle button:disabled { color: #9a9a9a; cursor: default; }

/* ---------- Namo kortelė (užvedus / paspaudus plane) ---------- */

.plan-card {
  position: absolute;
  z-index: 20;
  width: 255px;
  padding: 18px 24px 20px;
  background: #f4eee9;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.plan-card[hidden] { display: none; }

.plan-card__title { font-size: 23px; font-weight: 600; color: var(--clr-ink); }

.plan-card__rows { margin-top: 14px; display: grid; gap: 7px; font-size: 16px; color: var(--clr-ink); }
.plan-card__rows > div { display: flex; justify-content: space-between; gap: 18px; }
.plan-card__rows dt { font-weight: 200; color: #7d7a78; }
.plan-card__rows dd { margin: 0; }

.plan-card__rows dd.status--laisvas,
.plan-card__rows dd.status--rezervuotas,
.plan-card__rows dd.status--parduotas { font-weight: 400; }

/* Desktope mygtuko nereikia: paspaudimas ant paties namo jau veda į jo puslapį,
   o kortelė ten nepagaunama pele (pointer-events: none). Rodomas tik mobiliame,
   kur paspaudimas atidaro kortelę, o ne puslapį. */
.plan-card__btn {
  display: none;
  touch-action: manipulation;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  background: var(--clr-sage);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.plan-card__btn img { width: 14px; transform: rotate(-90deg); }

/* Uždanga ir uždarymo mygtukas naudojami tik mobiliame modale. */
.plan-card__backdrop,
.plan-card__close { display: none; }

@media (hover: hover) and (pointer: fine) {
  .plan-card__btn:hover { background: #7f886b; }
}

@media (max-width: 900px) {
  .kvartalas { padding: 60px 0 50px; }

  .kvartalas__top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 26px;
  }

  .kvartalas__heading { font-size: 28px; text-align: center; padding-left: 46px; }
  .kvartalas__compass { width: 40px; height: 42px; }

  .kvartalas__zoom { top: -74px; }
  .kvartalas.is-3d .kvartalas__zoom { top: 16px; left: 16px; }

  /* Mobiliame abu rodiniai turi vienodą fiksuotą aukštį — puslapis nešokinėja
     nei priartinant, nei perjungiant 2D/3D. */
  .kvartalas__viewport { height: 350px; align-content: safe center; }
  .kvartalas.is-3d .kvartalas__view--3d { height: 350px; }

  /* Horizontalus tempimas pirštu stumdo nuotrauką, vertikalus — slenka puslapį. */
  .kvartalas.is-3d .kvartalas__view--3d { touch-action: pan-y; }

  .kvartalas.is-3d .plan-toggle--kvartalas { bottom: 16px; }

  .plan-toggle--kvartalas button {
    flex: 0 1 auto;
    min-width: 88px;
    max-width: 120px;
    min-height: 38px;
    font-size: 13px;
  }
  .kvartalas__zoom-btn { width: 34px; height: 34px; }

  .plan-toggle--kvartalas { justify-content: center; margin-top: 28px; }

  /* Kortelė mobile — modalas ekrano centre su uždanga. */
  .plan-card__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.45);
  }

  .plan-card__backdrop[hidden] { display: none; }

  .plan-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: min(340px, calc(100% - 2 * var(--gutter)));
    padding: 24px 26px 26px;
    border-radius: 14px;
    pointer-events: auto;
  }

  .plan-card__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    color: #7d7a78;
    cursor: pointer;
  }

  .plan-card__close svg { width: 20px; height: 20px; }
  .plan-card__title { font-size: 21px; }
  .plan-card__btn { display: flex; min-height: 48px; }
}
