* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f5fbff;
  --bg-soft: #fff7ed;
  --ink: #082033;
  --text: #24384a;
  --muted: #617486;
  --surface: #ffffff;
  --line: rgba(8, 47, 73, 0.13);
  --primary: #0f8fd6;
  --primary-dark: #075985;
  --mint: #12b5a6;
  --amber: #f59e0b;
  --rose: #fb7185;
  --violet: #8b5cf6;
  --shadow: 0 18px 44px rgba(8, 47, 73, 0.10);
  --shadow-strong: 0 28px 70px rgba(8, 47, 73, 0.16);
  --radius-xl: 28px;
  --radius: 20px;
  --container: 1140px;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 6% -8%, rgba(14, 165, 233, 0.18), transparent 18rem),
    radial-gradient(circle at 98% 8%, rgba(20, 184, 166, 0.16), transparent 18rem),
    linear-gradient(180deg, #f6fbff 0%, #fff7ed 48%, #ecfeff 100%);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 24px));
  max-width: 100%;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(14, 116, 144, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(8, 47, 73, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: calc(100vw - 122px);
  gap: 9px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}
.brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--mint));
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.24);
}
.brand-mark img { width: 22px; height: 22px; }

.nav-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(14, 116, 144, 0.20);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.nav-toggle-text { font-size: .88rem; }
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}
.nav-toggle-lines::before { transform: translateY(-6px); }
.nav-toggle-lines::after { transform: translateY(4px); }

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  left: 12px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}
.site-nav.open { display: flex; }
.site-nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  background: #f4fbff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}
.site-nav a:focus-visible,
.site-nav a:hover {
  outline: none;
  background: #e0f2fe;
  color: var(--primary-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 26px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(245, 158, 11, 0.25), transparent 14rem),
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.24), transparent 15rem),
    linear-gradient(135deg, #082f49 0%, #075985 50%, #0f766e 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.hero-copy,
.hero-figure,
.quick-card,
.visual-card,
.article-card,
.info-card,
.responsible-card {
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #0c4a6e;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: normal;
}
.hero-title {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 10.6vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  overflow-wrap: break-word;
}
.hero-lead {
  max-width: 60ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.button.primary { background: #fff; color: #0c4a6e; }
.button.secondary { border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255,255,255,0.14); color: #fff; }
.hero-figure {
  width: 100%;
  max-width: 370px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 16px 44px rgba(0,0,0,0.16);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
.hero-figure figcaption {
  margin: 10px 4px 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

.quick-panel { padding: 18px 0 28px; }
.quick-grid,
.visual-grid,
.editorial-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.quick-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.08);
}
.quick-card img {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 13px;
  background: #e0f2fe;
}
.quick-card strong { display: block; color: var(--ink); line-height: 1.2; }
.quick-card span { display: block; margin-top: 2px; color: var(--muted); font-size: .93rem; line-height: 1.45; }

.visual-section { padding: 8px 0 36px; }
.section-heading { max-width: 760px; margin-bottom: 18px; }
.section-heading.center { text-align: left; }
.section-heading h2,
.responsible h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.55rem, 8vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}
.section-heading p:not(.eyebrow),
.responsible p { margin: 0 0 14px; color: var(--muted); }
.visual-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.08);
}
.visual-card.accent { background: linear-gradient(180deg, #fff, #ecfeff); }
.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
.visual-card figcaption { margin: 10px 4px 2px; color: #4c6074; font-size: .9rem; font-weight: 750; line-height: 1.45; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 0 46px;
}
.sidebar { display: none; }
.mobile-toc-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.08);
  overflow: hidden;
}
.mobile-toc-card summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--primary-dark);
  font-weight: 900;
}
.mobile-toc-card .toc { padding: 0 12px 12px; }
.toc { display: grid; gap: 6px; }
.toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: #53697b;
  font-size: .88rem;
  line-height: 1.32;
  text-decoration: none;
}
.toc a:hover,
.toc a.active { color: var(--primary-dark); background: #e0f2fe; }

.article-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.09);
  overflow: hidden;
}
.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--primary), var(--mint), var(--amber), var(--rose));
}
.content {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 1rem;
  line-height: 1.64;
}
.content > *:first-child { margin-top: 0; }
.content h1,
.content h2,
.content h3,
.content p,
.content li,
.content td,
.content th {
  max-width: 100%;
  overflow-wrap: break-word;
}
.content h1,
.content h2,
.content h3 {
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.content h1 { margin: 0 0 18px; font-size: clamp(1.52rem, 8.3vw, 2.18rem); }
.content h2 { margin: 38px 0 14px; padding-top: 8px; font-size: clamp(1.28rem, 6.7vw, 1.72rem); }
.content h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
}
.content h3 { margin: 24px 0 9px; color: var(--primary-dark); font-size: 1.1rem; }
.content p { margin: 0 0 15px; color: #25394c; }
.article-photo {
  width: 100%;
  margin: 24px 0 28px;
  padding: 10px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 28px rgba(8, 47, 73, 0.08);
}
.article-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}
.article-photo figcaption {
  margin: 10px 4px 2px;
  color: #526679;
  font-size: .9rem;
  font-weight: 730;
  line-height: 1.45;
}
.content ul,
.content ol { margin: 14px 0 24px; padding: 0; }
.content li {
  margin: 0 0 9px;
  padding: 10px 11px;
  border-radius: 13px;
  color: #25394c;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.78), rgba(236, 253, 245, 0.74));
}
.content ul li { list-style-position: inside; }
.content ol { counter-reset: step-counter; }
.content ol li {
  position: relative;
  list-style: none;
  counter-increment: step-counter;
  padding-left: 45px;
}
.content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 11px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
}
.content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 22px 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
  overflow: visible;
}
.content thead { display: none; }
.content tbody { display: grid; gap: 12px; width: 100%; }
.content tr {
  display: block;
  width: 100%;
  border: 1px solid rgba(14,116,144,.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(8,47,73,.07);
  overflow: hidden;
}
.content td {
  display: grid;
  grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(14,116,144,.10);
  text-align: left;
}
.content td:last-child { border-bottom: 0; }
.content td::before {
  content: attr(data-label);
  min-width: 0;
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.editorial,
.responsible { padding: 8px 0 44px; }
.info-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.08);
}
.info-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--primary), var(--mint)); }
.info-card:nth-child(2)::before { background: linear-gradient(90deg, var(--violet), var(--primary)); }
.info-card:nth-child(3)::before { background: linear-gradient(90deg, var(--amber), var(--rose)); }
.info-card img { width: 40px; height: 40px; padding: 8px; border-radius: 14px; background: #e0f2fe; }
.info-card h3 { margin: 14px 0 8px; color: var(--ink); font-size: 1.08rem; line-height: 1.24; }
.info-card p { margin: 0; color: var(--muted); }
.responsible-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed, #ecfeff);
  box-shadow: 0 10px 26px rgba(8, 47, 73, 0.08);
}
.responsible-card > img { width: min(180px, 70%); justify-self: start; }

