/* == static/shared.css == */
/* ==========================================================================
   zyntec.ru — Shared Design System (Notion Warm Minimal + Linear Dark)
   Used by: main landing page, wb-report.zyntec.ru, removebackground.zyntec.ru
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Light — Notion Warm Minimal */
  --bg: #ffffff;
  --bg-alt: #f6f5f4;
  --text: rgba(0,0,0,0.95);
  --text-secondary: #615d59;
  --text-muted: #a39e98;
  --accent: #0075de;
  --accent-hover: #005bab;
  --border: rgba(0,0,0,0.1);
  --card-bg: #ffffff;
  --card-shadow: rgba(0,0,0,0.04) 0px 4px 18px, rgba(0,0,0,0.02) 0px 1px 3px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

/* Dark — Linear-inspired */
[data-theme="dark"] {
  --bg: #08090a;
  --bg-alt: #0f1011;
  --text: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-muted: #8a8f98;
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --border: rgba(255,255,255,0.07);
  --card-bg: rgba(255,255,255,0.015);
  --card-shadow: none;
}

[data-theme="dark"] .btn-primary { background: #5e6ad2; }
[data-theme="dark"] .btn-primary:hover { background: #828fff; }
[data-theme="dark"] .badge { background: rgba(94,106,210,0.15); color: #828fff; }
[data-theme="dark"] .nav-header { background: rgba(8,9,10,0.92); }
[data-theme="dark"] .service-card { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.015); }
[data-theme="dark"] .blog-card { border-color: rgba(255,255,255,0.07); background: rgba(255,255,255,0.015); }
[data-theme="dark"] .btn-secondary { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .theme-btn:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .cta-section { background: var(--bg-alt); }
[data-theme="dark"] .nav-links a:hover { color: var(--accent); }
[data-theme="dark"] .footer { background: var(--bg); }

/* Dark mode — mobile overlay needs darker background */
[data-theme="dark"] .mobile-nav-overlay { background: rgba(0,0,0,0.55); }

/* --- Base Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Section --- */
.section { padding: 80px 0; }
.section:nth-child(even) { background: var(--bg-alt); }

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.13rem;
  font-weight: 500;
  margin-bottom: 48px;
}

/* --- Navigation Header --- */
.nav-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav-logo:hover { text-decoration: none; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  /* Touch target min 44px */
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* --- Hamburger Menu Button --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--bg-alt); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Nav Overlay --- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }

.mobile-nav-panel {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  padding: 16px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Adjust mobile panel/overlay top when nav is shorter on tiny screens */
@media (max-width: 375px) {
  .mobile-nav-overlay { top: 51px; }
  .mobile-nav-panel { top: 51px; }
}
.mobile-nav-panel.open { transform: translateY(0); }
.mobile-nav-panel a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 0;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-panel a:last-child { border-bottom: none; }
.mobile-nav-panel a:hover { color: var(--accent); text-decoration: none; }

/* --- Buttons --- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  min-height: 44px;
  line-height: 1.2;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: scale(1.02);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: 6px;
  min-height: 52px;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.2s;
  min-height: 44px;
  line-height: 1.4;
}
.btn-secondary:hover { background: var(--bg-alt); text-decoration: none; }

.theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px 10px;
  line-height: 1;
  transition: background 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-btn:hover { background: var(--bg-alt); }

/* --- Hero Section --- */
.hero { padding: 100px 0 80px; text-align: center; }
.hero-content { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.0;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-hint { font-size: 0.88rem; color: var(--text-muted); }

/* --- Hero Trust Row --- */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 16px;
}
.trust-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .hero-trust-row { flex-direction: column; align-items: center; gap: 6px; }
  .trust-item { white-space: normal; }
}

/* --- Benefits Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.04) 0px 8px 24px;
}
.benefit-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.benefit-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.benefit-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--card-bg);
  position: relative;
  margin: 0;
}
.testimonial-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card footer strong {
  font-size: 0.85rem;
  font-weight: 700;
}
.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* --- Service "Coming Soon" --- */
.badge-soon {
  background: rgba(94,106,210,0.12) !important;
  color: var(--accent) !important;
}
.service-coming {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* --- CTA Trust Notes --- */
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-trust-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Pulse Animation for Primary CTA --- */
.pulse-animation {
  animation: pulse-cta 2s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,117,222,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0,117,222,0); }
}
[data-theme="dark"] .pulse-animation {
  animation-name: pulse-cta-dark;
}
@keyframes pulse-cta-dark {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94,106,210,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(94,106,210,0); }
}
/* Stop pulse on hover — user is already engaging */
.pulse-animation:hover {
  animation: none;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-animation { animation: none !important; }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.06) 0px 8px 28px, rgba(0,0,0,0.03) 0px 2px 6px;
}
.service-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.service-card h3 {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.service-link { font-weight: 600; font-size: 0.94rem; }

.badge {
  display: inline-block;
  background: #f2f9ff;
  color: #097fe8;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s;
  background: var(--card-bg);
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card-body { padding: 24px; }
.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 8px 0;
  line-height: 1.3;
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.blog-date { font-size: 0.81rem; color: var(--text-muted); }
.blog-more { text-align: center; margin-top: 36px; }

/* --- CTA Section --- */
.cta-section { background: var(--bg-alt); }
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 1.13rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Footer --- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.5;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.footer-links a,
.footer-links span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-muted);
  font-size: 0.81rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================================================================
   RESPONSIVE DESIGN
   ====================================================================== */

/* --- Tablet (768px - 1023px) --- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* --- Mobile (<768px) --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }

  /* Mobile nav layout: hamburger left, logo centered, theme right */
  .nav-inner {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    justify-items: center;
  }
  .nav-inner .hamburger { justify-self: start; }
  .nav-inner .nav-logo { grid-column: 2; }
  .nav-inner .nav-actions { grid-column: 3; justify-self: end; }
  /* Hide the CTA button in nav-actions on mobile — it's in the mobile panel */
  .nav-actions .btn-primary { display: none; }

  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 60px 0 60px; }
  .hero-subtitle { font-size: 1.1rem; }

  .section-title { font-size: 2.2rem; }
  .section-subtitle { font-size: 1.05rem; margin-bottom: 32px; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; }
  .service-card h3 { font-size: 1.2rem; }

  .blog-grid { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }

  .cta-content h2 { font-size: 2rem; }
  .cta-content p { font-size: 1.05rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer { padding: 40px 0 20px; }
}

