/* Главная страница — первый экран */

.hero-section,
.hero-content {
  margin-left: 0;
  padding-left: 0;
}

.hero-section {
  padding: 45px 0 42px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 92px;
}

.hero-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}

.hero-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-description p {
  margin-bottom: 14px;
}

.hero-description__motto {
  font-weight: 600;
  font-style: normal;
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(var(--color-accent-rgb), 0.22);
}

.hero-btn__icon {
  flex-shrink: 0;
}

.hero-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-accent-rgb), 0.28);
  color: #FFFFFF;
}

/* ---- Блок автора (под кнопками, две строки) ---- */

.hero-author {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  background: transparent;
}

.hero-author__avatar {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
}

.hero-author__info {
  min-width: 0;
}

.hero-author__name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-heading);
}

.hero-author__role {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* ---- Правый блок: Glassmorphism ---- */

.hero-widgets {
  --glass-mono: ui-monospace, 'Cascadia Code', 'Consolas', 'Liberation Mono', monospace;
  --glass-olive: var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 380px;
  width: 380px;
  max-width: 380px;
  min-height: 0;
  box-sizing: border-box;
  overflow: visible;
  margin-left: auto;
  justify-content: flex-start;
}

.hero-glass {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 22px;
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow:
    0 12px 24px -12px rgba(17, 24, 39, 0.08),
    0 0 0 1px rgba(17, 24, 39, 0.04);
}

.hero-glass--referral {
  flex: 0 0 auto;
  padding: 20px 22px;
  background: #F4F8F6;
  border: 1px solid #E5E7EB;
  border-left: 4px solid #0F5A47;
  border-radius: 10px;
  box-shadow:
    0 10px 22px -14px rgba(17, 24, 39, 0.1),
    0 0 0 1px rgba(15, 90, 71, 0.06);
  animation: hero-glass-enter 0.4s ease both;
  will-change: transform, opacity;
}

.hero-glass--articles {
  flex: 0 0 auto;
  padding: 20px 22px;
  animation: hero-glass-enter 0.4s ease 0.1s both;
  will-change: transform, opacity;
}

@keyframes hero-glass-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-glass__referral-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #0F5A47;
}

.hero-glass--referral .hero-glass__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.hero-glass--referral .hero-glass__link {
  padding-top: 6px;
  color: #0F5A47;
  font-weight: 600;
}

.hero-glass--referral .hero-glass__link:hover {
  color: var(--color-accent-hover);
}

.hero-glass__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-glass--articles .hero-glass__head {
  margin-bottom: 14px;
}

.hero-glass__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.hero-glass__new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--color-accent-light);
  font-family: var(--glass-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--color-accent);
}

.hero-glass__new-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(var(--color-accent-rgb), 0.2);
}

.hero-glass__text {
  flex: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
}

.hero-glass__link {
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-glass__link:hover {
  color: var(--glass-olive);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-glass__list {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-glass__item {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #F3F4F6;
}

.hero-glass__item:first-child {
  padding-top: 0;
}

.hero-glass__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hero-glass__meta {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: #9CA3AF;
}

.hero-glass__article-link {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-glass__article-link:hover {
  color: var(--glass-olive);
}

.hero-glass__empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.hero-glass--articles .hero-glass__link {
  margin-top: 0;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    padding: 30px 0 28px;
    gap: 0;
    text-align: center;
  }

  .hero-content {
    max-width: none;
  }

  .hero-author {
    margin: 0 auto;
    width: fit-content;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-widgets {
    flex: none;
    width: 100%;
    max-width: min(480px, 100%);
    height: auto !important;
    margin: 12px auto 0;
    overflow: visible;
  }

  .hero-glass--articles {
    flex: none;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero-btn {
    width: 100%;
  }

  .hero-widgets {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glass--referral,
  .hero-glass--articles {
    animation: none;
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  .hero-glass__link,
  .hero-glass__article-link,
  .hero-btn {
    transition: none;
  }
}
