:root {
  --ink: #0f1a3d;
  --ink-soft: #3a4568;
  --paper: #eef2f8;
  --paper-2: #f7f9fc;
  --line: rgba(15, 26, 61, 0.12);
  --teal: #0d9f8a;
  --teal-deep: #087a6a;
  --navy: #1a237e;
  --navy-deep: #0d1642;
  --radius: 18px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --shadow-soft: 0 18px 50px rgba(13, 22, 66, 0.14);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(13, 159, 138, 0.16), transparent 55%),
    radial-gradient(900px 500px at -5% 20%, rgba(26, 35, 126, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 45%, #e6ecf6 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(15, 26, 61, 0.06);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 26, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 26, 61, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  right: -80px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 159, 138, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-40px, 30px); }
}

.site-header,
.hero,
.features,
.bot-examples,
.screenshots,
.order,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.header-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-deep);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  min-height: calc(100vh - 72px);
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--navy);
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 16ch;
  animation: rise 0.8s ease 0.1s both;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
  animation: rise 0.8s ease 0.18s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.8s ease 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-lg {
  width: 100%;
  max-width: 360px;
  padding: 1.05rem 1.5rem;
  font-size: 1.05rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  animation: rise 1s ease 0.2s both;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(340px, 78vw);
  border-radius: 32px;
  padding: 12px;
  background: linear-gradient(160deg, #1a237e, #0d1642);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  background: #0b1220;
}

.signal-ring {
  position: absolute;
  z-index: 1;
  width: min(440px, 92vw);
  height: min(440px, 92vw);
  border-radius: 50%;
  border: 1.5px solid rgba(13, 159, 138, 0.35);
  animation: pulse 3.2s ease-out infinite;
}

.signal-ring::before,
.signal-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 35, 126, 0.22);
}

.signal-ring::after {
  inset: 24%;
  border-color: rgba(13, 159, 138, 0.28);
}

@keyframes pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.05);
    opacity: 0.35;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

/* —— Features —— */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 1.5rem 1.35rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.feature-list li:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}

.feature-list li:nth-child(3n + 1) {
  padding-left: 0;
}

.feature-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.feature-list p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
}

@media (max-width: 860px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list li {
    border-right: 1px solid var(--line);
    padding-right: 1.1rem;
  }

  .feature-list li:nth-child(3n) {
    border-right: 1px solid var(--line);
    padding-right: 1.1rem;
  }

  .feature-list li:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 540px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list li,
  .feature-list li:nth-child(3n),
  .feature-list li:nth-child(2n) {
    border-right: 0;
    padding: 1.25rem 0;
  }
}

/* —— Telegram bot examples —— */
.bot-examples {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
}

.tg-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tg-bubble {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.tg-bubble header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.tg-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.tg-success .tg-label { color: #1b5e20; }
.tg-fail .tg-label { color: #b71c1c; }

.tg-cmd {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: rgba(15, 26, 61, 0.05);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.tg-success header {
  background: rgba(46, 125, 50, 0.08);
}

.tg-fail header {
  background: rgba(198, 40, 40, 0.08);
}

.tg-body {
  margin: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  background: linear-gradient(180deg, #f7faf8 0%, #fff 40%);
}

.tg-fail .tg-body {
  background: linear-gradient(180deg, #faf6f6 0%, #fff 40%);
}

.bot-examples-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.bot-examples-note code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.85em;
}

@media (max-width: 720px) {
  .tg-examples {
    grid-template-columns: 1fr;
  }
}

/* —— Screenshots —— */
.screenshots {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--ink-soft);
  line-height: 1.5;
}

.carousel {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 0.25rem;
}

.slide img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: center top;
  border-radius: 14px;
  background: rgba(15, 26, 61, 0.04);
  border: 1px solid var(--line);
  pointer-events: none;
}

.slide figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.carousel-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel-nav:hover {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}

.carousel-nav.prev { left: -8px; }
.carousel-nav.next { right: -8px; }

@media (min-width: 640px) {
  .carousel-nav.prev { left: -52px; }
  .carousel-nav.next { right: -52px; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 26, 61, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.carousel-dots button[aria-selected="true"] {
  width: 22px;
  border-radius: 999px;
  background: var(--navy);
}

/* —— Order / pricing —— */
.order {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.order-head {
  margin-bottom: 1.75rem;
}

.order-head h2 {
  color: var(--navy);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.order-panel {
  text-align: center;
  padding: 2.4rem 1.5rem 2rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(26, 35, 126, 0.94), rgba(13, 22, 66, 0.98));
  color: #f4f6fb;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.order-bot {
  background:
    linear-gradient(145deg, rgba(8, 122, 106, 0.96), rgba(13, 22, 66, 0.98));
}

.order-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 246, 251, 0.65);
}

.order-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.price {
  margin: 0.75rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  letter-spacing: -0.04em;
  color: #7dffd4;
}

.price span:first-child {
  font-size: 0.45em;
  font-weight: 600;
  vertical-align: super;
  margin-right: 0.15em;
  color: rgba(244, 246, 251, 0.75);
}

.price-unit {
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.2em;
  color: rgba(244, 246, 251, 0.7);
  vertical-align: baseline;
}

.plan-perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  width: 100%;
  max-width: 280px;
  text-align: left;
}

.plan-perks li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  color: rgba(244, 246, 251, 0.78);
  font-size: 0.98rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-perks li:last-child {
  border-bottom: 0;
}

.plan-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffd4;
}

.plan-perks strong {
  color: #fff;
  font-weight: 600;
}

.order-note {
  margin: 0 auto 1.75rem;
  max-width: 32ch;
  color: rgba(244, 246, 251, 0.72);
  line-height: 1.5;
}

.order-panel .btn-primary {
  background: #7dffd4;
  color: var(--navy-deep);
  margin-top: auto;
}

.order-panel .btn-primary:hover {
  background: #a8ffe4;
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}

.site-footer a:hover {
  color: var(--teal-deep);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.5rem;
    gap: 2rem;
    text-align: center;
  }

  .hero h1,
  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    min-height: 400px;
  }

  .phone-frame {
    width: min(280px, 72vw);
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .btn {
    width: 100%;
  }

  .cta-group {
    flex-direction: column;
  }
}

/* —— Header nav —— */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a:not(.header-cta) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.header-nav a:not(.header-cta):hover {
  color: var(--navy);
}

/* —— Docs page —— */
.docs-page .bg-glow {
  display: none;
}

.docs-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 1rem;
  padding: 1.1rem 0;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.sidebar-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-sidebar a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.docs-sidebar a:hover {
  color: var(--navy);
  background: rgba(26, 35, 126, 0.06);
  border-left-color: var(--teal);
}

.docs-main {
  min-width: 0;
  padding-bottom: 2rem;
}

.docs-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.docs-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.docs-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.15;
}

