*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #737373;
  --muted-soft: #a3a3a3;
  --border: rgba(0, 0, 0, 0.1);
  --border-soft: rgba(0, 0, 0, 0.07);
  --card: #ffffff;
  --blue: #0071e3;
  --telegram: #27a7e7;
  --radius: 14px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.page {
  min-height: 100vh;
  background: var(--bg);
}

.app {
  max-width: 512px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #000;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.telegram-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  background: var(--telegram);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 3px;
}

.telegram-badge svg {
  width: 100%;
  height: 100%;
}

.title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.subtitle {
  font-size: 14px;
  color: #525252;
  line-height: 1.35;
  margin-bottom: 16px;
}

.bot-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.bot-btn:hover {
  opacity: 0.8;
}

.divider {
  border-top: 1px solid var(--border);
  margin-bottom: 8px;
}

.articles {
  display: flex;
  flex-direction: column;
}

.article {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  color: inherit;
  text-decoration: none;
}

.article:last-child {
  border-bottom: none;
}

.article-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.article-thumb {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.article:hover .article-thumb {
  transform: scale(1.03);
}

.badge-new {
  position: absolute;
  top: -4px;
  right: -4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 1px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.article-text {
  flex: 1;
  min-width: 0;
}

.article-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.read-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 4px 16px;
  transition: background 0.2s;
}

.article:hover .read-pill {
  background: rgba(0, 0, 0, 0.1);
}

.views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

.views svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.article-views {
  margin-left: 2px;
}

.article-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #a3a3a3;
  transition: transform 0.3s;
}

.article:hover .article-chevron {
  transform: translateX(2px);
}

.footer {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-card {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card-head img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.app-card-head span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.store-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.store-grid a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1.02);
}

.store-grid a:active {
  transform: scale(0.98);
}

.store-grid svg {
  width: 20px;
  height: 20px;
}

.store-grid span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.support h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.support a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.support a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1.01);
}

