/* ================================================
   QU BOT — New Design System 2026
   Colors: #222629 bg | #474B4F cards | #6B6E70 borders
           #86C232 accent | #61892F accent-dark
   ================================================ */

:root {
  --bg:          #222629;
  --bg-card:     #2d3136;
  --bg-card2:    #474B4F;
  --border:      #3a3f44;
  --border-mid:  #6B6E70;
  --accent:      #86C232;
  --accent-dark: #61892F;
  --text:        #f0f2f4;
  --text-muted:  #a0a8b2;
  --text-dim:    #6B6E70;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   14px;
  --transition:  0.22s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.25);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #1a2010;
}
.btn-primary:hover {
  background: #96d438;
  box-shadow: 0 0 0 4px rgba(134,194,50,0.18);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Navigation ---- */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(34,38,41,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  margin-left: 12px;
  padding: 9px 20px;
  background: var(--accent);
  color: #1a2010;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
  text-decoration: none;
}
.nav-cta:hover { background: #96d438; }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- Hero ---- */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(134,194,50,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(134,194,50,0.1);
  border: 1px solid rgba(134,194,50,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}

.hero-stat {
  background: var(--bg-card);
  padding: 28px 20px;
  text-align: center;
}
.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero visual / right side */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color var(--transition);
}
.hero-card:hover { border-color: var(--accent); }

.hero-card-icon {
  width: 40px; height: 40px;
  background: rgba(134,194,50,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.hero-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}
.hero-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { border-color: rgba(134,194,50,0.3); transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(134,194,50,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

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

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(134,194,50,0.08);
  border: 1px solid rgba(134,194,50,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ---- Process Steps ---- */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-step:nth-child(3n) { border-right: none; }
.process-step:nth-last-child(-n+3) { border-bottom: none; }

.process-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(134,194,50,0.18);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.process-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Projects / Cases ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: rgba(134,194,50,0.35); transform: translateY(-4px); }

.project-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-card2);
}

.project-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-card2) 0%, #353a3f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-card-tech span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.project-card-link:hover { gap: 10px; }
.project-card-link svg { flex-shrink: 0; }

/* ---- Articles ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}
.article-card:hover { border-color: rgba(134,194,50,0.35); transform: translateY(-3px); }

.article-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(134,194,50,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: auto;
  align-self: flex-start;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 52px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.about-value-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 10px;
}

.about-value-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.about-value-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.team-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a2010;
}

.team-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  margin-top: 52px;
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(134,194,50,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--white);
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: rgba(134,194,50,0.04);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #1a2010;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
}
.form-submit:hover {
  background: #96d438;
  box-shadow: 0 0 0 4px rgba(134,194,50,0.18);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cta-banner-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1a2010;
  margin-bottom: 12px;
}

.cta-banner-desc {
  color: rgba(26,32,16,0.75);
  font-size: 1rem;
  margin-bottom: 32px;
}

.cta-banner .btn-dark {
  background: #1a2010;
  color: var(--accent);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition);
}
.cta-banner .btn-dark:hover { background: #0f1309; }

/* ---- Divider line ---- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- Footer ---- */
.main-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand img { width: 28px; }

.footer-about {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col-links a:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(134,194,50,0.04) 0%, transparent 100%);
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-dim); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-mid); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px 24px; }
  .contact-form { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}

/* ---- Project filters ---- */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a2010;
}

/* ---- Project card v2 (text-only, no image) ---- */
.project-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.project-card-v2:hover {
  border-color: rgba(134,194,50,0.4);
  transform: translateY(-3px);
}
.project-card-v2[data-hidden="true"] {
  display: none;
}

.pc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pc-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(134,194,50,0.1);
  border: 1px solid rgba(134,194,50,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.pc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.pc-meta .sep { opacity: 0.4; }

.pc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

.pc-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

/* результаты / метрики */
.pc-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pc-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pc-metric-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.pc-metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* техстек */
.pc-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-tech span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 4px;
}
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition);
}
.pc-link:hover { gap: 10px; }

/* ---- Tech ticker / marquee ---- */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 80s linear infinite;
  width: max-content;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 20px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.ticker-item:hover { color: var(--accent); }

.ticker-dot {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ---- About home block ---- */
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-home-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-home-val {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition);
}
.about-home-val:hover { border-color: rgba(134,194,50,0.3); }

.ahv-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ahv-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

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

/* ---- Articles header with link ---- */
.articles-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 768px) {
  .about-home-grid { grid-template-columns: 1fr; gap: 40px; }
  .articles-header { flex-direction: column; gap: 16px; }
}

