/*
  ancoris.eu — kopējie stili / общие стили
  LV: Viens CSS fails visām lapām (LV un RU). Krāsas — tikai no mainīgajiem :root.
  RU: Один CSS-файл для всех страниц (LV и RU). Цвета — только из переменных :root,
      чтобы оттенок меняли в одном месте, а не по всему файлу.
*/

/* ---------- Fonti: Manrope lokāli (bez Google serveriem — GDPR) ----------
   RU: шрифт лежит на нашем сервере — браузер посетителя не обращается к Google,
       поэтому не нужен cookie-баннер и нет передачи IP в США. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0a2c3d;        /* LV: zīmola tumši zilais (logo, baneris) / RU: фирменный тёмно-синий */
  --steel: #286f91;       /* LV: tērauda zils (no Tildas) / RU: стальной синий */
  --gold: #a77d3c;        /* LV: zelts no logo / RU: золото логотипа */
  --gold-text: #8a6428;   /* LV: tumšāks zelts mazam tekstam uz gaiša (kontrasts) / RU: для мелкого текста на светлом (контраст) */
  --bg: #f4f3f1;          /* LV: gaišais fons / RU: светлый фон */
  --white: #ffffff;
  --text: #0a2c3d;
  --dim: #5b666d;         /* LV: pieklusināts teksts / RU: приглушённый текст (контраст ≥ 4.5:1 на светлом) */
  --line: #deddda;
  --pad: clamp(16px, 5.5vw, 80px);   /* LV: sānu atkāpe visām sadaļām / RU: боковой отступ всех секций */
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--white); color: var(--text); font: 500 16px/1.55 "Manrope", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.kicker.gold { color: var(--gold-text); }
.h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.015em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--navy); transition: background .2s, color .2s; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--steel); border-color: var(--steel); }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* LV: vietas, kurām vēl nav klienta teksta — lai tās nepamanīti nenonāk publikā
   RU: места, где ещё нет текста заказчика — подсвечены, чтобы случайно не уйти в публикацию */
.todo { background: #fff3c4; outline: 1px dashed #c9a227; padding: 0 3px; }

/* ================= GALVENE / ШАПКА ================= */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header .wrap { height: 80px; display: flex; align-items: center; gap: 32px; }
.header .logo img { height: 34px; width: auto; }
/* LV: .phone margin-left:auto — tālrunis, izvēlne, valodas pie labās malas / RU: .phone margin-left:auto — телефон, меню, языки справа */
.nav { display: flex; gap: 30px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--steel); }
.nav-phone { display: none; }
.nav-lang { display: none; }   /* LV: valodas izvēlnē — tikai telefonā / RU: языки в меню — только на телефоне */   /* LV: tālrunis izvēlnē — tikai telefonā / RU: телефон в меню — только на телефоне */
.lang { display: flex; gap: 6px; font-weight: 700; font-size: 14px; }
.lang a, .lang span { padding: 4px 2px; }
.lang span[aria-current] { color: var(--navy); border-bottom: 2px solid var(--gold); }
.lang a { color: var(--dim); }
.lang a:hover { color: var(--navy); }
.phone { margin-left: auto; font-weight: 800; font-size: 15px; white-space: nowrap; }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.burger span { top: 21px; } .burger::before { top: 14px; } .burger::after { top: 28px; }
.header.open .burger span { opacity: 0; }
.header.open .burger::before { transform: translateY(7px) rotate(45deg); }
.header.open .burger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .header .wrap { gap: 16px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 80px; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); margin: 0; }
  .nav a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .header.open .nav { display: flex; }
  .phone { order: 2; margin-left: auto; }
  /* LV: telefonā valodu pārslēgs ir izvēlnē (hamburgerī) / RU: на телефоне переключатель языков — в меню-гамбургере */
  .header .wrap > .lang { display: none; }
  .header.open .nav-lang { display: flex; gap: 20px; padding: 16px var(--pad); border-top: 1px solid var(--line); font-weight: 700; }
  .nav-lang a { padding: 0; border: 0; color: var(--dim); }
  .nav-lang span[aria-current] { color: var(--navy); border-bottom: 2px solid var(--gold); }
  .burger { order: 4; margin-left: 0; }
}
@media (max-width: 520px) { .phone { display: none; } .burger { margin-left: auto; } .header.open .nav-phone { display: block; font-weight: 800; color: var(--steel); } }

