﻿:root {
    --bg: #0d0d0d;
    --card-dark: #1a1a1a;
    --card-light: #f5f5f0;
    --text-light: #ffffff;
    --text-dark: #0d0d0d;
    --mute-on-dark: #8a8a8a;
    --mute-on-light: #666666;
    --accent: #a3e635;
    --divider-dark: #2a2a2a;
    --divider-light: #e0e0e0;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    background: #000;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Mobile wrapper — макет на ~400px */
  .page {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* ============ HERO ============ */
  .hero {
    position: relative;
    background-color: #0d0d0d;
    background-image: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.85) 100%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 700' preserveAspectRatio='xMidYMid slice'><defs><linearGradient id='g1' x1='0' x2='1' y1='0' y2='1'><stop offset='0' stop-color='%23333'/><stop offset='1' stop-color='%23111'/></linearGradient><linearGradient id='g2' x1='0' x2='1' y1='0' y2='0.6'><stop offset='0' stop-color='%23555'/><stop offset='1' stop-color='%23222'/></linearGradient></defs><rect width='400' height='700' fill='%23161616'/><polygon points='200,0 400,120 400,700 200,580' fill='url(%23g1)'/><polygon points='200,0 200,580 100,640 100,60' fill='url(%23g2)'/><polygon points='100,60 200,0 200,90 100,150' fill='%23404040' opacity='0.6'/><polygon points='200,90 300,30 300,580 200,640' fill='%23383838' opacity='0.5'/></svg>");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    min-height: 720px;
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .logo-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-light);
    line-height: 1;
  }

  .logo-sub {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--mute-on-dark);
    text-transform: uppercase;
  }

  .burger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 28px;
  }

  .burger span {
    display: block;
    height: 2px;
    background: var(--text-light);
    width: 100%;
  }

  .hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .hero-sub-info {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
    line-height: 1.5;
    margin-bottom: 28px;
  }

  .hero-sub-info .price {
    color: var(--accent);
  }

  .hero-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 22px;
    max-width: 240px;
  }

  .hero-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 24px;
    max-width: 230px;
  }

  .hero-sub .accent {
    color: var(--accent);
  }

  .btn {
    display: block;
    width: 100%;
    max-width: 260px;
    padding: 13px 20px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
  }

  .btn:hover { opacity: 0.88; }

  .btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    margin-bottom: 10px;
  }

  .btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
    max-width: 280px;
  }

  .metric .value {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 8px;
  }

  .metric .label {
    font-size: 10px;
    font-weight: 400;
    color: var(--mute-on-dark);
    line-height: 1.35;
  }

  /* ============ SITUATIONS (light card) ============ */
  .situations {
    background: var(--card-light);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 26px 22px 28px;
  }

  .section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 26px;
  }

  .situations .section-title { color: var(--text-dark); }

  .situations-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
  }

  .sit-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    align-items: start;
  }

  .sit-dash {
    width: 14px;
    height: 2px;
    background: var(--accent);
    margin-top: 9px;
  }

  .sit-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-dark);
  }

  .sit-text strong {
    font-weight: 600;
    display: block;
  }

  .sit-text span {
    color: var(--mute-on-light);
    font-weight: 400;
  }

  .sit-footer {
    text-align: center;
    font-size: 12px;
    color: var(--mute-on-light);
    line-height: 1.5;
  }

  .sit-arrow {
    display: block;
    margin: 0 auto 8px;
    width: 14px;
    color: var(--text-dark);
  }

  /* ============ SYSTEM (dark) ============ */
  .system {
    padding: 8px 4px 4px;
  }

  .system .section-title { color: var(--text-light); margin-bottom: 22px; }
  .system .section-title .accent { color: var(--accent); }

  .system-list {
    display: flex;
    flex-direction: column;
  }

  .sys-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--divider-dark);
  }

  .sys-item:last-child { border-bottom: none; }

  .sys-num {
    font-size: 14px;
    font-weight: 500;
    color: var(--mute-on-dark);
    letter-spacing: 0.04em;
    padding-top: 1px;
  }

  .sys-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-light);
  }

  .sys-desc {
    font-size: 13px;
    color: var(--mute-on-dark);
    line-height: 1.45;
  }

  /* ============ CASE (dark card with border) ============ */
  .case {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 22px 20px 24px;
  }

  .case-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .case-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 22px;
  }

  .case-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
  }

  .case-metric .label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--mute-on-dark);
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .case-metric .value {
    font-size: 26px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
  }

  .case-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
  }

  .case-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .case-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .case-col li {
    font-size: 12px;
    color: var(--mute-on-dark);
    line-height: 1.4;
  }

  .case-meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--mute-on-dark);
    text-transform: uppercase;
    line-height: 1.7;
    margin-bottom: 22px;
    margin-top: auto;
  }

  .case-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
  }

  /* ============ CASES CAROUSEL ============ */
  .cases-section {
    padding: 8px 0 4px;
  }

  .cases-section .section-title {
    color: var(--text-light);
    margin-bottom: 4px;
    padding: 0 4px;
  }

  .cases-section .section-title .accent { color: var(--accent); }

  .cases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4px;
    margin-bottom: 18px;
  }

  .cases-counter {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--mute-on-dark);
    font-variant-numeric: tabular-nums;
  }

  .cases-counter .current {
    color: var(--accent);
    font-weight: 600;
  }

  .cases-viewport {
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
  }

  .cases-track {
    display: flex;
    gap: 12px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y;
  }

  .case-slide {
    flex: 0 0 100%;
    min-width: 0;
  }

  /* Case card stays the same look as before, but inside the track */
  .case-slide .case {
    height: 100%;
    background: var(--card-dark);
    border-radius: 12px;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
  }

  /* Compact case (for cards with fewer details) */
  .case-compact {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 420px;
  }

  .case-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--divider-dark);
  }

  .case-compact-niche {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
    max-width: 200px;
  }

  .case-compact-id {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
  }

  .case-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .case-result-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--divider-dark);
  }

  .case-result-row:last-child { border-bottom: none; }

  .case-result-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    min-width: 140px;
  }

  .case-result-value.italic {
    font-style: italic;
    font-size: 18px;
    font-weight: 500;
  }

  .case-result-label {
    font-size: 12px;
    color: var(--mute-on-dark);
    line-height: 1.4;
  }



  .case-compact .case-link {
    margin-top: 0;
  }

  /* Carousel controls */
  .cases-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 0 4px;
  }

  .cases-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .cases-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--divider-dark);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
  }

  .cases-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 3px;
  }

  .cases-arrows {
    display: flex;
    gap: 8px;
  }

  .cases-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--divider-dark);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .cases-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .cases-arrow svg { width: 14px; height: 14px; stroke-width: 2; }

  /* ============ SERVICES (light card) ============ */
  .services {
    background: var(--card-light);
    color: var(--text-dark);
    border-radius: 12px;
    padding: 26px 22px 28px;
  }

  .services .section-title { color: var(--text-dark); margin-bottom: 8px; }

  .services-list {
    display: flex;
    flex-direction: column;
  }

  .srv-item {
    display: grid;
    grid-template-columns: 50px 1fr 44px;
    gap: 14px;
    align-items: center;
    padding: 22px 0;
    position: relative;
  }

  .srv-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 64px;
    width: 24px;
    height: 1px;
    background: var(--accent);
  }

  .srv-num {
    font-size: 28px;
    font-weight: 500;
    color: #c4c4bc;
    line-height: 1;
  }

  .srv-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .srv-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
  }

  .srv-desc {
    font-size: 12px;
    color: var(--mute-on-light);
    line-height: 1.4;
  }

  .srv-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8e8e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    flex-shrink: 0;
  }

  .srv-icon svg { width: 18px; height: 18px; }

  /* ============ WHY (dark) ============ */
  .why {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 26px 22px 12px;
  }

  .why .section-title { color: var(--text-light); margin-bottom: 8px; }
  .why .section-title .accent { color: var(--accent); }

  .why-list {
    display: flex;
    flex-direction: column;
  }

  .why-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--divider-dark);
  }

  .why-item:last-child { border-bottom: none; }

  .why-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
  }

  .why-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }

  .why-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.45;
  }

  /* ============ FINAL CTA (dark with image) ============ */
  .final-cta {
    border-radius: 12px;
    padding: 26px 22px 24px;
    background-color: #0d0d0d;
    background-image: linear-gradient(95deg, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.92) 55%, rgba(13,13,13,0.65) 100%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 700' preserveAspectRatio='xMidYMid slice'><rect width='400' height='700' fill='%23161616'/><polygon points='250,0 400,80 400,700 250,620' fill='%23333'/><polygon points='150,40 250,0 250,620 150,660' fill='%23262626'/></svg>");
    background-size: cover;
    background-position: right center;
  }

  .final-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 260px;
  }

  .final-title .accent { color: var(--accent); }

  .final-sub-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--mute-on-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .final-list {
    list-style: none;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .final-list li {
    font-size: 13px;
    color: var(--text-light);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
  }

  .final-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-light);
  }

  .final-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .field {
    position: relative;
  }

  .field input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 13px 14px 13px 40px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-light);
  }

  .field input::placeholder { color: var(--mute-on-dark); }
  .field input:focus { outline: none; border-color: var(--accent); }

  .field svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--mute-on-dark);
    stroke-width: 1.5;
  }

  .btn-form {
    background: var(--accent);
    color: var(--text-dark);
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 4px;
  }

  .btn-form:hover { opacity: 0.9; }

  .form-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--mute-on-dark);
    margin-top: 12px;
  }

  .form-meta svg { width: 14px; height: 14px; stroke-width: 1.5; }

  /* ============ NICHE CASES ============ */
  .case-niche {
    background: var(--card-dark);
    border-radius: 12px;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 360px;
  }

  .case-niche-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    align-content: flex-start;
  }

  .case-niche-tag {
    background: #242424;
    color: var(--text-light);
    border: 1px solid var(--divider-dark);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1;
  }
  /* Нишевые слайды: новый дизайн по ТЗ */
  .case-niche-cat {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--divider-dark);
  }
  .case-niche-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    align-content: start;
  }
  .case-niche-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 10px 8px;
    border: 1px solid var(--divider-dark);
    border-radius: 6px;
    text-align: center;
  }
  .case-niche-company {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
  }
  /* БЫЛО/СДЕЛАЛИ внутри compact-карточек */
  .case-compact .case-cols {
    margin-bottom: 0;
  }

  .case-niche .case-link {
    margin-top: auto;
  }

  /* ============ FOOTER ============ */
  footer {
    padding: 32px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.sticky-cta::before {
  content: '✆ ';
  font-size: 12px;
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

  .contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--divider-dark);
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }

  .contact-btn:hover { border-color: var(--accent); color: var(--accent); }

  .contact-btn svg { width: 18px; height: 18px; stroke-width: 1.5; flex-shrink: 0; }


  /* ============ CASE LOGOS ============ */
  .case-logo {
    display: block;
    max-width: 140px;
    height: auto;
    margin-bottom: 18px;
  }
  .case-logo-sm {
    display: block;
    max-width: 110px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
  }
  .niche-logo { max-height: 40px; max-width: 90%; object-fit: contain; display: block; }
  .niche-logo-invert { filter: brightness(0) invert(1); }
  .niche-logo-boxed { background: rgba(255,255,255,0.92); border-radius: 4px; padding: 4px 8px; }
  .niche-logo-dark { background: rgba(20,20,20,0.85); border-radius: 4px; padding: 4px 8px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--mute-on-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--text-light); }

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-sub {
  font-size: 13px;
  color: var(--mute-on-dark);
  margin-bottom: 24px;
  line-height: 1.5;
}