/* ============================================================
   /articles/style.css
   Самодостаточные стили страницы «Блог».
   ============================================================ */

:root {
  --body-bg: #060910;
  --bg: #0b0f14;
  --card: #11161d;
  --ink: #e8eef7;
  --muted: #9aa6b2;
  --blue: #4a92f3;
  --blue-2: #2b6de6;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-lg: 22px;
  --max: 1200px;
  --card-bg: #0b0e17;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--body-bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #060910 0%, #0b0f14 42%, #060910 100%);
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection {
  color: #fff;
  background: var(--blue-2);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

[data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.8;
  color: currentColor;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

h2 em {
  color: var(--blue);
  font-style: normal;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(74, 146, 243, 0.1);
  content: "";
}

.section {
  padding: 100px 0;
}

.dark-section {
  background: var(--bg);
}

/* ============ HERO ============ */
.hero {
  width: min(calc(100% - 48px), 900px);
  margin-inline: auto;
  text-align: center;
  padding: 170px 0 40px;
}

.hero-copy .eyebrow {
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 8.4vw, 118px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.hero-status-row {
  display: flex;
  justify-content: center;
  margin: 0 0 26px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(127, 213, 141, 0.28);
  border-radius: 999px;
  color: #b8e6c1;
  background: rgba(127, 213, 141, 0.06);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd58d;
  flex-shrink: 0;
}

.hero-status-dot::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #7fd58d;
  content: "";
  animation: heroStatusPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes heroStatusPing {
  0% { opacity: 0.6; transform: scale(1); }
  75% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(2.4); }
}

.hero-description {
  max-width: 620px;
  margin: 24px auto 0;
  color: #c4cdd8;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}

/* ============ POSTS HEAD ============ */
.posts-head {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}

.posts-title {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.posts-intro {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ============ POST META / TAGS ============ */
.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.post-meta__sep {
  opacity: 0.5;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.post-tag {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* ============ POSTS GRID ============ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: transform 0.4s var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1920 / 740;
  background: #0a0d16;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(74, 146, 243, 0.95);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(74, 146, 243, 0.35);
  z-index: 2;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  flex: 1;
}

.post-card__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
  color: var(--ink);
}

.post-card__title a {
  transition: color 0.3s ease;
}

.post-card__title a:hover {
  color: var(--blue);
}

.post-card__excerpt {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.post-card__body .post-tags {
  margin-top: auto;
}

/* ============ SOON CARD ============ */
.post-card--soon {
  cursor: default;
  border-style: dashed;
  border-color: rgba(74, 146, 243, 0.2);
  background:
    linear-gradient(160deg, rgba(74, 146, 243, 0.05), transparent 60%),
    var(--card-bg);
}

.post-card--soon:hover {
  transform: none;
  border-color: rgba(74, 146, 243, 0.35);
  background:
    linear-gradient(160deg, rgba(74, 146, 243, 0.08), transparent 60%),
    var(--card-bg);
  box-shadow: none;
}

.post-card__media--soon {
  display: grid;
  place-items: center;
  aspect-ratio: 1920 / 740;
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(74, 146, 243, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(74, 146, 243, 0.1), transparent 70%),
    #0a0d16;
}

.post-card__media--soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 146, 243, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 146, 243, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.post-card__soon-icon {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(74, 146, 243, 0.35);
  border-radius: 16px;
  background: rgba(74, 146, 243, 0.12);
  color: var(--blue);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(74, 146, 243, 0.15);
}

.post-card__soon-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.post-card--soon .post-card__title {
  color: var(--muted);
}

/* ============ BUTTONS ============ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--blue);
  border-radius: 100px;
  color: var(--ink);
  background: var(--blue-2);
  font-size: 14.5px;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease),
    border-color 0.25s ease;
}

.button:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.button [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  padding: 60px 20px;
  padding-bottom: max(60px, env(safe-area-inset-bottom));
  background: #060910;
  overflow: hidden;
  font-size: 15px;
  color: var(--muted);
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -100px;
  width: 800px;
  height: 600px;
  background: radial-gradient(
    70% 60% at 90% 100%,
    rgba(59, 91, 140, 0.35) 0%,
    rgba(59, 91, 140, 0.15) 40%,
    rgba(59, 91, 140, 0.1) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
}

.footer-menu {
  display: flex;
  gap: 32px;
  font-size: 16px;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #b0b8c2;
  text-decoration: none;
  transition: 0.3s;
}

.footer-menu a:hover {
  font-weight: 600;
  color: #fff;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 50px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #b0b8c2;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-cta h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #11141a;
  border: 1px solid #2a2b2e;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
  width: auto;
}

.footer .button:hover {
  background: #2b2c31;
  transform: none;
}

.footer .button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
  border-top: 1px solid #2a2a2d;
  padding-top: 20px;
  font-size: 14px;
  color: #b0b8c2;
}

.crafted {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crafted img {
  height: 40px;
}

.scroll-top {
  position: absolute;
  right: 0;
  bottom: 125px;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 9999px;
  transition: background 0.3s;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scroll-top:hover {
  background: #2a2b30;
}

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1100px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .posts-head {
    gap: 40px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .hero {
    padding: 100px 0 32px;
  }

  .posts-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .posts-intro {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    width: min(calc(100% - 32px), 900px);
    padding: 72px 0 24px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 60px);
    margin-bottom: 22px;
  }

  .hero-status {
    padding: 5px 12px 5px 10px;
    font-size: 11.5px;
  }

  .hero-description {
    font-size: 15.5px;
  }

  .section {
    padding: 64px 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card__body {
    padding: 20px 20px 18px;
  }

  .footer {
    padding: 40px 16px max(40px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-menu {
    flex-direction: column;
    gap: 12px;
  }

  .footer-cta h2 {
    font-size: 20px;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer .button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 16px;
    text-align: center;
  }

  .crafted img {
    height: 32px;
  }

  .scroll-top {
    position: static;
    margin: 24px auto 0;
    width: 100%;
    max-width: 200px;
    display: block;
  }
}

@media (max-width: 550px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
  }

  .footer-col:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============ Ссылка «Читать статью» в карточке ============ */
/* ============ Кнопка «Читать статью» в карточке ============ */
.post-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 100px;
  background: var(--blue-2);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease),
    border-color 0.25s ease;
}

.post-card__btn [data-lucide] {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}

.post-card__btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.post-card__btn:hover [data-lucide] {
  transform: translateX(3px);
}

.post-card__btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}