.site-footer {
  padding: 34px 0;
  background: linear-gradient(135deg, #082f49, #0f172a);
  color: #dff6ff;
}
.site-footer p,
.site-footer li { color: rgba(223,246,255,0.78); }
.footer-brand { color: #fff; }
.footer-title { margin: 0 0 10px; color: #fff !important; font-weight: 900; }
.site-footer ul { margin: 0; padding-left: 1.05rem; }

.back-to-top {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--mint));
  color: #fff;
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.28);
  font-size: 1.22rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 359px) {
  .container { width: calc(100% - 16px); }
  .brand-text { max-width: 132px; font-size: .9rem; }
  .nav-toggle { padding: 8px 10px; }
  .hero { padding-top: 24px; }
  .hero-title { font-size: 1.82rem; max-width: 16ch; }
  .hero-lead { font-size: .96rem; }
  .article-card { padding: 20px 12px; border-radius: 18px; }
  .article-photo { margin: 20px 0 24px; padding: 8px; border-radius: 16px; }
  .article-photo img { border-radius: 12px; }
  .content h1 { font-size: 1.43rem; }
  .content h2 { font-size: 1.24rem; }
  .content td { grid-template-columns: minmax(78px, 35%) minmax(0,1fr); padding: 10px; }
}

@media (min-width: 520px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 430px; }
  .hero-figure { max-width: 440px; }
  .article-card { padding: 30px 24px; }
  .content h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); }
}

