:root {
  --navy: #07152b;
  --midnight: #050b18;
  --panel: #0b2038;
  --panel-2: #102943;
  --gold: #f6c866;
  --gold-deep: #d9a63f;
  --emerald: #38e6a5;
  --emerald-deep: #1dbd84;
  --text: #f8fbff;
  --muted: #a8b7ca;
  --line: rgba(246, 200, 102, 0.28);
  --soft-line: rgba(255, 255, 255, 0.09);
  --paper: #f5f7fa;
  --ink: #122033;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #020712;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(26, 85, 105, 0.25), transparent 34%),
    #020712;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 7%, rgba(56, 230, 165, 0.12), transparent 22%),
    linear-gradient(180deg, var(--navy), var(--midnight) 54%, #020711);
  box-shadow: var(--shadow);
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 25px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.brand span {
  color: var(--gold);
}

.brand strong {
  font: inherit;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.auth-link {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 900;
}

.auth-register {
  border-color: var(--emerald);
  color: #03150e;
  background: linear-gradient(135deg, #55f0b5, var(--emerald));
}

.hero,
.subhero,
.article-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

.hero > img,
.subhero > img,
.article-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 17, 0.04), rgba(2, 7, 17, 0.35) 42%, #07152b 96%),
    linear-gradient(90deg, rgba(2, 7, 17, 0.82), transparent 78%);
}

.hero-copy,
.subhero-copy,
.article-hero-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 20px 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.hero h1,
.subhero h1,
.article-hero h1 {
  max-width: 390px;
  margin: 0 0 13px;
  font-size: 37px;
  line-height: 1.03;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow),
.subhero-copy > p:not(.eyebrow) {
  max-width: 365px;
  margin: 0 0 19px;
  color: #d7e2ef;
  font-size: 14px;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-align: center;
}

.button-primary {
  min-width: 185px;
  color: #02150d;
  background: linear-gradient(135deg, #56efb6, var(--emerald));
  box-shadow: 0 13px 30px rgba(56, 230, 165, 0.18);
}

.button-secondary {
  border-color: #ccd4df;
  color: #223149;
  background: #fff;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 14px 10px;
  padding: 13px 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 32, 56, 0.94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.trust-strip article {
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

.trust-strip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(56, 230, 165, 0.45);
  border-radius: 10px;
  color: var(--emerald);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.trust-strip span {
  display: grid;
  min-width: 0;
}

.trust-strip strong {
  font-size: 9px;
}

.trust-strip small {
  color: var(--muted);
  font-size: 8px;
}

.section {
  padding: 30px 16px;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.centered {
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.category-card {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.category-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.category-card:hover > img {
  transform: scale(1.035);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(3, 11, 24, 0.94));
}

.category-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.category-copy small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.category-copy strong {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.08;
}

.category-copy em {
  margin-top: 4px;
  color: #cfdae7;
  font-size: 9px;
  font-style: normal;
}

.steps-section {
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(10, 30, 52, 0.72);
}

.step-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.step-grid article,
.note-grid article {
  padding: 13px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.step-grid b,
.note-grid b {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin: 0 auto 9px;
  border-radius: 50%;
  color: #071a13;
  background: var(--emerald);
  font-size: 12px;
}

.step-grid h3,
.note-grid h3 {
  margin: 0 0 5px;
  font-size: 12px;
}

.step-grid p,
.note-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.center-action {
  margin-top: 18px;
  text-align: center;
}

.info-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 230, 165, 0.09), transparent 28%),
    var(--midnight);
}

.info-list {
  display: grid;
  gap: 9px;
}

.info-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(11, 32, 56, 0.72);
}

.info-list i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #1b1609;
  background: linear-gradient(145deg, #ffe4a5, var(--gold));
  font-style: normal;
  font-weight: 950;
}

.info-list h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.info-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.faq-section {
  border-top: 1px solid var(--soft-line);
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(11, 32, 56, 0.7);
}

.faq-list summary {
  min-height: 48px;
  padding: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 11px;
}

.responsible-panel {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 13px;
  margin: 0 16px 25px;
  padding: 14px;
  border: 1px solid rgba(56, 230, 165, 0.35);
  border-radius: 16px;
  background: rgba(56, 230, 165, 0.065);
}

.responsible-panel > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--emerald);
  border-radius: 50%;
  color: var(--emerald);
  font-size: 17px;
  font-weight: 950;
}

.responsible-panel strong {
  color: var(--emerald);
  font-size: 12px;
}

.responsible-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.compact {
  margin-top: 24px;
}

.final-cta {
  margin: 0 16px 30px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(246, 200, 102, 0.12), rgba(56, 230, 165, 0.08)),
    var(--panel);
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
}

.final-cta > p:not(.eyebrow) {
  margin: 9px auto 16px;
  color: var(--muted);
  font-size: 11px;
}

.subhero {
  min-height: 440px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.breadcrumb strong,
.breadcrumb a:last-child {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
}

.guide-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: 175px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.guide-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
}

.guide-card small {
  color: var(--gold);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.guide-card strong {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.25;
}

.guide-card em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-card b {
  margin-top: auto;
  color: var(--emerald);
  font-size: 10px;
}

.article-feed,
.related-grid {
  display: grid;
  gap: 11px;
}

.pager,
.pagebreak {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.pager a,
.pager span,
.pagebreak a,
.pagebreak span {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(11, 32, 56, 0.82);
  font-size: 10px;
}

.article-paper .pagebreak {
  margin: 0;
  padding: 0 18px 18px;
}

.article-paper .pagebreak a,
.article-paper .pagebreak span {
  border-color: #d2dae4;
  color: #34445b;
  background: #fff;
}

.prenext {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid #dce2e9;
}

.prenext div {
  padding: 11px;
  border-radius: 11px;
  color: #45556d;
  background: #e8edf3;
  font-size: 11px;
}

.note-section {
  border-top: 1px solid var(--soft-line);
  background: rgba(10, 30, 52, 0.65);
}

.article-hero {
  min-height: 405px;
}

.article-hero h1 {
  font-size: 32px;
}

.article-wrap {
  padding: 0 11px 24px;
}

.article-paper {
  overflow: hidden;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.article-paper > header {
  padding: 19px 18px 15px;
  border-bottom: 1px solid #dce2e9;
}

.article-lead {
  margin: 0 0 13px;
  color: #415168;
  font-size: 15px;
  font-weight: 650;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #768398;
  font-size: 10px;
}

.article-body {
  padding: 20px 18px;
  font-size: 16px;
  line-height: 1.72;
}

.article-body h2 {
  margin: 27px 0 10px;
  color: #10223b;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 15px;
}

.article-body img {
  width: 100%;
  height: auto;
  margin: 19px 0;
  border-radius: 15px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body blockquote {
  margin: 22px 0 0;
  padding: 14px;
  border-left: 4px solid var(--emerald-deep);
  border-radius: 9px 14px 14px 9px;
  color: #314156;
  background: #e8f4ef;
}

.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  min-width: 110px;
  padding: 9px;
  border: 1px solid #d4dce6;
}

.article-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 16px 18px 20px;
  border-top: 1px solid #dce2e9;
}

.article-actions .button {
  min-width: 0;
  padding: 0 9px;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
  padding: 32px 22px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--gold);
  font-size: 88px;
  font-weight: 950;
  line-height: 1;
}

.not-found h1 {
  margin: 10px 0;
  font-size: 30px;
}

.not-found > p:not(.error-code):not(.age-note) {
  margin: 0 0 20px;
  color: var(--muted);
}

.age-note {
  color: var(--emerald);
  font-size: 11px;
}

.footer {
  padding: 27px 20px;
  border-top: 1px solid var(--soft-line);
  text-align: center;
}

.footer-brand {
  justify-content: center;
}

.footer p {
  margin: 5px 0;
  color: #8595aa;
  font-size: 9px;
}

.footer > strong {
  color: var(--emerald);
  font-size: 10px;
}

.bottom-nav {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 7px 3px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 24, 0.96);
  backdrop-filter: blur(17px);
}

.nav-item {
  display: grid;
  place-items: center;
  min-height: 54px;
  gap: 2px;
  color: #8f9daf;
  font-size: 9px;
  font-weight: 800;
}

.nav-item i {
  font-size: 17px;
  font-style: normal;
  line-height: 1;
}

.nav-item.active {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
}

@media (min-width: 431px) {
  .site-shell {
    border-right: 1px solid var(--soft-line);
    border-left: 1px solid var(--soft-line);
  }
}

@media (max-width: 360px) {
  .auth-link {
    padding: 0 8px;
    font-size: 9px;
  }

  .hero h1,
  .subhero h1 {
    font-size: 33px;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .category-card {
    min-height: 178px;
  }

  .step-grid,
  .note-grid {
    gap: 5px;
  }

  .step-grid article,
  .note-grid article {
    padding: 11px 6px;
  }

  .guide-card {
    grid-template-columns: 108px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .category-card > img {
    transition: none;
  }
}
