/* ═══════════════════════════════════════════════════════════
   РЕГУЛЯР — главный стилевой файл
   Структура:
     1. Reset & Base
     2. Header
     3. Hero
     4. Mirror
     5. Service
     6. Why
     7. Portfolio
     8. Team
     9. Capture Form
    10. Footer
    11. Scroll Animations
    12. Responsive (media queries)
═══════════════════════════════════════════════════════════ */


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

    html { min-width: 1440px; overflow-x: hidden; scroll-behavior: smooth; }

    body {
      background-color: #f0efed;
      font-family: 'IBM Plex Mono', monospace;
      padding: 112px 40px 20px;
      max-width: 1440px;
      margin: 0 auto;
    }

    /* ─── DOT CANVAS ─── */
    #dot-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 0;
      pointer-events: none;
    }

    /* everything sits above canvas */
    header { z-index: 1000; }
    section, footer { position: relative; z-index: 1; }

    /* ─── HEADER ─── */
    header {
      background: rgba(255, 255, 255, 0.72);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 8px;
      padding: 0 32px;
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: calc(100% - 80px);
      max-width: 1360px;
      z-index: 1000;
    }

    .logo {
      font-family: 'Pixelify Sans', sans-serif;
      font-weight: 700;
      font-size: 35.7px;
      color: #1a1a1a;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
    }
    .logo-dot { color: #FF5825; }

    nav {
      display: flex;
      align-items: center;
      gap: 72px;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 40px;
      list-style: none;
    }
    .nav-links a {
      font-family: 'IBM Plex Mono', monospace;
      font-weight: 400;
      font-size: 14px;
      color: #1a1a1a;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .nav-links a:hover { opacity: 0.5; }

    .nav-icons {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .icon-square {
      width: 18px;
      height: 18px;
      background: #1a1a1a;
      display: block;
      cursor: pointer;
      flex-shrink: 0;
      transition: opacity 0.2s;
    }
    .icon-square:hover { opacity: 0.5; }

    .nav-icon-link {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: opacity 0.2s;
      text-decoration: none;
    }
    .nav-icon-link:hover { opacity: 0.5; }
    .nav-icon-img {
      width: 18px;
      height: 18px;
      display: block;
      fill: #1a1a1a;
    }

    /* ─── HERO ─── */
    .hero {
      display: flex;
      align-items: flex-start;
      margin-top: 64px;
    }

    .hero-left {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding-left: 32px;
      padding-top: 40px;
      height: 600px;
      padding-bottom: 73px;
    }

    .hero-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 48px;
      font-weight: 400;
      line-height: 1.15;
      color: #1a1a1a;
      margin-bottom: 32px;
    }
    .hero-title .orange { color: #FF5825; }
    .orange { color: #FF5825; }

    .hero-btn {
      display: inline-block;
      background: #FF5825;
      color: #ffffff;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      padding: 14px 28px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      width: fit-content;
      margin-bottom: 48px;
      transition: opacity 0.2s;
    }
    .hero-btn:hover { opacity: 0.85; }

    .hero-clients-text {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 18px;
      color: #1a1a1a;
      line-height: 1.5;
      margin-bottom: 24px;
    }

    .hero-logos {
      display: flex;
      gap: 4px;
      align-items: center;
      margin-top: auto;
    }
    .logo-placeholder {
      height: 48px;
      width: auto;
      background: none;
      border: none;
      object-fit: contain;
      padding: 6px 10px;
      border-radius: 6px;
      transition: background 0.2s;
    }
    .logo-placeholder:hover {
      background: #ffffff;
    }

    /* ─── RIGHT BLOCK ─── */
    .hero-right {
      width: 560px;
      flex-shrink: 0;
      height: 600px;
      position: relative;
    }

    .stats {
      position: absolute;
      top: 0;
      right: 0;
      display: flex;
      gap: 12px;
      z-index: 2;
    }

    .stat-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 20px 28px;
      min-width: 150px;
    }

    .stat-number {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 52px;
      font-weight: 700;
      color: #1a1a1a;
      line-height: 1;
      margin-bottom: 8px;
    }
    .stat-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      color: #1a1a1a;
      line-height: 1.4;
    }

    .video-wrapper {
      position: absolute;
      top: 26px;
      right: 0;
      width: 509px;
      height: 525px;
      background: #c4c4c4;
      border-radius: 16px;
      z-index: 1;
      overflow: visible;
    }

    .hero-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      border-radius: 16px;
      overflow: hidden;
    }

    .tags-area {
      position: absolute;
      bottom: 24px;
      left: -33px;
      right: 20px;
    }

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

    .tag {
      background: #ffffff;
      border-radius: 100px;
      padding: 9px 20px;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      font-weight: 400;
      color: #1a1a1a;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    a.tag:hover {
      background: #FF5825;
      color: #ffffff;
    }

    .cases-link {
      position: absolute;
      top: 567px;
      left: 51px;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      color: #FF5825;
      text-decoration: none;
    }
    .cases-link:hover { opacity: 0.7; }

    /* ═══ MIRROR ═══ */
    .mirror {
      margin-top: 120px; /* overridden inside .white-section */
      padding-bottom: 80px;
    }

    .mirror-heading {
      text-align: center;
      margin-bottom: 40px;
      max-width: 1100px;
      margin-left: auto;
      margin-right: auto;
    }

    .mirror-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 28px;
      font-weight: 400;
      line-height: 1.45;
      color: #1a1a1a;
    }
    .mirror-title--bold {
      font-weight: 700;
    }

    .mirror-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .mirror-card {
      background: #F5F5F5;
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 580px;
    }

    .mirror-card-icon {
      padding: 80px 28px 0;
      display: flex;
      justify-content: center;
    }

    .mirror-card-icon-img {
      width: 50%;
      height: auto;
      display: block;
    }

    .mirror-card-body {
      padding: 80px 28px 36px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .mirror-card-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 28px;
      font-weight: 400;
      line-height: 1.2;
      color: #373A36;
    }

    .mirror-card-text {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.55;
      color: #373A36;
    }

    .mirror-card-text .orange {
      color: #FF5825;
    }

    @media (max-width: 1280px) {
      .mirror-title { font-size: 24px; }
      .mirror-card-title { font-size: 24px; }
    }
    @media (max-width: 1024px) {
      .mirror-title { font-size: 22px; }
      .mirror-cards { gap: 12px; }
      .mirror-card-title { font-size: 22px; }
      .mirror-card-body { padding: 20px 20px 28px; }
    }
    @media (max-width: 768px) {
      .mirror-cards { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
      .mirror-title { font-size: 20px; }
    }
    @media (max-width: 480px) {
      .mirror { margin-top: 48px; }
      .mirror-title { font-size: 18px; }
      .mirror-card-title { font-size: 20px; }
      .mirror-card-text { font-size: 15px; }
      .mirror-heading { margin-bottom: 24px; }
      .mirror-card { min-height: unset; }
    }

    /* ═══ SERVICE ═══ */
    .service {
      margin-top: 80px;
      background: #e8e7e5;
      border-radius: 16px;
      padding: 40px 40px 48px;
    }

    .service-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
    }

    .service-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 28px;
      font-weight: 400;
      color: #1a1a1a;
    }

    .service-btn {
      background: #FF5825;
      color: #ffffff;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      padding: 14px 28px;
      border-radius: 6px;
      text-decoration: none;
      white-space: nowrap;
      transition: opacity 0.2s;
    }
    .service-btn:hover { opacity: 0.85; }

    .service-row {
      display: grid;
      gap: 12px;
    }
    .service-row-1 {
      grid-template-columns: repeat(4, 1fr);
      margin-bottom: 12px;
    }
    .service-row-2 {
      grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
      border-radius: 12px;
      padding: 28px 24px 32px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      min-height: 280px;
    }
    .service-card--white { background: #ffffff; }
    .service-card--dark  { background: #737373; }
    .service-card--gray  { background: #d9d9d9; }

    .service-card-top {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .service-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #FF5825;
      color: #ffffff;
      font-family: Helvetica, Arial, sans-serif;
      font-size: 13px;
      font-weight: 400;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .service-card-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 24px;
      font-weight: 400;
      line-height: 1.2;
      color: #1a1a1a;
    }
    .service-card--dark .service-card-title { color: #ffffff; }

    .service-card-text {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.6;
      color: #1a1a1a;
      flex: 1;
    }
    .service-card--dark .service-card-text { color: #ffffff; }

    .service-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      color: #FF5825;
      text-decoration: none;
      margin-top: auto;
    }
    .service-card--dark .service-link { color: #ffffff; }
    .service-link:hover { opacity: 0.7; }

    @media (max-width: 1280px) {
      .service-card-title { font-size: 20px; }
      .service-card { min-height: 260px; padding: 24px 20px 28px; }
    }
    @media (max-width: 1024px) {
      .service-row-1 { grid-template-columns: repeat(2, 1fr); }
      .service-row-2 { grid-template-columns: repeat(2, 1fr); }
      .service { padding: 32px 28px 40px; }
    }
    @media (max-width: 768px) {
      .service-row-1, .service-row-2 { grid-template-columns: 1fr; }
      .service { padding: 24px 20px 32px; margin-top: 48px; }
    }
    @media (max-width: 480px) {
      .service-title { font-size: 22px; }
      .service-header { flex-direction: column; align-items: flex-start; gap: 16px; }
      .service-card-title { font-size: 18px; }
      .service-card { min-height: unset; }
    }

    /* ═══ WHY ═══ */
    .why {
      margin-top: 80px;
      padding-bottom: 80px;
    }

    .why-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 40px;
      margin-bottom: 48px;
      padding: 0 32px;
    }

    .why-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 28px;
      font-weight: 400;
      color: #1a1a1a;
      flex-shrink: 0;
    }

    .why-subtitle {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.5;
      color: #1a1a1a;
      max-width: 600px;
    }

    .why-timeline {
      position: relative;
      margin-bottom: 16px;
    }

    .why-steps {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
    }

    .why-step {
      background: #E7E7E7;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      min-height: 320px;
      position: relative;
      overflow: hidden;
    }

    .why-step-top {
      padding: 24px 20px 48px;
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .why-num {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 80px;
      font-weight: 400;
      line-height: 1;
      color: #1a1a1a;
    }

    .why-step-name {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 24px;
      font-weight: 300;
      color: #1a1a1a;
      line-height: 1.2;
    }

    .why-step-bottom {
      padding: 48px 20px 24px;
      flex: 1;
    }

    .why-step-text {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 14px;
      font-weight: 300;
      line-height: 1.6;
      color: #1a1a1a;
    }

    .why-timeline-line {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      z-index: 2;
      pointer-events: none;
    }

    .why-timeline-track {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
      position: relative;
    }

    .why-timeline-track::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 2px;
      background: #FF5825;
      transform: translateY(-50%);
    }

    .why-dot {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 20px;
      position: relative;
      z-index: 3;
    }

    .why-dot::after {
      content: '';
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #FF5825;
      display: block;
    }

    .why-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      position: relative;
    }

    .why-cards-image {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 280px;
      object-fit: contain;
      object-position: center bottom;
      pointer-events: none;
    }

    .why-card {
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 480px;
      background-size: cover;
      background-position: center;
    }

    .why-card:nth-child(1) {
      background-image: url('../images/icons/Group 466.svg');
    }
    .why-card:nth-child(2) {
      background-image: url('../images/icons/Group 465.svg');
    }
    .why-card:nth-child(3) {
      background-image: url('../images/icons/Group 464.svg');
    }

    .why-card-content {
      padding: 32px 28px 24px;
      display: flex;
      flex-direction: column;
      gap: 20px;
      flex: 1;
    }

    .why-card-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 36px;
      font-weight: 400;
      line-height: 1.15;
      color: #ffffff;
    }

    .why-card-text {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.6;
      color: #ffffff;
    }

    .why-card-img {
      width: 100%;
      height: 220px;
      background: transparent;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      flex-shrink: 0;
    }

    /* ═══ КАРТИНКИ «КАК УСТРОЕНА РАБОТА» ══════════════════════════════════════
       Рекомендуемый размер: 600×220px, JPG или PNG
       Путь указывается относительно папки css/ (то есть ../images/...)
       Чтобы добавить картинку — замените путь в background-image:
       ════════════════════════════════════════════════════════════════════════ */

    /* Карточка 1 «Прозрачные процессы» — 600×220px */
    .why-card:nth-child(1) .why-card-img { background-image: url('../images/why-1.jpg'); }

    /* Карточка 2 «ИИ в производстве» — 600×220px */
    .why-card:nth-child(2) .why-card-img { background-image: url('../images/why-2.jpg'); }

    /* Карточка 3 «Платите за опыт» — 600×220px */
    .why-card:nth-child(3) .why-card-img { background-image: url('../images/why-3.jpg'); }

    @media (max-width: 1280px) {
      .why-num { font-size: 64px; }
      .why-step-name { font-size: 20px; }
      .why-card-title { font-size: 30px; }
    }
    @media (max-width: 1024px) {
      .why-steps { grid-template-columns: repeat(3, 1fr); }
      .why-step:nth-child(4),
      .why-step:nth-child(5) { display: none; }
      .why-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
      .why-header { flex-direction: column; gap: 16px; }
      .why-cards-image { display: none; }
      .why-card:nth-child(1),
      .why-card:nth-child(3) {
        background-image: url('../images/icons/Group 465.svg');
      }
    }
    @media (max-width: 768px) {
      .why-steps { grid-template-columns: repeat(2, 1fr); }
      .why-step:nth-child(5) { display: none; }
      .why-num { font-size: 52px; }
      .why-timeline-line { display: none; }
      .why-header { padding: 0 0; }
    }
    @media (max-width: 480px) {
      .why { margin-top: 48px; }
      .why-steps { grid-template-columns: 1fr; }
      .why-title { font-size: 22px; }
      .why-subtitle { font-size: 16px; }
      .why-card-title { font-size: 26px; }
      .why-header { padding: 0; }
    }

    /* ─── HAMBURGER ─── */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 32px;
      height: 32px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      flex-shrink: 0;
    }
    .hamburger span {
      display: block;
      width: 100%;
      height: 2px;
      background: #1a1a1a;
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s;
      transform-origin: center;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      background: #ffffff;
      border-radius: 8px;
      padding: 24px 20px;
      z-index: 100;
      flex-direction: column;
      gap: 0;
    }
    .mobile-menu.open { display: flex; }

    .mobile-menu a {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 18px;
      font-weight: 400;
      color: #1a1a1a;
      text-decoration: none;
      padding: 14px 0;
      border-bottom: 1px solid #f0efed;
      transition: opacity 0.2s;
    }
    .mobile-menu a:last-child { border-bottom: none; }
    .mobile-menu a:hover { opacity: 0.5; }

    .mobile-menu .mobile-icons {
      display: flex;
      gap: 20px;
      padding-top: 20px;
    }

    @media (max-width: 1280px) {
      html { min-width: unset; }
      body { padding: 112px 32px 20px; }
      .hero { margin-top: 52px; }
      .hero-left { padding-left: 28px; padding-top: 32px; padding-bottom: 60px; height: 490px; }
      .hero-title { font-size: 40px; }
      .hero-btn { margin-bottom: 36px; }
      .hero-clients-text { font-size: 16px; margin-bottom: 20px; }
      .logo-placeholder { height: 40px; }
      .hero-right { width: 460px; height: 490px; }
      .video-wrapper { width: 415px; height: 430px; top: 24px; }
      .cases-link { top: 466px; left: 45px; }
      .stat-number { font-size: 44px; }
    }

    @media (max-width: 1024px) {
      body { padding: 108px 24px 20px; }
      .hero { margin-top: 40px; }
      .hero-left { padding-left: 24px; padding-top: 24px; padding-bottom: 0; height: auto; }
      .hero-title { font-size: 36px; margin-bottom: 24px; }
      .hero-btn { margin-bottom: 28px; }
      .hero-clients-text { font-size: 15px; margin-bottom: 16px; }
      .logo-placeholder { height: 36px; }
      .hero-logos { margin-top: 0; }
      .hero-right { width: 400px; height: 440px; }
      .video-wrapper { width: 360px; height: 385px; top: 22px; }
      .cases-link { top: 419px; left: 40px; }
      .stat-number { font-size: 38px; }
      .stat-card { padding: 16px 20px; min-width: 128px; }
    }

    @media (max-width: 768px) {
      body { padding: 100px 20px 20px; }
      header { padding: 0 20px; height: 60px; top: 16px; width: calc(100% - 40px); }
      .logo { font-size: 26px; }
      nav { gap: 32px; }
      .nav-links { gap: 24px; }
      .hero { flex-direction: column; gap: 40px; margin-top: 32px; }
      .hero-left { padding-left: 0; padding-top: 0; padding-bottom: 0; height: auto; }
      .hero-title { font-size: 34px; }
      .hero-logos { margin-top: 24px; }
      .logo-placeholder { height: 34px; }
      .hero-right { width: 100%; height: 440px; }
      .video-wrapper { width: calc(100% - 40px); height: 380px; top: 20px; right: 0; }
      .tags-area { left: -20px; }
      .cases-link { top: 412px; left: calc(40px); }
      .stat-number { font-size: 36px; }
      .stat-card { padding: 14px 18px; min-width: 120px; }
    }

    @media (max-width: 480px) {
      body { padding: 90px 16px 20px; }
      header { padding: 0 16px; height: 56px; top: 12px; width: calc(100% - 32px); }
      .logo { font-size: 22px; }
      .nav-links { display: none; }
      .nav-icons { display: none; }
      nav { gap: 0; }
      .hamburger { display: flex; }
      .hero { margin-top: 24px; gap: 32px; }
      .hero-title { font-size: 28px; line-height: 1.2; }
      .hero-clients-text { font-size: 13px; }
      .logo-placeholder { height: 28px; }
      .hero-logos { gap: 4px; flex-wrap: wrap; }
      .hero-right { width: 100%; height: 380px; }
      .video-wrapper { width: 100%; height: 330px; top: 18px; right: 0; }
      .tags-area { left: -16px; right: 12px; }
      .tag { font-size: 11px; padding: 7px 14px; }
      .cases-link { top: 360px; left: 0; font-size: 13px; }
      .stat-number { font-size: 32px; }
      .stat-card { padding: 12px 16px; min-width: 100px; }
      .stat-label { font-size: 12px; }
    }


    /* ═══ WHITE SECTION WRAPPER ═══ */
    .white-section {
      background: #ffffff;
      margin-top: 120px;
      /* full-bleed: break out of body max-width and padding */
      width: 100vw;
      margin-left: calc(50% - 50vw);
      /* inner padding: on screens wider than 1440px, compensate for body centering */
      padding: 0 max(40px, calc(50vw - 680px)) 80px;
      position: relative;
      z-index: 1;
    }

    /* reset margins of child sections inside wrapper */
    .white-section .mirror {
      margin-top: 0;
      padding-top: 80px;
      padding-bottom: 80px;
    }
    .white-section .service {
      margin-top: 0;
      border-radius: 12px;
    }
    .white-section .why {
      margin-top: 80px;
      padding-bottom: 0;
    }

    @media (max-width: 1280px) {
      .white-section { margin-top: 100px; padding-left: 32px; padding-right: 32px; }
    }
    @media (max-width: 1024px) {
      .white-section { margin-top: 80px; padding-left: 24px; padding-right: 24px; padding-bottom: 60px; }
      .white-section .mirror { padding-top: 60px; padding-bottom: 60px; }
      .white-section .why { margin-top: 60px; }
    }
    @media (max-width: 768px) {
      .white-section { margin-top: 64px; padding-left: 20px; padding-right: 20px; padding-bottom: 48px; }
      .white-section .mirror { padding-top: 48px; padding-bottom: 48px; }
      .white-section .why { margin-top: 48px; }
    }
    @media (max-width: 480px) {
      .white-section { margin-top: 48px; padding-left: 16px; padding-right: 16px; padding-bottom: 36px; }
      .white-section .mirror { padding-top: 36px; padding-bottom: 36px; }
      .white-section .why { margin-top: 36px; }
    }

    /* ═══ PORTFOLIO ═══ */
    .portfolio {
      margin-top: 80px;
      padding-bottom: 80px;
    }

    .portfolio-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
      padding: 0 4px;
    }

    .portfolio-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 28px;
      font-weight: 400;
      color: #1a1a1a;
    }

    .portfolio-all-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      color: #FF5825;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .portfolio-all-link:hover { opacity: 0.7; }

    /* Filter tabs */
    .portfolio-filters {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .portfolio-filter {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      font-weight: 400;
      color: #1a1a1a;
      background: #ffffff;
      border: none;
      border-radius: 100px;
      padding: 9px 20px;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      white-space: nowrap;
    }
    .portfolio-filter:hover {
      background: #050505;
      color: #ffffff;
    }
    .portfolio-filter.active {
      background: #050505;
      color: #ffffff;
    }

    /* Grid: row 1 — featured (2fr) + tall (1fr); row 2 — three equal */
    .portfolio-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      grid-template-rows: auto auto;
      gap: 12px;
    }

    .portfolio-row-2 {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap: 12px;
    }

    /* Base card */
    .portfolio-card--hidden { display: none !important; }

    .portfolio-card {
      background: #ffffff;
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      text-decoration: none;
    }
    .portfolio-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    }
    .portfolio-card--dark {
      background: #737373;
    }
    .portfolio-card--accent {
      background: #FF5825;
    }

    /* Image placeholder */
    .portfolio-card-img {
      width: 100%;
      background: #d9d9d9;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      flex-shrink: 0;
    }

    /* ─── Картинки карточек портфолио ──────────────────────────────────────
       Положи файл в images/portfolio/ с именем как у кейса (без «case-» и «.html»)
       Пример: images/portfolio/vdnh.jpg  →  появится сама
    ──────────────────────────────────────────────────────────────────────── */
    a[href="case-vdnh.html"]            .portfolio-card-img { background-image: url('../images/portfolio/vdnh.jpg'); }
    a[href="case-alkhorayef.html"]      .portfolio-card-img { background-image: url('../images/portfolio/alkhorayef.jpg'); }
    a[href="case-smooth.html"]          .portfolio-card-img { background-image: url('../images/portfolio/smooth.jpg'); }
    a[href="case-rrent.html"]           .portfolio-card-img { background-image: url('../images/portfolio/rrent.jpg'); }
    a[href="case-noch-zavodov.html"]    .portfolio-card-img { background-image: url('../images/portfolio/noch-zavodov.jpg'); }
    a[href="case-samara-heritage.html"] .portfolio-card-img { background-image: url('../images/portfolio/samara-heritage.jpg'); }
    a[href="case-eaton.html"]           .portfolio-card-img { background-image: url('../images/portfolio/eaton.jpg'); }
    a[href="case-skolkovo.html"]        .portfolio-card-img { background-image: url('../images/portfolio/skolkovo.jpg'); }
    a[href="case-becar.html"]           .portfolio-card-img { background-image: url('../images/portfolio/becar.jpg'); }
    a[href="case-salesdep.html"]        .portfolio-card-img { background-image: url('../images/portfolio/salesdep.jpg'); }
    a[href="case-paveleckaya.html"]     .portfolio-card-img { background-image: url('../images/portfolio/paveleckaya.jpg'); }
    a[href="case-slb.html"]             .portfolio-card-img { background-image: url('../images/portfolio/slb.jpg'); }
    a[href="case-piloty.html"]          .portfolio-card-img { background-image: url('../images/portfolio/future_pilots.png'); }
    a[href="case-kraken.html"]          .portfolio-card-img { background-image: url('../images/portfolio/kraken.jpg'); }
    a[href="case-koinsite.html"]        .portfolio-card-img { background-image: url('../images/portfolio/koinsite.jpg'); }
    a[href="case-rental-club.html"]    .portfolio-card-img { background-image: url('../images/portfolio/rental_club.png'); }

    /* Featured card — taller image */
    .portfolio-card--featured .portfolio-card-img {
      height: 340px;
    }
    /* Tall side card */
    .portfolio-card--tall .portfolio-card-img {
      flex: 1;
      min-height: 260px;
    }
    /* Regular small cards */
    .portfolio-card--sm .portfolio-card-img {
      height: 200px;
    }

    .portfolio-card--dark .portfolio-card-img {
      background-color: #d9d9d9;
    }
    .portfolio-card--accent .portfolio-card-img {
      background-color: #d9d9d9;
    }

    /* Card body */
    .portfolio-card-body {
      padding: 24px 28px 28px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .portfolio-card--tall .portfolio-card-body {
      padding-bottom: 24px;
    }

    /* Category tags inside cards */
    .portfolio-card-tags {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .portfolio-card-tag {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 11px;
      font-weight: 400;
      color: #1a1a1a;
      background: #f0efed;
      border-radius: 100px;
      padding: 5px 12px;
      white-space: nowrap;
    }
    .portfolio-card-tag[data-filter] {
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }
    .portfolio-card-tag[data-filter]:hover {
      background: #FF5825;
      color: #ffffff;
    }
    .portfolio-card--dark .portfolio-card-tag {
      background: #5a5a5a;
      color: #ffffff;
    }
    .portfolio-card--dark .portfolio-card-tag[data-filter]:hover {
      background: #FF5825;
    }
    .portfolio-card--accent .portfolio-card-tag {
      background: rgba(255,255,255,0.25);
      color: #ffffff;
    }
    .portfolio-card--accent .portfolio-card-tag[data-filter]:hover {
      background: #FF5825;
    }

    .portfolio-card-name {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 22px;
      font-weight: 400;
      line-height: 1.2;
      color: #050505;
    }
    .portfolio-card--featured .portfolio-card-name {
      font-size: 28px;
    }
    .portfolio-card--dark .portfolio-card-name,
    .portfolio-card--accent .portfolio-card-name {
      color: #ffffff;
    }

    .portfolio-card-desc {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.6;
      color: #737373;
    }
    .portfolio-card--dark .portfolio-card-desc {
      color: rgba(255,255,255,0.7);
    }
    .portfolio-card--accent .portfolio-card-desc {
      color: rgba(255,255,255,0.85);
    }

    .portfolio-card-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      font-weight: 400;
      color: #FF5825;
      text-decoration: none;
      margin-top: 4px;
      display: inline-block;
    }
    .portfolio-card--dark .portfolio-card-link,
    .portfolio-card--accent .portfolio-card-link {
      color: #ffffff;
    }

    /* Tall card: image fills remaining space, body at bottom */
    .portfolio-card--tall {
      min-height: 480px;
    }

    /* Portfolio responsive */
    @media (max-width: 1280px) {
      .portfolio-card--featured .portfolio-card-img { height: 280px; }
      .portfolio-card--sm .portfolio-card-img { height: 170px; }
      .portfolio-card-name { font-size: 20px; }
      .portfolio-card--featured .portfolio-card-name { font-size: 24px; }
    }
    @media (max-width: 1024px) {
      .portfolio-grid { grid-template-columns: 1fr 1fr; }
      .portfolio-card--featured .portfolio-card-img { height: 240px; }
      .portfolio-row-2 .portfolio-card--sm .portfolio-card-img { height: 180px; }
    }
    @media (max-width: 768px) {
      .portfolio { margin-top: 48px; }
      .portfolio-grid { grid-template-columns: 1fr; }
      .portfolio-card--tall { min-height: unset; }
      .portfolio-card--tall .portfolio-card-img { min-height: 200px; height: 200px; flex: unset; }
      .portfolio-row-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    }
    @media (max-width: 480px) {
      .portfolio-title { font-size: 22px; }
      .portfolio-card--featured .portfolio-card-img { height: 200px; }
      .portfolio-card-body { padding: 18px 20px 22px; }
      .portfolio-card-name { font-size: 18px; }
      .portfolio-card--featured .portfolio-card-name { font-size: 20px; }
    }


    /* ═══ TEAM ═══ */
    .team {
      margin-top: 80px;
      padding-bottom: 80px;
    }

    .team-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 40px;
      margin-bottom: 64px;
    }

    .team-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 28px;
      font-weight: 400;
      color: #1a1a1a;
      flex-shrink: 0;
    }

    .team-stat {
      display: flex;
      align-items: flex-end;
      gap: 16px;
    }

    .team-stat-num {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 52px;
      font-weight: 700;
      color: #FF5825;
      line-height: 1;
    }

    .team-stat-label {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 15px;
      font-weight: 400;
      color: #737373;
      line-height: 1.4;
      padding-bottom: 6px;
    }

    /* ── Row layout: 5 per row ── */
    .team-row {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 0 24px;
    }

    .team-row + .team-row {
      margin-top: 48px;
    }

    /* ── Member item: no background, just photo + text ── */
    .team-member {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    /* circular photo */
    .team-photo {
      width: 100%;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      background: #E0DFdd;
      background-size: cover;
      background-position: center top;
      background-repeat: no-repeat;
      margin-bottom: 24px;
      overflow: hidden;
      flex-shrink: 0;
    }

    /* если используется <img class="team-photo"> */
    img.team-photo {
      object-fit: cover;
      object-position: center top;
    }

    /* ═══ ФОТО КОМАНДЫ ══════════════════════════════════════════════════════════
       Рекомендуемый размер: 400×400px (квадрат), JPG или PNG
       Путь указывается относительно папки css/ (то есть ../images/team/...)
       Чтобы добавить фото — замените путь в background-image:
       ════════════════════════════════════════════════════════════════════════ */

    /* Дементьев Святослав — 400×400px */
    .team-member:nth-child(1) .team-photo { background-image: url('../images/team/dementyev.jpg'); }

    /* Громов Николай — 400×400px */
    .team-member:nth-child(2) .team-photo { background-image: url('../images/team/gromov.jpg'); }

    /* Круцких Никита — 400×400px */
    .team-member:nth-child(3) .team-photo { background-image: url('../images/team/kutskikh.jpg'); }

    /* Мамочкин Станислав — 400×400px */
    .team-member:nth-child(4) .team-photo { background-image: url('../images/team/mamochkin.jpg'); }

    /* Прилип Артем — 400×400px */
    .team-member:nth-child(5) .team-photo { background-image: url('../images/team/prilip.jpg'); }

    .team-member-name {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 13px;
      font-weight: 700;
      color: #050505;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      line-height: 1.3;
      margin-bottom: 12px;
    }

    .team-member-role {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 11px;
      font-weight: 400;
      color: #FF5825;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      line-height: 1.4;
      margin-bottom: 14px;
    }

    .team-member-bio {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 12px;
      font-weight: 400;
      color: #737373;
      line-height: 1.7;
    }

    /* Team responsive */
    @media (max-width: 1280px) {
      .team-row { grid-template-columns: repeat(4, 1fr); }
      /* show only 4 per row — last item in row 1 wraps */
    }
    @media (max-width: 1024px) {
      .team-row { grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
      .team-row + .team-row { margin-top: 40px; }
      .team-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    }
    @media (max-width: 768px) {
      .team { margin-top: 48px; }
      .team-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
      .team-row + .team-row { margin-top: 32px; }
    }
    @media (max-width: 480px) {
      .team-title { font-size: 22px; }
      .team-stat-num { font-size: 40px; }
      .team-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    }

    /* ═══ CAPTURE FORM ═══ */
    .capture {
      margin-top: 80px;
      background: #1a1a1a;
      border-radius: 16px;
      padding: 72px 80px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 60px;
    }

    .capture-left {
      flex: 1;
      max-width: 560px;
    }

    .capture-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      font-weight: 400;
      color: #FF5825;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 20px;
    }

    .capture-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 40px;
      font-weight: 400;
      line-height: 1.15;
      color: #ffffff;
      margin-bottom: 20px;
    }

    .capture-title .orange { color: #FF5825; }

    .capture-sub {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 16px;
      font-weight: 400;
      line-height: 1.6;
      color: rgba(255,255,255,0.55);
    }

    .capture-right {
      flex-shrink: 0;
      width: 460px;
    }

    .capture-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .capture-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .capture-input {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 8px;
      padding: 16px 20px;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
      width: 100%;
    }
    .capture-input::placeholder { color: rgba(255,255,255,0.35); }
    .capture-input:focus {
      border-color: #FF5825;
      background: rgba(255,88,37,0.06);
    }

    .capture-textarea {
      resize: none;
      height: 120px;
    }

    .capture-submit {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      font-weight: 400;
      color: #ffffff;
      background: #FF5825;
      border: none;
      border-radius: 8px;
      padding: 18px 28px;
      cursor: pointer;
      transition: opacity 0.2s;
      width: 100%;
    }
    .capture-submit:hover { opacity: 0.85; }

    .capture-agree {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 1.5;
      color: rgba(255,255,255,0.3);
      text-align: center;
    }
    .capture-agree a {
      color: rgba(255,255,255,0.45);
      text-decoration: underline;
    }

    .capture-success {
      display: none;
      margin-top: 16px;
      padding: 14px 18px;
      background: rgba(255,255,255,0.08);
      border-radius: 10px;
      font-family: Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: rgba(255,255,255,0.85);
      line-height: 1.5;
    }

    @media (max-width: 1280px) {
      .capture { padding: 56px 56px; gap: 48px; }
      .capture-title { font-size: 34px; }
      .capture-right { width: 400px; }
    }
    @media (max-width: 1024px) {
      .capture {
        flex-direction: column;
        padding: 48px 48px;
        gap: 40px;
        align-items: stretch;
      }
      .capture-left { max-width: 100%; }
      .capture-right { width: 100%; }
      .capture-title { font-size: 32px; }
    }
    @media (max-width: 768px) {
      .capture { padding: 40px 36px; margin-top: 48px; }
      .capture-title { font-size: 28px; }
      .capture-row { grid-template-columns: 1fr; }
    }
    @media (max-width: 480px) {
      .capture { padding: 32px 24px; border-radius: 12px; }
      .capture-title { font-size: 24px; }
      .capture-label { font-size: 11px; }
      .capture-sub { font-size: 14px; }
    }

    /* ═══ FOOTER ═══ */
    .footer {
      margin-top: 12px;
      background: #1a1a1a;
      border-radius: 16px;
      padding: 48px 56px 36px;
      margin-bottom: 20px;
    }

    .footer-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 40px;
      padding-bottom: 40px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      margin-bottom: 32px;
    }

    .footer-logo {
      font-family: 'Pixelify Sans', sans-serif;
      font-weight: 700;
      font-size: 32px;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      flex-shrink: 0;
    }
    .footer-logo .logo-dot { color: #FF5825; }

    .footer-nav {
      display: flex;
      gap: 60px;
    }

    .footer-nav-col {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .footer-nav-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 11px;
      font-weight: 400;
      color: rgba(255,255,255,0.35);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .footer-nav-link {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 15px;
      font-weight: 400;
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      transition: color 0.2s;
      line-height: 1;
    }
    .footer-nav-link:hover { color: #ffffff; }

    .footer-contacts {
      display: flex;
      flex-direction: column;
      gap: 14px;
      align-items: flex-end;
    }

    .footer-contact-item {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .footer-contact-item:hover { opacity: 0.7; }

    .footer-contact-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      opacity: 0.7;
      fill: #ffffff;
    }
    .footer-contact-icon path { fill: #ffffff; }

    .footer-contact-text {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      font-weight: 400;
      color: rgba(255,255,255,0.7);
    }

    .footer-requisites {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 12px;
      color: rgba(255,255,255,0.4);
      letter-spacing: 0.02em;
      padding: 24px 0;
      margin-bottom: 0;
      border-top: 1px solid rgba(255,255,255,0.08);
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .footer-copy {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 13px;
      font-weight: 400;
      color: rgba(255,255,255,0.3);
    }

    .footer-social {
      display: flex;
      gap: 16px;
      align-items: center;
    }

    .footer-social-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(255,255,255,0.07);
      transition: background 0.2s;
      text-decoration: none;
    }
    .footer-social-link:hover { background: rgba(255,255,255,0.14); }

    .footer-social-icon {
      width: 16px;
      height: 16px;
      fill: #ffffff;
      opacity: 0.7;
    }
    .footer-social-icon path { fill: #ffffff; }

    .footer-policy {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 13px;
      font-weight: 400;
      color: rgba(255,255,255,0.3);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-policy:hover { color: rgba(255,255,255,0.6); }

    @media (max-width: 1280px) {
      .footer { padding: 44px 48px 32px; }
      .footer-nav { gap: 40px; }
    }
    @media (max-width: 1024px) {
      .footer-top { flex-wrap: wrap; gap: 32px; }
      .footer-contacts { align-items: flex-start; }
    }
    @media (max-width: 768px) {
      .footer { padding: 36px 32px 28px; }
      .footer-top { flex-direction: column; gap: 32px; }
      .footer-nav { flex-wrap: wrap; gap: 28px 40px; }
      .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
    }
    @media (max-width: 480px) {
      .footer { padding: 28px 20px 24px; border-radius: 12px; }
      .footer-logo { font-size: 26px; }
      .footer-nav { gap: 24px 32px; }
      .footer-nav-link { font-size: 14px; }
      .footer-contact-text { font-size: 12px; }
    }

    /* ═══ SCROLL ANIMATIONS ═══ */

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

    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    /* Initial hidden state — set via JS so no-JS users see content */
    .anim-ready {
      opacity: 0;
      transform: translateY(40px);
    }

    /* Triggered by IntersectionObserver */
    .anim-ready.anim-visible {
      animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Mirror heading fades in without vertical movement */
    .anim-ready.anim-fadein.anim-visible {
      animation: fadeIn 0.6s ease forwards;
      transform: none;
    }

    /* Stagger delays via data-delay attribute → set inline by JS */

    /* ═══ HERO ON-LOAD ANIMATIONS ═══ */
    .hero-title {
      animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
    }
    .hero-btn {
      animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
    }
    .hero-clients-text {
      animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
    }
    .hero-logos {
      animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
    }
    .stats .stat-card:nth-child(1) {
      animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
    }
    .stats .stat-card:nth-child(2) {
      animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
    }
    .video-wrapper {
      animation: fadeIn 0.9s ease 0.15s both;
    }

    /* ═══════════════════════════════════════════════════════════
       CASE STUDY PAGE
    ═══════════════════════════════════════════════════════════ */

    .case-page {
      max-width: 1440px;
      margin: 0 auto;
    }

    /* Back link */
    .case-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      color: #737373;
      text-decoration: none;
      padding: 60px 80px 0;
      transition: color 0.2s;
    }
    .case-back:hover { color: #FF5825; }

    /* Hero */
    .case-hero {
      padding: 40px 80px 0;
    }
    .case-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }
    .case-meta-tag {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 13px;
      color: #737373;
    }
    .case-meta-dot {
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: #c0bfbd;
    }
    .case-hero-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 64px;
      font-weight: 400;
      line-height: 1.05;
      color: #1a1a1a;
      margin-bottom: 28px;
      max-width: 900px;
    }
    .case-hero-title .orange { color: #FF5825; }
    .case-hero-intro {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 20px;
      font-weight: 400;
      line-height: 1.6;
      color: #3a3a3a;
      margin-bottom: 48px;
    }

    /* Image placeholders */
    .case-img {
      background: #e7e7e7;
      border-radius: 16px;
      width: 100%;
      display: block;
      object-fit: cover;
      object-position: center center;
    }
    .case-img--full  { height: 580px; }
    .case-img--half  { height: 100%; min-height: 420px; }
    .case-img--tall  { height: 560px; }
    .case-img--small { height: 320px; }

    /* Stats */
    .case-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      padding: 48px 80px;
    }
    .case-stat {
      background: #f5f4f2;
      border-radius: 16px;
      padding: 36px 40px;
    }
    .case-stat-num {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 56px;
      font-weight: 400;
      color: #FF5825;
      line-height: 1;
      margin-bottom: 10px;
    }
    .case-stat-label {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 16px;
      color: #737373;
      line-height: 1.4;
    }

    /* Content sections */
    .case-section {
      padding: 64px 80px;
      border-top: 1px solid #e7e7e7;
    }
    .case-section-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 12px;
      font-weight: 400;
      color: #FF5825;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-bottom: 20px;
    }
    .case-section-title {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 36px;
      font-weight: 400;
      color: #1a1a1a;
      line-height: 1.2;
      margin-bottom: 24px;
    }
    .case-section-text {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.7;
      color: #3a3a3a;
      margin-bottom: 40px;
    }
    .case-section-text p + p { margin-top: 16px; }

    /* Two-column layout: text + image */
    .case-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: start;
    }
    .case-cols--wide {
      grid-template-columns: 1fr 1.4fr;
    }
    .case-cols--narrow {
      grid-template-columns: 1.4fr 1fr;
    }

    /* Image grid */
    .case-img-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .case-img-grid--3 {
      grid-template-columns: repeat(3, 1fr);
    }

    /* Detail list */
    .case-details {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 32px;
    }
    .case-detail-item {
      display: flex;
      gap: 16px;
      align-items: baseline;
    }
    .case-detail-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 12px;
      color: #737373;
      min-width: 160px;
    }
    .case-detail-value {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 16px;
      color: #1a1a1a;
    }

    /* Spacing after cols/text before image */
    .case-section > .case-img,
    .case-section > .case-img-grid {
      margin-top: 40px;
    }

    /* Nav between cases */
    .case-nav {
      padding: 48px 80px;
      border-top: 1px solid #e7e7e7;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .case-nav-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 14px;
      color: #1a1a1a;
      text-decoration: none;
      transition: color 0.2s;
    }
    .case-nav-link:hover { color: #FF5825; }

    @media (max-width: 1280px) {
      .case-back, .case-hero, .case-stats, .case-section, .case-nav {
        padding-left: 48px;
        padding-right: 48px;
      }
      .case-hero-title { font-size: 52px; }
      .case-stat-num { font-size: 44px; }
    }
    @media (max-width: 1024px) {
      .case-cols, .case-cols--wide, .case-cols--narrow { grid-template-columns: 1fr; }
      .case-stats { grid-template-columns: repeat(3, 1fr); }
      .case-hero-title { font-size: 42px; }
    }
    @media (max-width: 768px) {
      .case-back, .case-hero, .case-stats, .case-section, .case-nav {
        padding-left: 24px;
        padding-right: 24px;
      }
      .case-stats { grid-template-columns: 1fr; }
      .case-img--full { height: 300px; }
      .case-img--half, .case-img--tall { height: 260px; }
      .case-img-grid, .case-img-grid--3 { grid-template-columns: 1fr; }
      .case-hero-title { font-size: 32px; }
      .case-section-title { font-size: 26px; }
    }

    /* ═══ COOKIE BANNER ═══ */

    .cookie-banner {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(120px);
      z-index: 999;
      display: flex;
      align-items: center;
      gap: 20px;
      background: #1a1a1a;
      color: rgba(255,255,255,0.75);
      font-family: Helvetica, Arial, sans-serif;
      font-size: 13px;
      line-height: 1.5;
      padding: 14px 20px;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.25);
      white-space: nowrap;
      opacity: 0;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
      pointer-events: none;
    }

    .cookie-banner--visible {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .cookie-link {
      color: rgba(255,255,255,0.5);
      text-decoration: underline;
    }
    .cookie-link:hover { color: rgba(255,255,255,0.8); }

    .cookie-btn {
      background: #E8521A;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 8px 18px;
      font-family: Helvetica, Arial, sans-serif;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .cookie-btn:hover { background: #d14714; }

    @media (max-width: 600px) {
      .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(120px);
        white-space: normal;
        flex-wrap: wrap;
        width: calc(100% - 32px);
      }
      .cookie-banner--visible {
        transform: translateX(0) translateY(0);
      }
    }