/* --- Small Mobile (<600px) --- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }

  .hero h1 { font-size: 2rem; }
  .hero { padding: 64px 0 48px; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }

  .section-title { font-size: 1.8rem; }
  .section-subtitle { font-size: 0.95rem; }

  .services-grid { gap: 14px; }
  .service-card { padding: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .cta-content h2 { font-size: 1.7rem; }
  .section { padding: 48px 0; }

  .blog-card-body { padding: 18px; }

  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* --- Tiny Mobile (<375px) --- */
@media (max-width: 375px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.92rem; }
  .section-title { font-size: 1.5rem; }
  .service-card h3 { font-size: 1.1rem; }
  .nav-inner { height: 50px; }
  .nav-logo { font-size: 0.95rem; }
}

/* --- Large Desktop (>1200px) --- */
@media (min-width: 1200px) {
  .hero h1 { font-size: 3.8rem; }
}

/* --- Touch-friendly sizing (prevents iOS zoom on focus) --- */
button, a, input, select, textarea { font-size: 16px; }

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  z-index: 200;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
  text-decoration: none;
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* --- About section inner wrapper --- */
.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Testimonials section --- */
.testimonials { margin-top: 48px; }
.testimonials-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* --- About CTA section --- */
.about-cta-wrapper { text-align: center; margin-top: 40px; }
.about-cta-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Focus visible styles for keyboard navigation --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* --- Fix contrast in dark mode --- */
[data-theme="dark"] {
  --text-muted: #9ca3af;
}

/* --- Mobile nav CTA button --- */
.mobile-nav-panel .btn-primary {
  text-align: center;
  margin-top: 8px;
  display: block;
}

/* --- FAQ inner wrapper --- */
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Inline SVG icons (emoji-free portal) --- */
.service-icon svg, .benefit-icon svg, .trust-item svg, .cta-trust-note svg, .theme-btn svg {
  stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.service-icon svg { width: 1em; height: 1em; color: var(--accent); }
.benefit-icon svg { width: 1em; height: 1em; color: var(--accent); }
.trust-item svg { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 5px; color: var(--accent); }
.cta-trust-note svg { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 6px; }
.theme-btn svg { width: 1em; height: 1em; }
/* == static/v2.css == */
/* ==========================================================================
   zyntec-v2 — additional styles (extends shared.css and page.css)
   ========================================================================== */

/* --- Nav dropdown --- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.6;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:focus {
  color: var(--accent);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 4px;
  min-width: 320px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: rgba(0,0,0,0.06) 0px 16px 40px, rgba(0,0,0,0.04) 0px 2px 6px;
  padding: 8px;
  display: none;
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle:focus + .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}
.nav-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 0;
}
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs-list a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumbs-list a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }

/* --- Section title left-aligned variant --- */
.section-title-left {
  text-align: left;
  margin-bottom: 24px;
  font-size: 2rem;
}

/* --- Categories grid (homepage) --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.category-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.05) 0px 10px 30px;
  text-decoration: none;
}
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.category-icon-lg {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.category-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.category-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
@media (max-width: 900px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* --- Category block (all-services) --- */
.cat-block-head {
  margin-bottom: 28px;
}
.cat-block-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.cat-block-link:hover { text-decoration: none; }
.cat-block-link h2 {
  font-size: 1.6rem;
  font-weight: 700;
}
.cat-block-desc {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 720px;
  line-height: 1.5;
}

/* --- FAQ --- */
.faq { margin-top: 8px; }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Related block --- */
.related-block { margin-top: 16px; }
.related-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0,0,0,0.05) 0px 8px 24px;
  text-decoration: none;
}
.related-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(94,106,210,0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.related-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.related-card-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .related-grid { grid-template-columns: 1fr; } }