/* ---- Stats numbers ---- */
.stats-section { padding: 72px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition);
}
.stat-item:hover { background: #2f343a; }

.stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-num span {
  font-size: 1.4rem;
  opacity: 0.7;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

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

/* ---- Tech stack ---- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stack-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stack-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  transition: border-color var(--transition), color var(--transition);
}
.stack-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(134,194,50,0.1);
  font-family: Georgia, serif;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #1a2010;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}
.faq-q:hover { background: #2f343a; color: var(--accent); }
.faq-item.open .faq-q { color: var(--accent); background: #2f343a; }

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-card);
  padding: 0 28px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 28px 22px;
}

.faq-a p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-q { padding: 18px 20px; font-size: 0.95rem; }
  .faq-a { padding: 0 20px; }
  .faq-item.open .faq-a { padding: 0 20px 18px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2.2rem; }
}

/* ════════════════════════════════════════
   CASE DETAIL PAGE
   ════════════════════════════════════════ */

/* Wide container for case pages */
.cd-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hero */
.cd-hero {
  padding: 130px 0 64px;
  background: linear-gradient(180deg, rgba(134,194,50,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.cd-hero-body { margin-top: 28px; }

.cd-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cd-meta-item {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}
.cd-meta-dot { color: var(--border-mid); font-size: 1rem; }

.cd-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 960px;
}

.cd-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Big stat cards in hero (if main_result_* fields filled) */
.cd-hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 36px 0 32px;
}

.cd-hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  min-width: 200px;
  flex: 1;
  max-width: 280px;
  transition: border-color var(--transition), transform var(--transition);
}
.cd-hero-stat:hover {
  border-color: rgba(134,194,50,0.5);
  transform: translateY(-3px);
}

.cd-hero-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cd-hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* Compact results list in hero (if final_results but no main_result_*) */
.cd-hero-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 32px 0 28px;
}

.cd-hero-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(134,194,50,0.07);
  border: 1px solid rgba(134,194,50,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: background var(--transition);
}
.cd-hero-result-item:hover {
  background: rgba(134,194,50,0.12);
}
.cd-hero-result-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.cd-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cd-tech-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Section wrappers with alternating backgrounds */
.cd-section-wrap {
  padding: 72px 0;
}
.cd-section-alt {
  background: var(--bg-card);
}

/* ── Основной контент + сайдбар ── */
.cd-body-wrap {
  padding: 64px 0 80px;
}
.cd-body-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.cd-body-main {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Сайдбар */
.cd-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}
.cd-sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.cd-sidebar-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.cd-sidebar-services {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cd-svc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cd-svc-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
}
.cd-svc-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}
.cd-svc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}
.cd-sidebar-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Сайдбар CTA */
.cd-sidebar-cta {
  background: linear-gradient(135deg, rgba(134,194,50,0.08) 0%, rgba(134,194,50,0.03) 100%);
  border-color: rgba(134,194,50,0.25);
}
.cd-sidebar-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.cd-sidebar-cta-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.cd-sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.cd-sidebar-cta-btn:hover {
  background: #9be03a;
  transform: translateY(-1px);
}

/* Отзыв */
.cd-testimonial {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 28px 32px;
  margin: 0;
}
.cd-testimonial-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  font-style: italic;
  white-space: pre-line;
}
.cd-testimonial-author {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Main sections */
.cd-section {
  margin: 0;
}

/* Two-column layout for Задача section */
.cd-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.cd-two-col-main {}
.cd-two-col-side {}

/* "Что было до нас" block */
.cd-before-block {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.cd-before-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 68, 68, 0.7);
  margin-bottom: 16px;
}
.cd-before-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cd-before-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: var(--radius);
}
.cd-before-list li svg {
  flex-shrink: 0;
  color: #ef4444;
  margin-top: 2px;
}

/* Решение — двухколоночный макет */
.cd-solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cd-solution-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cd-solution-list-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.cd-solution-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.cd-solution-item:hover { border-color: rgba(134,194,50,0.3); }

.cd-solution-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(134,194,50,0.12);
  border: 1.5px solid rgba(134,194,50,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 1px;
}

.cd-solution-item p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Таблица сравнения До/После */
.cd-solution-right {}

.cd-compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cd-compare-standalone {
  max-width: 700px;
}

.cd-compare-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.cd-compare-head-before,
.cd-compare-head-after {
  padding: 10px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cd-compare-head-before {
  color: #ef4444;
  border-right: 1px solid var(--border);
}
.cd-compare-head-after {
  color: var(--accent);
}

.cd-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}
.cd-compare-row:first-of-type { border-top: none; }
.cd-compare-row:hover { background: rgba(255,255,255,0.02); }

