/* ET — eko-trans.kiev.ua — strict blue & yellow */
:root {
  --navy: #0a2a5e;
  --blue: #0057b7;
  --blue-600: #00489a;
  --blue-100: #e6eefa;
  --blue-050: #f3f7fd;
  --yellow: #ffd500;
  --yellow-100: #fff6c2;
  --ink: #0f1e3d;
  --muted: #4a5b7c;
  --line: #d3def0;
  --white: #ffffff;
  --radius: 4px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue-050);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 5px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: inset 0 -5px 0 var(--blue);
}
.logo:hover { color: var(--navy); background: #ffe033; }

/* ---------- language switcher ---------- */
.lang-switch ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lang-switch a {
  display: block;
  min-width: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}
.lang-switch a:hover { border-color: var(--yellow); color: var(--yellow); }
.lang-switch a.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.lang-switch--mini a { min-width: 0; padding: 4px 8px; font-size: 12px; }

/* ---------- layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 64px;
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
}

/* ---------- article ---------- */
.article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 18px 36px;
  min-width: 0;
}
@media (min-width: 720px) { .article { padding: 40px 48px 52px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.article h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 12px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.meta__item { position: relative; }
.meta__label { font-weight: 700; color: var(--navy); }
.meta__note { color: var(--muted); }
.meta time { color: var(--ink); font-weight: 600; }

.lead {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--navy);
}

/* ---------- framed images ---------- */
.frame {
  margin: 28px 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--yellow);
  border-radius: var(--radius);
}
.frame__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-100);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* never stretched, never cropped */
  object-position: center;  /* centred inside the frame */
}
@supports not (aspect-ratio: 16 / 9) {
  .frame__media { height: 0; padding-top: 56.25%; }
  .frame__media img { position: absolute; inset: 0; }
}
.frame figcaption {
  padding: 10px 6px 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* ---------- prose ---------- */
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.72; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  margin: 1.9em 0 0.7em;
  padding-left: 14px;
  border-left: 5px solid var(--yellow);
  font-family: var(--sans);
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--navy);
}
.prose h3 {
  margin: 1.5em 0 0.5em;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--blue);
}
.prose strong { color: var(--navy); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose li { position: relative; margin: 0 0 0.65em; padding-left: 30px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 2px solid var(--blue);
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 40px; }
.prose ol > li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--yellow);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 22px 24px;
  background: var(--blue-100);
  border-left: 6px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  font-style: italic;
  font-size: 19px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .callout {
  padding: 18px 22px;
  background: var(--yellow-100);
  border: 1px solid #f2dc6a;
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
.prose .note { font-family: var(--sans); font-size: 13px; color: var(--muted); }

.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 0.8em; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.prose th { background: var(--navy); color: var(--yellow); text-align: left; font-weight: 700; padding: 10px 12px; }
.prose td { padding: 10px 12px; border-top: 1px solid var(--line); }
.prose tbody tr:nth-child(even) td { background: var(--blue-050); }
.prose td:first-child { font-weight: 700; color: var(--navy); }

/* ---------- sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: 92px; } }
.sidebar__title {
  margin: 0;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(10, 42, 94, 0.12); transform: translateY(-2px); color: inherit; }
.frame--card { margin: 0; border: 0; border-bottom: 4px solid var(--yellow); border-radius: var(--radius) var(--radius) 0 0; }
.card__body { padding: 14px 16px 16px; }
.card__meta { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 800; color: var(--navy); }
.card:hover .card__title { color: var(--blue); }
.card__excerpt { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.card__more { font-size: 13px; font-weight: 700; color: var(--blue); border-bottom: 2px solid var(--yellow); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #d6e2f7; border-top: 5px solid var(--yellow); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 1.6fr 1.2fr 0.8fr; gap: 48px; } }
.site-footer__title {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; }
.logo--footer { margin-bottom: 18px; }
.contacts { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.contacts li { margin-bottom: 8px; }
.contacts__label { color: var(--yellow); font-weight: 700; margin-right: 4px; }
.contacts a { color: var(--white); }
.contacts a:hover { color: var(--yellow); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); background: #071f47; }
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
  color: #a9bce0;
}

@media print {
  .site-header, .sidebar, .site-footer { display: none; }
  .layout { display: block; }
  .article { border: 0; }
}