/* --- Related articles --- */
.related-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* --- Related grid (many) — используется на посадочных сервисов --- */
.related-grid-many {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .related-grid-many {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .related-grid-many {
    grid-template-columns: 1fr;
  }
}
.related-more {
  text-align: center;
  margin-top: 32px;
}
.related-article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.related-article:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  text-decoration: none;
}
.related-article-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}
.related-article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Article page --- */
.article-page { padding: 24px 0 60px; }
.article-header {
  margin-bottom: 36px;
}
.article-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.article-lead {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.article-tag {
  background: var(--bg-alt);
  color: var(--text-secondary);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 12px;
  line-height: 1.3;
}
.article-body p { margin: 16px 0; }
.article-body ul, .article-body ol {
  margin: 16px 0;
  padding-left: 28px;
}
.article-body li { margin: 6px 0; }
.article-body code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.article-body pre {
  background: var(--bg-alt);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 20px 0;
}
.article-body pre code {
  background: none;
  padding: 0;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.article-body th {
  background: var(--bg-alt);
  font-weight: 600;
}

.related-inline {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}
.related-inline h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.related-inline ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-inline li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.related-inline li:last-child { border-bottom: none; }
.related-inline a {
  font-weight: 600;
  font-size: 0.98rem;
}
.related-inline-tagline {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Intent list (search intent chips) --- */
.intent-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.intent-list li {
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Tool stub (заглушка UI сервиса) --- */
.tool-stub {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.tool-stub-head {
  margin-bottom: 24px;
}
.tool-stub-badge {
  display: inline-block;
  background: rgba(94,106,210,0.12);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tool-stub h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.tool-stub-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tool-stub-placeholder {
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
}
.tool-stub-placeholder p {
  margin: 8px 0;
  font-size: 0.92rem;
}
.tool-stub-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}
.dropzone {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dropzone:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* --- Footer meta --- */
.footer-meta {
  display: inline-flex;
  gap: 8px;
  margin-left: 16px;
}
.footer-meta a {
  color: var(--text-muted);
}

/* --- Dark theme tweaks --- */
[data-theme="dark"] .tool-stub-placeholder {
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .nav-dropdown-menu {
  box-shadow: rgba(0,0,0,0.4) 0px 16px 40px;
}
[data-theme="dark"] .article-body code {
  background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .article-body pre {
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .article-body th {
  background: rgba(255,255,255,0.03);
}

/* ==========================================================================
   Tool forms & results
   ========================================================================== */

.tool {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
}
.tool-head {
  margin-bottom: 24px;
}
.tool-badge {
  display: inline-block;
  background: rgba(94,106,210,0.12);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tool-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.tool-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.tool-row-inline > .tool-row {
  flex: 1 1 160px;
  min-width: 140px;
}
.tool-row label,
.tool-fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.tool-row .tool-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.tool-input,
.tool-select,
.tool-textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
}
.tool-input:focus,
.tool-select:focus,
.tool-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.18);
}
.tool-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-fieldset legend {
  padding: 0 6px;
}
.tool-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  min-height: 28px;
}
.tool-check input[type="checkbox"],
.tool-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.tool-file {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-file input[type="file"] {
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
}
.tool-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.tool-color input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.tool-actions .btn-primary,
.tool-actions .btn-secondary {
  flex: 0 0 auto;
}
.tool-error {
  background: rgba(235,87,87,0.08);
  border: 1px solid rgba(235,87,87,0.3);
  color: #c14242;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
[data-theme="dark"] .tool-error {
  color: #ff7a7a;
  background: rgba(235,87,87,0.12);
  border-color: rgba(235,87,87,0.35);
}
.tool-success {
  background: rgba(62,207,142,0.1);
  border: 1px solid rgba(62,207,142,0.3);
  color: #1f7a4a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
[data-theme="dark"] .tool-success {
  color: #6ee7b0;
  background: rgba(62,207,142,0.12);
  border-color: rgba(62,207,142,0.35);
}

.tool-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-result h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.tool-result-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tool-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  overflow: auto;
}
.tool-preview img {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.tool-preview img.tool-preview-vector {
  image-rendering: auto;
}
.tool-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 0.92rem;
}
.tool-meta-list dt {
  font-weight: 600;
  color: var(--text-secondary);
}
.tool-meta-list dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}
.tool-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}
.tool-table th,
.tool-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tool-table th {
  background: var(--bg-alt);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.tool-table tr:last-child td {
  border-bottom: none;
}
.tool-table tr:hover td {
  background: var(--bg-alt);
}
.tool-table td.numeric,
.tool-table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tool-table tfoot td {
  font-weight: 700;
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
}

.tool-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 12px 0;
}
.tool-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.tool-stat {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.tool-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.tool-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .tool { padding: 20px; }
  .tool-row-inline { flex-direction: column; gap: 18px; }
}

/* ==========================================================================
   Tool UI (forms, results, tables) — used by templates/tools/*.html
   ========================================================================== */

.tool-ui {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.tool-ui-head {
  margin-bottom: 24px;
}
.tool-ui-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.tool-ui-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Form layout --- */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tool-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tool-form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .tool-form-row,
  .tool-form-row-3 { grid-template-columns: 1fr; }
}

.tool-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tool-field .hint {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tool-field input[type="text"],
.tool-field input[type="number"],
.tool-field select,
.tool-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  min-height: 44px;
  line-height: 1.4;
}
.tool-field input[type="range"] {
  width: 100%;
  height: 32px;
  background: transparent;
  accent-color: var(--accent);
  padding: 0;
  border: 0;
  min-height: 32px;
  margin: 0;
}
.tool-field input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}
.tool-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  line-height: 1.5;
}
.tool-field input:focus,
.tool-field select:focus,
.tool-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.15);
}
.tool-field-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.tool-field-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--bg);
  min-height: 40px;
  transition: border-color 0.15s, background 0.15s;
}
.tool-field-radio input[type="radio"] {
  margin: 0;
  accent-color: var(--accent);
}
.tool-field-radio label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(94,106,210,0.08);
}

.tool-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.tool-form-actions .btn-secondary {
  background: transparent;
  cursor: pointer;
}

