:root {
  --navy: #0f2240;
  --navy-light: #1a3460;
  --orange: #f4632a;
  --yellow: #f9c846;
  --gray: #f5f6f8;
  --text: #1a1a2e;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(249, 200, 70, 0.18), transparent 26%),
    radial-gradient(circle at 94% 0%, rgba(244, 99, 42, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f5f6f8 58%, #ffffff 100%);
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 48px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 34, 64, 0.08);
  transition:
    top 0.32s ease,
    width 0.32s ease,
    padding 0.32s ease,
    border-radius 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease;
}

body.nav-scrolled nav {
  top: 10px;
  width: min(1210px, calc(100% - 86px));
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1.5px solid rgba(15, 34, 64, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 34, 64, 0.12);
}

.logo {
  position: absolute;
  left: 48px;
  font-family: "Gochi Hand", cursive;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  text-decoration: none;
  color: var(--navy);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 15px;
  opacity: 0.72;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-cta {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244, 99, 42, 0.35);
  cursor: pointer;
}

button.side-btn {
  font: inherit;
}

button.nav-cta {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14px;
}

button.side-btn {
  cursor: pointer;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lead-modal.open { display: flex; }

.lead-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #b8e8ff;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  padding: 30px 24px 24px;
}

.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #eef2f7;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lead-modal-title {
  margin: 2px 0 10px;
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.lead-modal-subtitle {
  max-width: 420px;
  margin: 0 auto 24px;
  color: #6a7a8a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.lead-capture-form.success .form-field,
.lead-capture-form.success .form-privacy,
.lead-capture-form.success .btn-form {
  display: none;
}

.form-field {
  width: 100%;
  margin-bottom: 14px;
  padding: 15px 18px;
  border: 2px solid transparent;
  border-radius: 18px;
  outline: none;
  background: #f0f2f5;
  color: var(--navy);
  font: 800 15px "Nunito", sans-serif;
}

.form-field:focus {
  border-color: rgba(244, 99, 42, 0.34);
  background: #fff;
}

.form-privacy {
  margin: 2px 0 14px;
  color: #8a9ab5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.btn-form {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font: 900 14px "Nunito", sans-serif;
  box-shadow: 0 8px 20px rgba(244, 99, 42, 0.28);
}

.btn-form:disabled { opacity: 0.65; cursor: default; }

.lead-status {
  display: none;
  margin-top: 12px;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.lead-status.show { display: block; }
.lead-status.loading { background: #eef6ff; color: #2563eb; }
.lead-status.success { background: #eef9f3; color: #177c4c; }
.lead-status.error { background: #fff3ef; color: #c55b34; }

.lead-social-success {
  display: none;
  margin-top: 16px;
  text-align: center;
}

.lead-capture-form.success .lead-social-success { display: block; }
.lead-social-title { color: var(--navy); font-size: 17px; font-weight: 900; }
.lead-social-text { margin-top: 6px; color: #6a7a8a; font-size: 13px; font-weight: 700; line-height: 1.55; }
.lead-social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.lead-social-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.lead-social-links .telegram { background: #229ed9; }
.lead-social-links .instagram { background: #e4405f; }

main {
  padding: 106px 48px 64px;
}

.stories-wrap {
  max-width: 1200px;
  margin: 0 auto 14px;
}

.stories-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 152px;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}

.story-card {
  border: 1.5px solid rgba(15, 34, 64, 0.12);
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(15, 34, 64, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  text-align: left;
}

.story-card:hover {
  border-color: rgba(244, 99, 42, 0.45);
  transform: translateY(-1px);
}

.story-thumb {
  width: 100%;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f8;
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-caption {
  font-size: 12px;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 900;
  padding: 0 2px 2px;
}

.stories-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}

.stories-modal.open {
  display: block;
}

.stories-overlay-hit {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.84);
}

.stories-viewer {
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  background: #111826;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.stories-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 56px;
  z-index: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
}

.story-progress-seg {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.story-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.stories-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.stories-media {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #0d1422;
}

.stories-media img,
.stories-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stories-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 16px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0) 0%, rgba(5, 10, 20, 0.76) 100%);
}

.stories-title {
  font-size: 15px;
  line-height: 1.35;
  color: #fff;
  font-weight: 900;
}

.stories-link {
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

body.stories-open {
  overflow: hidden;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.article-main {
  background: #fff;
  border: 1.5px solid rgba(15, 34, 64, 0.08);
  border-radius: 28px;
  box-shadow: 0 12px 34px rgba(15, 34, 64, 0.08);
  overflow: hidden;
}

.article-hero {
  padding: 28px 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(249, 200, 70, 0.28), transparent 46%),
    radial-gradient(circle at 86% 20%, rgba(244, 99, 42, 0.24), transparent 44%),
    linear-gradient(135deg, #0f2240 0%, #1a3460 100%);
  color: #fff;
}

.article-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 800;
}

.article-tag-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tag,
.article-cat {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.article-cat {
  background: rgba(249, 200, 70, 0.24);
  border: 1px solid rgba(249, 200, 70, 0.36);
  color: #ffe8a5;
}

.article-title {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 900;
}

.article-meta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.84);
}

.article-summary {
  padding: 22px 30px 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
  color: #5f6f88;
}

.article-content {
  padding: 18px 30px 30px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #2f3d53;
  margin-top: 14px;
}

.article-content h2,
.article-content h3 {
  margin-top: 22px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 900;
}

.article-content h3 {
  font-size: 22px;
}

.article-content h4 {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 900;
}

.article-content ul {
  margin-top: 12px;
  margin-left: 20px;
}

.article-content ol {
  margin-top: 12px;
  margin-left: 22px;
}

.article-content li {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #2f3d53;
  font-weight: 700;
}

.article-content a {
  color: var(--orange);
  font-weight: 900;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content strong {
  color: var(--navy);
  font-weight: 900;
}

.article-content em {
  color: #4e5f78;
}

.article-content code {
  display: inline-block;
  font-size: 0.92em;
  background: rgba(15, 34, 64, 0.06);
  border: 1px solid rgba(15, 34, 64, 0.14);
  border-radius: 6px;
  padding: 1px 7px;
}

.article-content blockquote {
  margin-top: 16px;
  border-left: 4px solid rgba(244, 99, 42, 0.5);
  background: rgba(244, 99, 42, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.article-content blockquote p {
  margin-top: 0;
  font-size: 16px;
  color: #5a4a34;
  font-weight: 800;
}

.article-image {
  margin-top: 18px;
}

.article-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1.5px solid rgba(15, 34, 64, 0.12);
  box-shadow: 0 10px 26px rgba(15, 34, 64, 0.12);
}

.article-image figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #7a889d;
}

.article-image.plain img {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.article-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(15, 34, 64, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid rgba(15, 34, 64, 0.08);
  border-right: 1px solid rgba(15, 34, 64, 0.08);
  padding: 10px 12px;
  min-width: 120px;
  vertical-align: top;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table th:last-child,
.article-table td:last-child {
  border-right: none;
}

.article-table th {
  background: rgba(15, 34, 64, 0.06);
  font-size: 13px;
  color: var(--navy);
  font-weight: 900;
}

.article-table td {
  font-size: 14px;
  color: #2f3d53;
  font-weight: 700;
  line-height: 1.5;
}

.article-divider {
  margin-top: 20px;
  border: none;
  border-top: 1px dashed rgba(15, 34, 64, 0.2);
}

.article-quiz {
  margin-top: 18px;
  border: 1.5px solid rgba(15, 34, 64, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(15, 34, 64, 0.08);
}

.quiz-question {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  color: var(--navy);
}

.quiz-options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(15, 34, 64, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
}

.quiz-option input {
  margin-top: 3px;
}

.quiz-option span {
  font-size: 15px;
  line-height: 1.5;
  color: #2f3d53;
  font-weight: 700;
}

.quiz-check {
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 14px;
  cursor: pointer;
}

.quiz-result {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
}

.quiz-result.show {
  display: block;
}

.quiz-result.ok {
  color: #2b9555;
}

.quiz-result.bad,
.quiz-result.warn {
  color: #c45022;
}

.article-side {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-card {
  background: #fff;
  border: 1.5px solid rgba(15, 34, 64, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 34, 64, 0.06);
}

.side-card h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
}

.side-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #67768d;
  font-weight: 700;
}

.side-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  border: none;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  padding: 11px 14px;
}

.state-box {
  background: #fff;
  border: 1.5px solid rgba(15, 34, 64, 0.08);
  border-radius: 22px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 34, 64, 0.06);
}

.state-box h2 {
  font-size: 26px;
  color: var(--navy);
  font-weight: 900;
}

.state-box p {
  margin-top: 8px;
  font-size: 15px;
  color: #6f7f96;
  line-height: 1.6;
  font-weight: 700;
}

.state-box a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--orange);
  font-weight: 900;
  text-decoration: none;
}

footer {
  margin-top: 24px;
  text-align: center;
  color: #7e8aa0;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 0 8px;
}

@media (max-width: 1100px) {
  nav {
    padding: 14px 24px;
  }

  body.nav-scrolled nav {
    top: 10px;
    width: calc(100% - 38px);
    border-radius: 20px;
    padding: 12px 20px;
  }

  main {
    padding: 94px 24px 56px;
  }

  .stories-viewer {
    inset: 12px;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 780px) {
  nav {
    padding: 12px 16px;
  }

  body.nav-scrolled nav {
    top: 10px;
    width: calc(100% - 22px);
    border-radius: 18px;
    padding: 10px 14px;
  }

  .logo {
    font-size: 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 10px 14px;
    font-size: 13px;
  }

  main {
    padding: 84px 16px 42px;
  }

  .stories-wrap {
    margin-bottom: 10px;
  }

  .stories-list {
    grid-auto-columns: 136px;
  }

  .story-thumb {
    height: 80px;
  }

  .stories-viewer {
    inset: 8px;
    border-radius: 16px;
  }

  .article-main {
    border-radius: 22px;
  }

  .article-hero {
    padding: 22px 18px;
  }

  .article-summary {
    padding: 18px 18px 0;
    font-size: 16px;
  }

  .article-content {
    padding: 14px 18px 22px;
  }

  .article-content p {
    font-size: 16px;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .quiz-question {
    font-size: 16px;
  }

  .article-side {
    grid-template-columns: 1fr;
  }
}
