/* STOP5 — v1. Minimālistisks, Apple stila dizains. Bez ārējiem fontiem un bibliotēkām. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #e8590c;      /* fasādes oranžā — tikai akcentiem */
  --link: #0066cc;
  --btn: #1d1d1f;
  --btn-text: #ffffff;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 2px 24px rgba(0, 0, 0, .06);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-alt: #111113; --card: #1c1c1e; --text: #f5f5f7; --muted: #a1a1a6;
    --line: #38383a; --link: #2997ff; --btn: #f5f5f7; --btn-text: #000000; --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); line-height: 1.4; max-width: 40em; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: .6em; letter-spacing: 0; }
.i { flex: none; vertical-align: middle; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 26px;
  border-radius: 980px; background: var(--btn); color: var(--btn-text); font-weight: 500; font-size: 1.0625rem; border: 0;
  cursor: pointer; transition: transform .2s var(--ease), opacity .2s var(--ease); font-family: inherit; }
.btn:hover { text-decoration: none; opacity: .86; }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: .35em; font-size: 1.0625rem; font-weight: 500; min-height: 44px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.nav__in { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; height: 56px; display: flex; align-items: center; gap: 24px; }
.nav__brand { color: var(--text); display: flex; }
.logo { display: inline-flex; align-items: center; gap: 2px; font: 700 22px/1 var(--font); letter-spacing: -.04em; color: var(--text); }
.logo__5 { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.nav__menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav__menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { color: var(--text); font-size: .875rem; opacity: .85; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav__langs { display: flex; gap: 2px; border-left: 1px solid var(--line); padding-left: 16px; }
.nav__langs a { font-size: .75rem; font-weight: 600; padding: 6px 7px; border-radius: 6px; color: var(--muted); opacity: 1; }
.nav__langs a[aria-current] { color: var(--text); background: var(--bg-alt); }
.nav__toggle { display: none; background: none; border: 0; color: var(--text); width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__cta { margin-left: auto; }
  .nav__menu { position: fixed; inset: 56px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 12px 22px 28px; gap: 16px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0;
    visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; max-height: calc(100vh - 56px); overflow: auto; }
  .nav__menu.open { opacity: 1; transform: none; visibility: visible; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu ul a { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__langs { border: 0; padding: 0; }
  .nav__langs a { font-size: .95rem; padding: 10px 14px; }
}
@media (max-width: 420px) { .nav__cta { display: none; } .nav__toggle { margin-left: auto; } }

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 0; text-align: center; overflow: hidden; }
.hero__text { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 14em; }
.hero .lead { margin: 0 auto .8em; }
.hero__price { font-weight: 600; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; }
.hero__media { max-width: 1400px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 22px; }
.hero__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .hero__img { aspect-ratio: 4 / 3; } }

/* Facts */
.facts { padding: clamp(48px, 7vw, 88px) 0; }
.facts__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin: 0; }
.fact { text-align: center; }
.fact dt { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.fact dd { margin: .3em 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .facts__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; } }
@media (max-width: 480px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec--alt { background: var(--bg-alt); }
.sec--top { padding-top: clamp(32px, 5vw, 56px); }
.sec__head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.sec__head .lead { margin: 0 auto; }
.sec__head--left { text-align: left; }
.sec__head--left .lead { margin: 0; }

/* Space cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:nth-child(1), .card:nth-child(2) { grid-column: span 3; }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.03); }
.card__body { padding: 24px 26px 28px; }
.card__body p { color: var(--muted); margin: 0; }
.card__icon { color: var(--accent); display: inline-flex; margin-bottom: 10px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } .card, .card:nth-child(1), .card:nth-child(2) { grid-column: span 1; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Finder */
.finder { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.finder__controls, .finder__result { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.seg { border: 0; padding: 0; margin: 0 0 36px; }
.seg legend, .area label { font-weight: 600; font-size: 1.0625rem; margin-bottom: 14px; padding: 0; }
.seg__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; transition: border-color .2s var(--ease), background .2s var(--ease); text-align: center; min-height: 44px; }
.seg__opt span .i { color: var(--muted); }
.seg__opt input:checked + span { border-color: var(--text); background: var(--bg-alt); }
.seg__opt input:checked + span .i { color: var(--accent); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.area { display: block; }
.area label { display: block; }
.area__val { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.area__val input { width: 4.2em; font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font); letter-spacing: -.03em; color: var(--text);
  background: transparent; border: 0; border-bottom: 2px solid var(--line); padding: 0 0 4px; -moz-appearance: textfield; }
.area__val input::-webkit-outer-spin-button, .area__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.area__val input:focus { outline: none; border-color: var(--link); }
.area__val span { font-size: 1.5rem; font-weight: 600; color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--text) var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--text); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -11px;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.2); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.2); }
.range__labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.finder__result { display: flex; flex-direction: column; }
.finder__big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 24px; }
.finder__dl { margin: 0 0 20px; display: grid; gap: 16px; }
.finder__dl dt { font-size: .85rem; color: var(--muted); }
.finder__dl dd { margin: 2px 0 0; font-weight: 600; font-size: 1.0625rem; }
.finder__hint { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.finder__result .btn { margin-top: auto; }
.finder__result .small { margin: 12px 0 0; text-align: center; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } }

/* Gallery */
.gal { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(22px, calc((100vw - var(--wrap)) / 2 + 22px)) 16px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gal__item { flex: 0 0 min(80vw, 560px); scroll-snap-align: center; margin: 0; }
.gal__btn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.gal__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gal__btn:hover img { transform: scale(1.03); }
.gal__item figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 12px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.16); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.why__item .i { color: var(--accent); margin-bottom: 14px; }
.why__item p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .why { grid-template-columns: 1fr; } }

/* Tenants */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 32px; }
.tcard { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.tcard:hover { text-decoration: none; border-color: var(--text); }
.tcard[hidden] { display: none; }
.tcard > .i { color: var(--muted); margin-left: auto; }
.tcard__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-alt); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tcard__icon--lg { width: 72px; height: 72px; border-radius: 18px; }
.tcard__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tcard__body > span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.35; }
.tcard__cat { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.dir__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 24px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--bg-alt); border-radius: 12px; padding: 0 14px; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--text); height: 48px; min-width: 0; }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--link); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; min-height: 40px; padding: 0 16px; border-radius: 980px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }

/* Tenant page */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.tenant__head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 40px; }
.tenant__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.tenant__sec { padding: 28px 0; border-top: 1px solid var(--line); }
.tenant__sec h2 { font-size: 1.3rem; }
.ticks, .contact__list, .loc__list { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.ticks .i { color: var(--accent); }
.draft { background: #fff4e5; color: #8a4b00; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .9rem; }
@media (max-width: 540px) { .tenant__head { flex-direction: column; gap: 16px; } }

/* Location */
.loc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.loc__list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.loc__list li:first-child { border-top: 1px solid var(--line); }
.loc__list .i { color: var(--accent); margin-top: 2px; }
.loc__list h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.loc__list p { margin: 0; color: var(--muted); }
.loc__list + .link { margin-top: 16px; }
.loc__media { display: grid; gap: 16px; }
.loc__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.loc__map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); background: var(--line); }
@media (max-width: 860px) { .loc { grid-template-columns: 1fr; } }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 22px 0; min-height: 44px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.125rem; }
.faq__item summary .i { color: var(--muted); transition: transform .25s var(--ease); }
.faq__item[open] summary .i { transform: rotate(180deg); }
.faq__item p { color: var(--muted); padding: 0 40px 22px 0; margin: 0; }

/* Contact & form */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__list li { padding: 8px 0; display: flex; align-items: center; gap: 12px; }
.contact__list a { display: inline-flex; align-items: center; gap: 12px; font-size: 1.0625rem; min-height: 44px; }
.contact__list .i { color: var(--accent); }
.form { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; transition: border-color .2s var(--ease); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #d70015; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--text); }
.check input[aria-invalid="true"] { outline: 2px solid #d70015; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form__status.ok { color: #1a7f37; }
.form__status.err { color: #d70015; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }

/* Prose / 404 */
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--text); }
.nf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 32px; }
.nf h2 { font-size: 1.4rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9rem; background: var(--bg-alt); }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__brand .logo { margin-bottom: 12px; }
.foot__brand p { color: var(--muted); }
.foot a { color: var(--text); }
.foot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }
@media (max-width: 700px) { .foot__in { grid-template-columns: 1fr; gap: 12px; } }

/* Motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