.cd-compare-before,
.cd-compare-after {
  padding: 13px 16px;
  font-size: 0.87rem;
  line-height: 1.5;
}
.cd-compare-before {
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  position: relative;
  padding-left: 24px;
}
.cd-compare-before::before {
  content: '×';
  position: absolute;
  left: 9px;
  top: 14px;
  font-size: 0.85rem;
  line-height: 1;
  color: #ef4444;
  font-weight: 600;
}
.cd-compare-after {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding-left: 24px;
}
.cd-compare-after::before {
  content: '→';
  position: absolute;
  left: 9px;
  top: 13px;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--accent);
}

/* Использованные услуги */
.cd-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cd-service-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
  cursor: default;
}
.cd-service-card:hover {
  border-color: rgba(134,194,50,0.35);
  transform: translateY(-2px);
}
.cd-service-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(134,194,50,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background var(--transition);
}
.cd-service-card:hover .cd-service-icon {
  background: rgba(134,194,50,0.18);
}
.cd-service-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.cd-service-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cd-section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.cd-prose {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 860px;
}

/* Check list */
.cd-check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.cd-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color var(--transition);
}
.cd-check-list li:hover { border-color: rgba(134,194,50,0.25); }
.cd-check-list li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

/* Results grid */
.cd-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cd-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(134,194,50,0.06);
  border: 1px solid rgba(134,194,50,0.2);
  border-radius: var(--radius-lg);
  transition: background var(--transition), border-color var(--transition);
}
.cd-result-card:hover {
  background: rgba(134,194,50,0.06);
  border-color: rgba(134,194,50,0.3);
}
.cd-result-icon {
  color: var(--accent);
  line-height: 1;
}
.cd-result-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
}

/* Feature cards (solutions) */
.cd-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.cd-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.cd-feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cd-feature-card:hover {
  border-color: rgba(134,194,50,0.35);
  transform: translateY(-3px);
}
.cd-feature-card:hover::after { opacity: 1; }

.cd-feature-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(134,194,50,0.18);
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.cd-feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Benefits */
.cd-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.cd-benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.cd-benefit-card:hover { border-color: rgba(134,194,50,0.3); }
.cd-benefit-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(134,194,50,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  margin-top: 2px;
}
.cd-benefit-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 1200px) {
  .cd-body-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 1024px) {
  .cd-container { padding: 0 24px; }
  .cd-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-hero-stats { gap: 12px; }
  .cd-two-col { grid-template-columns: 1fr; gap: 32px; }
  .cd-solution-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .cd-body-layout { grid-template-columns: 1fr; }
  .cd-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .cd-sidebar-block { flex: 1 1 260px; }
}

@media (max-width: 768px) {
  .cd-hero { padding: 110px 0 48px; }
  .cd-section-wrap { padding: 52px 0; }
  .cd-title { font-size: clamp(1.7rem, 5vw, 2.4rem); }
  .cd-cards-grid { grid-template-columns: 1fr; }
  .cd-benefits-grid { grid-template-columns: 1fr; }
  .cd-check-list { grid-template-columns: 1fr; }
  .cd-hero-stats { flex-direction: column; }
  .cd-hero-stat { max-width: 100%; }
  .cd-hero-results { grid-template-columns: 1fr; }
  .cd-compare-head { grid-template-columns: 1fr 1fr; }
  .cd-compare-row { grid-template-columns: 1fr; }
  .cd-compare-before { border-right: none; border-bottom: 1px solid var(--border); }
  .cd-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cd-container { padding: 0 16px; }
  .cd-hero-stat-num { font-size: 2rem; }
  .cd-section-title { font-size: 1.3rem; }
  .cd-services-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   ARTICLE LIST PAGE
   ════════════════════════════════════════════ */

.articles-filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.articles-filters {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.articles-filters::-webkit-scrollbar { display: none; }

.af-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
}
.af-btn:hover { color: var(--text); border-color: var(--border); }
.af-btn--active {
  color: var(--accent);
  background: rgba(134,194,50,0.1);
  border-color: rgba(134,194,50,0.3);
}

.articles-section { padding: 60px 0 80px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.article-card-img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1d20;
}
.article-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.article-card:hover .article-card-img-wrap img { transform: scale(1.04); }
.article-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.article-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.article-card-cat {
  color: var(--accent);
  font-weight: 600;
}
.article-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--text);
}
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--accent); }

.article-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.article-card-link:hover { gap: 10px; }

.articles-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}
.pag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.pag-btn:hover { border-color: var(--accent); color: var(--accent); }
.pag-btn--active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }

/* ════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ════════════════════════════════════════════ */

