/* RIAS design 3 — brand palette from live rias.lv
   #1f96c4 primary · #23a455 hover · #6ec1e4 light · #1bb0ce accent · #241b1b text · #54595f muted
   #000 / #222020 footer · #fafafa / #eaeaea / #c6c6c6 neutrals · Poppins + Raleway · square buttons */
:root {
	--d3-blue: #1f96c4; --d3-green: #23a455; --d3-light: #6ec1e4; --d3-teal: #1bb0ce;
	--d3-ink: #241b1b; --d3-muted: #54595f; --d3-bg: #fafafa; --d3-line: #eaeaea; --d3-grey: #c6c6c6;
	--d3-head: Poppins, "Helvetica Neue", Arial, sans-serif; --d3-body: Raleway, "Helvetica Neue", Arial, sans-serif;
	--rias-brown: #1f96c4; --rias-brown-d: #23a455; --rias-ink: #241b1b; --rias-line: #eaeaea; --rias-paper: #fafafa;
}
/* Base type */
body.rias-rebuild .rias-main, .rias-foot { font-family: var(--d3-body); color: var(--d3-ink); }
.rias-main p, .rias-main li, .rias-main td, .rias-main dd { font-family: var(--d3-body); font-size: 1.0625rem; line-height: 1.65; color: var(--d3-ink); }
.rias-main h1, .rias-main h2, .rias-main h3, .rias-main h4, .rias-hero h1, .rias-price h2, .rias-card h3, .rias-person h3 {
	font-family: var(--d3-head) !important; font-weight: 600 !important; letter-spacing: -.01em; color: var(--d3-ink);
}
.rias-main h1 { font-weight: 700 !important; }
.rias-section > .rias-wrap > h2:first-child { padding-left: 0 !important; border-left: 0 !important; }
.rias-section > .rias-wrap > h2:first-child::after, .rias-d3-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--d3-blue); margin-top: .75rem; }
.rias-main a:not(.rias-btn):not(.rias-card):not(.rias-price):not(.rias-work):not(.rias-filter):not(.rias-machine) { color: var(--d3-blue); }
.rias-main a:not(.rias-btn):hover { color: var(--d3-green); }
.rias-eyebrow { display: block; margin: 0 0 .6rem !important; font-family: var(--d3-head) !important; font-size: .8125rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--d3-blue) !important; }
.rias-hero .rias-eyebrow { color: var(--d3-light) !important; }
.rias-d3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.rias-d3-head h2 { margin: 0 !important; }
.rias-d3-head p { margin: .9rem 0 0; color: var(--d3-muted) !important; max-width: 62ch; }
/* Buttons (square) */
.rias-btn, a.rias-btn, button.rias-btn, .rias-form .wpcf7 input[type="submit"], .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .9rem 1.6rem !important; border: 2px solid var(--d3-blue) !important; border-radius: 0 !important;
	background: var(--d3-blue) !important; color: #fff !important; font-family: var(--d3-head) !important; font-weight: 600 !important;
	font-size: .95rem !important; line-height: 1.2; text-decoration: none !important; box-shadow: none !important; transform: none !important;
	transition: background .15s, border-color .15s, color .15s;
}
.rias-btn:hover, .rias-btn:focus, .rias-form .wpcf7 input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--d3-green) !important; border-color: var(--d3-green) !important; color: #fff !important; }
.rias-btn:focus-visible { outline: 2px solid var(--d3-teal); outline-offset: 2px; }
.rias-btn--ghost, a.rias-btn--ghost { background: transparent !important; color: var(--d3-blue) !important; }
.rias-btn--ghost:hover { background: var(--d3-blue) !important; border-color: var(--d3-blue) !important; color: #fff !important; }
.rias-hero .rias-btn--ghost, .rias-d3-cta .rias-btn--ghost { color: #fff !important; border-color: #fff !important; }
.rias-hero .rias-btn--ghost:hover, .rias-d3-cta .rias-btn--ghost:hover { background: #fff !important; color: var(--d3-ink) !important; border-color: #fff !important; }
.rias-btn--white { background: #fff !important; border-color: #fff !important; color: var(--d3-blue) !important; }
.rias-btn--sm { padding: .55rem 1rem !important; font-size: .85rem !important; }
/* Hero */
.rias-hero { min-height: 520px; align-items: center; }
.rias-hero::before { background: linear-gradient(230deg, #000000 44%, #6ec1e4 100%) !important; opacity: .72; }
.rias-hero .rias-wrap { padding: 4.5rem 0 4rem; }
.rias-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem) !important; line-height: 1.07 !important; max-width: 20ch; color: #fff !important; }
.rias-hero__lead, .rias-hero p { color: #eaeaea !important; font-size: 1.15rem !important; max-width: 56ch; }
.rias-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem !important; }
.rias-hero--short { min-height: 340px; }
.rias-hero--short .rias-wrap { padding: 3.5rem 0 3rem; }
@media (max-width: 767px) {
	.rias-hero { min-height: 440px; } .rias-hero--short { min-height: 250px; }
	.rias-hero .rias-wrap { padding: 3rem 0 2.5rem; }
	.rias-hero__lead, .rias-hero p { font-size: 1.02rem !important; }
}
/* Breadcrumbs */
.rias-crumbs { background: #fff; border-bottom: 1px solid var(--d3-line); }
.rias-crumbs ol { list-style: none; margin: 0 auto; padding: .8rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rias-crumbs li { margin: 0; font-family: var(--d3-head) !important; font-size: .85rem !important; color: var(--d3-muted) !important; line-height: 1.4 !important; }
.rias-crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--d3-grey); }
.rias-crumbs a { color: var(--d3-blue) !important; text-decoration: none; }
.rias-crumbs [aria-current] { color: var(--d3-ink) !important; font-weight: 600; }
/* Sections & cards */
.rias-section { padding: 5rem 0; }
.rias-section--tint, .rias-map { background: var(--d3-bg) !important; }
@media (max-width: 767px) { .rias-section { padding: 3.25rem 0; } }
.rias-card, .rias-price, .rias-person, .rias-machine, .rias-work { border: 1px solid var(--d3-line) !important; border-radius: 0 !important; background: #fff; box-shadow: none !important; transition: border-color .15s; }
.rias-card:hover, .rias-price:hover, .rias-machine:hover, .rias-work:hover { border-color: var(--d3-blue) !important; }
.rias-card img, .rias-price img, .rias-machine img, .rias-work img { border-radius: 0 !important; }
.rias-price__sum { font-family: var(--d3-head) !important; font-weight: 700 !important; font-size: 1.25rem !important; color: var(--d3-blue) !important; border-top: 1px solid var(--d3-line); }
/* CTA band */
.rias-d3-cta { background: var(--d3-blue); color: #fff; padding: 3rem 0; }
.rias-d3-cta .rias-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.rias-d3-cta h2 { margin: 0 0 .35rem !important; color: #fff !important; font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important; }
.rias-d3-cta h2::after { display: none !important; }
.rias-d3-cta p { margin: 0; color: #fff !important; opacity: .92; }
.rias-d3-cta__btns { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 767px) { .rias-d3-cta__btns, .rias-d3-cta__btns .rias-btn { width: 100%; } }
/* Header (Phlox markup) */
#top-header { background: #000 !important; border: 0 !important; }
#top-header, #top-header p, #top-header a, #top-header .aux-search-icon { color: var(--d3-grey) !important; font-family: var(--d3-head); font-size: .8rem; }
#site-header.site-header-section, #site-header .aux-wrapper { background: #fff !important; box-shadow: none !important; }
#site-header.site-header-section { border-bottom: 1px solid var(--d3-line) !important; }
#site-header .aux-menu-depth-0 > .aux-item-content { padding: 0 .7rem !important; }
#site-header .aux-menu-depth-0 > .aux-item-content .aux-menu-label { font-family: var(--d3-head) !important; font-weight: 500 !important; font-size: .82rem !important; letter-spacing: .02em; color: #000 !important; }
#site-header .aux-menu-depth-0.current-menu-item > .aux-item-content .aux-menu-label,
#site-header .aux-menu-depth-0 > .aux-item-content:hover .aux-menu-label { color: var(--d3-blue) !important; }
#site-header .aux-menu-depth-0.current-menu-item > .aux-item-content { box-shadow: inset 0 -3px 0 var(--d3-blue); }
html body #site-header a.rias-top-apply { background: var(--d3-blue) !important; border: 0 !important; border-radius: 0 !important; padding: .65rem 1.1rem !important; margin-left: .5rem; box-shadow: none !important; }
html body #site-header a.rias-top-apply .aux-menu-label { color: #fff !important; font-weight: 600 !important; }
html body #site-header a.rias-top-apply:hover { background: #187aa1 !important; color: #fff !important; }
@media (min-width: 768px) and (max-width: 1100px) {
	#site-header .aux-menu-depth-0 > .aux-item-content { padding: 0 .35rem !important; }
	#site-header .aux-menu-depth-0 > .aux-item-content .aux-menu-label { font-size: .72rem !important; }
}
.rias-fab { background: var(--d3-blue) !important; border-radius: 0 !important; font-family: var(--d3-head); }
.rias-fab:hover { background: var(--d3-green) !important; }
/* Footer */
.rias-foot { background: #000 !important; color: var(--d3-grey) !important; border-top: 3px solid var(--d3-teal) !important; padding: 4rem 0 0 !important; }
.rias-foot__grid { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; display: grid !important; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.rias-foot h2, .rias-foot h3 { font-family: var(--d3-head) !important; color: #fff !important; font-size: .95rem !important; font-weight: 600 !important; margin: 0 0 1rem !important; }
.rias-foot p + h2 { margin-top: 1.5rem !important; }
.rias-foot p, .rias-foot li { color: var(--d3-grey) !important; font-family: var(--d3-body); font-size: .95rem; line-height: 1.7; margin: 0 0 .7rem; }
.rias-foot ul { list-style: none; margin: 0; padding: 0; }
.rias-foot a { color: var(--d3-grey) !important; text-decoration: none; }
.rias-foot a:hover { color: #fff !important; }
.rias-foot a.rias-btn { color: #fff !important; }
.rias-foot__logo img { width: 104px !important; height: auto; background: #fff; padding: .5rem; display: block; }
.rias-foot__name { color: #fff !important; font-family: var(--d3-head) !important; font-weight: 600; margin-top: 1rem !important; }
.rias-foot__bar { background: #222020 !important; color: var(--d3-grey) !important; font-size: .85rem; padding: 1rem 0 !important; border: 0 !important; }
.rias-foot__bar .rias-wrap { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .rias-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rias-foot__grid { grid-template-columns: 1fr; gap: 1.75rem; } .rias-foot { padding-top: 3rem !important; } }
/* Home: facts strip */
.rias-kpi { background: #fff; border-bottom: 1px solid var(--d3-line); }
.rias-kpi__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rias-kpi__grid > div { padding: 1.75rem 1.5rem; border-left: 1px solid var(--d3-line); }
.rias-kpi__grid > div:first-child { border-left: 0; padding-left: 0; }
.rias-kpi b { display: block; font-family: var(--d3-head); font-size: 2rem; font-weight: 700; color: var(--d3-blue); line-height: 1.1; }
.rias-kpi span { display: block; margin-top: .3rem; font-size: .92rem; color: var(--d3-muted); }
@media (max-width: 767px) {
	.rias-kpi__grid { grid-template-columns: 1fr 1fr; }
	.rias-kpi__grid > div { padding: 1.1rem .9rem; border-left: 0; border-top: 1px solid var(--d3-line); }
	.rias-kpi__grid > div:nth-child(-n+2) { border-top: 0; }
	.rias-kpi__grid > div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--d3-line); }
	.rias-kpi b { font-size: 1.5rem; }
}
/* Home: photo service cards */
.rias-d3-services .rias-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.rias-d3-services .rias-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 !important; max-width: none; }
.rias-d3-services .rias-card h3 { margin: 1.1rem 1.25rem .4rem !important; font-size: 1.15rem !important; }
.rias-d3-services .rias-card p { margin: 0 1.25rem 1.25rem !important; color: var(--d3-muted) !important; font-size: .98rem; }
.rias-d3-services .rias-service .rias-btn { width: 100%; }
/* Machine card */
.rias-mcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--d3-line); transition: border-color .15s; min-width: 0; }
.rias-mcard:hover { border-color: var(--d3-blue); }
.rias-mcard__img { position: relative; display: block; overflow: hidden; }
.rias-mcard__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s; }
.rias-mcard:hover .rias-mcard__img img { transform: scale(1.03); }
.rias-mcard__tag { position: absolute; left: 0; top: 0; background: var(--d3-blue); color: #fff; font-family: var(--d3-head); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; }
.rias-mcard__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.rias-main .rias-mcard__title { margin: 0 0 .75rem !important; font-size: 1.2rem !important; line-height: 1.25; }
.rias-main .rias-mcard__title a { color: var(--d3-ink) !important; text-decoration: none; }
.rias-main .rias-mcard__title a:hover { color: var(--d3-blue) !important; }
.rias-mcard__spec { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 .75rem; font-size: .9rem; }
.rias-mcard__spec dt { color: var(--d3-muted); font-family: var(--d3-body); }
.rias-main .rias-mcard__spec dd { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.4; }
.rias-main .rias-mcard__text { margin: 0 0 1rem; font-size: .95rem; color: var(--d3-muted) !important; }
.rias-mcard__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--d3-line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.rias-mcard__price { font-family: var(--d3-head); font-weight: 700; font-size: 1.3rem; color: var(--d3-ink); }
/* Tehnikas noma: lead, filter chips, toolbar */
.rias-main .rias-lead { font-size: 1.15rem !important; color: var(--d3-muted) !important; max-width: 70ch; margin: 0 0 2rem; }
.rias-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.rias-chipf { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--d3-line); border-radius: 0; background: #fff; font-family: var(--d3-head); font-size: .85rem; font-weight: 500; color: var(--d3-ink); transition: border-color .15s, background .15s; }
.rias-chipf em { font-style: normal; font-size: .75rem; color: var(--d3-muted); background: var(--d3-bg); padding: .05rem .4rem; }
.rias-chipf:hover { border-color: var(--d3-blue); }
.rias-chipf.is-on { background: var(--d3-blue); border-color: var(--d3-blue); color: #fff; }
.rias-chipf.is-on em { background: rgba(255, 255, 255, .2); color: #fff; }
.rias-toolbar { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; margin-bottom: 1.5rem; border-top: 1px solid var(--d3-line); border-bottom: 1px solid var(--d3-line); font-family: var(--d3-head); font-size: .85rem; color: var(--d3-muted); }
.rias-mgrid .rias-mcard[hidden] { display: none; }
@media (max-width: 767px) {
	.rias-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -1rem; padding-bottom: .25rem; }
	.rias-chipf { flex: 0 0 auto; }
}
/* Machine page */
.rias-mpage__grid { display: grid !important; grid-template-columns: 1.25fr 1fr !important; gap: 3rem !important; align-items: start; }
.rias-mpage__info { border: 0 !important; padding: 0 !important; background: transparent !important; }
.rias-mpage__info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem) !important; margin: 0 0 .75rem !important; line-height: 1.15; }
.rias-mpage__year { color: var(--d3-muted); font-weight: 500; }
.rias-mpage__text { font-size: 1.1rem !important; color: var(--d3-muted) !important; }
.rias-mpage__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; }
.rias-mpage__thumbs { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: .5rem !important; margin-top: .5rem; }
.rias-mpage__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--d3-line); border-radius: 0 !important; }
.rias-mpage__thumbs a:hover img { border-color: var(--d3-blue); }
.rias-pricebox { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 4px solid var(--d3-blue); background: var(--d3-bg); }
.rias-pricebox span { font-family: var(--d3-head); color: var(--d3-muted); font-size: .9rem; }
.rias-pricebox b { font-family: var(--d3-head); font-size: 1.75rem; color: var(--d3-ink); }
.rias-spec { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.rias-spec th, .rias-spec td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--d3-line); font-size: .95rem !important; vertical-align: top; }
.rias-spec th { width: 45%; font-family: var(--d3-body); font-weight: 500; color: var(--d3-muted); }
.rias-spec td { font-weight: 600; }
.rias-mpage__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 .75rem !important; }
.rias-mpage__call { font-size: .9rem !important; color: var(--d3-muted) !important; }
@media (max-width: 900px) { .rias-mpage__grid { grid-template-columns: 1fr !important; gap: 1.75rem !important; } }
@media (max-width: 767px) { .rias-mpage__cta .rias-btn { width: 100%; } }
/* Square everything */
.rias-main [class*="rias-"], .rias-main [class*="rias-"] img, .rias-main figure, .rias-main iframe { border-radius: 0 !important; }
/* Spec table reset (Phlox table defaults) */
.rias-main table.rias-spec { border: 0 !important; background: transparent !important; }
.rias-main table.rias-spec th, .rias-main table.rias-spec td { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--d3-line) !important; padding: .7rem .5rem .7rem 0 !important; }
.rias-mcard__price--text { font-size: 1rem !important; color: var(--d3-muted) !important; }
/* Beramkravu piegāde */
.rias-main .rias-notice { margin: 0 0 2rem !important; padding: 1rem 1.25rem; border-left: 4px solid var(--d3-blue); background: var(--d3-bg); color: var(--d3-ink) !important; }
.rias-price--media { padding: 0 !important; overflow: hidden; }
.rias-price--media .rias-price__media { margin: 0 !important; }
.rias-price--media .rias-price__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rias-price--media h2 { margin: 1.1rem 1.25rem .5rem !important; font-size: 1.1rem !important; letter-spacing: .02em; }
.rias-price--media > p { margin: 0 1.25rem 1rem !important; font-size: .95rem !important; color: var(--d3-muted) !important; }
.rias-price__foot { margin: auto 1.25rem 1.25rem; padding-top: .9rem; border-top: 1px solid var(--d3-line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.rias-price__foot .rias-price__sum { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 1.1rem !important; }
.rias-tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--d3-line); }
.rias-main table.rias-ptable { width: 100%; border-collapse: collapse; border: 0 !important; margin: 0; min-width: 560px; }
.rias-main table.rias-ptable th { background: #000 !important; color: #fff !important; font-family: var(--d3-head); font-weight: 600; font-size: .85rem; text-align: left; padding: .8rem 1rem !important; border: 0 !important; }
.rias-main table.rias-ptable td { padding: .8rem 1rem !important; border: 0 !important; border-bottom: 1px solid var(--d3-line) !important; font-size: .95rem !important; vertical-align: top; background: #fff !important; }
.rias-main table.rias-ptable td:first-child { font-family: var(--d3-head); font-weight: 600; white-space: nowrap; }
.rias-main table.rias-ptable td:last-child { font-family: var(--d3-head); font-weight: 700; color: var(--d3-blue) !important; white-space: nowrap; }
/* Būvniecība: alternating jobs */
.rias-job { border: 0 !important; border-top: 1px solid var(--d3-line) !important; padding: 2.5rem 0 !important; gap: 3rem !important; background: transparent !important; }
.rias-job img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
/* Caurteku būvniecība: portrait culvert photo — keep the pipe mouth in frame (lower-middle). */
.rias-job img[src*="caurteku-buvnieciba-divas-caurules"] { object-position: center 60%; }
.rias-job h2 { font-size: 1.5rem !important; }
.rias-job h2::before { content: ""; display: block; width: 40px; height: 3px; background: var(--d3-blue); margin-bottom: .9rem; }
/* Biokube */
.rias-block { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--d3-line); }
.rias-tech ol, .rias-tech ul, .rias-why ul { padding-left: 0; list-style: none; }
.rias-why li, .rias-tech li { position: relative; padding: .5rem 0 .5rem 2rem !important; border-bottom: 1px solid var(--d3-line); }
.rias-why li::before, .rias-tech li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 12px; height: 12px; background: var(--d3-blue); }
/* Paveiktie darbi */
.rias-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.rias-main .rias-filters .rias-filter { margin: 0 !important; padding: .55rem .9rem !important; border: 1px solid var(--d3-line) !important; background: #fff !important; font-family: var(--d3-head); font-size: .85rem; font-weight: 500; color: var(--d3-ink) !important; }
.rias-main .rias-filters .rias-filter:hover { border-color: var(--d3-blue) !important; }
.rias-main .rias-filters .rias-filter.is-on { background: var(--d3-blue) !important; border-color: var(--d3-blue) !important; color: #fff !important; }
.rias-archives { display: none; }
.rias-work { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; }
.rias-work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin: 0 !important; transition: transform .25s; }
.rias-work:hover img { transform: scale(1.03); }
.rias-work h2 { order: 3; margin: .25rem 1.25rem 1.25rem !important; font-size: 1.05rem !important; line-height: 1.3; color: var(--d3-ink) !important; }
.rias-work p { order: 2; margin: 1rem 1.25rem 0 !important; font-family: var(--d3-head) !important; font-size: .72rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--d3-blue) !important; }
/* Kontakti */
.rias-contact-cards { border-top: 3px solid var(--d3-blue) !important; }
.rias-contact-card h2 { color: var(--d3-muted) !important; }
.rias-contact-link { font-family: var(--d3-head); font-weight: 600; font-size: 1.1rem; }
.rias-person { padding: 0 !important; overflow: hidden; }
.rias-person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.rias-person__body { padding: 1.25rem !important; }
.rias-person__role { font-family: var(--d3-head); font-size: .75rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--d3-blue) !important; }
.rias-contact--bottom .rias-facts { background: var(--d3-bg) !important; border: 0 !important; border-top: 3px solid var(--d3-blue) !important; }
/* Forms (CF7) */
.rias-form { border: 1px solid var(--d3-line) !important; background: #fff !important; }
.rias-form .wpcf7 input[type="text"], .rias-form .wpcf7 input[type="email"], .rias-form .wpcf7 input[type="tel"], .rias-form .wpcf7 textarea, .rias-form .wpcf7 select {
	border: 1px solid var(--d3-grey) !important; border-radius: 0 !important; background: #fff !important; font-family: var(--d3-body); font-size: 1rem; }
.rias-form .wpcf7 input:focus, .rias-form .wpcf7 textarea:focus { border-color: var(--d3-blue) !important; box-shadow: 0 0 0 3px rgba(31, 150, 196, .18) !important; outline: none; }
.rias-form label { font-family: var(--d3-head); font-weight: 500; font-size: .9rem; }
.rias-services label, .rias-form .rias-services label { border: 1px solid var(--d3-line) !important; background: #fff !important; font-family: var(--d3-head); }
.rias-services label:has(input:checked) { border-color: var(--d3-blue) !important; background: rgba(31, 150, 196, .06) !important; }
.rias-chip { background: var(--d3-bg) !important; border: 1px solid var(--d3-blue) !important; font-family: var(--d3-head); }
.wpcf7-not-valid { border-color: #b42318 !important; }
.wpcf7-response-output { border-radius: 0 !important; }
/* 404 */
.rias-404 { padding: 6rem 0; text-align: left; }
.rias-404__code { display: block; font-family: var(--d3-head); font-weight: 700; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--d3-blue); }
.rias-404 h1 { font-size: clamp(1.8rem, 3vw, 2.5rem) !important; margin: .5rem 0 1rem !important; }
.rias-404__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2rem 0; border-top: 1px solid var(--d3-line); }
.rias-404__links a { display: flex; justify-content: space-between; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--d3-line); font-family: var(--d3-head); font-weight: 600; color: var(--d3-ink) !important; text-decoration: none; }
.rias-404__links a:hover { color: var(--d3-blue) !important; }
.rias-404__btns { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 767px) { .rias-404 { padding: 3.5rem 0; } .rias-404__links { grid-template-columns: 1fr; } }

/* === Header Pieteikties: brand blue, white text, square (2026-10-24) === */
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply,
html body #site-header a.rias-top-apply {
	background: #1f96c4 !important; border: 2px solid #1f96c4 !important; border-radius: 0 !important;
	color: #fff !important; box-shadow: none !important; transition: background .15s, border-color .15s;
}
html body #site-header a.rias-top-apply .aux-menu-label,
html body #site-header a.rias-top-apply:hover .aux-menu-label,
html body #site-header a.rias-top-apply:focus-visible .aux-menu-label,
html body #site-header .aux-menu-depth-0 > a.rias-top-apply:hover .aux-menu-label { color: #fff !important; font-family: var(--d3-head) !important; font-weight: 600 !important; }
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply:hover,
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply:focus-visible,
html body #site-header a.rias-top-apply:hover,
html body #site-header a.rias-top-apply:focus-visible { background: #187aa1 !important; border-color: #187aa1 !important; color: #fff !important; }
html body #site-header a.rias-top-apply:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
html body #site-header li.rias-menu-apply.current-menu-item > a.rias-top-apply { box-shadow: none !important; }

/* === Homepage Google atsauksmes: white text on dark brand blue (2026-10-24) === */
.rias-main .rias-reviews, .rias-reviews { background: #13506b !important; color: #fff; }
.rias-reviews h2, .rias-main .rias-reviews h2, .rias-reviews p, .rias-main .rias-reviews p, .rias-reviews footer { color: #fff !important; }
.rias-reviews .rias-wrap > .rias-reviews__head h2::after { background: #fff; }
.rias-reviews .rias-review { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.28) !important; border-radius: 0 !important; color: #fff; }
.rias-reviews .rias-review__score, .rias-main .rias-reviews .rias-review__score { color: #fff !important; font-family: var(--d3-head); }
.rias-reviews .rias-review footer { color: rgba(255,255,255,.8) !important; }
.rias-reviews a.rias-btn--ghost, .rias-main .rias-reviews a.rias-btn--ghost { background: transparent !important; border-color: #fff !important; color: #fff !important; }
.rias-reviews a.rias-btn--ghost:hover, .rias-reviews a.rias-btn--ghost:focus-visible { background: #fff !important; border-color: #fff !important; color: #1f96c4 !important; }
.rias-reviews .rias-review footer a { color: #fff !important; text-decoration: underline; }
.rias-reviews .rias-review footer a:hover, .rias-reviews .rias-review footer a:focus-visible { text-decoration: none; }
.rias-reviews .rias-review__author, .rias-reviews .rias-review cite { font-style: normal; font-weight: 600; }

/* === Footer developer credit (2026-10-24) === */
.rias-foot__bar .rias-foot__credit { color: #8a8a8a; font-size: .78rem; }

/* === Audit fixes (2026-10-24) === */
/* 1. CTA band: white square button with blue text */
.rias-d3-cta a.rias-btn.rias-btn--white, .rias-main .rias-d3-cta a.rias-btn--white, a.rias-btn.rias-btn--white { background: #fff !important; border-color: #fff !important; color: #1f96c4 !important; border-radius: 0 !important; }
.rias-d3-cta a.rias-btn.rias-btn--white:hover, .rias-d3-cta a.rias-btn.rias-btn--white:focus-visible, a.rias-btn.rias-btn--white:hover { background: #241b1b !important; border-color: #241b1b !important; color: #fff !important; }
/* 2. Hero Google rating: accent line (site blue), no card, on the dark photo */
.rias-hero .rias-google,
.rias-hero a.rias-google,
.rias-main .rias-hero a.rias-google {
	background: transparent !important;
	color: #fff !important;
	box-shadow: none;
	border: 0;
	border-left: 3px solid #1f96c4;
	padding-left: .85rem;
}
.rias-hero .rias-google:hover,
.rias-hero .rias-google:focus,
.rias-hero a.rias-google:hover,
.rias-hero a.rias-google:focus,
.rias-main .rias-hero a.rias-google:hover {
	background: transparent !important;
	color: #fff !important;
	box-shadow: none;
}
.rias-hero .rias-google strong,
.rias-hero a.rias-google strong,
.rias-main .rias-hero a.rias-google strong,
a.rias-google strong,
.rias-hero .rias-google .rias-google__score,
.rias-hero a.rias-google .rias-google__score {
	color: #fff !important;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.rias-hero .rias-google__count,
.rias-hero a.rias-google .rias-google__count {
	color: #e8e8e8 !important;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.rias-hero .rias-google__sep { color: rgba(255, 255, 255, .7) !important; }

/* 3. Beramkravu price table: cards on mobile */
@media (max-width: 767px) {
	.rias-tablewrap { overflow: visible; border: 0; background: transparent; }
	.rias-main table.rias-ptable { min-width: 0; display: block; }
	.rias-main table.rias-ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.rias-main table.rias-ptable tbody { display: grid; gap: .75rem; }
	.rias-main table.rias-ptable tr { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--d3-line); background: #fff; }
	.rias-main table.rias-ptable td { display: block; border: 0 !important; padding: .75rem 1rem !important; }
	.rias-main table.rias-ptable td:first-child { grid-column: 1; white-space: normal; }
	.rias-main table.rias-ptable td:last-child { grid-column: 2; grid-row: 1; text-align: right; }
	.rias-main table.rias-ptable td:nth-child(2) { grid-column: 1 / -1; padding-top: 0 !important; color: var(--d3-muted); }
}
/* 4. Kontakti photos: same frame, cover */
.rias-person img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; object-position: center 22% !important; background: #fff; }
/* 5. Stray preload progress bar in the top bar */
#pagePreloadProgressbar { display: none !important; }
/* 6. Footer work hours on one line */
.rias-foot__hours { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 561px) { .rias-foot__hours { white-space: normal; } }
/* 7. Tehnikas noma filters wrap on mobile */
@media (max-width: 767px) {
	.rias-chips { flex-wrap: wrap !important; overflow-x: visible !important; margin-right: 0 !important; gap: .5rem; }
}

/* === Header Pieteikties: white default, blue hover (2026-10-24) === */
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply,
html body #site-header li.rias-menu-apply > a.rias-top-apply { background: #fff !important; color: #1f96c4 !important; border: 1px solid #1f96c4 !important; border-radius: 0 !important; box-shadow: none !important; }
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply .aux-menu-label,
html body #site-header li.rias-menu-apply > a.rias-top-apply .aux-menu-label { color: #1f96c4 !important; }
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply:hover,
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply:focus-visible,
html body #site-header li.rias-menu-apply > a.rias-top-apply:hover,
html body #site-header li.rias-menu-apply > a.rias-top-apply:focus-visible { background: #1f96c4 !important; border-color: #1f96c4 !important; color: #fff !important; }
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply:hover .aux-menu-label,
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply:focus-visible .aux-menu-label,
html body #site-header li.rias-menu-apply > a.rias-top-apply:hover .aux-menu-label,
html body #site-header li.rias-menu-apply > a.rias-top-apply:focus-visible .aux-menu-label { color: #fff !important; }
html body #site-header li.rias-menu-apply > a.rias-top-apply:focus-visible { outline: 2px solid #187aa1 !important; outline-offset: 2px !important; }

/* Phone menu: header links are 85px tall. In the opened menu that leaves a tall gap above Pieteikties. */
@media (max-width: 767px) {
	html body #site-header .aux-toggle-menu-bar .aux-menu-depth-0:not(.rias-menu-apply) > .aux-item-content,
	html body .aux-fs-popup .aux-menu-depth-0:not(.rias-menu-apply) > .aux-item-content {
		height: auto !important;
		min-height: 0 !important;
		display: block !important;
		padding: .7rem 0 !important;
		line-height: 1.3 !important;
	}
	html body #site-header .aux-toggle-menu-bar .aux-master-menu,
	html body .aux-fs-popup .aux-master-menu,
	html body #site-header .aux-toggle-menu-bar .aux-menu-depth-0,
	html body .aux-fs-popup .aux-menu-depth-0 {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}
	html body #site-header li.rias-menu-apply,
	html body .aux-toggle-menu-bar li.rias-menu-apply,
	html body .aux-fs-popup li.rias-menu-apply {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		float: none !important;
		margin: .15rem 0 .6rem !important;
		padding: 0 !important;
		box-sizing: border-box !important;
	}
	html body #site-header li.rias-menu-apply > a.rias-top-apply,
	html body .aux-toggle-menu-bar li.rias-menu-apply > a.rias-top-apply,
	html body .aux-fs-popup li.rias-menu-apply > a.rias-top-apply {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		box-sizing: border-box !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: .7rem 1rem !important;
		line-height: 1.2 !important;
	}
	html body #site-header li.rias-menu-apply > a.rias-top-apply .aux-menu-label {
		display: inline !important;
		padding: 0 !important;
		line-height: 1.2 !important;
	}
}

/* === Performance: hero as real <img> (2026-10-25) === */
.rias-hero { overflow: hidden; isolation: isolate; }
.rias-hero > img.rias-hero__img { position: absolute; inset: 0; z-index: -2; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center; margin: 0; border-radius: 0 !important; }
.rias-hero::before { z-index: -1; }

/* === Client fixes 2026-10: blue top bar (#187aa1 keeps white text at AA contrast), Instagram + TikTok === */
html body #top-header { background: #187aa1 !important; }
html body #top-header, html body #top-header p, html body #top-header a, html body #top-header .aux-search-icon { color: #fff !important; }
html body #top-header .aux-social-list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
html body #top-header .aux-social-list li { margin: 0; list-style: none; }
html body #top-header a.rias-social { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff !important; opacity: .92; transition: background .15s, opacity .15s; }
html body #top-header a.rias-social:hover, html body #top-header a.rias-social:focus-visible { background: #1f96c4; opacity: 1; color: #fff !important; }
html body #top-header a.rias-social:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
html body #top-header .aux-search-icon:hover { color: #fff !important; opacity: .8; }
/* Partners (client list 2026-10): logos of mixed proportions, text fallback if an image is missing */
.rias-partners__list img { height: 44px; max-width: 150px; }
.rias-partners__word { display: inline-block; font-family: var(--d3-head); font-weight: 600; font-size: .95rem; color: var(--d3-muted); letter-spacing: .02em; }
@media (max-width: 767px) { .rias-partners__list img { height: 30px; max-width: 110px; } }
/* Homepage service cards: no full-width photos on small screens (client: images too big on mobile) */
@media (min-width: 721px) and (max-width: 980px) {
	.rias-cards--3.rias-d3-services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
	.rias-d3-services .rias-card img { aspect-ratio: 3 / 2; }
	.rias-d3-services .rias-card h3 { margin: .9rem 1rem .35rem !important; font-size: 1.05rem !important; }
	.rias-d3-services .rias-card p { margin: 0 1rem 1rem !important; font-size: .92rem !important; }
	.rias-d3-services .rias-service .rias-btn { padding: .75rem 1rem !important; }
}
@media (max-width: 720px) {
	.rias-d3-services { gap: 1.25rem; }
	.rias-d3-services .rias-card { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 1rem; align-items: start; padding: 0 !important; }
	.rias-d3-services .rias-card img { grid-row: 1 / span 2; width: 112px !important; height: 112px !important; aspect-ratio: auto; object-fit: cover; }
	.rias-d3-services .rias-card h3 { margin: .7rem .9rem .25rem 0 !important; font-size: 1.05rem !important; }
	.rias-d3-services .rias-card p { margin: 0 .9rem .7rem 0 !important; font-size: .92rem !important; line-height: 1.45 !important; }
	.rias-d3-services .rias-service { gap: .5rem; }
	.rias-d3-services .rias-service .rias-btn { padding: .7rem 1rem !important; }
}
.rias-contact-note { margin: .35rem 0 0 !important; font-size: .9rem !important; color: var(--d3-muted) !important; }

/* Kontakti: no visible table/card borders (client 2026-10) */
.rias-kontakti .rias-contact-cards { border: 0 !important; gap: 1.5rem !important; }
.rias-kontakti .rias-contact-card,
.rias-kontakti .rias-contact-card + .rias-contact-card,
.rias-kontakti .rias-contact-card:last-child { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.rias-kontakti .rias-person,
.rias-kontakti .rias-contact--bottom .rias-facts,
.rias-kontakti .rias-form { border: 0 !important; box-shadow: none !important; }
.rias-kontakti .rias-form { background: var(--d3-bg) !important; }
.rias-kontakti .rias-facts__list dt, .rias-kontakti .rias-facts__list dd { border: 0 !important; }

/* Long descriptive / SEO texts: readable, below the main content (client 2026-10) */
.rias-main .rias-seo-text,
.rias-main .rias-seo p,
.rias-main .rias-job p {
	font-family: 'Raleway', sans-serif !important;
	font-size: 1.0625rem !important;
	line-height: 1.75 !important;
	font-weight: 400 !important;
	color: #3d4247 !important;
	max-width: 72ch;
	margin: 0 0 1.1rem !important;
}
.rias-main .rias-seo-text--after { margin-top: 2.5rem !important; }
.rias-main .rias-seo h2 { max-width: 72ch; }
@media (max-width: 720px) {
	.rias-main .rias-seo-text, .rias-main .rias-seo p, .rias-main .rias-job p { font-size: 1rem !important; line-height: 1.7 !important; }
	.rias-main .rias-seo-text--after { margin-top: 1.75rem !important; }
}

/* Search icon as inline SVG (the Phlox icon font is not loaded on rebuilt pages). */
.aux-search-icon.auxicon-search-4::before, .aux-submit-icon-container.auxicon-search-4::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: middle; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Pārdod (round 6) */
.rias-mcard__badge { position: absolute; right: 0; top: 0; background: var(--d3-ink); color: #fff; font-family: var(--d3-head); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; }
.rias-pricebox--sale { margin-top: -0.75rem; }
.rias-pricebox--sale b.is-text { font-size: 1.05rem; }
.rias-sale-tag { display: inline-block; font-style: normal; background: var(--d3-ink); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .45rem; margin-right: .4rem; vertical-align: middle; }
.rias-btn--dark, a.rias-btn--dark { background: var(--d3-ink) !important; border-color: var(--d3-ink) !important; color: #fff !important; }
.rias-btn--dark:hover { background: var(--d3-blue) !important; border-color: var(--d3-blue) !important; }
.rias-empty { text-align: center; padding: 2.5rem 1.5rem; max-width: 760px; margin: 0 auto; }
.rias-main .rias-empty h2 { font-size: 1.4rem !important; margin: 0 0 .75rem !important; }
.rias-empty__btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.5rem 0 0; }
/* Round 14: machine photo carousel (scroll-snap = swipe on touch; arrows + thumbs via tiny inline JS) */
.rias-car { position: relative; }
.rias-car__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rias-car__track::-webkit-scrollbar { display: none; }
.rias-car__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0 !important; }
.rias-car__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 0; background: rgba(255,255,255,.92); color: #1f96c4; font: 600 2rem/1 Poppins, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.rias-car__btn:hover, .rias-car__btn:focus-visible { background: #1f96c4; color: #fff; }
.rias-car__btn[hidden] { display: none; }
.rias-car__btn--prev { left: .6rem; }
.rias-car__btn--next { right: .6rem; }
.rias-car__count { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.6); color: #fff; font-size: .85rem; padding: .15rem .5rem; }
.rias-mpage__thumbs a.is-active img { border-color: #1f96c4; outline: 2px solid #1f96c4; outline-offset: -2px; }
@media (max-width: 767px) { .rias-car__btn { width: 38px; height: 38px; font-size: 1.6rem; } }
/* Round 14: smaller contact portraits (photo left, 120px square) */
.rias-kontakti .rias-person { display: grid !important; grid-template-columns: 120px 1fr; align-items: center; }
.rias-kontakti .rias-person img { width: 120px !important; height: 120px !important; aspect-ratio: 1 / 1 !important; }
.rias-kontakti .rias-person__body { padding: 1rem 1.1rem !important; min-width: 0; }
.rias-kontakti .rias-person__body p { margin: .2rem 0 !important; overflow-wrap: anywhere; }
.rias-kontakti .rias-person__role { overflow-wrap: normal !important; word-break: normal !important; hyphens: none !important; }
@media (max-width: 400px) { .rias-kontakti .rias-person { grid-template-columns: 96px 1fr; } .rias-kontakti .rias-person img { width: 96px !important; height: 96px !important; } }
/* Round 16b: partner logos always in one row (equal-width cells, logos scale down); 3+3 grid on phones */
.rias-partners .rias-wrap { flex-wrap: nowrap; }
.rias-partners__list { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: clamp(.75rem, 2vw, 2.5rem); min-width: 0; }
.rias-partners__list li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; align-items: center; }
.rias-partners__list img { height: auto; max-height: 44px; width: auto; max-width: 100%; }
@media (max-width: 1199px) {
	.rias-partners .rias-wrap { display: block; }
	.rias-partners__label { margin: 0 0 var(--rias-s3); text-align: center; }
	.rias-partners__list img { max-height: 38px; }
}
@media (max-width: 599px) {
	.rias-partners__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 1.25rem; }
	.rias-partners__list img { max-height: 34px; }
}
/* Round 16f/16g/16l: split hero (.rias-hero--split) on desktop — blurred full-width copy of the photo (--hero-bg)
   under the brand overlay, sharp photo on the right blending into it, text on the left.
   --contain shows the whole photo uncropped (Paveiktie darbi); on mobile it sits sharp under the text. */
.rias-hero--split::after { content: ""; position: absolute; inset: -90px; z-index: -3; pointer-events: none; background: var(--hero-bg) center / cover no-repeat; filter: blur(48px) saturate(1.1); }
.rias-hero--split { background: #24343b; }
@media (min-width: 1024px) {
	.rias-hero--split, .rias-hero--split.rias-hero--short { min-height: 560px; }
	.rias-hero--split > img.rias-hero__img { left: auto; right: 0; width: 62% !important; object-position: center 55%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
	.rias-hero--split::before { background: linear-gradient(90deg, rgba(0,0,0,.62) 0, rgba(0,0,0,.5) 38%, rgba(0,0,0,.12) 70%, rgba(0,0,0,.04) 100%), linear-gradient(230deg, transparent 50%, rgba(110,193,228,.5) 100%) !important; opacity: 1; }
	.rias-hero--contain > img.rias-hero__img { width: auto !important; aspect-ratio: 4 / 3; max-width: 72%; object-fit: cover; object-position: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
}
@media (min-width: 1600px) {
	.rias-hero--split, .rias-hero--split.rias-hero--short { min-height: 640px; }
	.rias-hero--split > img.rias-hero__img { width: 56% !important; }
	.rias-hero--contain > img.rias-hero__img { width: auto !important; }
}
@media (max-width: 1023px) {
	.rias-hero--split:not(.rias-hero--contain)::after { display: none; }
	.rias-hero--contain { flex-direction: column; align-items: stretch; }
	.rias-hero--contain > img.rias-hero__img { position: relative; inset: auto; order: 2; z-index: 0; height: auto !important; aspect-ratio: 4 / 3; object-fit: contain; }
}
/* Round 16m: lower Paveiktie darbi hero (--contain) — whole photo stays visible, just smaller. */
@media (min-width: 1024px) {
	.rias-hero--split.rias-hero--contain { min-height: 420px; }
}
@media (min-width: 1600px) {
	.rias-hero--split.rias-hero--contain { min-height: 460px; }
}
@media (max-width: 1023px) {
	.rias-hero--split.rias-hero--contain { min-height: 0; }
	.rias-hero--contain .rias-wrap { padding: 2rem 0 1.5rem; }
	.rias-hero--contain > img.rias-hero__img { align-self: center; width: auto !important; max-width: 100%; height: 288px !important; margin-bottom: 1rem; }
}
@media (max-width: 599px) {
	.rias-hero--contain .rias-wrap { padding: 1.5rem 0 1rem; }
	.rias-hero--contain > img.rias-hero__img { height: 180px !important; margin-bottom: .75rem; }
}
/* Round 16o: --contain heroes (Būvniecība, Paveiktie darbi) show the photo across the full width — no blur,
   only a soft left-side gradient behind the text. Phones: text band on top, full-width photo below. */
.rias-hero--contain { --hero-pos: center 34%; }
.page-id-27 .rias-hero--contain { --hero-pos: center 42%; }
.rias-hero--split.rias-hero--contain::after { display: none; }
@media (min-width: 600px) {
	.rias-hero--split.rias-hero--contain { min-height: 420px; flex-direction: row; align-items: center; }
	.rias-hero--contain > img.rias-hero__img { position: absolute; inset: 0; order: 0; z-index: -2; width: 100% !important; max-width: none; height: 100% !important; aspect-ratio: auto; object-fit: cover; object-position: var(--hero-pos); -webkit-mask-image: none; mask-image: none; margin: 0; align-self: auto; }
	.rias-hero--split.rias-hero--contain::before { background: linear-gradient(90deg, rgba(0,0,0,.55) 0, rgba(0,0,0,.32) 25%, rgba(0,0,0,0) 45%) !important; opacity: 1; }
	.rias-hero--contain .rias-wrap { padding: 3rem 0 2.5rem; }
	.rias-hero--contain h1, .rias-hero--contain .rias-hero__lead, .rias-hero--contain .rias-eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.rias-hero--split.rias-hero--contain::before { background: linear-gradient(90deg, rgba(0,0,0,.6) 0, rgba(0,0,0,.35) 50%, rgba(0,0,0,.08) 85%) !important; }
}
@media (min-width: 1600px) {
	.rias-hero--split.rias-hero--contain { min-height: 460px; }
}
@media (max-width: 599px) {
	.rias-hero--split.rias-hero--contain::before { background: #24343b !important; opacity: 1; }
	.rias-hero--contain > img.rias-hero__img { width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; align-self: stretch; margin: 0; }
}

/* r20/r22 Kontakti: white portraits; roles break only after slash (<wbr>), never mid-word */
.rias-kontakti .rias-person, .rias-kontakti .rias-person img { background: #fff !important; }
.rias-kontakti .rias-person {
	display: grid !important;
	grid-template-columns: 120px minmax(0, 1fr) !important;
	align-items: center !important;
	column-gap: 0 !important;
}
.rias-kontakti .rias-person img {
	width: 120px !important;
	height: 120px !important;
	max-width: 120px !important;
	margin: 0 !important;
	justify-self: start;
}
.rias-kontakti .rias-person__body { min-width: 0 !important; }
.rias-kontakti .rias-person__role {
	overflow-wrap: normal !important;
	word-break: normal !important;
	hyphens: none !important;
	line-height: 1.35 !important;
}
/* 3 tidy columns from 1024; 2 columns on tablet so cards stay photo+text side by side */
@media (min-width: 1024px) {
	.rias-kontakti .rias-people { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1023px) and (min-width: 768px) {
	.rias-kontakti .rias-people { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 767px) {
	.rias-kontakti .rias-person { grid-template-columns: 110px minmax(0, 1fr) !important; column-gap: 1rem !important; }
	.rias-kontakti .rias-person img { width: 110px !important; height: 110px !important; max-width: 110px !important; }
	.rias-kontakti .rias-person__body { min-width: 0 !important; }
	.rias-kontakti .rias-person__role {
		/* Keep full role slightly wider than the column so it wraps at <wbr> after / */
		font-size: .72rem !important;
		letter-spacing: .06em !important;
		overflow-wrap: normal !important;
		word-break: normal !important;
		hyphens: none !important;
	}
}
@media (max-width: 400px) {
	.rias-kontakti .rias-person { grid-template-columns: 96px minmax(0, 1fr) !important; }
	.rias-kontakti .rias-person img { width: 96px !important; height: 96px !important; max-width: 96px !important; }
	.rias-kontakti .rias-person__role { font-size: .7rem !important; letter-spacing: .05em !important; }
}

/* Homepage photo: edge-to-edge artwork, with one continuous neutral text gradient. */
.rias-hero.rias-hero--home-photo { min-height: clamp(560px, 48vw, 760px); }
.rias-hero--home-photo::after { display: none; }
.rias-hero--home-photo > img.rias-hero__img {
	position: absolute; inset: 0; width: 100% !important; max-width: none;
	height: 100% !important; object-fit: cover; object-position: center 72%;
	-webkit-mask-image: none; mask-image: none;
}
.rias-hero.rias-hero--home-photo::before {
	background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.18)), linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.42) 28%, rgba(0,0,0,.16) 52%, transparent 78%) !important;
	opacity: 1;
}
.rias-hero--home-photo h1, .rias-hero--home-photo p, .rias-hero--home-photo .rias-eyebrow { text-shadow: 0 2px 8px rgba(0,0,0,.4); }
@media (min-width: 600px) and (max-width: 1023px) {
	.rias-hero.rias-hero--home-photo { min-height: 560px; }
	.rias-hero--home-photo > img.rias-hero__img { object-position: 70% 72%; }
}
@media (max-width: 599px) {
	/* Keep the original frame; move only the photo layer down by 135px.
	   The same photo behind the feathered top prevents an empty strip. */
	.rias-hero.rias-hero--home-photo { min-height: 620px; align-items: flex-start; overflow: hidden; background: url("images/home-hero/home-hero-960.webp") 74% 60% / auto 155% no-repeat; }
	.rias-hero--home-photo > img.rias-hero__img { transform: translateY(135px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 220px); mask-image: linear-gradient(to bottom, transparent, #000 220px); }
	.rias-hero--home-photo > img.rias-hero__img { object-position: 74% center; }
	.rias-hero--home-photo .rias-wrap { padding: 2.5rem 0 10rem; }
	.rias-hero.rias-hero--home-photo::before { background: linear-gradient(180deg, rgba(32,29,24,.58), rgba(32,29,24,.52) 48%, rgba(0,0,0,.12) 82%) !important; }
}

/* Rental title photo: a slightly taller window reveals more scene without side gaps. */
.rias-hero.rias-hero--rental-photo { min-height: clamp(380px, 32vw, 480px); }
.rias-hero--rental-photo > img.rias-hero__img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 40%; transform: none; }
@media (max-width: 767px) {
	.rias-hero.rias-hero--rental-photo { min-height: 280px; aspect-ratio: 4 / 3; }
	.rias-hero--rental-photo > img.rias-hero__img { object-position: center 55%; }
}

/* Construction photo: keep roller and hauler inside the desktop crop. */
.rias-hero--construction-photo { --hero-pos: center 55%; }

/* Construction hero only: stronger behind white copy, softer across the photo. */
.rias-hero.rias-hero--construction-photo::before {
	background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.3) 78%) !important;
	opacity: 1;
}
@media (max-width: 599px) {
	/* On phones the existing layout puts the uncropped photo below the text. */
	.rias-hero.rias-hero--construction-photo::before { background: rgba(0,0,0,.2) !important; }
	.rias-hero.rias-hero--construction-photo > img.rias-hero__img { filter: brightness(.8); }
}

/* Approved sale-page framing: modestly taller desktop window, no image magnification. */
@media (min-width: 768px) {
	.rias-hero.rias-hero--sale-photo { min-height: clamp(440px, 39vw, 560px); }
}

/* Portfolio gallery controls: neutralize Phlox's global 20px/35px button padding. */
.rias-lb button {
	display: grid; place-items: center; box-sizing: border-box;
	width: 48px; height: 48px; min-width: 48px; min-height: 48px;
	padding: 0 !important; margin: 0 !important; line-height: 1;
	border: 0; border-radius: 0; appearance: none;
	background: rgba(255,255,255,.16); color: #fff;
}
.rias-lb button svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.rias-lb button:hover { background: #1f96c4; }
.rias-lb button:focus-visible { background: #1f96c4; outline: 3px solid #fff; outline-offset: 3px; }
/* This button inherited blue ghost text over the stronger button.rias-btn blue fill. */
.rias-pgal__more button[data-rias-more] { background: #187aa1 !important; border-color: #187aa1 !important; color: #fff !important; }
.rias-pgal__more button[data-rias-more]:hover,
.rias-pgal__more button[data-rias-more]:focus-visible { background: #126180 !important; border-color: #126180 !important; color: #fff !important; }
.rias-pgal__more button[data-rias-more]:focus-visible { outline: 3px solid #187aa1; outline-offset: 3px; }

/* Approved mobile overlay only for construction25 and completed works27. */
@media (max-width: 599px) {
	.page-id-25 .rias-hero--split.rias-hero--contain,
	.page-id-27 .rias-hero--split.rias-hero--contain {
		min-height: 250px; flex-direction: row; align-items: center;
	}
	.page-id-25 .rias-hero--contain > img.rias-hero__img,
	.page-id-27 .rias-hero--contain > img.rias-hero__img {
		position: absolute; inset: 0; order: 0; z-index: -2;
		width: 100% !important; max-width: none; height: 100% !important;
		aspect-ratio: auto; object-fit: cover; margin: 0; align-self: auto;
		-webkit-mask-image: none; mask-image: none; filter: none;
	}
	.page-id-25 .rias-hero--contain > img.rias-hero__img { object-position: 40% center; }
	.page-id-27 .rias-hero--contain > img.rias-hero__img { object-position: 62% center; }
	.page-id-25 .rias-hero--split.rias-hero--contain::before,
	.page-id-27 .rias-hero--split.rias-hero--contain::before {
		background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.48) 48%, rgba(0,0,0,.2)) !important;
		opacity: 1;
	}
	.page-id-25 .rias-hero--contain .rias-wrap,
	.page-id-27 .rias-hero--contain .rias-wrap { padding: 3rem 0 2.5rem; }
	.page-id-25 .rias-hero--contain h1, .page-id-25 .rias-hero--contain p,
	.page-id-27 .rias-hero--contain h1, .page-id-27 .rias-hero--contain p { text-shadow: 0 2px 8px rgba(0,0,0,.45); }
}



/* CF7 success: animated check + thank-you, fields hidden. Message text stays in CF7. */
.rias-form:has(form.wpcf7-form.sent) > h2,
.rias-form:has(form.wpcf7-form.sent) > .rias-form__intro,
.rias-form--sent > h2,
.rias-form--sent > .rias-form__intro { display: none !important; }
.rias-form form.wpcf7-form.sent > *:not(.wpcf7-response-output):not(.screen-reader-response):not(.wpcf7-screen-reader-response):not(.rias-form-success__mark):not(.rias-form-success__dest) {
	display: none !important;
}
.rias-form form.wpcf7-form.sent {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 2.75rem 1.25rem 2.5rem; min-height: 16rem;
}
.rias-form-success__mark {
	position: relative; width: 4.5rem; height: 4.5rem; margin: 0 0 1.15rem; flex: 0 0 auto;
}
.rias-form-success__pulse,
.rias-main .rias-form-success__pulse {
	position: absolute; inset: -8px; border-radius: 50% !important;
	border: 2px solid var(--d3-blue); opacity: 0; pointer-events: none;
}
.rias-form-success__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rias-form-success__circle { fill: var(--d3-blue); transform-origin: 32px 32px; transform-box: fill-box; }
.rias-form-success__check {
	fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 42; stroke-dashoffset: 42;
}
.rias-form form.wpcf7-form.sent .rias-form-success__mark--run .rias-form-success__circle,
.rias-form form.wpcf7-form.sent .rias-form-success__circle {
	animation: rias-mark-pop .45s cubic-bezier(.22, 1.35, .36, 1) both;
}
.rias-form form.wpcf7-form.sent .rias-form-success__mark--run .rias-form-success__check,
.rias-form form.wpcf7-form.sent .rias-form-success__check {
	animation: rias-mark-draw .5s ease-out .28s both;
}
.rias-form form.wpcf7-form.sent .rias-form-success__mark--run .rias-form-success__pulse,
.rias-form form.wpcf7-form.sent .rias-form-success__pulse {
	animation: rias-mark-pulse .85s ease-out .12s both;
}
.rias-form form.wpcf7-form.sent .wpcf7-response-output {
	display: block !important; visibility: visible !important;
	border: 0 !important; margin: 0 !important; padding: 0 !important;
	background: transparent !important; box-shadow: none !important;
	color: var(--d3-ink) !important; font-family: var(--d3-head) !important;
	font-weight: 600 !important; font-size: 1.25rem !important; line-height: 1.4 !important;
	max-width: 22rem; text-align: center;
	animation: rias-form-sent-in .35s ease-out .4s both;
}
.rias-form-success__dest {
	margin: 1rem 0 0; max-width: 24rem; text-align: center;
	font-family: var(--d3-body); font-size: .98rem; line-height: 1.55; color: var(--d3-muted);
	animation: rias-form-sent-in .35s ease-out .7s both;
}
.rias-form-success__dest p { margin: .15rem 0 0; }
.rias-form-success__dest p:first-child { margin-top: 0; }
.rias-form-success__dest span {
	display: block; margin-top: .15rem;
	font-family: var(--d3-head); font-weight: 600; color: var(--d3-ink);
	overflow-wrap: anywhere;
}
@keyframes rias-mark-pop {
	0% { transform: scale(.55); }
	70% { transform: scale(1.08); }
	100% { transform: scale(1); }
}
@keyframes rias-mark-draw {
	to { stroke-dashoffset: 0; }
}
@keyframes rias-mark-pulse {
	0% { transform: scale(.85); opacity: .4; }
	100% { transform: scale(1.5); opacity: 0; }
}
@keyframes rias-form-sent-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rias-form form.wpcf7-form.sent .rias-form-success__circle,
	.rias-form form.wpcf7-form.sent .rias-form-success__check,
	.rias-form form.wpcf7-form.sent .rias-form-success__pulse,
	.rias-form form.wpcf7-form.sent .wpcf7-response-output,
	.rias-form form.wpcf7-form.sent .rias-form-success__dest { animation: none !important; }
	.rias-form form.wpcf7-form.sent .rias-form-success__check { stroke-dashoffset: 0; }
	.rias-form form.wpcf7-form.sent .rias-form-success__pulse { display: none; }
}
@media (max-width: 767px) {
	.rias-form form.wpcf7-form.sent { padding: 2.25rem 1rem 2rem; min-height: 14rem; }
	.rias-form form.wpcf7-form.sent .wpcf7-response-output { font-size: 1.1rem !important; }
	.rias-form-success__mark { width: 4rem; height: 4rem; margin-bottom: 1rem; }
	.rias-form-success__dest { font-size: .92rem; margin-top: .85rem; }
	.rias-form-success__dest span { font-size: .8rem; }
}

/* === QA fixes 2026-11-13 ===
   1) AA contrast: brand blue #1f96c4 is 3.4:1 on white, so small text and links
      use the darker accent #187aa1 (4.9:1 on white, 4.7:1 on #fafafa; same shade as
      the top bar). Buttons, bars, borders and backgrounds keep #1f96c4.
   2) Tablet header (768–1100 px): keep the Pieteikties button visible. */
:root { --d3-blue-text: #187aa1; }
.rias-main a:not(.rias-btn):not(.rias-card):not(.rias-price):not(.rias-work):not(.rias-filter):not(.rias-machine) { color: var(--d3-blue-text); }
.rias-eyebrow,
.rias-crumbs a,
.rias-price__sum,
.rias-main table.rias-ptable td:last-child,
.rias-work p,
.rias-person__role,
.rias-review__score,
.rias-btn--ghost, a.rias-btn--ghost,
.rias-filters a.is-active, .rias-filters .rias-filter.is-on { color: var(--d3-blue-text) !important; }
.rias-btn--white, a.rias-btn.rias-btn--white,
.rias-d3-cta a.rias-btn.rias-btn--white, .rias-main .rias-d3-cta a.rias-btn--white,
.rias-reviews a.rias-btn--ghost:hover, .rias-reviews a.rias-btn--ghost:focus-visible { color: var(--d3-blue-text) !important; }
.rias-contact-link, .rias-mpage__back a, .rias-project__cats a, .rias-faq__a a, .rias-chip, .rias-req, .rias-contact-card__icon { color: var(--d3-blue-text) !important; }
#site-header .aux-menu-depth-0.current-menu-item > .aux-item-content .aux-menu-label,
#site-header .aux-menu-depth-0 > .aux-item-content:hover .aux-menu-label { color: var(--d3-blue-text) !important; }
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply,
html body #site-header li.rias-menu-apply > a.rias-top-apply { color: var(--d3-blue-text) !important; border-color: var(--d3-blue-text) !important; }
html body #site-header .aux-master-menu > li.rias-menu-apply > a.aux-item-content.rias-top-apply .aux-menu-label,
html body #site-header li.rias-menu-apply > a.rias-top-apply .aux-menu-label { color: var(--d3-blue-text) !important; }
html body #site-header li.rias-menu-apply > a.rias-top-apply:hover .aux-menu-label,
html body #site-header li.rias-menu-apply > a.rias-top-apply:focus-visible .aux-menu-label { color: #fff !important; }
.rias-mcard__tag { background: var(--d3-blue-text); }
@media (min-width: 768px) and (max-width: 1100px) {
	html body #site-header li.rias-menu-apply { display: inline-block !important; }
	html body #site-header li.rias-menu-apply > a.rias-top-apply { padding: .5rem .7rem !important; margin-left: .35rem !important; }
	html body #site-header li.rias-menu-apply > a.rias-top-apply .aux-menu-label { font-size: .72rem !important; }
}

/* Round 17: SEO intros; longer Beramkravu H1 wraps on two lines in the short hero. */
.rias-hero--short h1 { max-width: 28ch; }
.rias-main p.rias-intro {
	margin: 0 0 1.75rem !important;
	max-width: 62ch;
	color: var(--d3-muted) !important;
	font-size: 1.05rem !important;
	line-height: 1.65 !important;
}
.rias-d3-head p a { font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
