:root {
  --accent: #0b5cff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --orange: #ff7a00;
}
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.page {
  max-width: 1000px;
  margin: auto;
  padding: min(2%, 20px);
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.logo-wrap {
  background: #28a745;
  text-align: center;
}
.logo {
  width: auto;
  max-width: 90%;
  max-height: 160px;
  margin: 10px auto;
  display: block;
}
.title {
  font-size: min(6vw, 28px);
  font-weight: 800;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.title .lg-flags {
  position: absolute;
  right: 5px;
}
.two-col {
  padding: min(2%, 20px);
  border-bottom: 1px solid var(--border);
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.shot {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f5f5f5;
  object-fit: initial;
}
.text {
  align-self: start;
  position: sticky;
  top: 0;
}
.text h3 {
  margin-top: 0;
  font-size: 20px;
}
.text h3 {
  margin-top: 0;
  font-size: 20px;
}
.langs {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.lang-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fcfcfd;
}
.lang-head {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.flag {
  font-size: 18px;
}
.footer {
  padding: 18px 20px;
  background: #f9fafb;
  text-align: center;
  color: #374151;
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.flag-def {
  display: inline-block;
  width: 25px;
  height: 16px;
  background-size: contain;
}
.flag-ru {
  background-image: url("/assets/modules/tutorials/flags/ru.jpg");
}
.flag-us {
  background-image: url("/assets/modules/tutorials/flags/en.jpg");
}
.flag-cn {
  background-image: url("/assets/modules/tutorials/flags/zh.jpg");
}
@media (max-width: 630px) {
  .row > *:last-child {
    order: -1;
  }
  .row h3 {
    margin-top: 20px;
    margin-bottom: 5px;
  }
  .title .lg-flags {
    position: relative;
    margin-left: 20px;
  }
}