.support svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.support span {
  font-size: 12px;
  font-weight: 500;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.socials a:hover {
  transform: scale(1.1);
}

.socials a:active {
  transform: scale(0.95);
}

.socials svg {
  width: 36px;
  height: 36px;
}

.legal {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal p {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(115, 115, 115, 0.85);
}

.copyright {
  font-size: 10px;
  color: rgba(163, 163, 163, 0.9);
  text-align: center;
  padding-top: 8px;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 260;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.modal-close:hover {
  background: #fff;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-nav {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 250;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal-nav:hover {
  opacity: 1;
}

.modal-nav--prev {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.modal-nav--next {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}

.modal-nav svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 448px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scale-in 0.3s ease-out;
  z-index: 210;
}

.modal-image {
  width: 100%;
  height: 224px;
  object-fit: cover;
  object-position: 50% 25%;
  flex-shrink: 0;
}

.modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.modal-body h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal-body .views {
  margin-top: 10px;
  font-size: 13px;
}

.modal-body .views svg {
  width: 16px;
  height: 16px;
}

.modal-preview-wrap {
  position: relative;
  margin-top: 20px;
}

.modal-preview-wrap p {
  font-size: 15px;
  line-height: 1.6;
  color: #262626;
}

.modal-fade {
  position: absolute;
  inset: auto 0 0;
  height: 128px;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.9) 45%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.modal-fade span {
  font-size: 12px;
  color: var(--muted);
}

.modal-cta {
  margin-top: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.modal-cta:hover {
  opacity: 0.85;
}

.modal-cta-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.modal-cta-icon[hidden] {
  display: none;
}

.modal-cta-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Article page */
.article-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-header h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.read-time {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.read-time .views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
  vertical-align: -0.15em;
}

.read-time .views svg {
  width: 15px;
  height: 15px;
}

.article-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.article-body.article-body--editorial {
  font-size: 17px;
  line-height: 1.65;
}

.article-meta-line {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.article-highlight {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  line-height: 1.55;
}

.article-highlight p {
  margin: 0;
}

.article-soft-card {
  margin: 14px 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.article-soft-card > :first-child {
  margin-top: 0;
}

.article-soft-card ol,
.article-soft-card ul {
  margin-top: 8px;
}

.article-body ul.article-step-grid,
.article-body ol.article-step-grid {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 10px;
}

.article-body ul.article-step-grid li,
.article-body ol.article-step-grid li {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: grid;
  gap: 4px;
}

.article-body--editorial h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.article-body--editorial h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.article-body--compact-shots figure {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.article-body--compact-shots figure img {
  width: auto;
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: top center;
  background: #f7f7f8;
}

.article-body--compact-shots .article-figure-row {
  margin: 12px 0;
  align-items: stretch;
}

.article-body--compact-shots .article-figure-row figure {
  margin: 0;
  min-height: 0;
}

.article-body--compact-shots .article-figure-row img,
.article-body--compact-shots .article-figure-row--phones img {
  width: 100%;
  height: 220px;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  background: #f7f7f8;
}

@media (min-width: 420px) {
  .article-body--compact-shots figure img,
  .article-body--compact-shots .article-figure-row img,
  .article-body--compact-shots .article-figure-row--phones img {
    height: 250px;
  }
}

.article-step-grid strong {
  font-size: 15px;
  font-weight: 600;
}

.article-step-grid span {
  font-size: 15px;
  line-height: 1.45;
  color: #444;
}

.article-body figure > img {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.article-link-pill {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: #0563c1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.article-body > p + p,
.article-body > p + h2,
.article-body > ul + p,
.article-body > figure + p,
.article-body > .table-wrap + p,
.article-body > .stat-stack + h2 {
  margin-top: 12px;
}

.article-body h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.article-body h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  margin-top: 10px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.article-body ul.list-tight {
  gap: 0;
  line-height: 1.35;
}

.article-body ul.list-tight li {
  margin: 0;
  padding: 0;
}

.article-body ul {
  list-style: disc;
}

.article-body ul.takeaway-list {
  list-style: none;
  padding-left: 0;
  gap: 2px;
}

.article-body ul.takeaway-list li {
  list-style: none;
  padding-left: 0;
}

.article-body ol {
  list-style: decimal;
}

.article-body .course-list-title {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.article-body ul.course-includes {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
  gap: 2px;
}

.article-body ul.course-includes li {
  list-style: none;
  padding-left: 0;
  font-weight: 400;
  line-height: 1.35;
}

.article-body figure {
  margin: 20px 0;
}

.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.article-figure--phone img {
  width: auto;
  max-width: 46%;
  margin-left: auto;
  margin-right: auto;
}

.article-figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.article-figure-row img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.article-figure-row--phones {
  align-items: start;
}

.article-figure-row--phones figure {
  margin: 0;
}

.article-figure-row--phones img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.article-figure-row figcaption {
  grid-column: 1 / -1;
}

.funds-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: 8px 6px;
  align-items: center;
  margin: 18px 0 20px;
}

.funds-compare__list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 14px;
  line-height: 1.45;
  display: grid;
  gap: 6px;
}

.funds-compare__list li {
  padding-left: 0;
}

.funds-compare__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 78px;
  text-align: center;
}

.funds-compare__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #d11a2a;
}

.funds-compare__arrow {
  color: #d11a2a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.funds-compare__shot {
  margin: 0;
}

.funds-compare__shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

@media (max-width: 360px) {
  .funds-compare {
    grid-template-columns: minmax(0, 0.95fr) auto minmax(0, 1.2fr);
    gap: 6px 4px;
  }

  .funds-compare__list {
    font-size: 12px;
    gap: 5px;
  }

  .funds-compare__label {
    font-size: 10px;
  }

  .funds-compare__arrow {
    font-size: 24px;
  }
}

.article-body figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

.article-pullquote {
  margin: 24px 0;
  padding: 16px 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.article-disclaimer {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.article-video {
  position: relative;
  margin: 20px 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.article-video-block {
  margin: 16px 0 20px;
}

.article-video-block .article-video {
  margin: 0;
}

.article-video-caption {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 8px 14px;
  text-align: center;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  color: #6b6b6b;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(242, 242, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.article-video-caption--plain {
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
}

/* iOS-style story blocks */
.ios-card {
  margin: 14px 0 18px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 24px rgba(0, 0, 0, 0.06);
}

.ios-card p + p {
  margin-top: 10px;
}

.ios-card--accent {
  background: rgba(242, 242, 247, 0.95);
}

.ios-card h2 {
  margin-top: 0;
}

.ios-story {
  margin: 18px 0 22px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 8px 28px rgba(0, 0, 0, 0.06);
}

.ios-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f2f2f7;
}

.ios-person__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, #5ac8fa, #007aff);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.28);
}

.ios-person__avatar--rose {
  background: linear-gradient(160deg, #ff9f0a, #ff375f);
  box-shadow: 0 2px 8px rgba(255, 55, 95, 0.25);
}

.ios-person__avatar--teal {
  background: linear-gradient(160deg, #64d2ff, #30d158);
  box-shadow: 0 2px 8px rgba(48, 209, 88, 0.25);
}

.ios-person__avatar--photo {
  padding: 0;
  overflow: hidden;
  background: #e5e5ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ios-person__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.ios-person__avatar--photo img[src*="anna"] {
  object-position: center 22%;
}

.ios-person__avatar--indigo {
  background: linear-gradient(160deg, #bf5af2, #5856d6);
  box-shadow: 0 2px 8px rgba(88, 86, 214, 0.28);
}

.ios-person__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-body .ios-person__name,
.ios-person__name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #1c1c1e;
}

.article-body .ios-person__tag,
.ios-person__tag {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: #8e8e93;
}

.ios-chips {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.ios-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f2f2f7;
  display: grid;
  gap: 4px;
}

.ios-chip__t {
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1e;
}

.ios-chip__d {
  font-size: 13px;
  line-height: 1.4;
  color: #6b6b6b;
}

.ios-secret {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(242, 242, 247, 0.95);
  font-size: 14px;
  line-height: 1.45;
}

.ios-result {
  margin-top: 12px;
  padding: 0 0 0 1.1em;
  border-radius: 0;
  background: none;
  font-size: 13px;
  line-height: 1.45;
  gap: 6px;
}

.ios-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f2f2f7;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.article-video--ios {
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(0, 0, 0, 0.08);
  background: #000;
}

.article-body ul.ios-result {
  gap: 6px;
}

.article-body ul.ios-result li {
  margin: 0;
  padding: 0;
}

.article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-link-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.article-link-stack a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
}

.article-link-stack a:hover {
  opacity: 0.9;
}

.article-link-stack a:active {
  transform: scale(0.99);
}

.article-caption {
  margin-top: 14px;
  margin-bottom: 8px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.4;
}

.article-caption + .article-video {
  margin-top: 8px;
}

.article-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ebe4f8;
}

.article-tip-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #7b5bb8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  line-height: 22px;
  text-align: center;
}

.article-tip p {
  margin: 0;
  line-height: 1.45;
}

.article-body blockquote footer {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.article-body strong {
  font-weight: 600;
}

.article-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 12px 12px 0;
}

.stat-stack {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
  padding: 16px;
}

.stat-value {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.stat-value--md {
  font-size: 22px;
}

.stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap thead {
  background: rgba(0, 0, 0, 0.04);
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  text-align: left;
  font-weight: 400;
}

.table-wrap th {
  font-weight: 500;
}

.table-wrap tbody tr {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.course-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.25);
}

.course-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.course-text {
  font-size: 15px;
  line-height: 1.45;
}

.course-meta {
  margin-top: 8px;
}

.course-list-title {
  margin-top: 12px;
  font-weight: 500;
}

.course-text ul {
  margin-top: 4px;
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 0;
}

.legal-note {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.course-btn {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
}

.course-btn:active {
  transform: scale(0.99);
}

.course-btn--primary {
  background: #000;
  color: #fff;
}

.course-btn--primary:hover {
  opacity: 0.9;
}

.course-btn--secondary {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.course-btn--secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.article-back {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-back .back-link {
  margin-bottom: 0;
}

/* Exact savings calculator styles from provided HTML, scoped into article */
#calc100k {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  color: #1a1a1a;
  overflow: visible;
}

#calc100k *,
#calc100k *::before,
#calc100k *::after {
  box-sizing: border-box;
}

#calc100k .card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

#calc100k h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1a1a1a;
  line-height: 1.3;
}

#calc100k .ctrl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#calc100k .ctrl-row:last-child {
  margin-bottom: 0;
}

#calc100k .ctrl-label {
  font-size: 13px;
  color: #555;
  min-width: 140px;
  flex-shrink: 0;
}

#calc100k .ctrl-row input[type="range"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  accent-color: #2a78d6;
  height: 4px;
  margin: 0;
}

#calc100k .ctrl-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  min-width: 72px;
  text-align: right;
  flex-shrink: 0;
}

#calc100k .metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#calc100k .metric {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
}

#calc100k .metric-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

#calc100k .metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  word-break: break-word;
}

