/* Youston Residence — overrides on top of the Hartigova stylesheet */
.slide-first{background-image:url('/img/00-hero.webp')!important;background-position:center 40%}
.blogo{height:50px}
.rbrand .blogo{height:40px}
@media(max-width:760px){.rbrand .blogo{height:36px}}

/* story: two photos instead of the before/after slider */
.history .v38-stack{display:grid;gap:14px}
.history .v38-stack figure{margin:0}
.history .v38-stack img{aspect-ratio:3/2;object-fit:cover}

/* price list: yield column */
.ptable td.yc{white-space:nowrap}
.ptable td.yc b{display:block;color:var(--teal-d);font-weight:800}
.ptable td.yc small{display:block;font-size:11.5px;color:var(--grey);font-weight:500}
.ptable td.yc .ic{font-size:11.5px}
@media(max-width:760px){.ptable td.yc small{display:none}}

/* reviews: two cards, centred */
.v38-rec .recg{justify-content:center}
.v38-rec .rcard{max-width:520px}
.v38-rec .rcard blockquote{font-size:15.5px}

/* footer mark */
.bf-rule i img{height:30px}
.ptable td.ic-cell{white-space:nowrap}
.ptable td.ic-cell .ic{margin-right:6px}
.ptable tr.morerow td{text-align:center;padding:18px 12px;background:var(--cream)}
.ptable tr.morerow:hover td{background:var(--cream)}
.showall{font:inherit;font-weight:800;font-size:14px;color:#fff;background:var(--teal-d);border:none;border-radius:99px;padding:12px 26px;cursor:pointer}
.showall:hover{background:var(--teal)}
.ptable .icg{display:inline-flex;margin-top:0;vertical-align:middle}
@media(min-width:1101px){.types-grid{grid-template-columns:repeat(4,1fr);gap:18px}.types-grid .tcard .desc{font-size:14px}}
@media(min-width:961px) and (max-width:1100px){.types-grid{grid-template-columns:1fr 1fr}}
.dlang{white-space:nowrap}
html[lang=lv] .dmenu{gap:14px}
html[lang=lv] .dmenu a{font-size:13px}
@media(max-width:760px){.ptable .icg{display:none}.ptable td.ic-cell .ic{margin-right:0}}

/* ===== Palette "Concrete · Steel · Signal" — taken from the building =====
   graphite  #232326  facade window bands, kitchen fronts
   concrete  #ECE9E4 / #F5F3F0  polished concrete floors, white walls
   signal red #C8302B  the red entrance canopy on Valdemāra iela (primary CTA)
   beam violet #6E4AA0 the violet steel beams in kitchen, bar and cinema (brand accent)
   olive     #7A8634  the bar stools in the shared kitchen
   oak       #C69A55  oak/walnut panels and mustard cushions in the units           */
.hero h1 em{color:#F06A5C}
.bf-h2 em{color:#B49BDB}
.bf-formbox .qform button{background:var(--coral)!important;color:#fff!important}
.bf-formbox .qform button:hover{background:#A9241F!important}
.bf-formbox input:focus,.bf-formbox textarea:focus,.ctaband input:focus,.ctaband textarea:focus{border-color:#B49BDB}

/* ===== light header + anthracite fixed bar ===== */
nav#nav,nav#nav.solid{background:#F7F5F2;backdrop-filter:none;box-shadow:0 1px 0 #E2DED8}
nav#nav .dmenu a,nav#nav.solid .dmenu a{color:#1C1C1F;opacity:.88}
nav#nav .dmenu a:hover,nav#nav.solid .dmenu a:hover{color:#6E4AA0;opacity:1}
nav#nav .dlang,nav#nav.solid .dmenu .dlang,nav#nav .dlang a{color:#1C1C1F;opacity:.75}
nav#nav .dmenu .btn,nav#nav.solid .dmenu .btn{color:#fff!important;opacity:1}
.railbar,.railbar.solid{background:#F7F5F2!important;box-shadow:0 1px 0 #E2DED8!important;backdrop-filter:none!important}
.rbrand{background:transparent}
.rburger span{background:#1C1C1F!important}
.qfix{background:#2F3236!important;box-shadow:0 -1px 0 rgba(255,255,255,.06),0 -12px 30px -18px rgba(0,0,0,.55)!important;backdrop-filter:none!important}
.qfix input{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2)}

/* ===== hero: photo fills exactly the visible area between header and fixed bar; lighter shade ===== */
:root{--hdr:92px;--qf:72px}
@media(max-width:1080px){:root{--hdr:66px;--qf:114px}}
.hero{background:#2A2A2D}
.hero-slider{top:var(--hdr);bottom:var(--qf);inset:var(--hdr) 0 var(--qf) 0}
.slide-first{background-position:58% 42%!important}
.hero-shade,.hero .hero-shade{background:linear-gradient(180deg,rgba(22,22,24,0) 0%,rgba(22,22,24,0) 38%,rgba(22,22,24,.38) 66%,rgba(22,22,24,.74) 100%),linear-gradient(90deg,rgba(22,22,24,.28) 0%,rgba(22,22,24,0) 55%)!important}
.hero-in{padding-bottom:calc(var(--qf) + 34px)!important}
@media(max-width:760px){
  .hero-shade,.hero .hero-shade{background:linear-gradient(180deg,rgba(22,22,24,0) 0%,rgba(22,22,24,.1) 28%,rgba(22,22,24,.55) 55%,rgba(22,22,24,.82) 100%)!important}
  .hero-in{padding-bottom:calc(var(--qf) + 26px)!important}
}
@media(orientation:portrait){.slide-first{background-position:74% 50%!important}}
@media(orientation:portrait) and (max-width:600px){.slide-first{background-position:85% 50%!important}}

/* country-code picker in the fixed bar */
.telgrp .cc{position:relative;display:inline-flex;align-items:center;gap:5px;cursor:pointer;padding:0 8px 0 0;margin-right:2px;border-right:1px solid rgba(255,255,255,.22);height:24px;flex:0 0 auto}
.telgrp .ccv{font-weight:800;font-size:15px;color:#fff;white-space:nowrap}
.telgrp .cc::after{content:"";width:6px;height:6px;border-right:1.6px solid #E9C88E;border-bottom:1.6px solid #E9C88E;transform:rotate(45deg) translateY(-2px);margin-left:2px}
.telgrp .cc select{position:absolute;inset:-10px -4px;opacity:0;cursor:pointer;font-size:16px;width:auto;appearance:none;-webkit-appearance:none}
.telgrp .cc:focus-within{outline:2px solid #B49BDB;outline-offset:4px;border-radius:6px}
.telgrp input{padding-left:10px!important}
@media(max-width:760px){.telgrp .ccv{font-size:14px}}
.qfix .telgrp input{background:none!important;border:none!important}
