/* ── digwine CSS ── */
  :root {
    --orange:      #E59866;
    --orange-dim:  rgba(229, 152, 102, 0.12);
    --orange-brd:  rgba(229, 152, 102, 0.3);
    --dark:        #080808;
    --card:        #0d0d0d;
    --card2:       #111008;
    --cream:       #F0EDE8;
    --text-dim:    rgba(240, 237, 232, 0.5);
    --border:      rgba(255,255,255,0.08);
  }

  .dw {
    font-family: 'DM Sans', sans-serif;
    color: var(--cream);
    background-color: transparent !important;
    background-image: radial-gradient(rgba(229, 152, 102, 0.04) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    padding: 48px;
    padding-bottom: 140px;
  }

  /* ── TITLE & META hero ── */
  .dw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 48px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .dw-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.2vw, 56px);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .dw-title .dw-nowrap { white-space: nowrap; }

  @media (max-width: 1200px) {
    .dw-title .dw-nowrap { white-space: normal; }
  }

  .dw-title .acc {
    color: var(--orange);
    margin-left: 10px;
  }

  .dw-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: right;
    padding-top: 5px;
    flex-shrink: 0;
  }

  .dw-meta-item { text-align: right; }

  .dw-meta-label {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 3px;
  }

  .dw-meta-value {
    font-size: 14px;
    color: var(--cream);
  }

  /* ── (BOXES) ── */
  .dw-box {
    background: rgba(15, 10, 8, 0.8) !important;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
  }

  .dw-box.accent {
    background: rgba(229, 152, 102, 0.06) !important;
    border-color: rgba(229,152,102,0.4) !important;
  }

  .dw-box:hover {
    border-color: var(--orange) !important;
    box-shadow: 0 0 16px rgba(229, 152, 102, 0.12) !important;
  }

  .dw-box-label {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 24px;
  }

  .dw-box-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-dim);
  }

  .dw-box-text b, .dw-box-text strong {
    color: var(--cream);
    font-weight: 500;
  }

  .dw-box-text-lg {
    font-size: 17px;
    line-height: 1.75;
    color: var(--cream);
    margin-bottom: 24px;
  }

  .dw-box-text-lg:last-child { margin-bottom: 0; }
  .dw-box-text-lg b { color: var(--orange); }

  /* ── (VIDEO + BENTO) ── */
  .dw-bento-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 24px auto;
  }

  .dw-bento-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .dw-bento-info .dw-box.accent {
    background: rgba(15, 10, 8, 0.8) !important;
  }

  .dw-video-box {
    background: transparent !important;
    display: flex;
    flex-wrap: nowrap; /* Всегда рядом на 1440px и ноутбуках */
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
  }

  .dw-video-box .dw-video-wrap {
    margin: 0;
    flex: 0 1 400px;
  }

  .dw-video-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border: 12px solid #1a1a1a;
    border-radius: 45px;
    overflow: hidden;
    background: #000;
  }

  .dw-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .dw-phone-scroll {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
  }

  .dw-phone-scroll::-webkit-scrollbar { display: none; }

  .dw-phone-scroll img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }


  .dw-phone-scroll::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    pointer-events: none;
    display: block;
    margin-top: -40px;
    z-index: 5;
  }


 .dw-scroll-hint {
    position: sticky;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    margin: -44px auto 16px auto; /* Подтягиваем её наверх поверх картинки */
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
    animation: dwScrollBounce 2s infinite ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .dw-scroll-hint svg {
    width: 12px;
    height: 12px;
    animation: dwArrowMove 1.5s infinite ease-in-out;
  }

  @keyframes dwScrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -4px); }
  }

  @keyframes dwArrowMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
  }

  /* ── (ABOUT / CHALLENGE / SOLUTION) ── */
  .dw-bottom-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 32px auto;
  }

  .dw-bottom-blocks .dw-box:first-child {
    grid-column: span 2;
  }

  /* ── (SCREENS, PROCESS, ETC.) ── */
  .dw-screens {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .dw-screen-item {
    width: calc((100% - 64px) / 3);
    max-width: 340px;
    flex-shrink: 0;
  }

  .dw-screen-item > .dw-box-text {
    text-align: center;
  }

  .dw-iphone-frame {
    width: 100%;
    aspect-ratio: 390 / 844;
    border: 10px solid #1a1a1a;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
  }

  .dw-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  .dw-steps { display: flex; flex-direction: column; }
  .dw-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
  }
  .dw-step:last-child { border-bottom: none; }

  .dw-step-num {
    font-family: 'Syne', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--orange);
    opacity: 0.5;
    line-height: 1;
    text-align: center;
  }

  .dw-step-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
  }

  .dw-step-text { font-size: 15px; color: var(--text-dim); line-height: 1.6; }

  .dw-quote {
    border-left: 2px solid var(--orange);
    padding: 20px 28px;
    background: rgba(229, 152, 102, 0.06) !important;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 17px;
    line-height: 1.65;
    color: var(--orange);
    margin: 32px 0;
  }

  .dw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .dw-tag {
    border: 1px solid var(--orange-brd);
    padding: 6px 14px; border-radius: 2px;
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: 'Syne', sans-serif;
    transition: all 0.2s;
  }
  .dw-tag:hover { border-color: var(--orange); color: var(--orange); }

  /* ── RESPONSIVE ── */

  /* Wide screens 2440px+ */
  @media (min-width: 2440px) {
    .dw { padding: 64px; padding-bottom: 160px; }
    .dw-bento-hero { max-width: 1600px; gap: 32px; }
    .dw-bottom-blocks { max-width: 1600px; }
    .dw-screens { max-width: 1600px; }
    .dw-screen-item { width: calc((100% - 64px) / 3); max-width: 380px; }
  }

  /* Large desktop 1440px */
  @media (max-width: 1440px) {
    .dw { padding: 48px 40px; padding-bottom: 140px; }
    .dw-title { font-size: 44px; max-width: 560px; }
    .dw-bento-hero {
      display: flex;
      flex-direction: column;
      gap: 24px;
      max-width: 100%;
    }
    .dw-screens { gap: 24px; padding: 0; max-width: 100%; }
    .dw-screen-item { width: calc((100% - 48px) / 3); max-width: none; }
  }

  /* Tablet landscape 1024px */
  @media (max-width: 1024px) {
    .dw { padding: 32px 24px; padding-bottom: 120px; }

    .dw-hero {
      display: flex;
      flex-direction: column;
      gap: 24px;
      padding-bottom: 32px;
      margin-bottom: 32px;
    }
    .dw-hero-meta {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      text-align: left;
      width: 100%;
    }
    .dw-meta-item { text-align: left; }

    .dw-bento-hero {
      max-width: 100%;
      margin-bottom: 32px;
    }
    .dw-video-wrap { max-width: 280px; margin: 0 auto; }

    .dw-bento-info { gap: 16px; }

    .dw-bottom-blocks {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-bottom: 32px;
    }
    .dw-bottom-blocks .dw-box:first-child { grid-column: span 1; }

    /* Screens: 2 phones per row */
    .dw-screens {
      gap: 24px;
      justify-content: center;
    }
    .dw-screen-item { width: calc(50% - 12px); max-width: 280px; }

    .dw-step { padding: 24px 0; gap: 16px; }
    .dw-quote { margin: 24px 0; font-size: 15px; }
  }

  /* Tablet portrait 768px */
  @media (max-width: 768px) {
    .dw { padding: 24px 16px; padding-bottom: 120px; }

    .dw-hero { gap: 16px; padding-bottom: 24px; margin-bottom: 24px; }
    .dw-hero-meta {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .dw-bento-hero { gap: 16px; margin-bottom: 24px; }
    .dw-video-wrap { max-width: 320px; border-width: 8px; border-radius: 36px; }

    .dw-bento-info { gap: 16px; grid-template-columns: 1fr; }

    .dw-bottom-blocks { gap: 12px; margin-bottom: 24px; }

    .dw-box { padding: 24px; border-radius: 16px; }
    .dw-box-label { font-size: 11px; margin-bottom: 16px; }

    /* Screens: 2 phones per row on tablet portrait */
    .dw-screens { gap: 16px; }
    .dw-screen-item { width: calc(50% - 8px); max-width: 240px; }
    .dw-iphone-frame { border-width: 8px; border-radius: 36px; }

    .dw-step { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; }
    .dw-step-num { font-size: 32px; }
    .dw-step-title { font-size: 16px; }

    .dw-quote { padding: 16px 20px; font-size: 14px; margin: 16px 0; }
  }

  /* Mobile below 600px — видео аккуратно переходят друг под друга */
  @media (max-width: 600px) {
    .dw-video-box {
      flex-wrap: wrap;
    }
    .dw-video-box .dw-video-wrap {
      flex: 1 1 100%;
      max-width: 320px;
    }
  }

  /* Mobile 480px */
  @media (max-width: 480px) {
    .dw {
      padding: 16px 12px;
      padding-bottom: 140px;
    }

    .dw-title { font-size: 32px; }
    .dw-hero-meta { grid-template-columns: 1fr; gap: 12px; }

    .dw-video-wrap { max-width: 280px; border-width: 8px; border-radius: 36px; }

    .dw-bento-info { gap: 8px; }
    .dw-bottom-blocks { gap: 8px; }
    .dw-box { padding: 16px; border-radius: 12px; }

    /* Screens: 1 phone per row on mobile */
    .dw-screens {
      flex-direction: column;
      align-items: center;
      gap: 32px;
    }
    .dw-screen-item { width: 100%; max-width: 280px; }

    .dw-iphone-frame {
      border-width: 8px;
      border-radius: 36px;
      box-sizing: border-box;
    }

    .dw-screen-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
    }

    .dw-step { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; }
    .dw-step-num { font-size: 24px; }
  }

  video::-webkit-media-controls-fullscreen-button { display: none !important; }
  .contact-inner { padding-top: 32px; }

  @media (min-width: 1920px) {
    .dw-title {
        font-size: 62px;
    }
}

@media (min-width: 2440px) {
    .dw-title {
        font-size: 78px;
    }
}
