/**
 * Psychologoose Landing — стили страницы.
 * UI Kit подключён ниже: меняйте ui-kit/ — обновится весь проект.
 */
@import '../ui-kit/index.css';

/* Three.js canvas — full viewport behind content */
.three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.three-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

html,
body {
  overflow-x: clip;
}

/* Header — футуристичный glass */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(12, 18, 16, 0.82) 0%, rgba(18, 28, 24, 0.75) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  box-shadow:
    0 1px 0 0 rgba(127, 255, 212, 0.08),
    0 0 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.25rem 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(127, 255, 212, 0.15));
}

.logo-text-wrap { display: flex; flex-direction: column; gap: 0.05rem; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(127, 255, 212, 0.06);
}
.logo-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-link:hover,
.nav-link-active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(127, 255, 212, 0.2);
}

.header .btn-outline {
  border-color: rgba(127, 255, 212, 0.35);
  color: var(--accent);
}
.header .btn-outline:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(127, 255, 212, 0.15);
}
.header .btn-primary:hover {
  box-shadow: 0 0 20px rgba(127, 255, 212, 0.3);
}

.nav-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-tg:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(127, 255, 212, 0.2);
  box-shadow: 0 0 12px rgba(127, 255, 212, 0.08);
}
.nav-tg-icon { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(127, 255, 212, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content [data-animate] {
  animation: heroFadeUp 0.7s ease-out backwards;
}
.hero-content .hero-badge { animation-delay: 0.1s; }
.hero-content .hero-title { animation-delay: 0.2s; }
.hero-content .hero-pills { animation-delay: 0.35s; }
.hero-content .hero-cta { animation-delay: 0.5s; }
.hero-visual[data-animate] {
  animation: heroFadeUp 0.8s ease-out 0.25s backwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-title-main {
  display: block;
  font-size: clamp(1.5rem, 5.5vw, 3rem);
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.5em;
  max-width: 28ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.hero-pill:hover {
  border-color: rgba(127, 255, 212, 0.3);
  background: rgba(26, 26, 46, 0.9);
  transform: translateY(-1px);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-cta-note {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.hero-visual-cta {
  display: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-hint svg {
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .hero-content [data-animate],
  .hero-visual[data-animate] {
    animation: none;
  }
  .hero-image-wrap,
  .personal-image-wrap {
    animation: none;
  }
  .hero-scroll-hint {
    animation: none;
  }
}

/* Section common */
.section {
  padding: 4rem 0;
}

/* Features — bento grid */
.features-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(127, 255, 212, 0.2);
  transform: translateY(-2px);
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Screenshots — футуристичный блок */
.screenshots {
  position: relative;
  overflow: hidden;
}

.screenshots-bg-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(127, 255, 212, 0.06) 0%, transparent 60%);
  pointer-events: none;
  transform: translateX(-50%);
}

.screenshots-inner {
  position: relative;
  z-index: 1;
}

.screenshots-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.screenshots-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.55;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.screenshot-card {
  position: relative;
  grid-column: auto;
  background: linear-gradient(165deg, rgba(20, 32, 28, 0.7) 0%, rgba(12, 18, 16, 0.85) 100%);
  border: 1px solid rgba(127, 255, 212, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s ease, background 0.25s;
  animation: screenshotCardIn 0.6s ease-out backwards;
}
.screenshot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(127, 255, 212, 0.12), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.screenshot-card[data-delay="0"] { animation-delay: 0.1s; }
.screenshot-card[data-delay="1"] { animation-delay: 0.25s; }
.screenshot-card[data-delay="2"] { animation-delay: 0.4s; }
.screenshot-card[data-delay="3"] { animation-delay: 0.55s; }
.screenshot-card:hover {
  border-color: rgba(127, 255, 212, 0.45);
  background: linear-gradient(165deg, rgba(28, 44, 38, 0.76) 0%, rgba(14, 23, 20, 0.9) 100%);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.36), 0 0 30px rgba(127, 255, 212, 0.1);
  transform: translateY(-6px);
}
.screenshot-card:hover::after {
  opacity: 1;
}

.screenshot-card--feature,
.screenshot-card--wide,
.screenshot-card--tall {
  grid-column: auto;
  grid-row: auto;
}

.screenshot-card-frame {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(127, 255, 212, 0.12);
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.screenshot-card:hover .screenshot-img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.screenshot-card-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.screenshot-card:hover .screenshot-card-hint {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-title {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 1rem 1.25rem 0.2rem;
  font-size: 1.05rem;
  color: var(--text);
}

.screenshot-desc {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.screenshots-cta {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-card {
    animation: none;
  }
  .screenshot-card:hover .screenshot-img {
    transform: none;
  }
}

/* Screenshot modal — glass */
.screenshot-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 18, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.screenshot-modal.show {
  display: flex;
  flex-direction: column;
}

.screenshot-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.screenshot-modal-close:hover {
  color: var(--accent);
  border-color: rgba(127, 255, 212, 0.3);
  background: var(--accent-dim);
}

.screenshot-modal-img {
  max-width: 95%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(127, 255, 212, 0.1);
}

.screenshot-modal-caption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Video */
.video-wrap {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.video-box {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-demo-cta {
  text-align: center;
}

/* Pricing */
.pricing-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.pricing-card-main,
.pricing-card-sub {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-card-main {
  border-color: rgba(127, 255, 212, 0.3);
}

.pricing-badge {
  display: block;
  text-align: center;
  padding: 0.5rem;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card-body {
  padding: 1.75rem;
}

.pricing-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent);
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}
.check { color: var(--accent); }

.pricing-divider {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card-sub .pricing-card-body {
  padding: 1.5rem;
}

/* Personal — в стиле hero */
.personal {
  position: relative;
  overflow: hidden;
}

.personal-bg-glow {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(127, 255, 212, 0.1) 0%, transparent 65%);
  pointer-events: none;
  transform: translateY(-50%);
}

.personal-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.personal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(127, 255, 212, 0.4);
  border-radius: 999px;
}

.personal-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.personal-title-main {
  display: block;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  color: var(--text);
  letter-spacing: -0.02em;
}

.personal-title-sub {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.5em;
  max-width: 32ch;
}

.personal-pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.personal-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.personal-pill:hover {
  border-color: rgba(127, 255, 212, 0.3);
  background: rgba(20, 32, 28, 0.85);
  transform: translateX(4px);
}

.personal-pill-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}
.personal-pill-icon svg { width: 100%; height: 100%; }

.personal-pill div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.personal-pill strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.personal-pill span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.personal-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.personal-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.personal-image-wrap {
  width: 100%;
  max-width: 340px;
  animation: heroFloat 7s ease-in-out infinite;
}

.personal-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(127, 255, 212, 0.25); }

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.contact-icon img,
.contact-icon svg { width: 100%; height: 100%; }

.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-link {
  color: var(--accent);
  font-weight: 500;
}
.contact-link:hover { text-decoration: underline; }

/* Final CTA */
.final-cta {
  padding: 5rem 0;
}

.final-cta-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.final-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-link:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Blog page */
.blog-hero {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 0.5rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--accent);
}

.blog-title {
  text-align: left;
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  max-width: 720px;
}

.blog-listing {
  padding-top: 1.25rem;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
}

.blog-layout main {
  order: 1;
}

.blog-sidebar {
  order: 2;
}

.blog-sidebar-card {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}
.blog-sidebar-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.4rem;
}
.blog-sidebar-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.blog-search {
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-search label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.blog-search-row {
  display: flex;
  gap: 0.6rem;
}
#tag-search {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.58rem 0.75rem;
  font: inherit;
}
#tag-search:focus {
  outline: none;
  border-color: rgba(127, 255, 212, 0.4);
  box-shadow: 0 0 0 2px rgba(127, 255, 212, 0.12);
}
#clear-search {
  display: none;
}

.blog-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 255, 212, 0.25);
}
.blog-article-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}
.blog-article-card h2 a {
  color: var(--text);
}
.blog-article-card h2 a:hover {
  color: var(--accent);
}
.blog-article-card p {
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.article-tag {
  border: 1px solid rgba(127, 255, 212, 0.35);
  background: rgba(127, 255, 212, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.article-tag:hover {
  background: rgba(127, 255, 212, 0.16);
  border-color: rgba(127, 255, 212, 0.5);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.blog-meta a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
}
.blog-meta a:hover {
  text-decoration: underline;
}

#no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 1rem 0.5rem;
}

/* Scroll-in animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-pills {
    justify-content: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-cta-note {
    text-align: center;
  }
  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide {
    grid-column: span 2;
  }
  .personal-inner {
    grid-template-columns: 1fr;
  }
  .personal-content {
    text-align: center;
  }
  .personal-title-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .personal-cta {
    justify-content: center;
  }
  .personal-visual {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header {
    overflow: hidden;
  }
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .header-inner {
    gap: 0.5rem;
    min-width: 0;
  }
  .logo {
    gap: 0.55rem;
    min-width: 0;
  }
  .logo-img {
    display: none;
  }
  .logo-text {
    display: block;
    font-size: 1.2rem;
  }
  .logo-subtitle {
    display: none;
  }
  .nav {
    gap: 0.4rem;
    flex-shrink: 0;
  }
  .nav .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  .nav-tg {
    display: none;
  }
  /* Главный лендинг и блог: на мобильном упрощаем хедер */
  .page-landing .header .nav-link,
  .page-landing .header .nav > a.btn-primary,
  .page-landing .header .nav-tg,
  .page-blog .header .nav-link,
  .page-blog .header .nav > a.btn-primary,
  .page-blog .header .nav-tg {
    display: none !important;
  }
  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
  }
  .hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }
  .hero-inner {
    gap: 2rem;
  }
  .hero-title-main {
    font-size: clamp(1.62rem, 8vw, 2.1rem);
    line-height: 1.14;
  }
  .hero-title-sub {
    font-size: 1rem;
  }
  .hero-scroll-hint {
    display: none;
  }
  .hero-image-wrap {
    animation-duration: 8s;
  }
  .hero-visual-cta {
    display: none;
  }
  .hero-pill {
    font-size: 0.8rem;
  }
  .pricing-card-body {
    padding: 1.25rem;
  }
  .personal-pill {
    align-items: flex-start;
    text-align: left;
  }
  .personal-pill-icon {
    width: 34px;
    height: 34px;
  }
  .footer-copy {
    text-align: center;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-card,
  .screenshot-card--feature,
  .screenshot-card--wide,
  .screenshot-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .features-bento {
    grid-template-columns: 1fr;
  }
  .feature-card--wide {
    grid-column: span 1;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .nav .nav-tg-text {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-layout main,
  .blog-sidebar {
    order: initial;
  }
  .blog-sidebar-card {
    position: static;
  }
  .blog-search-row {
    flex-direction: column;
  }
  #clear-search {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 0.35rem;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
  .hero-pills {
    margin-bottom: 1.25rem;
  }
  .hero-pill {
    width: 100%;
    justify-content: center;
  }
  .hero-cta,
  .final-cta-btns {
    flex-direction: column;
  }
  .hero-cta .btn,
  .final-cta-btns .btn {
    width: 100%;
  }
}
