:root {
  --ink: #0f2744;
  --muted: #5b6b7c;
  --line: #d8e0ea;
  --soft: #f4f7fb;
  --accent: #1f4b7a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #e8eef5;
  line-height: 1.45;
}
html[dir="rtl"] ul { padding-left: 0; padding-right: 1.05rem; }
html[dir="rtl"] .meta { text-align: left; }
html[dir="rtl"] .toolbar { direction: rtl; }
.toolbar {
  max-width: 210mm;
  margin: 0.75rem auto;
  padding: 0 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.toolbar a, .print-btn {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.print-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ver-banner {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: #eaf1f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.sheet {
  width: min(210mm, 100% - 1.5rem);
  min-height: 297mm;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11mm 12mm 10mm;
  box-shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
}
.head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
}
.brand { display: flex; gap: 0.7rem; align-items: center; }
.brand img { border-radius: 10px; }
.brand h1 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tag { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.meta {
  text-align: right;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
  white-space: nowrap;
}
.pitch {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  max-width: 58ch;
}
h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
section { margin-bottom: 0.75rem; }
ul { padding-left: 1.05rem; }
li { font-size: 0.76rem; color: var(--ink); margin: 0.14rem 0; }
.inline li { margin: 0.2rem 0; }
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
  margin: 0.2rem 0 0.55rem;
}
.grid2 section, .grid3 section, .estonia {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
}
.estonia p { font-size: 0.8rem; color: var(--ink); }
.links { margin-top: 0.15rem; }
.link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.85rem;
  margin-top: 0.35rem;
}
.link-row > div {
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.k { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.v, .link-row a {
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
  font-weight: 600;
}
.foot {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.note { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.35rem; }
.copy { font-size: 0.68rem; color: var(--muted); }

@media (max-width: 720px) {
  .sheet { min-height: auto; padding: 1.1rem; }
  .grid2, .grid3, .link-row { grid-template-columns: 1fr; }
  .meta { text-align: left; white-space: normal; }
  .head { flex-direction: column; }
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .sheet {
    width: 100%;
    min-height: auto;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 10mm 12mm;
  }
  a { color: var(--ink); text-decoration: none; }
  @page { size: A4; margin: 10mm; }
}