.docs-intro {
  margin: 0;
  max-width: 48ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.docs-main section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 1.25rem;
}

.docs-main h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.docs-main h3 {
  margin: 1.4rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--navy);
}

.docs-main p,
.docs-main li {
  line-height: 1.65;
  color: var(--ink-soft);
}

.docs-main p {
  margin: 0 0 0.85rem;
}

.docs-main ul,
.docs-main ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.docs-main li + li {
  margin-top: 0.35rem;
}

.docs-main strong {
  color: var(--ink);
  font-weight: 600;
}

.docs-main code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--navy-deep);
}

.docs-main pre {
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 26, 61, 0.04);
}

.docs-main pre code {
  padding: 0;
  background: none;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink);
}

.callout {
  margin: 1rem 0 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border-left: 3px solid var(--teal);
  background: rgba(13, 159, 138, 0.08);
  color: var(--ink-soft);
  line-height: 1.55;
}

.callout strong {
  color: var(--navy-deep);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.docs-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.docs-main th,
.docs-main td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-main th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(15, 26, 61, 0.03);
}

.docs-main tr:last-child td {
  border-bottom: 0;
}

.docs-main td {
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.badge-ok {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.badge-fail {
  background: rgba(198, 40, 40, 0.12);
  color: #b71c1c;
}

.docs-main details {
  margin: 0 0 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.7);
}

.docs-main summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.docs-main summary::-webkit-details-marker {
  display: none;
}

.docs-main summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--teal-deep);
  font-weight: 700;
}

.docs-main details[open] summary::before {
  content: "−";
}

.docs-main details p {
  margin: 0.65rem 0 0;
}

.docs-order {
  padding: 1.75rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(26, 35, 126, 0.94), rgba(13, 22, 66, 0.98));
  color: #f4f6fb;
}

.docs-order h2,
.docs-order p,
.docs-order strong {
  color: #f4f6fb;
}

.docs-order p {
  color: rgba(244, 246, 251, 0.75);
}

.docs-order .btn-primary {
  background: #7dffd4;
  color: var(--navy-deep);
}

.docs-order .btn-primary:hover {
  background: #a8ffe4;
}

.docs-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .docs-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .docs-sidebar nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
  }

  .docs-sidebar a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    font-size: 0.86rem;
  }

  .docs-sidebar a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--teal);
  }

  .sidebar-title {
    display: none;
  }
}

/* —— Blog —— */
.blog-wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 4rem;
}

.blog-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.blog-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.15;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.blog-date-field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.blog-toolbar-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.blog-day-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.blog-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  display: block;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(26, 35, 126, 0.35);
  background: #fff;
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.blog-cat {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.blog-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.3;
}

.blog-card p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.98rem;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 26, 61, 0.06);
  color: var(--ink-soft);
}

.blog-archive h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.blog-archive-day {
  margin: 0 0 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.75);
}

.blog-archive-day summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.blog-archive-day ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.blog-archive-day li {
  margin: 0.35rem 0;
  line-height: 1.4;
}

.blog-archive-day a {
  color: var(--navy);
}

.blog-archive-day a:hover {
  color: var(--teal-deep);
}

.blog-article-wrap {
  max-width: 720px;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-deep);
}

.blog-article h1 {
  margin: 0.5rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
}

.blog-content {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.blog-content .lead {
  font-size: 1.12rem;
  color: var(--ink);
  line-height: 1.6;
}

.blog-content h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.blog-content p,
.blog-content li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.blog-content p {
  margin: 0 0 0.9rem;
}

.blog-content ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.blog-content .post-foot {
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(13, 159, 138, 0.08);
  border-left: 3px solid var(--teal);
  font-size: 0.92rem;
}

.blog-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.blog-pager a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.35;
}

.blog-pager > div:last-child {
  text-align: right;
}

.blog-pager a:hover {
  color: var(--teal-deep);
}

.blog-loading,
.blog-empty {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-soft);
  line-height: 1.55;
}

.blog-empty pre {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border-radius: 10px;
  background: rgba(15, 26, 61, 0.05);
  border: 1px solid var(--line);
}

.blog-empty code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
}

@media (max-width: 560px) {
  .blog-pager {
    grid-template-columns: 1fr;
  }

  .blog-pager > div:last-child {
    text-align: left;
  }
}