/* Hero */
.art-hero {
  position: relative;
  padding: 100px 0 56px;
  background: var(--bg);
  overflow: hidden;
}
.art-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.art-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.art-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,22,24,0.6) 0%, var(--bg) 100%);
}
.art-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.art-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.art-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.art-breadcrumbs a:hover { color: var(--accent); }
.art-breadcrumbs .sep { opacity: 0.5; }

.art-category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(134,194,50,0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.art-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--text);
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.art-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Layout */
.art-layout { padding: 52px 0 0; }
.art-layout-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Article body */
.art-body {}
.art-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  background: rgba(134,194,50,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.art-content {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--text);
}
.art-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}
.art-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}
.art-content p { margin: 0 0 18px; }
.art-content ul, .art-content ol {
  padding-left: 24px;
  margin: 0 0 18px;
}
.art-content li { margin-bottom: 8px; line-height: 1.6; }
.art-content ol { counter-reset: art-counter; padding-left: 0; list-style: none; }
.art-content ol li { counter-increment: art-counter; padding-left: 32px; position: relative; }
.art-content ol li::before {
  content: counter(art-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px; height: 22px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-content ul li { padding-left: 20px; position: relative; }
.art-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.art-content strong { color: var(--text); font-weight: 700; }
.art-content a { color: var(--accent); }
.art-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(134,194,50,0.06);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.65;
  position: relative;
}
.art-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.art-content pre {
  background: #1a1d20;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.875rem;
}
.art-content code {
  background: rgba(134,194,50,0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
.art-content pre code { background: none; color: inherit; padding: 0; }

/* ── Таблицы внутри статьи ─────────────────────────────── */
.art-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.88rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.art-content thead {
  background: linear-gradient(135deg, #1a1d20 0%, #141618 100%);
}
.art-content thead th {
  padding: 13px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
  border-bottom: 2px solid rgba(134,194,50,0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.art-content tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.art-content tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.art-content tbody tr:hover { background: rgba(134,194,50,0.06); }
.art-content tbody tr:last-child { border-bottom: none; }
.art-content tbody td {
  padding: 12px 18px;
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.6;
}
.art-content tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
/* Вторая колонка (Было) — красноватый акцент */
.art-content tbody td:nth-child(2) { color: #a0a8b2; }
/* Третья колонка (Стало) — зелёный акцент */
.art-content tbody td:nth-child(3) { color: #a8c878; }

/* Sidebar */
.art-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.art-sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.art-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.art-sidebar-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.art-case-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.art-case-link:hover { border-color: var(--accent); color: var(--accent); }
.art-case-link img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Related services — sidebar buttons */
.art-sidebar-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-svc-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.art-svc-btn:hover {
  border-color: var(--accent);
  background: rgba(134,194,50,0.04);
}
.art-svc-btn svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.art-svc-btn:hover svg { opacity: 1; }
.art-svc-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.art-svc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* CTA highlight animation */
.art-sidebar-cta { transition: box-shadow 0.3s; }
.art-sidebar-cta--highlight {
  box-shadow: 0 0 0 2px var(--accent);
}

/* Old services section — hidden (moved to sidebar) */
.art-services-wrap { display: none; }
.art-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 28px;
}
.art-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.art-service-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s;
}
.art-service-card:hover { border-color: var(--accent); }
.art-service-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.art-service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}
.art-service-arrow { color: var(--accent); margin-top: 8px; }

/* CTA block */
.art-cta-wrap { padding: 52px 0 0; }
.art-cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.art-cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.art-cta-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.art-cta-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.art-cta-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.art-cta-input:focus { outline: none; border-color: var(--accent); }
.art-cta-textarea { resize: vertical; min-height: 80px; }
.art-cta-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.art-cta-btn:hover { opacity: 0.88; }

/* Related articles */
.art-related-wrap { padding: 52px 0 80px; }
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.art-related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s;
}
.art-related-card:hover { border-color: var(--accent); }
.art-related-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.art-related-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.art-related-card:hover .art-related-img img { transform: scale(1.04); }
.art-related-body { padding: 16px 18px; }
.art-related-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.art-related-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
}
.art-related-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive articles */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout-inner { grid-template-columns: 1fr; }
  .art-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .art-sidebar-block { flex: 1; min-width: 240px; }
  .art-services-grid { grid-template-columns: repeat(2, 1fr); }
  .art-cta-block { grid-template-columns: 1fr; }
  .art-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .art-hero { padding: 90px 0 40px; }
  .art-services-grid { grid-template-columns: 1fr; }
  .art-cta-block { padding: 28px 20px; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-sidebar { flex-direction: column; }
}

/* ---- Misc / Utilities ---- */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-48 { margin-bottom: 48px; }

/* Success message */
.form-success {
  display: none;
  background: rgba(134,194,50,0.1);
  border: 1px solid rgba(134,194,50,0.3);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}
