@layer ta.components {
  .ta-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: max-content;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ta-ink);
  }

  .ta-logo__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ta-accent);
    color: var(--ta-surface);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
  }

  .ta-nav {
    display: flex;
    gap: 18px;
    min-width: 0;
    overflow: hidden;
    color: var(--ta-muted);
    font-size: 14px;
    white-space: nowrap;
  }

  .ta-nav span {
    cursor: default;
    user-select: none;
  }

  .ta-header-meta {
    display: flex;
    gap: 12px;
    justify-content: end;
    color: var(--ta-muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .ta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ta-accent-soft);
    color: var(--ta-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
  }

  .ta-author {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 6px;
    font-style: normal;
  }

  .ta-author__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ececef, #dcdcde);
    color: var(--ta-ink);
    font-size: 16px;
    font-weight: 750;
    overflow: hidden;
  }

  .ta-author__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .ta-author strong,
  .ta-author span {
    display: block;
  }

  .ta-author strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .ta-author span {
    margin-top: 2px;
    color: var(--ta-muted);
    font-size: 13px;
    line-height: 1.35;
  }

  .ta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--ta-accent);
    border-radius: 999px;
    background: var(--ta-accent);
    color: var(--ta-surface);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .ta-button:hover {
    transform: translateY(-1px);
    background: var(--ta-accent-hover);
    border-color: var(--ta-accent-hover);
  }

  .ta-button:focus-visible {
    outline: 3px solid var(--ta-focus);
    outline-offset: 3px;
  }

  .ta-button--secondary {
    background: var(--ta-surface);
    color: var(--ta-accent);
  }

  .ta-button--secondary:hover {
    background: #f1f1f3;
    color: var(--ta-accent);
    border-color: var(--ta-accent);
  }

  .ta-side-card {
    padding: 18px;
    border: 1px solid var(--ta-line);
    border-radius: var(--ta-radius-md);
    background: var(--ta-surface);
  }

  .ta-side-card h2,
  .ta-side-card p {
    margin: 0;
  }

  .ta-side-card h2 {
    font-size: 17px;
    font-weight: 760;
    line-height: 1.25;
  }

  .ta-side-card p {
    margin-top: 8px;
    color: var(--ta-muted);
    font-size: 14px;
    line-height: 1.45;
  }

  .ta-follow {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--ta-accent-soft);
    color: var(--ta-ink);
    font-size: 14px;
    font-weight: 700;
    cursor: default;
    user-select: none;
  }

  .ta-news-list {
    display: grid;
    gap: 14px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
  }

  .ta-news-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .ta-news-thumb {
    width: 54px;
    height: 54px;
    border-radius: var(--ta-radius-sm);
    background:
      linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)),
      #e5e1da;
  }

  .ta-news-item p {
    margin: 0;
    color: var(--ta-ink);
    font-size: 14px;
    line-height: 1.38;
  }

  .ta-news-item span {
    display: block;
    margin-top: 5px;
    color: var(--ta-muted-light);
    font-size: 12px;
    line-height: 1.25;
  }

  .ta-ad-label {
    display: block;
    margin-bottom: 10px;
    color: var(--ta-muted-light);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .ta-mini-ad {
    display: grid;
    gap: 12px;
    min-height: 160px;
    background: #fbfbfc;
  }

  .ta-mini-ad__visual {
    min-height: 78px;
    border-radius: var(--ta-radius-sm);
    background:
      radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.9) 0 10px, transparent 11px),
      linear-gradient(135deg, #ddd8cf, #f1eee8);
  }

  @media (max-width: 760px) {
    .ta-nav {
      grid-column: 1 / -1;
      order: 3;
      margin: 0 -14px;
      padding: 0 14px 12px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .ta-nav::-webkit-scrollbar {
      display: none;
    }

    .ta-header-meta {
      font-size: 12px;
    }

    .ta-header-meta span:last-child {
      display: none;
    }

    .ta-button {
      width: 100%;
    }
  }

  @media (max-width: 420px) {
    .ta-logo {
      font-size: 18px;
    }

    .ta-logo__mark {
      width: 28px;
      height: 28px;
    }
  }
}