#calc100k .metric-sub {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

#calc100k .legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  align-items: center;
}

#calc100k .legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

#calc100k .leg-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

#calc100k .chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}

#calc100k .chart-wrap canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

#calc100k .progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

#calc100k .progress-row:last-child {
  border-bottom: none;
}

#calc100k .prog-month {
  min-width: 52px;
  color: #888;
  flex-shrink: 0;
}

#calc100k .prog-bar-wrap {
  flex: 1;
  min-width: 0;
  background: #f0f0f0;
  border-radius: 4px;
  height: 14px;
  overflow: hidden;
}

#calc100k .prog-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

#calc100k .prog-amount {
  min-width: 90px;
  text-align: right;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 13px;
  flex-shrink: 0;
}

@media (max-width: 420px) {
  #calc100k .ctrl-label {
    min-width: 110px;
  }

  #calc100k .metrics {
    grid-template-columns: 1fr;
  }

  #calc100k .metric-value {
    font-size: 18px;
  }
}

@media (min-width: 640px) {
  .app {
    padding: 24px 20px 40px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .telegram-badge {
    width: 24px;
    height: 24px;
  }

  .title {
    font-size: 20px;
  }

  .modal-nav {
    display: flex;
  }

  .modal-body h3 {
    font-size: 24px;
  }
}
