@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #eef3f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-dark: #0e1b2b;
  --text: #0f1727;
  --muted: #536274;
  --muted-strong: #94a4b8;
  --accent: #1570ef;
  --accent-2: #f26f21;
  --line: rgba(18, 30, 48, 0.12);
  --line-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 60px rgba(15, 23, 39, 0.1);
  --shadow-soft: 0 16px 36px rgba(15, 23, 39, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::selection {
  background: rgba(21, 112, 239, 0.16);
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48rem 30rem at 0% 0%, rgba(21, 112, 239, 0.12), transparent),
    radial-gradient(28rem 20rem at 100% 6%, rgba(242, 111, 33, 0.14), transparent),
    linear-gradient(180deg, #f7fafc 0%, #edf2f6 42%, #e6edf4 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 92px;
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 252, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-contrast {
  color: #fff;
  background:
    linear-gradient(160deg, rgba(13, 25, 40, 0.98), rgba(20, 41, 67, 0.96)),
    radial-gradient(26rem 16rem at 100% 0%, rgba(21, 112, 239, 0.18), transparent);
}

.section-contrast p,
.section-contrast .section-kicker,
.section-contrast .info-card p {
  color: var(--muted-strong);
}

.section-blog {
  padding-top: 3.5rem;
}

.section-cta {
  padding-top: 2rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.7rem, 5.3vw, 4.6rem);
  letter-spacing: -0.05em;
  max-width: 16ch;
  line-height: 1;
  margin-inline: auto;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

strong {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(18, 30, 48, 0.08);
  backdrop-filter: blur(16px);
  background: rgba(247, 250, 252, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.93rem;
  font-weight: 500;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.section-head a:hover,
.back-link:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.2rem;
}

.lang-switch a {
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.lang-switch a.active {
  background: var(--text);
  color: #fff;
}

.hero {
  padding-top: 4.2rem;
  padding-bottom: 2.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.hero-copy {
  max-width: 980px;
  padding-top: 0.35rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.section-kicker,
.case-tag,
.stack-label,
.process-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow {
  border: 1px solid rgba(18, 30, 48, 0.15);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  margin-bottom: 1.15rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.hero-summary,
.hero-supporting {
  max-width: 58ch;
  font-size: 1.06rem;
}

.hero-supporting {
  margin-bottom: 0;
}

.hero-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: 2rem;
  align-items: start;
}

.hero-text {
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.7rem 0 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  font-size: 0.97rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #3c88f4);
  box-shadow: 0 16px 36px rgba(21, 112, 239, 0.24);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.proof-card,
.info-card,
.service-card,
.case-card,
.post-card,
.testimonial-card,
.faq-card,
.process-card,
.stack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.proof-card {
  padding: 1rem 1.1rem;
}

.proof-card h3 {
  margin-bottom: 0.35rem;
}

.proof-card p {
  margin: 0;
  font-size: 0.94rem;
}

.hero-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  width: 100%;
  min-height: 100%;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.95));
}

.stack-card:first-child {
  grid-column: 1 / -1;
}

.stack-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.25;
}

.stack-label {
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.stack-card p {
  font-size: 0.95rem;
}

.stack-card p:last-child,
.info-card p:last-child,
.service-card p:last-child,
.case-card p:last-child,
.faq-card p:last-child,
.process-card p:last-child,
.post-card p:last-child,
.testimonial-card p:last-child {
  margin-bottom: 0;
}

.section-intro {
  display: grid;
  gap: 0.5rem;
  max-width: 68ch;
  margin-bottom: 1.6rem;
}

.section-kicker {
  color: var(--accent);
  margin-bottom: 0;
}

.audience-grid,
.advantage-grid,
.service-grid,
.case-grid,
.post-grid,
.testimonial-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.service-card,
.case-card,
.post-card,
.testimonial-card,
.faq-card,
.process-card {
  padding: 1.35rem;
}

.section-contrast .info-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  box-shadow: none;
}

.section-contrast .info-card h3 {
  color: #fff;
}

.case-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.95));
}

.case-tag {
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.case-result {
  color: var(--text);
  font-weight: 700;
}

.chip-grid {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  border: 1px solid rgba(21, 112, 239, 0.16);
  border-radius: 999px;
  background: rgba(21, 112, 239, 0.08);
  color: #0d438f;
  padding: 0.5rem 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.process-card {
  position: relative;
  overflow: hidden;
}

.process-step {
  color: var(--accent);
  margin-bottom: 1rem;
}

.process-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(21, 112, 239, 0.12), transparent 68%);
}

.testimonial-card img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.testimonial-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.1rem;
}

.testimonial-card small {
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.cta-panel {
  padding: 2rem;
  border: 1px solid rgba(21, 112, 239, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(14, 27, 43, 0.98), rgba(18, 42, 68, 0.96)),
    radial-gradient(24rem 16rem at 100% 0%, rgba(21, 112, 239, 0.18), transparent);
  box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel p:first-of-type,
.cta-panel .section-kicker {
  color: #fff;
}

.cta-panel p {
  color: var(--muted-strong);
  max-width: 64ch;
}

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

.section-head a,
.back-link,
.telegram-link {
  color: var(--accent);
  font-weight: 800;
}

.empty-note {
  color: var(--muted);
}

.search-form {
  margin-bottom: 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.search-form input,
.search-form button {
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 1rem;
  padding: 0.72rem 0.9rem;
  font-family: inherit;
}

.search-form button {
  background: var(--text);
  color: #fff;
  font-weight: 800;
}

.article-wrap {
  max-width: 820px;
}

.article-excerpt {
  font-size: 1.1rem;
}

.article-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 1.2rem;
}

.article-content {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 1.3rem;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1rem 1.2rem;
  color: var(--muted);
}

.article-content li {
  margin-bottom: 0.35rem;
}

.article-content pre {
  margin: 1.1rem 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(21, 112, 239, 0.24);
  background: #0f2032;
  overflow-x: auto;
}

.article-content code {
  font-family: "IBM Plex Mono", monospace;
  color: #d8ebff;
  font-size: 0.92rem;
}

.article-content blockquote {
  margin: 1.1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: rgba(21, 112, 239, 0.08);
  color: #27445c;
}

.article-content figure {
  margin: 1.25rem 0;
}

.article-content figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.article-content figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.article-content thead {
  background: rgba(21, 112, 239, 0.08);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
}

.article-content th {
  color: var(--text);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 1.5rem 0 2.4rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .faq-layout,
  .service-grid,
  .process-grid,
  .hero-details {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stack-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .nav-wrap,
  .footer-grid,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
  }

  .proof-grid,
  .audience-grid,
  .advantage-grid,
  .case-grid,
  .post-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.1rem));
  }

  .section,
  .hero {
    padding: 3.8rem 0;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    max-width: 12ch;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .hero-summary,
  .hero-supporting {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  .proof-grid {
    gap: 0.8rem;
  }

  .proof-card,
  .info-card,
  .service-card,
  .case-card,
  .post-card,
  .testimonial-card,
  .faq-card,
  .process-card,
  .cta-panel {
    padding: 1.1rem;
  }

  .lang-switch {
    align-self: stretch;
    justify-content: center;
  }

  .search-form {
    grid-template-columns: 1fr;
  }
}