/* ================= 1. EKRĀNS / ПЕРВЫЙ ЭКРАН ================= */
.hero { background: var(--bg); overflow: hidden; }   /* LV: joslas izbrauc no labās — bez sānu ritjoslas / RU: полосы въезжают справа — без горизонтального скролла */
.hero .wrap { height: min(700px, calc(100vh - 140px)); min-height: 500px; display: grid; grid-template-columns: minmax(420px, 34%) 1fr; padding-right: 0; }
.hero-text { align-self: center; padding-right: 24px; position: relative; z-index: 3; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 3.9vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 16px 0 18px; }
.hero .kicker { font-size: 15px; }
.hero .lead { font-size: 19px; color: var(--dim); }
.hero .btns { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .stats { margin-top: 48px; }
.hero .stats b { display: block; font-size: 22px; font-weight: 800; }
.hero .stats span { font-size: 13px; color: var(--dim); }

/* LV: joslu "rāmis": labajā pusē tāda pati atkāpe kā galvenē; apgriež tikai labo malu,
       pa kreisi atstāj vietu ēnai.
   RU: «рама» полос: справа тот же отступ, что в шапке; обрезаем только правый край,
       слева оставляем место для тени. */
.strips { position: relative; margin-right: var(--pad); clip-path: inset(0 0 0 -80px); }
.strip { position: absolute; top: 0; height: 100%; filter: drop-shadow(-6px 0 12px rgba(10, 44, 61, .3)); }
.strip.anim { transform: translateX(120%); }
.strip.anim.in { animation: slide-in var(--dur, 850ms) cubic-bezier(.16, .84, .3, 1) forwards; }
@keyframes slide-in { to { transform: translateX(0); } }
.shape { position: absolute; inset: 0; background: var(--navy); clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.shape img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* LV: kadrs 60px augstāks par joslu — apakša nogriezta, augša kā agrāk / RU: кадр на 60px выше полосы — низ обрезан, верх как раньше */
.hero .shape img { bottom: auto; height: calc(100% + 60px); }
.shape .tone { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease .15s; }
.strip.covered .tone { opacity: 1; }

@media (max-width: 860px) {
  .hero .wrap { height: auto; min-height: 0; grid-template-columns: 1fr; padding-right: var(--pad); }
  .hero-text { padding: 36px 0 28px; }
  .strips { height: calc(46vh - 60px); min-height: 220px; margin: 0 0 32px; }
}

/* ================= POSMI / ЭТАПЫ ================= */
.stages { background: var(--bg); padding: 72px 0 84px; }
.stages .h2 { margin-top: 12px; }
.stage-row { display: grid; grid-template-columns: repeat(11, 1fr); gap: 8px; margin-top: 32px; list-style: none; }
.stage figure { margin: 0; }
.stage .pic { aspect-ratio: 1; overflow: hidden; background: var(--line); }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.stage:hover img { transform: scale(1.06); }
.stage-row:hover .stage:not(:hover) img { filter: brightness(.82); }
.stage .d { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--gold-text); letter-spacing: .02em; }
.stage figcaption b { display: block; font-size: 13px; font-weight: 800; line-height: 1.2; margin-top: 2px; }
@media (max-width: 1020px) {
  /* LV: telefonā/planšetē josla ritinās ar pirkstu / RU: на телефоне лента листается пальцем */
  .stage-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .stage { flex: 0 0 120px; scroll-snap-align: start; }
}

/* ================= PAKALPOJUMI / УСЛУГИ ================= */
.services { padding: 96px 0; }
.services .h2 { max-width: 860px; margin-top: 12px; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
/* LV: grupu nosaukumi / RU: названия групп */
.svc-cols h3 { font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: .06em; color: var(--gold-text); text-transform: uppercase; margin-bottom: 8px; }
.svc { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc b { font-weight: 800; font-size: 18px; }
.svc p { font-size: 14.5px; color: var(--dim); }
@media (max-width: 860px) { .svc-cols { grid-template-columns: 1fr; gap: 40px; } .svc { grid-template-columns: 1fr; gap: 4px; } }

/* ================= PROJEKTI / ПРОЕКТЫ ================= */
.projects { background: var(--navy); color: #fff; padding: 96px 0 104px; }
.projects .kicker { color: var(--gold); }
.projects .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.projects .h2 { margin-top: 12px; }
.projects .all { color: var(--gold); font-weight: 700; white-space: nowrap; }
.projects .all:hover { color: #fff; }
.proj-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; list-style: none; }
.proj .pic { aspect-ratio: 3 / 4; overflow: hidden; background: #133b50; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.proj:hover img { transform: scale(1.04); }
.proj .bar { width: 32px; height: 3px; background: var(--gold); margin: 16px 0 10px; }
.proj .d { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.proj h3 { font-size: 18px; font-weight: 800; line-height: 1.25; margin-top: 4px; }
@media (max-width: 1020px) {
  .proj-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .proj { flex: 0 0 230px; scroll-snap-align: start; }
}

/* ================= PAR MUMS / О НАС ================= */
.about { background: var(--bg); padding: 104px 0; }
.about .wrap { display: grid; grid-template-columns: auto 1fr; gap: 80px; align-items: start; }
.about .year { font-weight: 800; font-size: clamp(96px, 11vw, 160px); line-height: .95; letter-spacing: -.04em; color: var(--gold); margin-top: 6px; }
.about .h2 { margin: 12px 0 20px; }
.about p { font-size: 17px; color: var(--dim); max-width: 760px; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 16px; } }

/* ================= VAKANCES / ВАКАНСИИ ================= */
/* LV: foto labajā pusē, virsū gradients no tumši zilā uz caurspīdīgu (bez redzamas robežas)
   RU: фото справа, поверх — градиент из тёмно-синего в прозрачный (без видимой границы) */
.jobs { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.jobs .photo { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.jobs .photo img { width: 100%; height: 100%; object-fit: cover; }
.jobs .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(10,44,61,.92) 14%, rgba(10,44,61,.7) 30%, rgba(10,44,61,.38) 50%, rgba(10,44,61,.12) 72%, rgba(10,44,61,0) 100%);
}
.jobs .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.jobs .kicker { color: rgba(255,255,255,.75); }
.jobs .h2 { max-width: 560px; margin: 14px 0 18px; }
.jobs p { max-width: 520px; color: rgba(255,255,255,.88); }
.jobs .btn { margin-top: 28px; background: #fff; color: var(--navy); border-color: #fff; }
.jobs .btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (max-width: 860px) {
  .jobs .photo { position: relative; width: 100%; height: 240px; }
  .jobs .photo::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(10,44,61,0) 60%); }
  .jobs .wrap { padding-top: 32px; padding-bottom: 64px; }
}

/* ================= KONTAKTI / КОНТАКТЫ ================= */
.contact { position: relative; background: var(--bg); padding: 72px 0; overflow: hidden; }
/* LV: rasējums tik tikko pamanāms (3%) / RU: чертёж едва заметен (3%) */
.contact::before, .page.draw::before { content: ""; position: absolute; inset: 0; background: url("../images/fons-rasejums.jpg") center / cover; opacity: .03; mix-blend-mode: multiply; pointer-events: none; }
/* LV: tas pats rasējuma fons 404 lapā / RU: тот же фон-чертёж на странице 404 */
.page.draw { position: relative; overflow: hidden; }
.page.draw .wrap { position: relative; }
.contact .wrap { position: relative; display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: start; }
.contact .h2 { margin: 12px 0 14px; font-size: clamp(28px, 2.6vw, 36px); }
.contact p { color: var(--dim); max-width: 460px; }
.contact dl { margin-top: 24px; display: grid; gap: 14px; }
.contact dt { font-size: 13px; color: var(--dim); }
.contact dd { font-size: 20px; font-weight: 800; }
.contact dd a:hover { color: var(--steel); }
.form { background: #fff; padding: 28px; display: grid; gap: 12px; border: 1px solid var(--line); }
.form label { font-size: 14px; font-weight: 700; display: grid; gap: 6px; }
.form input, .form textarea { font: inherit; font-weight: 500; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%; }
.form textarea { min-height: 88px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; background: #fff; }
.form .consent { display: flex; gap: 10px; font-size: 12.5px; font-weight: 500; color: var(--dim); line-height: 1.5; }
.form .consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form .consent a { color: var(--steel); text-decoration: underline; }
.form .note { font-size: 13px; color: var(--steel); }
.form .btn { background: var(--gold); border-color: var(--gold); color: #fff; width: 100%; }
.form .btn:hover { background: var(--navy); border-color: var(--navy); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form .status { font-size: 14px; font-weight: 700; }
.form .status.ok { color: #2e6b3f; } .form .status.err { color: #a3331f; }
.hp { position: absolute; left: -9999px; }   /* LV: slazds robotiem / RU: ловушка для ботов */
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* ================= KĀJENE / ПОДВАЛ ================= */
.footer { background: var(--navy); color: #fff; padding: 64px 0 36px; }
.footer .top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer .cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer h4 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 15px; color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.65); }

/* ================= TEKSTA LAPAS (privātums, 404) / ТЕКСТОВЫЕ СТРАНИЦЫ ================= */
.page { padding: 72px 0 96px; background: var(--bg); min-height: 60vh; }
.page .wrap { max-width: 860px; }
.page h1 { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin: 12px 0 8px; }
.page .date { color: var(--dim); font-size: 14px; margin-bottom: 32px; }
.page h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.page p, .page li { color: #2f3b42; font-size: 16px; }
.page ul { padding-left: 22px; display: grid; gap: 4px; margin: 8px 0; }
.page a { color: var(--steel); text-decoration: underline; }
.notfound { text-align: center; }
.notfound .code { font-weight: 800; font-size: clamp(96px, 16vw, 200px); line-height: 1; color: var(--gold); letter-spacing: -.04em; }
.notfound .btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.notfound .btn { text-decoration: none; }

/* ================= PROJEKTI — SARAKSTS / ПРОЕКТЫ — СПИСОК ================= */
.p-head { background: var(--navy); color: #fff; padding: 72px 0 64px; }
.p-head .kicker { color: var(--gold); }
.p-head h1 { font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-top: 12px; }
.p-head p { color: #c7d3da; max-width: 620px; margin-top: 14px; font-size: 17px; }
.p-head .crumbs { font-size: 14px; color: #c7d3da; margin-bottom: 18px; }
.p-head .crumbs a:hover { color: #fff; text-decoration: underline; }

.p-list { list-style: none; padding: 24px 0 96px; }
/* LV: rinda foto + teksts, pāra rindās pretēji / RU: ряд фото + текст, чётные — зеркально */
.p-item { display: grid; grid-template-columns: 7fr 5fr; align-items: center; margin-top: 40px; }
.p-item .tx { padding-left: 32px; }
.p-item:nth-child(even) { grid-template-columns: 5fr 7fr; }
.p-item:nth-child(even) .chron { order: 2; }
.p-item:nth-child(even) .tx { padding: 0 32px 0 0; text-align: right; }
.p-item:nth-child(even) .tags { justify-content: flex-end; }
.p-item .num { font-weight: 800; font-size: 64px; line-height: 1; color: var(--line); letter-spacing: -.03em; }
.p-item .d { font-size: 13px; font-weight: 800; color: var(--gold-text); letter-spacing: .06em; margin-top: 6px; }
.p-item h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.15; margin: 6px 0 10px; }
.p-item h2 a:hover { color: var(--steel); }
.p-item .place { color: var(--dim); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: 12.5px; font-weight: 700; padding: 5px 10px; background: var(--bg); color: var(--navy); }
.p-item .more { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--steel); }
.p-item .more:hover { color: var(--gold-text); }
@media (max-width: 860px) {
  .p-item, .p-item:nth-child(even) { grid-template-columns: 1fr; }
  .p-item:nth-child(even) .chron { order: 0; }
  .p-item .tx, .p-item:nth-child(even) .tx { padding: 16px 0 0; text-align: left; }
  .p-item:nth-child(even) .tags { justify-content: flex-start; }
  .p-item .num { font-size: 44px; }
}

/* ---------- Foto hronika / Фотохроника — loģika / логика: js/projekti.js ---------- */
.chron { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #fff; cursor: pointer; }
.chron > img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }  /* LV: bez JS / RU: без JS */
.chron .strip { transition: left .6s ease; filter: drop-shadow(-4px 0 8px rgba(10, 44, 61, .35)); }
.chron .cap, .chron .play, .chron .replay { position: absolute; z-index: 1000; }
.chron .cap { left: 22px; bottom: 12px; background: rgba(10, 44, 61, .85); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 10px; }
.p-item:nth-child(even) .chron .cap { left: auto; right: 16px; }
.chron .play { left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
               background: rgba(10, 44, 61, .85); color: #fff; font-size: 26px; line-height: 72px; text-align: center; padding-left: 5px;
               transition: background .2s, transform .2s; }
.chron:hover .play, .chron:focus-visible .play { background: var(--gold); transform: scale(1.06); }
.chron .replay { top: 12px; right: 22%; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 44, 61, .85); color: #fff;
                 font-size: 22px; line-height: 40px; text-align: center; opacity: 0; transition: opacity .3s; }
.p-item:nth-child(even) .chron .replay { right: 16px; }
.chron.done .replay, .chron:hover .replay { opacity: 1; }
@media (max-width: 520px) { .chron .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; line-height: 56px; font-size: 20px; } }

/* ================= OBJEKTA LAPA / СТРАНИЦА ОБЪЕКТА ================= */
.o-wrap { display: grid; grid-template-columns: 7fr 4fr; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.o-main { aspect-ratio: 3 / 2; overflow: hidden; clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%); background: var(--bg); }
.o-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.o-cap { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; font-size: 14px; color: var(--dim); min-height: 22px; }
.o-cap b { color: var(--navy); font-weight: 800; }
.o-cap .n { margin-left: auto; font-weight: 700; color: var(--gold-text); }
.o-thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 12px; }
.o-thumbs button { border: 0; padding: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg); opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.o-thumbs button:hover, .o-thumbs button[aria-current="true"] { opacity: 1; filter: none; }
.o-thumbs button[aria-current="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.o-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.o-info .back { font-weight: 700; color: var(--steel); font-size: 14px; }
.o-info .back:hover { color: var(--gold-text); }
.o-info h1 { font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.015em; margin: 18px 0 28px; }
.o-info dl { border-top: 1px solid var(--line); }
.o-info dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-top: 18px; }
.o-info dd { margin-top: 6px; font-size: 16px; }
.o-info .btns { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.o-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0 64px; font-weight: 700; }
.o-nav a { color: var(--steel); } .o-nav a:hover { color: var(--gold-text); }
@media (max-width: 860px) { .o-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; } .o-thumbs { grid-template-columns: repeat(5, 1fr); } }

/* LV: sākumlapas kartītes-saites / RU: карточки-ссылки на главной */
.proj > a { display: block; }
.proj > a:hover h3 { color: var(--gold); }
/* LV: darbu posmi / RU: этапы работ */
.o-st-h { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-top: 28px; }
.o-stages { list-style: none; margin-top: 10px; border-left: 2px solid var(--gold); padding-left: 18px; display: grid; gap: 10px; }
.o-stages li { position: relative; font-size: 15px; line-height: 1.4; }
.o-stages li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.o-stages span { display: block; font-size: 12px; font-weight: 800; color: var(--gold-text); letter-spacing: .04em; }