@media (min-width: 760px) {
  .container { width: min(var(--container), calc(100% - 48px)); }
  .header-inner { min-height: 72px; }
  .brand { max-width: none; }
  .brand-text { font-size: 1rem; }
  .brand-mark { flex-basis: 42px; width: 42px; height: 42px; border-radius: 16px; }
  .brand-mark img { width: 24px; height: 24px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-nav a { padding: 10px 13px; border-radius: 999px; background: transparent; color: #4b6074; font-size: .94rem; }
  .hero { padding: 58px 0 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(260px, .72fr); gap: 28px; }
  .hero-title { max-width: 820px; font-size: clamp(2.5rem, 6vw, 4.6rem); }
  .hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
  .button { width: auto; padding-inline: 20px; }
  .hero-actions { display: flex; flex-wrap: wrap; max-width: none; }
  .hero-figure { max-width: none; padding: 16px; border-radius: var(--radius-xl); }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .visual-section { padding: 28px 0 56px; }
  .visual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .section-heading.center { text-align: center; margin-inline: auto; }
  .section-heading h2,
  .responsible h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
  .mobile-toc-card { display: none; }
  .page-layout { padding: 16px 0 68px; }
  .article-card { padding: clamp(34px, 4vw, 52px); border-radius: var(--radius-xl); box-shadow: var(--shadow-strong); }
  .content { font-size: clamp(1rem, 0.8vw + 0.86rem, 1.055rem); }
  .content h1 { font-size: clamp(2.15rem, 4vw, 3.15rem); }
  .content h2 { font-size: clamp(1.5rem, 3vw, 2.12rem); }
  .content h3 { font-size: clamp(1.15rem, 2.1vw, 1.45rem); }
  .article-photo { margin: 32px 0 38px; padding: 14px; border-radius: 24px; }
  .article-photo img { border-radius: 18px; }
  .content table {
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(8, 47, 73, 0.08);
  }
  .content thead { display: table-header-group; color: #082f49; background: linear-gradient(90deg, #e0f2fe, #ccfbf1); }
  .content tbody { display: table-row-group; }
  .content tr { display: table-row; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .content th,
  .content td {
    display: table-cell;
    width: auto;
    padding: 15px 17px;
    border-bottom: 1px solid rgba(14, 116, 144, 0.12);
    text-align: left;
    vertical-align: top;
  }
  .content th { color: #082f49; font-weight: 900; }
  .content td::before { content: none; }
  .content tbody tr:nth-child(even) { background: #f8fafc; }
  .content tbody tr:last-child td { border-bottom: none; }
  .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .responsible-card { grid-template-columns: minmax(0,1fr) minmax(180px, 280px); gap: 24px; padding: clamp(28px, 5vw, 44px); border-radius: var(--radius-xl); }
  .responsible-card > img { width: 100%; max-width: 280px; justify-self: end; }
  .footer-grid { grid-template-columns: 1.3fr .8fr 1fr; gap: 26px; }
}

@media (min-width: 1040px) {
  .page-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 26px; }
  .sidebar { display: block; min-width: 0; }
  .sticky-card {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 118px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow);
  }
  .sidebar-title { margin: 0 0 12px; color: var(--primary-dark); font-weight: 900; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
