/* ==========================================================================
   UTR Institute — public site and sign-in pages
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Utility bar ---------- */
.util { background: var(--petrol-950); color: var(--petrol-200); font-size: 0.875rem; }
.util-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.util-end { display: flex; align-items: center; gap: 22px; }
.util-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.util-link:hover { color: #fff; }
.util-link .icon { width: 16px; height: 16px; color: var(--amber-500); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line-soft); transition: box-shadow 0.2s; }
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(6, 25, 29, 0.55); }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative; display: block; padding: 28px 0;
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.98rem;
}
.nav ul a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: var(--amber-500); transform: scaleX(0); transform-origin: center; transition: transform 0.2s;
}
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: var(--petrol-700); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-inline-end: -10px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .when-open, .nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-header-in { min-height: 68px; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; box-shadow: var(--shadow-pop);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav ul a::after { display: none; }
  .nav-cta { margin-top: 20px; }
}
@media (max-width: 560px) {
  .util-link span, .util .hide-s { display: none; }
  .util-end { gap: 14px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--petrol-900); color: var(--petrol-200); overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 4.1rem); font-stretch: 122%; font-weight: 650; line-height: 1.03; }
[dir="rtl"] .hero h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.4; }
.hero-lead { margin-top: 26px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34em; color: var(--petrol-200); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stribeck { margin: 0; background: var(--petrol-950); border-radius: var(--r-l); padding: clamp(16px, 2.4vw, 28px); }
.stribeck svg { width: 100%; height: auto; direction: ltr; }
.stribeck .axis { fill: none; stroke: var(--petrol-300); stroke-width: 1.5; }
.stribeck .grid path { fill: none; stroke: var(--petrol-700); stroke-width: 1; stroke-dasharray: 3 5; }
.stribeck .regimes rect { fill: var(--petrol-500); opacity: 0; transition: opacity 0.25s; }
.stribeck .regimes rect.is-on { opacity: 0.2; }
.stribeck .curve { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.25s forwards; }
.stribeck .curve-base { stroke: var(--petrol-200); }
.stribeck .curve-add { stroke: var(--amber-500); animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.stribeck text { font-family: var(--font); font-size: 14px; font-weight: 600; fill: var(--petrol-200); }
.stribeck text.is-add { fill: var(--amber-300); }
.stribeck text.is-axis { font-size: 12.5px; font-weight: 500; fill: var(--petrol-300); }

.regime-tabs { display: grid; grid-template-columns: 130fr 150fr 190fr; margin-inline: 10.7% 5.3%; direction: ltr; gap: 2px; margin-top: 4px; }
.regime-tabs button {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--petrol-200);
  background: var(--petrol-800); border: 0; padding: 9px 4px; cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.regime-tabs button:first-child { border-start-start-radius: var(--r-s); border-end-start-radius: var(--r-s); }
.regime-tabs button:last-child { border-start-end-radius: var(--r-s); border-end-end-radius: var(--r-s); }
.regime-tabs button:hover { background: var(--petrol-700); color: #fff; }
.regime-tabs button[aria-selected="true"] { background: var(--amber-500); color: var(--petrol-950); }
.stribeck figcaption { margin-top: 16px; min-height: 5.2em; font-size: 0.95rem; color: var(--petrol-200); }
[dir="rtl"] .stribeck figcaption { min-height: 6.4em; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .regime-tabs button { font-size: 0.75rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--mineral); }
.section-dark { background: var(--petrol-900); color: var(--petrol-200); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p { margin-top: 12px; max-width: 46em; color: var(--muted); font-size: 1.075rem; }

/* ---------- Three activities ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.pillars article { border-top: 3px solid var(--petrol-900); padding-top: 24px; }
.pillars .icon { width: 34px; height: 34px; color: var(--amber-600); stroke-width: 1.5; margin-bottom: 20px; }
.pillars h2 { font-size: 1.4rem; margin-bottom: 12px; }
.pillars p { color: var(--body); }
.pillars a { font-weight: 600; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Programme catalogue ---------- */
.catalogue { background: var(--paper); border-radius: var(--r-m); overflow: hidden; }
.catalogue ul { list-style: none; margin: 0; padding: 0; }
.catalogue-head, .catalogue li a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px 110px 110px 28px; gap: 20px; align-items: center;
  padding: 0 clamp(16px, 2.4vw, 28px);
}
.catalogue-head { min-height: 46px; background: var(--petrol-900); color: var(--petrol-200); font-size: 0.85rem; font-weight: 600; }
.catalogue li + li { border-top: 1px solid var(--line-soft); }
.catalogue li a { padding-block: 22px; text-decoration: none; color: var(--body); transition: background-color 0.15s; }
.catalogue li a:hover { background: var(--petrol-50); }
.cat-code { font-family: "Archivo", sans-serif; font-stretch: 118%; font-weight: 700; color: var(--petrol-700); font-size: 0.95rem; letter-spacing: 0.02em; }
.cat-title { display: grid; gap: 4px; }
.cat-title strong { color: var(--ink); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.cat-title span { color: var(--muted); font-size: 0.95rem; }
.cat-meta { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.cat-meta em { display: none; font-style: normal; color: var(--muted); font-weight: 400; margin-inline-end: 6px; }
.cat-go { color: var(--petrol-300); transition: color 0.15s, transform 0.15s; }
.catalogue li a:hover .cat-go { color: var(--amber-600); }
@media (max-width: 900px) {
  .catalogue-head { display: none; }
  .catalogue li a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .cat-code { grid-column: 1 / -1; }
  .cat-title { grid-column: 1 / -1; margin-bottom: 8px; }
  .cat-meta { grid-column: 1; font-size: 0.9rem; }
  .cat-meta em { display: inline; }
  .cat-go { grid-column: 2; grid-row: 2; }
}

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-tile { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--body); }
.product-art {
  display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 12% 20%;
  background: var(--mineral); border-radius: var(--r-m); overflow: hidden; transition: background-color 0.2s;
}
.product-art img { width: 100%; height: 100%; object-fit: contain; }
.product-art .bottle { height: 100%; width: auto; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.product-tile:hover .product-art { background: var(--petrol-100); }
.product-tile:hover .bottle { transform: translateY(-6px); }
.product-info { display: grid; gap: 4px; padding-top: 16px; align-content: start; }
.product-cat { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.product-info strong { color: var(--ink); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.product-info > span:last-child { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 980px) { .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; } .product-art { aspect-ratio: 5 / 4; } }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter a {
  padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.925rem; color: var(--petrol-800);
}
.filter a:hover { border-color: var(--petrol-600); }
.filter a[aria-current="true"] { background: var(--petrol-900); border-color: var(--petrol-900); color: #fff; }

/* ---------- Certification block ---------- */
.cert-block { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cert-block h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 16em; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.steps li::before {
  content: counter(step); grid-row: 1 / 3; align-self: start;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1.5px solid var(--amber-500); border-radius: 50%; color: var(--amber-300);
  font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 118%;
}
.steps h3 { font-size: 1.1rem; align-self: center; }
.steps p { grid-column: 2; font-size: 0.95rem; }
.verify-card { background: var(--paper); color: var(--body); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); }
.verify-card h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: 8px; }
.verify-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.verify-card .input { font-family: "Archivo", sans-serif; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.verify-card .input::placeholder { color: var(--line); }
@media (max-width: 900px) { .cert-block { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.post-card { border-top: 1px solid var(--line); padding-top: 20px; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--r-m); margin-bottom: 18px; }
.post-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.post-meta span { color: var(--amber-700); font-weight: 600; }
.post-card h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 10px; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--petrol-600); text-decoration: underline; }
.post-card > p:last-child { color: var(--muted); font-size: 0.975rem; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Call to action ---------- */
.cta { background: var(--amber-500); color: var(--petrol-950); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(40px, 5vw, 64px); }
.cta h2 { color: var(--petrol-950); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cta p { margin-top: 8px; font-size: 1.075rem; font-weight: 500; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-line { border-color: var(--petrol-900); color: var(--petrol-950); }
.cta .btn-line:hover { background: rgba(6, 25, 29, 0.08); }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-950); color: var(--petrol-200); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px); }
.footer-brand p { margin-top: 20px; max-width: 26em; }
.site-footer h2 { color: #fff; font-size: 1rem; font-stretch: 112%; margin-bottom: 18px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--petrol-200); text-decoration: none; }
.site-footer a:hover { color: var(--amber-300); }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--amber-500); }
.social { display: flex !important; flex-wrap: wrap; gap: 8px 18px !important; margin-top: 20px !important; }
.social a { font-weight: 600; color: #fff; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--petrol-800); font-size: 0.875rem; }
.footer-base p { margin: 0; }
.footer-base ul { display: flex; align-items: center; gap: 22px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page head ---------- */
.page-head { background: var(--petrol-900); color: var(--petrol-200); padding-block: clamp(36px, 5vw, 68px); }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); max-width: 20em; }
.page-lead { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 44em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.875rem; margin-bottom: 20px; }
.crumbs a { color: var(--petrol-200); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: #fff; }
.crumbs .icon { width: 14px; height: 14px; opacity: 0.6; }

.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 32px 0 0; padding: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.85rem; color: var(--petrol-300); }
.facts dd { margin: 0; color: #fff; font-weight: 600; font-size: 1.1rem; }

/* ---------- Detail layout (programme, product) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.detail-aside { position: sticky; top: 108px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 32px); }
.card-tint { background: var(--mineral); border-color: transparent; }
.price { font-family: "Archivo", sans-serif; font-stretch: 118%; font-weight: 700; font-size: 2rem; color: var(--ink); line-height: 1; }
.price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); font-stretch: 100%; }
.spec-list { list-style: none; margin: 22px 0; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 0.95rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--ink); font-weight: 600; text-align: end; }
.block { margin-bottom: clamp(36px, 5vw, 60px); }
.block > h2 { font-size: 1.6rem; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks .icon { color: var(--ok); margin-top: 3px; width: 20px; height: 20px; stroke-width: 2.2; }
.ticks.cols { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
@media (max-width: 640px) { .ticks.cols { grid-template-columns: 1fr; } }

.syllabus { list-style: none; margin: 0; padding: 0; counter-reset: lesson; border-top: 1px solid var(--line); }
.syllabus li { counter-increment: lesson; display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.syllabus li::before { content: counter(lesson, decimal-leading-zero); font-family: "Archivo", sans-serif; font-weight: 700; color: var(--petrol-500); font-stretch: 118%; }
.syllabus strong { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.syllabus p { grid-column: 2; color: var(--muted); font-size: 0.95rem; margin: 0; }
.syllabus time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: start; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--muted); padding-inline-end: 20px; }
.spec-table td { color: var(--ink); font-weight: 600; }

.product-hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product-hero .product-art { aspect-ratio: 1; background: var(--petrol-800); padding: 10% 26%; border-radius: var(--r-l); }
.product-hero .product-art .bottle { filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35)); }
.product-code { display: inline-block; font-family: "Archivo", sans-serif; font-stretch: 118%; font-weight: 700; color: var(--amber-300); margin-bottom: 12px; letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero .product-art { max-width: 340px; }
}

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split > h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); position: sticky; top: 120px; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.deflist { margin: 0; display: grid; gap: 28px; }
.deflist dt { font-weight: 600; color: var(--ink); font-size: 1.15rem; font-stretch: 110%; margin-bottom: 6px; }
.deflist dd { margin: 0; max-width: 60ch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split > h2 { position: static; } }

/* ---------- Verification ---------- */
.verify-form { display: flex; gap: 12px; max-width: 640px; margin-top: 28px; }
.verify-form .input { min-height: 54px; font-family: "Archivo", sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; border-color: transparent; }
.verify-form .btn { min-height: 54px; }
@media (max-width: 560px) { .verify-form { flex-direction: column; } }

.verdict { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); max-width: 860px; }
.verdict-head { display: flex; gap: 18px; align-items: center; padding: 24px clamp(20px, 3vw, 36px); background: var(--ok-bg); color: #0f4a2e; }
.verdict-head .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.verdict-head h2 { color: inherit; font-size: 1.5rem; }
.verdict-head p { margin: 4px 0 0; font-weight: 500; }
.verdict.is-revoked .verdict-head, .verdict.is-missing .verdict-head { background: var(--bad-bg); color: #6d1611; }
.verdict.is-expired .verdict-head { background: var(--warn-bg); color: #5f3300; }
.verdict-body { padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.verdict-body div { display: grid; gap: 3px; }
.verdict-body dt { font-size: 0.875rem; color: var(--muted); }
.verdict-body dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.verdict-body .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .verdict-body { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 24px; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.contact-list .icon { width: 24px; height: 24px; color: var(--amber-600); margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.contact-list a { font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--r-l); margin-bottom: 40px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article .prose { max-width: none; font-size: 1.125rem; }

/* ---------- Sign-in pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--petrol-900); color: var(--petrol-200); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.4rem); max-width: 14em; }
.auth-side ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-side li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.auth-side li .icon { color: var(--amber-500); margin-top: 3px; width: 20px; height: 20px; stroke-width: 2.2; }
.auth-side-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.9rem; }
.auth-side-foot a { color: var(--petrol-200); }
.auth-main { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-box > p { color: var(--muted); margin-bottom: 28px; }
.auth-alt { margin-top: 24px; font-size: 0.95rem; color: var(--muted); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 0.925rem; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: flex; justify-content: space-between; align-items: center; }
  .auth-main { place-items: start center; }
}

/* ---------- Empty and error states ---------- */
.empty { padding: 48px 24px; text-align: center; background: var(--mineral); border-radius: var(--r-l); color: var(--muted); }
.empty h2, .empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.errorpage { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px var(--gutter); }
.errorpage .code { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(5rem, 14vw, 10rem); line-height: 1; color: var(--petrol-100); }
.errorpage h1 { font-size: 2rem; margin: 8px 0 12px; }
.errorpage p { color: var(--muted); margin-bottom: 28px; }

/* German and Russian words run longer than English ones: a slightly smaller hero headline keeps the line breaks sensible. */
html[lang="de"] .hero h1, html[lang="ru"] .hero h1 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.1; overflow-wrap: break-word; }