/* --- Errors block --- */
.tool-errors {
  background: rgba(235,87,87,0.08);
  border: 1px solid rgba(235,87,87,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #c03535;
  font-size: 0.92rem;
}
[data-theme="dark"] .tool-errors {
  background: rgba(235,87,87,0.12);
  color: #ff8585;
}
.tool-errors ul {
  list-style: disc;
  margin: 6px 0 0 18px;
  padding: 0;
}
.tool-errors strong { color: inherit; }

/* --- Result block --- */
.tool-result {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: rgba(94,106,210,0.04);
}
.tool-result h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}
.tool-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-card.result-card-emph {
  border-color: var(--accent);
  background: rgba(94,106,210,0.08);
}
.result-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.result-card-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.result-card-value.result-negative { color: #c03535; }
.result-card-value.result-positive { color: #16a34a; }
[data-theme="dark"] .result-card-value.result-negative { color: #ff8585; }
[data-theme="dark"] .result-card-value.result-positive { color: #4ade80; }
.result-card-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Tool result table --- */
.tool-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 8px;
}
.tool-result-table th,
.tool-result-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tool-result-table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tool-result-table td.numeric,
.tool-result-table th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.tool-result-table tr:last-child td { border-bottom: none; }

/* --- Reference table (with search) --- */
.ref-search {
  margin-bottom: 16px;
}
.ref-search input {
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  width: 100%;
  min-height: 44px;
}
.ref-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.15);
}
.ref-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Forbidden words list --- */
.forbidden-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.forbidden-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.forbidden-marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.forbidden-marker.high { background: #c03535; }
.forbidden-marker.medium { background: #f59e0b; }
.forbidden-marker.low { background: #6b7280; }
.forbidden-word {
  font-weight: 700;
  color: var(--text);
}
.forbidden-context {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: ui-monospace, monospace;
}
.forbidden-suggestion {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}
.forbidden-suggestion code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text);
}
.forbidden-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* --- Char counter limits --- */
.limit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 8px;
}
.limit-row.limit-over {
  border-color: #c03535;
  background: rgba(235,87,87,0.05);
}
.limit-row.limit-near {
  border-color: #f59e0b;
}
.limit-name { font-weight: 600; font-size: 0.95rem; }
.limit-hint { font-size: 0.78rem; color: var(--text-muted); }
.limit-progress {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
  grid-column: 1 / -1;
}
.limit-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s, background 0.2s;
}
.limit-row.limit-over .limit-progress-bar { background: #c03535; }
.limit-row.limit-near .limit-progress-bar { background: #f59e0b; }
.limit-counter {
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.limit-row.limit-over .limit-counter { color: #c03535; }
.limit-row.limit-near .limit-counter { color: #f59e0b; }

/* --- Keyword density rows --- */
.kw-row {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 8px;
}
.kw-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.kw-row-keyword {
  font-weight: 700;
  font-size: 1rem;
}
.kw-row-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.kw-row-density {
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kw-row-density.density-good { color: #16a34a; }
.kw-row-density.density-warn { color: #f59e0b; }
.kw-row-density.density-bad { color: #c03535; }
[data-theme="dark"] .kw-row-density.density-good { color: #4ade80; }
[data-theme="dark"] .kw-row-density.density-warn { color: #fbbf24; }
[data-theme="dark"] .kw-row-density.density-bad { color: #ff8585; }

/* --- Transliteration output --- */
.translit-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.translit-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.translit-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  word-break: break-all;
}
.lorem-output-block {
  margin-top: 16px;
}
.lorem-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lorem-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
}
.lorem-copy-button .ui-icon {
  width: 18px;
  height: 18px;
}
.lorem-output-block .translit-value {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
.lorem-copy-status {
  min-height: 20px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* --- Generic info block under form --- */
.tool-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- Decision banner (for returns calculator) --- */
.decision-banner {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.decision-return {
  background: rgba(94,106,210,0.08);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.decision-utilize {
  background: rgba(245,158,11,0.08);
  color: #b45309;
  border: 1px solid #f59e0b;
}
[data-theme="dark"] .decision-utilize { color: #fbbf24; }

/* ==========================================================================
   Photo tool additions: dropzone-large, preset-grid, field helpers
   ========================================================================== */

.dropzone-large {
  position: relative;
  padding: 40px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-alt);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dropzone-large:hover,
.dropzone-large.dragover {
  background: var(--bg);
  border-color: var(--accent);
}
.dropzone-large > p { margin: 4px 0; font-size: 0.95rem; }
.dropzone-large .dz-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.dropzone-large input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
[data-theme="dark"] .dropzone-large {
  background: rgba(255,255,255,0.02);
}
[data-theme="dark"] .dropzone-large:hover,
[data-theme="dark"] .dropzone-large.dragover {
  background: rgba(94,106,210,0.06);
}

/* Preset grid: 4-column (or responsive) selector of clickable radios.
   auto-fit + minmax keeps tracks shrinkable on narrow screens: fixed 1fr
   counts resolve to max-content when the grid sizes its parent (grid item
   with min-width:auto), which pushed tools off-screen on mobile. */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.preset-grid > label {
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  min-height: 56px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  position: relative;
}
.preset-grid > label small {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 400;
}
.preset-grid > label:hover {
  border-color: var(--accent);
}
.preset-grid > label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.preset-grid > label:has(input:checked) small {
  color: rgba(255,255,255,0.85);
}
.preset-grid > label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.preset-grid > label:has(> input[type="color"]) {
  padding: 6px;
}
.preset-grid > label > input[type="color"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.preset-grid > label > .swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
@media (max-width: 600px) {
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tool field modifiers (full row, check inline) */
.tool-field-full { grid-column: 1 / -1; }
.tool-field-check {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  min-height: 36px;
}
.tool-field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* File preview chip (after dropzone) */
.tool-file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.88rem;
}
.tool-file-chip img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.tool-file-chip .file-name { font-weight: 600; }
.tool-file-chip .file-size { color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }

/* Result image preview (uses tool-preview but with photo-friendly rendering) */
.tool-preview.tool-preview-photo {
  background: #fff;
  padding: 12px;
  min-height: auto;
  max-height: 420px;
  border-style: solid;
  border-color: var(--border);
}
.tool-preview.tool-preview-photo img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  image-rendering: auto;
}
[data-theme="dark"] .tool-preview.tool-preview-photo {
  background: #fff;
}

/* Result actions (button row inside tool-result) */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

/* Service page hero spacing for tools that need more room */
.section-tight { padding: 40px 0; }

/* ==========================================================================
   Web tools: code blocks, path segments, SSL/dns/who-is/ua result rows
   ========================================================================== */

.tool-code-block {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 100%;
  resize: vertical;
  min-height: 120px;
  word-break: break-all;
  white-space: pre-wrap;
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tool-code-block:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.15);
}

.path-segment {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.result-card.result-card-warn {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.08);
}
[data-theme="dark"] .result-card.result-card-warn {
  background: rgba(245,158,11,0.12);
}

.tool-result-table th[scope="row"],
.tool-result-table tbody th {
  width: 36%;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  font-size: 0.88rem;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .tool-result-table tbody th { width: auto; }
}

/* ============== Hub pages ============== */
.hub-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-intro {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.hub-intro p {
  margin: 0;
}

.hub-group-head {
  margin-bottom: 24px;
}

.hub-group-desc {
  margin: -8px 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* == static/design.css == */
:root {
  --paper: #fbfaf6;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --muted: #696b70;
  --line: #deded8;
  --line-strong: #c9c9c2;
  --blue: #0b4bd6;
  --blue-dark: #0636a8;
  --lime: #e8ff7a;
  --lime-soft: #f0ffae;
  --soft-blue: #edf3ff;
  --soft: #f4f3ee;
  --danger: #b42318;
  --success: #247a3c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1430px;
  --font: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 64px, var(--max-width)); margin-inline: auto; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.ui-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.nav-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 78px;
  background: rgba(251, 250, 246, .96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}
.nav-header.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 24px; }
.nav-logo { color: var(--ink); font-size: 31px; line-height: 1; font-weight: 800; letter-spacing: -.07em; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 2.3vw, 42px); }
.nav-links a, .nav-login { color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a { min-height: 48px; display: inline-flex; align-items: center; gap: 7px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: var(--blue); transform: scaleX(0); transition: transform .18s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.status-chip { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 6px; background: #dfe9ff; color: var(--blue-dark); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-login { min-height: 44px; background: transparent; border: 0; cursor: pointer; padding: 8px 4px; }
.btn-primary, .btn-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 14px 24px; }
.nav-register { min-width: 170px; }
.hamburger { display: none; min-width: 46px; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; cursor: pointer; }
.hamburger-icon { width: 24px; height: 24px; }
.mobile-nav-panel, .mobile-nav-overlay { display: none; }

.home-hero { padding: 54px 0 48px; }
.home-hero > .container { width: min(100% - 64px, 1360px); }
.home-hero-grid { display: grid; grid-template-columns: 570px minmax(0, 1fr); gap: 58px; align-items: start; }
.home-hero-grid > * { min-width: 0; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--blue); font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-hero-copy h1 { margin: 0; max-width: 620px; font-size: 68px; line-height: .96; letter-spacing: -.067em; font-weight: 750; }
.home-hero-copy h1 strong { font-weight: 800; }
.home-hero-copy p { max-width: 470px; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.45; }
.task-search-panel { padding-top: 28px; }
.task-search { height: 76px; display: grid; grid-template-columns: 28px 1fr 44px; align-items: center; gap: 12px; padding: 0 14px 0 22px; border: 2px solid var(--blue); border-radius: 12px; background: var(--surface); }
.task-search:focus-within { outline: 4px solid rgba(11, 75, 214, .12); }
.task-search .search-icon { width: 26px; height: 26px; }
.task-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 18px; }
.task-search input::placeholder { color: #999a9d; }
.task-search button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--blue); color: #fff; cursor: pointer; opacity: 0; transform: translateX(5px); transition: opacity .15s ease, transform .15s ease; }
.task-search:focus-within button, .task-search input:not(:placeholder-shown) + button { opacity: 1; transform: translateX(0); }
.quick-label { margin: 24px 0 10px; color: var(--muted); font-size: 13px; }
.quick-tasks { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-tasks a { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.55); color: #53555a; font-size: 13px; }
.quick-tasks a:hover { border-color: var(--blue); color: var(--blue); }
.quick-tasks .ui-icon { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 14px; font-weight: 600; }
.task-search-panel > .text-link { margin-top: 26px; }
.text-link .ui-icon { width: 18px; height: 18px; transition: transform .15s ease; }
.text-link:hover .ui-icon { transform: translateX(3px); }

.access-section { padding: 0 0 30px; }
.access-section > .container, .category-showcase > .container { width: min(100% - 64px, 1340px); }
.access-rail { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 112px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.52); }
.access-item { min-width: 0; display: flex; align-items: center; gap: 16px; padding: 22px 26px; position: relative; }
.access-item + .access-item::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.access-icon { width: 58px; height: 58px; flex: 0 0 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--lime); }
.access-icon .ui-icon { width: 28px; height: 28px; }
.access-item p { margin: 0; display: grid; gap: 1px; line-height: 1.25; }
.access-item strong { font-size: 14px; }
.access-item span { font-size: 12px; }
.access-item small, .plan-card small, .product-status { font-size: 9px; }
.access-item p small { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 6px; background: var(--lime-soft); color: #4d5900; font-weight: 700; }
.pricing-rail { display: grid; grid-template-columns: repeat(3, 1fr) 1.18fr 1.65fr; gap: 14px; margin-top: 22px; align-items: stretch; }
.plan-card { min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); position: relative; }
.plan-card-accent::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; border-radius: 9px 0 0 9px; background: var(--blue); }
.plan-card > span { color: var(--blue); font-size: 13px; font-weight: 750; }
.plan-card > strong { margin-top: 6px; font-size: 49px; line-height: 1; letter-spacing: -.055em; }
.plan-card > strong small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.plan-card > b { font-size: 20px; }
.plan-card > b small { font-size: 12px; font-weight: 500; }
.plan-card:hover { border-color: var(--blue); }
.api-card { gap: 10px; justify-content: flex-start; }
.api-card > span { display: flex; justify-content: space-between; gap: 6px; }
.api-card > span small { padding: 2px 6px; border-radius: 6px; background: #dfe9ff; }
.api-card p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.api-card p .ui-icon { width: 17px; height: 17px; filter: invert(26%) sepia(98%) saturate(2734%) hue-rotate(220deg) brightness(82%); }
.custom-card { min-height: 178px; display: flex; flex-direction: column; padding: 22px; border-radius: 9px; background: var(--blue-dark); color: #fff; }
.custom-card strong { max-width: 250px; font-size: 18px; line-height: 1.15; }
.custom-card span { max-width: 250px; margin-top: 12px; color: #dbe6ff; font-size: 12px; line-height: 1.45; }
.custom-card b { min-height: 42px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 12px; }
.custom-card b .ui-icon { width: 18px; height: 18px; }
.shared-limit-note { margin: 18px 0 0; display: flex; justify-content: center; align-items: center; gap: 9px; color: #3d3e42; font-size: 13px; }
.shared-limit-note .ui-icon { width: 22px; height: 22px; filter: invert(26%) sepia(98%) saturate(2734%) hue-rotate(220deg) brightness(82%); }

.section { padding: 88px 0; }
.section:nth-child(even) { background: transparent; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading-row .eyebrow { margin-bottom: 10px; }
.section-title { margin: 0; color: var(--ink); font-size: clamp(36px, 3.2vw, 50px); line-height: 1; letter-spacing: -.05em; font-weight: 750; }
.section-title-left { text-align: left; }
.section-subtitle { margin: 14px 0 38px; color: var(--muted); font-size: 17px; text-align: left; font-weight: 400; }
.category-showcase { padding-top: 14px; }
.category-showcase .section-heading-row { margin-bottom: 16px; }
.category-showcase .section-title { font-size: 34px; }
.task-categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.task-category { min-height: 128px; display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 14px; padding: 22px 18px; position: relative; border: 1px solid var(--line); border-radius: 10px; }
.task-category + .task-category { border-left: 1px solid var(--line); }
.task-category > .ui-icon { width: 46px; height: 46px; grid-row: 1 / 3; align-self: center; filter: invert(26%) sepia(98%) saturate(2734%) hue-rotate(220deg) brightness(82%); }
.task-category strong { font-size: 15px; }
.task-category span { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.task-category:hover { background: var(--surface); }

.popular-section { padding-top: 68px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { min-height: 180px; display: grid; grid-template-columns: 48px 1fr 36px; align-items: start; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; transition: transform .16s ease, border-color .16s ease; }
.service-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: none; }
.service-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--soft-blue); color: var(--blue); }
.service-icon img { width: 24px; height: 24px; filter: invert(26%) sepia(98%) saturate(2734%) hue-rotate(220deg) brightness(82%); }
.service-card h3 { margin: 2px 0 8px; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.service-link { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); font-size: 0; }
.service-link:hover { border-color: var(--blue); background: var(--soft-blue); }
.service-link .ui-icon { width: 18px; height: 18px; }

.audience-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.audience-copy > p { margin: 0 0 28px; max-width: 670px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.audience-copy ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; padding: 0; list-style: none; }
.audience-copy li { display: flex; gap: 9px; align-items: center; font-weight: 600; }
.audience-copy li .ui-icon { filter: invert(26%) sepia(98%) saturate(2734%) hue-rotate(220deg) brightness(82%); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blog-card { min-height: 260px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
.blog-card:hover { border-color: var(--blue); }
.blog-tag { width: fit-content; padding: 5px 8px; border-radius: 5px; background: var(--soft-blue); color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.blog-card h3 { margin: 20px 0 10px; font-size: 21px; line-height: 1.18; letter-spacing: -.025em; }
.blog-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.blog-card .text-link { margin-top: auto; }

.final-cta { padding: 80px 0; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 50px 56px; border-radius: 16px; background: var(--blue-dark); color: #fff; }
.final-cta .eyebrow { color: var(--lime); }
.final-cta h2 { margin: 0; font-size: 40px; letter-spacing: -.045em; }
.final-cta p { max-width: 700px; margin: 12px 0 0; color: #dbe6ff; }
.final-cta .btn-primary { flex: 0 0 auto; background: var(--lime); color: var(--ink); }
.final-cta .btn-primary:hover { background: #f2ffb0; }

.footer { padding: 62px 0 20px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 34px; padding-bottom: 44px; }
.footer-brand p { max-width: 320px; margin: 20px 0 12px; color: var(--muted); font-size: 14px; }
.footer-note { color: var(--blue); font-size: 12px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { margin-bottom: 5px; font-size: 13px; }
.footer-links a { width: fit-content; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.coming-dialog { width: min(92vw, 520px); padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.coming-dialog::backdrop { background: rgba(11, 11, 12, .55); }
.coming-dialog h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.coming-dialog p { margin: 16px 0 24px; color: var(--muted); }
.dialog-close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.dialog-actions { display: flex; gap: 10px; }

/* Internal page layout */
.page-hero, .hero { padding: 68px 0 56px; background: transparent; text-align: left; }
.hero-content { max-width: 960px; margin: 0 auto; text-align: left; }
.hero h1, .page-hero h1, .article-header h1, .product-hero h1 { margin: 0; color: var(--ink); font-size: clamp(44px, 5vw, 72px); line-height: .98; letter-spacing: -.06em; }
.hero-subtitle, .page-lead, .product-lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 19px; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
.hero-hint { color: var(--muted); font-size: 13px; }
.breadcrumbs { color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--blue); }
.category-icon, .related-card-icon { background: var(--soft-blue) !important; color: var(--blue); }
.category-icon { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
.category-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: none; }
.cat-block-head { margin-bottom: 24px; }
.cat-block-link { gap: 14px; }
.cat-block-desc { max-width: 720px; color: var(--muted); }
.blog-more, .related-more { margin-top: 30px; }

.service-tool { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 18px 70px rgba(30,35,50,.05); }
.tool-container, .tool-form-card, .tool-card, .tool-stub { border-color: var(--line) !important; background: var(--surface) !important; box-shadow: none !important; }
.tool-form, .product-form { display: grid; gap: 18px; }
.tool-field, .form-group { display: grid; gap: 8px; }
.tool-field label, .form-group label { font-size: 13px; font-weight: 650; }
.tool-field input, .tool-field textarea, .tool-field select, .form-group input, .form-group textarea, .form-group select, .tool-input, .tool-textarea, .tool-select {
  width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 12px 14px; outline: 0;
}
.tool-field textarea, .form-group textarea, .tool-textarea { min-height: 128px; resize: vertical; }
.tool-field input:focus, .tool-field textarea:focus, .tool-field select:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus, .tool-input:focus, .tool-textarea:focus, .tool-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,75,214,.12); }
.tool-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-result, .result-card { margin-top: 24px; padding: 22px; border: 1px solid #b8dbbf; border-radius: 12px; background: #f2fbf4; }
.tool-save-result { margin-top: 18px; }
.tool-save-result.is-save-failed { border-color: var(--danger); color: var(--danger); }
.tool-error, .error-list, .field-error { color: var(--danger); }
.dropzone { min-height: 180px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--soft); }
.dropzone:hover { border-color: var(--blue); background: var(--soft-blue); }

.intent-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.intent-list li { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: none; }
.related-card:hover { border-color: var(--blue); box-shadow: none; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.faq-item summary { min-height: 56px; padding: 16px 20px; cursor: pointer; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer, .faq-item > p { padding: 0 20px 18px; color: var(--muted); }
.article-page { padding: 10px 0 80px; }
.article-header { margin-bottom: 42px; }
.article-lead { margin: 20px 0; color: var(--muted); font-size: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body h2 { margin: 48px 0 16px; font-size: 32px; line-height: 1.15; letter-spacing: -.035em; }
.article-body h3 { margin: 34px 0 12px; font-size: 23px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 20px; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 12px; }
.article-body table, .comparison-table { width: 100%; border-collapse: collapse; }
.article-body th, .article-body td, .comparison-table th, .comparison-table td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; }
.related-inline { margin-top: 54px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

/* Pricing, API, custom development pages */
.product-page { padding-bottom: 90px; }
.product-breadcrumbs { padding: 34px 0 0; }
.product-hero { padding: 70px 0 54px; }
.product-hero-inner { max-width: 900px; }
.product-hero .eyebrow { margin-bottom: 18px; }
.product-hero p { max-width: 760px; color: var(--muted); font-size: 19px; }
.product-kicker { display: inline-block; margin-bottom: 12px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.product-status { max-width: 760px; display: grid; gap: 3px; margin-top: 24px; padding: 14px 16px; border: 1px solid #d7e0a2; border-radius: 9px; background: var(--lime-soft); color: #4d5900; }
.product-status strong { font-size: 13px; }
.product-status span { font-size: 12px; font-weight: 500; }
.product-section-muted { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft) !important; }
.section-heading { margin-bottom: 34px; }
.section-heading .section-title, .section-heading .section-subtitle { text-align: left; }
.section-heading .section-subtitle { max-width: 760px; margin-bottom: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pricing-card { display: flex; flex-direction: column; gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pricing-card h2, .pricing-card h3 { margin: 0; color: var(--blue); font-size: 16px; }
.pricing-card-head { display: grid; gap: 12px; }
.pricing-status, .pricing-label { width: fit-content; padding: 4px 7px; border-radius: 5px; background: var(--soft-blue); color: var(--blue); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.pricing-card .price, .pricing-price { margin: 0; }
.pricing-price strong { display: block; font-size: 35px; line-height: 1; letter-spacing: -.055em; }
.pricing-price span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.pricing-limit { margin: 0; color: var(--muted); font-size: 12px; }
.pricing-limit strong { color: var(--ink); font-size: 28px; letter-spacing: -.04em; }
.pricing-card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.pricing-card .btn-primary, .pricing-card .btn-secondary { margin-top: auto; }
.pricing-card-featured { border-color: var(--blue); box-shadow: inset 0 4px 0 var(--blue); }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.comparison-table caption { padding: 14px; text-align: left; color: var(--muted); font-size: 12px; }
.comparison-table th, .comparison-table td { border-width: 1px 0 0; }
.comparison-table thead th { border-top: 0; background: var(--soft-blue); color: var(--blue); font-size: 12px; }
.product-note { color: var(--muted); font-size: 12px; }
.product-copy-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: start; }
.product-copy-main h2 { margin: 0 0 18px; font-size: 42px; line-height: 1.05; letter-spacing: -.045em; }
.product-copy-main p { max-width: 760px; color: var(--muted); font-size: 17px; }
.product-side-card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product-side-card h3 { margin: 0 0 16px; }
.product-checklist { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: var(--muted); }
.development-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.development-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.development-card h3 { margin: 20px 0 10px; font-size: 22px; }
.development-card > p { color: var(--muted); font-size: 14px; }
.development-card .btn-secondary { margin-top: auto; }
.process-index { color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.request-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; padding: 42px; border-radius: 16px; background: var(--blue-dark); color: #fff; }
.request-panel h2 { margin: 0; font-size: 38px; letter-spacing: -.045em; }
.request-panel p { color: #dbe6ff; }
.request-panel .product-form { padding: 26px; border-radius: 12px; background: var(--surface); color: var(--ink); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.process-grid > * { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.process-grid-steps { grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.process-card h3 { margin: 18px 0 8px; }
.process-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-field-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; }
.tool-field-check input { margin-top: 3px; }
.tool-fieldset { margin: 0; padding: 0; border: 0; }
.tool-fieldset legend { margin-bottom: 10px; font-size: 13px; font-weight: 650; }
.tool-field-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-field-radio label { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.product-next-step { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.product-next-step p { margin: 0; color: var(--muted); }

.catalog-hero { padding: 70px 0 48px; border-bottom: 1px solid var(--line); }
.catalog-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; }
.catalog-hero h1 { margin: 0; font-size: clamp(50px, 6vw, 82px); line-height: .94; letter-spacing: -.065em; }
.catalog-hero p { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.catalog-search { height: 64px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; padding: 0 18px; border: 2px solid var(--blue); border-radius: 11px; background: var(--surface); }
.catalog-search:focus-within { outline: 4px solid rgba(11,75,214,.12); }
.catalog-search input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.catalog-search-hint { margin-top: 8px !important; font-size: 11px !important; }
.catalog-content { padding: 34px 0 90px; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; position: sticky; top: 78px; z-index: 20; background: var(--paper); scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; }
.category-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.catalog-group { padding: 62px 0 0; scroll-margin-top: 132px; }
.catalog-group-head { display: flex; align-items: start; gap: 16px; margin-bottom: 24px; }
.catalog-group-icon { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--soft-blue); }
.catalog-group-icon .ui-icon { width: 27px; height: 27px; filter: invert(26%) sepia(98%) saturate(2734%) hue-rotate(220deg) brightness(82%); }
.catalog-group h2 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.035em; }
.catalog-group-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.search-empty { max-width: 540px; margin: 70px auto 0; padding: 34px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.search-empty .ui-icon { width: 34px; height: 34px; margin: 0 auto 16px; }
.search-empty h2 { margin: 0; }
.search-empty p { color: var(--muted); }
.request-result-page { min-height: 64vh; display: flex; align-items: center; }
.request-result-card { max-width: 720px; padding: 52px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.request-result-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--lime); }
.request-result-icon .ui-icon { width: 32px; height: 32px; }
.request-result-card h1 { margin: 0; font-size: 46px; letter-spacing: -.05em; }
.request-result-card p { color: var(--muted); }
.request-result-card .dialog-actions { justify-content: center; margin-top: 24px; }

@media (max-width: 1180px) {
  .nav-inner { grid-template-columns: 150px 1fr auto; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .nav-register { min-width: 0; }
  .home-hero-grid { grid-template-columns: 1fr 1.15fr; gap: 50px; }
  .home-hero-copy h1 { font-size: 58px; }
  .access-item { padding: 20px 16px; }
  .access-icon { width: 48px; height: 48px; flex-basis: 48px; }
  .pricing-rail { grid-template-columns: repeat(3, 1fr); }
  .api-card, .custom-card { grid-column: span 1; }
  .custom-card { grid-column: span 2; }
  .task-categories { grid-template-columns: repeat(3, 1fr); border: 0; gap: 14px; }
  .task-category { border: 1px solid var(--line) !important; border-radius: 12px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 40px, var(--max-width)); }
  .nav-header { height: 68px; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-inner .nav-logo { grid-column: 1; justify-self: start; }
  .nav-inner .nav-actions { grid-column: 2; justify-self: end; }
  .nav-links, .nav-login, .nav-register { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-nav-overlay { position: fixed; inset: 68px 0 0; z-index: 180; background: rgba(11,11,12,.4); }
  .mobile-nav-overlay.open { display: block; }
  .mobile-nav-panel { position: fixed; inset: 68px 0 auto; z-index: 190; padding: 18px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform .2s ease; }
  .mobile-nav-panel.open { display: grid; transform: translateY(0); }
  .mobile-nav-panel a, .mobile-nav-panel > button { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-weight: 600; }
  .mobile-nav-panel .btn-primary { margin-top: 12px; justify-content: center; border: 0; background: var(--blue); color: #fff; }
  .home-hero { padding-top: 46px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-hero-copy h1 { font-size: clamp(52px, 11vw, 70px); }
  .task-search-panel { padding-top: 0; }
  .access-rail { grid-template-columns: 1fr 1fr; }
  .access-item:nth-child(3)::before { display: none; }
  .access-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pricing-rail { grid-template-columns: 1fr 1fr; }
  .plan-card, .custom-card { grid-column: auto; }
  .custom-card { grid-column: span 2; }
  .task-categories { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid, .request-panel { grid-template-columns: 1fr; gap: 36px; }
  .blog-grid, .pricing-grid, .process-grid, .categories-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .product-copy-grid, .catalog-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-grid-steps { grid-template-columns: 1fr 1fr; }
  .development-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 38px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .home-hero { padding: 34px 0 38px; }
  .home-hero > .container, .access-section > .container, .category-showcase > .container { width: min(100% - 28px, 1360px); }
  .eyebrow { font-size: 10px; }
  .home-hero-copy h1 { max-width: 100%; font-size: 45px; line-height: .96; overflow-wrap: break-word; }
  .home-hero-copy p { margin-top: 20px; font-size: 16px; }
  .task-search { height: 64px; padding-left: 16px; }
  .task-search input { font-size: 16px; }
  .quick-tasks { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .quick-tasks::-webkit-scrollbar { display: none; }
  .quick-tasks a { flex: 0 0 auto; }
  .access-rail { grid-template-columns: 1fr; }
  .access-item + .access-item::before { display: none; }
  .access-item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .pricing-rail { grid-template-columns: 1fr; }
  .custom-card { grid-column: auto; }
  .plan-card { min-height: 150px; }
  .section { padding: 64px 0; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 26px; }
  .section-title { font-size: 38px; }
  .task-categories, .services-grid, .blog-grid, .pricing-grid, .process-grid, .categories-grid, .related-grid { grid-template-columns: 1fr; }
  .process-grid-steps, .tool-form-row { grid-template-columns: 1fr; }
  .product-copy-main h2 { font-size: 34px; }
  .category-tabs { top: 68px; }
  .task-category { min-height: 154px; }
  .audience-grid { gap: 28px; }
  .audience-copy > p { font-size: 17px; }
  .audience-copy ul { grid-template-columns: 1fr; }
  .final-cta-inner { align-items: stretch; flex-direction: column; padding: 34px 26px; }
  .final-cta h2 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { gap: 12px; flex-direction: column; }
  .dialog-actions { flex-direction: column; }
  .hero, .page-hero, .product-hero { padding: 46px 0 34px; }
  .hero-cta { align-items: stretch; flex-direction: column; }
  .service-tool { padding: 18px; }
  .request-panel { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .nav-header, .footer, .mobile-nav-panel, .mobile-nav-overlay, .coming-dialog { display: none !important; }
  .section { padding: 22px 0; }
  body { background: #fff; }
}
/* Consent and optional advertising are isolated from the core layout. */
.privacy-banner {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 22px;
  color: #f8fbff;
  background: #071f55;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgb(0 25 76 / 30%);
}
.privacy-banner strong { display: block; margin-bottom: 5px; font-size: 16px; }
.privacy-banner p { max-width: 720px; margin: 0 0 4px; color: rgb(248 251 255 / 76%); font-size: 14px; line-height: 1.5; }
.privacy-banner a { color: #dfff4f; font-size: 13px; }
.privacy-banner-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.privacy-banner-actions form { margin: 0; }
.privacy-banner-actions .btn-secondary { color: #fff; border-color: rgb(255 255 255 / 35%); background: transparent; }
/* Раскрываемая панель настроек: показывается по кнопке «Настройки» */
.privacy-banner-settings { display: none; }
.privacy-banner.show-settings .privacy-banner-settings { display: block; }
.privacy-banner.show-settings { flex-direction: column; align-items: flex-start; gap: 12px; }
.privacy-banner.show-settings .privacy-banner-settings { padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 16%); }
.privacy-banner.show-settings .privacy-banner-settings .privacy-banner-actions { margin-top: 8px; }
.privacy-banner-settings-toggle { cursor: pointer; }
.yandex-ad-slot { margin-block: 32px; padding-block: 12px; border-block: 1px solid #e5e3dc; }
.yandex-ad-slot > span { display: block; margin-bottom: 8px; color: #77746c; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
/* Пагинация публичного каталога статей */
.pagination-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.pagination-info { color: var(--text-muted); font-size: 14px; }
@media (max-width: 760px) {
  .privacy-banner { right: 12px; bottom: 12px; left: 12px; align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .privacy-banner-actions { display: grid; grid-template-columns: 1fr; }
  .privacy-banner-actions button { width: 100%; }
}

/* Читаемость форм внутри синих request-панелей: белая карточка + контрастный текст */
.request-panel .product-kicker { color: #b9d0ff; }
.request-panel .tool-form.request-form {
  padding: 26px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}
.request-panel .request-form label { color: var(--ink); }

/* Тарифные карточки: подпись лимита отдельной строкой без переносов */
.plan-card > strong { font-size: 44px; }
.plan-card > strong small { display: block; margin-top: 5px; white-space: nowrap; font-size: 11px; letter-spacing: 0; }

/* Похожие сервисы: карточки по центру, кнопка категории по центру */
.related-grid.related-grid-many { grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; }
.related-more { display: flex; justify-content: center; }

/* Карточки кликабельны целиком (stretched-link, без JS - SEO-безопасно) */
.service-card { position: relative; }
.service-card .service-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.blog-card { position: relative; }
.blog-card h3 > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.blog-card .text-link { position: relative; z-index: 1; }

/* Индикатор обработки инструмента.
   Полоса - чистая CSS-анимация (60с): JS-таймеры браузер давит во время
   ожидания ответа формы, а CSS-анимации тикают всегда.
   Темп: 0-90% за 8с равномерно, 90-95% за следующие 7с, дальше crawl к 99%. */
.tool-progress { margin-top: 14px; }
.tool-progress-bar { height: 6px; border-radius: 999px; background: var(--soft-blue, #e9f1fd); overflow: hidden; }
.tool-progress-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--blue, #0075de); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; animation: tool-progress-fill 60s linear forwards; }
@keyframes tool-progress-fill {
  0% { transform: scaleX(0); }
  13.33% { transform: scaleX(0.90); }
  25% { transform: scaleX(0.95); }
  100% { transform: scaleX(0.99); }
}
.tool-progress-note { display: block; margin-top: 8px; color: var(--muted, #696b70); font-size: 12.5px; line-height: 1.45; }
