    :root {
      /* Apple-like light system */
      --bg: #ffffff;
      --stroke: rgba(0, 0, 0, .10);
      --stroke2: rgba(0, 0, 0, .06);
      --text: #1d1d1f;
      --muted: rgba(29, 29, 31, .70);
      --muted2: rgba(29, 29, 31, .55);

      --blue: #0071e3;
      --blue2: #0077ED;

      --shadow: 0 14px 40px rgba(0, 0, 0, .10);
      --shadow2: 0 10px 24px rgba(0, 0, 0, .08);

      --r: 26px;
      --r2: 22px;
      --container: 1120px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      height: 100%;
    }

    body {
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
    }

    .page-loader {
      position: fixed;
      inset: 0;
      background: #f3f4f6;
      /* немного темнее белого */
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity .4s ease, visibility .4s ease;
    }

    body.loading {
      overflow: hidden;
    }

    .page-loader.hide {
      opacity: 0;
      visibility: hidden;
    }

    /* ===== Global Page Loader (smaller, spinner around logo) ===== */
    .page-loader-inner {
      position: relative;
      width: 120px;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .page-loader-inner img {
      width: 64px;
      height: auto;
      z-index: 2;
      position: relative;
    }

    /* Separate spinner size for PAGE loader (does NOT affect video loader) */
    .spinner--page {
      width: 110px;
      height: 110px;
      border-width: 3px;
      border-color: rgba(51, 102, 153, .20);
      border-top-color: #336699;
    }

    /* ultra-light Apple-style background sheen */
    .bg-sheen {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background:
        radial-gradient(900px 520px at 22% 12%, rgba(0, 113, 227, .10), transparent 60%),
        radial-gradient(700px 420px at 84% 16%, rgba(88, 86, 214, .08), transparent 62%),
        radial-gradient(800px 520px at 55% 95%, rgba(0, 113, 227, .06), transparent 62%);
    }

    .page {
      position: relative;
      z-index: 1;
      min-height: 100%;
      display: flex;
      justify-content: center;
      padding: 22px 16px 42px;
    }

    .container {
      width: min(var(--container), 100%);
    }

    /* Top nav (Apple-like) */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 14px;
      border-radius: 999px;
      background: rgba(245, 245, 247, .72);
      border: 1px solid var(--stroke2);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    /* Logo */
    .logo {
      width: 70px;
      height: auto;
      /* чтобы не искажать пропорции */
      border-radius: 16px;
      overflow: hidden;
    }

    .logo img {
      width: 100%;
      height: auto;
      display: block;

      filter: blur(10px);
      opacity: 0;
      transform: scale(1.05);
      transition:
        filter 1.4s cubic-bezier(.16, 1, .3, 1),
        opacity 1.2s ease,
        transform 1.4s cubic-bezier(.16, 1, .3, 1);
    }

    .logo img.loaded {
      filter: blur(0);
      opacity: 1;
      transform: scale(1);
    }

    .brand-link {
      display: flex;
      align-items: center;
      gap: 14px;
      text-decoration: none;
      color: inherit;
      min-width: 0;
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    /* Name bigger */
    .brand-text .name {
      font-weight: 800;
      letter-spacing: -1.2px;
      font-size: 28px;
      /* bigger per request */
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      opacity: 0;
      filter: blur(10px);
      transform: translateX(-6px);
      transition:
        opacity .9s ease,
        filter 1.2s cubic-bezier(.16, 1, .3, 1),
        transform 1.2s cubic-bezier(.16, 1, .3, 1);
    }

    /* Reveal "mask" for the text */
    .brand-text .name .name-reveal {
      display: inline-block;
      clip-path: inset(0 100% 0 0);
      /* hidden from the right */
      transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1);
    }

    /* When loaded: sharp + visible + revealed */
    .brand-text .name.loaded {
      opacity: 1;
      filter: blur(0);
      transform: translateX(0);
    }

    .brand-text .name.loaded .name-reveal {
      clip-path: inset(0 0 0 0);
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    /* Make badges brighter */
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      background: rgba(0, 113, 227, .10);
      border: 1px solid rgba(0, 113, 227, .22);
      color: rgba(0, 60, 140, .92);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .02em;
      white-space: nowrap;
      opacity: 0;
      filter: blur(8px);
      transform: translateX(10px);
      transition:
        opacity .8s ease,
        filter 1s cubic-bezier(.16, 1, .3, 1),
        transform 1s cubic-bezier(.16, 1, .3, 1);
    }

    .top-actions.loaded .pill {
      opacity: 1;
      filter: blur(0);
      transform: translateX(0);
    }

    .top-actions .pill:nth-child(1) {
      transition-delay: 0s;
    }

    .top-actions .pill:nth-child(2) {
      transition-delay: .12s;
    }

    .top-actions .pill:nth-child(3) {
      transition-delay: .24s;
    }

    .pill i {
      color: var(--blue);
    }

    .pill.p2 {
      background: rgba(88, 86, 214, .10);
      border-color: rgba(88, 86, 214, .22);
      color: rgba(50, 46, 170, .92);
    }

    .pill.p2 i {
      color: rgba(88, 86, 214, .95);
    }

    .pill.p3 {
      background: rgba(0, 113, 227, .08);
      border-color: rgba(0, 113, 227, .20);
      color: rgba(0, 60, 140, .90);
    }

    /* Main hero */
    .hero {
      margin-top: 18px;
      border-radius: var(--r);
      background: linear-gradient(180deg, rgba(245, 245, 247, .92), rgba(245, 245, 247, .70));
      border: 1px solid var(--stroke2);
      box-shadow: var(--shadow);
      padding: 34px;
      overflow: hidden;
      position: relative;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: -2px;
      pointer-events: none;
      background:
        radial-gradient(800px 320px at 20% 25%, rgba(0, 113, 227, .12), transparent 60%),
        radial-gradient(700px 280px at 80% 30%, rgba(88, 86, 214, .09), transparent 62%);
    }

    .hero-grid {
      position: relative;
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 26px;
      align-items: start;
    }

    /* Slogan headline (now 2x smaller than previous) */
    .headline {
      margin-top: 6px;
      font-size: clamp(20px, 2.3vw, 30px);
      /* reduced */
      line-height: 1.18;
      letter-spacing: -0.6px;
      font-weight: 800;
      max-width: 34ch;
    }

    /* Longer text block (2–3x more info) */
    .lead {
      margin-top: 14px;
      max-width: 74ch;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.8;
    }

    .cta-row {
      margin-top: 18px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 18px;
      border-radius: 999px;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .04em;
      border: 1px solid transparent;
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
      white-space: nowrap;
    }

    .btn:focus {
      outline: none;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      color: #fff;
      background: linear-gradient(180deg, var(--blue2), var(--blue));
      box-shadow: 0 14px 28px rgba(0, 113, 227, .22);
    }

    .btn-primary:hover {
      box-shadow: 0 18px 34px rgba(0, 113, 227, .26);
    }

    .btn-secondary {
      color: var(--text);
      background: rgba(255, 255, 255, .82);
      border-color: var(--stroke);
      box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, .94);
      border-color: rgba(0, 0, 0, .14);
      box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
    }

    /* CTA buttons: Apple-style appear (soft fade + up + blur) */
    .cta-anim {
      opacity: 0;
      filter: blur(8px);
      transform: translateY(10px);
      transition:
        opacity .75s ease,
        filter 1s cubic-bezier(.16, 1, .3, 1),
        transform 1s cubic-bezier(.16, 1, .3, 1);
    }

    .cta-anim.loaded {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }

    /* Small stagger between buttons */
    .cta-1 {
      transition-delay: 0s;
    }

    .cta-2 {
      transition-delay: .14s;
    }

    /* Right side “clean cards” */
    .stack {
      display: grid;
      gap: 12px;
      align-content: start;
    }

    .mini {
      background: rgba(255, 255, 255, .68);
      border: 1px solid var(--stroke2);
      border-radius: var(--r2);
      padding: 16px;
      box-shadow: var(--shadow2);
    }

    .mini-head {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .mini-icon {
      width: 42px;
      height: 42px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 113, 227, .10);
      border: 1px solid rgba(0, 113, 227, .18);
      color: var(--blue);
      flex: 0 0 auto;
      font-size: 16px;
    }

    .mini h3 {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -0.4px;
    }

    .mini p {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    /* Mini cards: Apple-style appear after CTA (soft fade + up + blur) */
    .mini-anim {
      opacity: 0;
      filter: blur(10px);
      transform: translateY(12px);
      transition:
        opacity .75s ease,
        filter 1.05s cubic-bezier(.16, 1, .3, 1),
        transform 1.05s cubic-bezier(.16, 1, .3, 1);
    }

    .mini-anim.loaded {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }

    /* Stagger order inside the stack */
    .mini-1 {
      transition-delay: 0s;
    }

    .mini-2 {
      transition-delay: .14s;
    }

    .mini-3 {
      transition-delay: .28s;
    }

    /* Social buttons as 3 standalone blocks (no wrapper title/text) */
    .social-row {
      margin-top: 16px;
      display: flex;
      gap: 10px;
      width: 100%;
    }

    .sbtn {
      flex: 1 1 0;
      width: 33.333%;
      height: 64px;
      /* same visual height */
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      background: rgba(245, 245, 247, .72);
      border: 1px solid var(--stroke2);
      box-shadow: var(--shadow2);
      color: var(--text);
      text-decoration: none;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
      font-size: 16px;
      font-weight: 800;
      letter-spacing: .02em;
      white-space: nowrap;
    }

    .sbtn i {
      font-size: 20px;
    }

    .sbtn:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, .92);
      border-color: rgba(0, 0, 0, .10);
      box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
    }

    .sbtn.tg {
      color: #229ED9;
    }

    .sbtn.ig {
      color: #E1306C;
    }

    .sbtn.tt {
      color: #111827;
    }

    /* Bottom section: 3 cards */
    .features {
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .feature {
      background: rgba(255, 255, 255, .72);
      border: 1px solid var(--stroke2);
      border-radius: var(--r);
      padding: 18px;
      box-shadow: var(--shadow2);
    }

    .feature .h {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .feature .h i {
      width: 40px;
      height: 40px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 113, 227, .10);
      border: 1px solid rgba(0, 113, 227, .18);
      color: var(--blue);
    }

    .feature h3 {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -0.3px;
    }

    .feature p {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }

    .footer {
      margin-top: 18px;
      color: rgba(29, 29, 31, .50);
      font-size: 12px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      padding: 8px 4px 0;
    }

    .footer a {
      color: rgba(0, 113, 227, .92);
      text-decoration: none;
      font-weight: 800;
    }

    .footer a:hover {
      text-decoration: underline;
    }

    /* Responsive */
    @media (max-width: 980px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }

      .features {
        grid-template-columns: 1fr;
      }

      .social-row {
        flex-direction: column;
      }

      .sbtn {
        width: 100%;
      }
    }

    @media (max-width: 560px) {
      .topbar {
        border-radius: 22px;
      }

      .hero {
        padding: 22px;
        border-radius: 24px;
      }

      .btn {
        width: 100%;
      }

      .logo {
        width: 72px;
        height: 72px;
      }

      .brand-text .name {
        font-size: 24px;
      }

      .sbtn {
        height: 66px;
      }

      .top-actions {
        gap: 8px;
      }

      .pill {
        padding: 10px 12px;
      }

      .top-actions {
        display: none;
      }

      .topbar {
        justify-content: flex-start;
      }

      .brand {
        flex: 1 1 auto;
      }

      .brand-link {
        flex: 1 1 auto;
        min-width: 0;
      }
    }

    /* Respect reduced motion */
    @media (prefers-reduced-motion: no-preference) {

      .hero,
      .mini,
      .topbar {
        animation: fadeUp .55s ease both;
      }

      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(8px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    }

    /* --- Modal + form (from landing #1, максимально близко) --- */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(245, 245, 245, 0.9);
      backdrop-filter: blur(5px);
      z-index: 1000;
      display: none;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .modal-active {
      display: flex;
      opacity: 1;
    }

    .modal-window {
      background: #fff;
      width: 90%;
      max-width: 420px;
      padding: 40px;
      border-radius: 14px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
      position: relative;
      text-align: center;
    }

    .close-modal {
      position: absolute;
      top: 14px;
      right: 18px;
      font-size: 24px;
      cursor: pointer;
      color: #bbb;
    }

    .close-modal:hover {
      color: #333;
    }

    .form-group {
      margin-bottom: 18px;
      text-align: left;
    }

    .form-label {
      display: block;
      font-size: 11px;
      color: rgba(29, 29, 31, .60);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }

    .form-input,
    .form-textarea {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid rgba(0, 0, 0, .08);
      background: rgba(245, 245, 247, .75);
      border-radius: 10px;
      font-family: inherit;
      font-size: 14px;
      color: #1d1d1f;
      box-sizing: border-box;
    }

    .form-input:focus,
    .form-textarea:focus {
      outline: none;
      border-color: rgba(0, 113, 227, .35);
      background: #fff;
    }

    .form-textarea {
      resize: vertical;
      min-height: 90px;
    }

    .btn-send {
      width: 100%;
      padding: 12px;
      background: #111;
      color: #fff;
      border: none;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 2px;
      cursor: pointer;
      border-radius: 999px;
      transition: opacity 0.2s ease;
    }

    .btn-send:hover {
      opacity: 0.92;
    }

    .notification-box {
      padding: 14px 0;
    }

    .notification-title {
      font-size: 18px;
      font-weight: 800;
      margin-bottom: 10px;
      color: #111;
    }

    .notification-desc {
      font-size: 14px;
      color: rgba(29, 29, 31, .72);
      line-height: 1.5;
    }

    .error-text {
      color: #e74c3c;
      font-size: 13px;
      margin-bottom: 14px;
      text-align: left;
    }

    .hp-field {
      display: none;
    }

    /* ===== Reviews ===== */

    /* отступ теперь у section */
    .reviews-section {
      margin-top: 16px;
    }

    .reviews {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    /* Reviews: visible immediately in blur, then unblur together */
    .review-card {
      background: rgba(255, 255, 255, .72);
      border: 1px solid var(--stroke2);
      border-radius: var(--r);
      padding: 18px;
      box-shadow: var(--shadow2);
      position: relative;
      overflow: hidden;
      min-height: 200px;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .review-card:hover {
      box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
      border-color: rgba(0, 0, 0, .10);
    }

    .review-top {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .review-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      letter-spacing: .02em;
      color: rgba(0, 60, 140, .92);
      background: rgba(0, 113, 227, .10);
      border: 1px solid rgba(0, 113, 227, .18);
    }

    .review-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .review-name {
      font-size: 13px;
      font-weight: 900;
      letter-spacing: -0.2px;
      white-space: normal;
    }

    .review-date {
      font-size: 12px;
      color: var(--muted2);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .review-text {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.7;
    }

    .review-quote {
      position: absolute;
      top: 14px;
      right: 16px;
      font-size: 34px;
      line-height: 1;
      color: rgba(0, 0, 0, .06);
      font-weight: 900;
      pointer-events: none;
    }

    @media (max-width: 980px) {
      .reviews {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 560px) {
      .reviews {
        grid-template-columns: 1fr;
      }
    }

    /* ===== Review Modal Content (keeps existing modal style) ===== */
    .review-modal {
      text-align: left;
    }

    .review-modal-top {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
    }

    .review-modal-avatar {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      letter-spacing: .02em;
      color: rgba(0, 60, 140, .92);
      background: rgba(0, 113, 227, .10);
      border: 1px solid rgba(0, 113, 227, .18);
      overflow: hidden;
    }

    .review-modal-name {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: -0.2px;
      line-height: 1.15;
    }

    .review-modal-date {
      margin-top: 6px;
      font-size: 12px;
      color: var(--muted2);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .review-modal-text {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.8;
      white-space: pre-wrap;
    }

    /* ===== Videos (latest 3) ===== */
    .videos-section {
      margin-top: 12px;
    }

    .videos-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .videos-title {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: -0.3px;
    }

    /* subtle “wow” pulse + glow (only this button) */
    .videos-all {
      position: relative;
      overflow: hidden;

      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;

      /* чуть более “акцентный” фон, но очень аккуратно */
      background: linear-gradient(180deg, rgba(0, 113, 227, .10), rgba(255, 255, 255, .86));
      border: 1px solid rgba(0, 113, 227, .20);

      color: rgba(29, 29, 31, .95);
      text-decoration: none;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;

      /* мягче и “живее” */
      box-shadow:
        0 10px 24px rgba(0, 0, 0, .08),
        0 0 0 6px rgba(0, 113, 227, .06);

      transition:
        transform .18s ease,
        box-shadow .22s ease,
        background .22s ease,
        border-color .22s ease,
        filter .22s ease;
    }

    /* light “sheen” highlight */
    .videos-all::before {
      content: "";
      position: absolute;
      inset: -2px;
      pointer-events: none;
      background: radial-gradient(220px 90px at 18% 35%, rgba(255, 255, 255, .70), transparent 60%);
      opacity: .55;
      mix-blend-mode: screen;
    }

    /* pulse ring (very subtle) */
    .videos-all::after {
      content: "";
      position: absolute;
      inset: -14px;
      border-radius: 999px;
      pointer-events: none;
      background: radial-gradient(closest-side, rgba(0, 113, 227, .18), transparent 65%);
      opacity: .30;
      filter: blur(10px);
    }

    /* animate ONLY this button (not the whole site) */
    @media (prefers-reduced-motion: no-preference) {
      .videos-all {
        animation: videosPulse 2.6s ease-in-out infinite;
      }

      .videos-all::after {
        animation: videosHalo 2.6s ease-in-out infinite;
      }
    }

    @keyframes videosPulse {

      0%,
      100% {
        box-shadow:
          0 10px 24px rgba(0, 0, 0, .08),
          0 0 0 6px rgba(0, 113, 227, .05);
        filter: saturate(1);
      }

      50% {
        box-shadow:
          0 12px 28px rgba(0, 0, 0, .10),
          0 0 0 10px rgba(0, 113, 227, .09);
        filter: saturate(1.06);
      }
    }

    @keyframes videosHalo {

      0%,
      100% {
        opacity: .22;
        transform: scale(0.985);
      }

      50% {
        opacity: .36;
        transform: scale(1.01);
      }
    }

    .videos-all:hover {
      transform: translateY(-1px);
      border-color: rgba(0, 113, 227, .28);
      background: linear-gradient(180deg, rgba(0, 113, 227, .14), rgba(255, 255, 255, .92));
      box-shadow:
        0 14px 32px rgba(0, 0, 0, .10),
        0 0 0 12px rgba(0, 113, 227, .10);
    }

    /* optional: make arrow feel more “alive” */
    .videos-all:hover i {
      transform: translateX(2px);
    }

    .videos-all i {
      transition: transform .18s ease;
    }

    .videos-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .video-card {
      position: relative;
      border-radius: var(--r);
      overflow: hidden;
      border: 1px solid var(--stroke2);
      box-shadow: var(--shadow2);
      background: rgba(255, 255, 255, .72);
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .video-card:hover {
      box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
      border-color: rgba(0, 0, 0, .10);
    }

    /* 9:16 box */
    .video-frame {
      width: 100%;
      aspect-ratio: 9 / 16;
      position: relative;
      background: #eee;
    }

    .video-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transform: scale(1.04);
      transition: transform 0.35s ease;
    }

    /* NEW: zoom image on hover (card does not move) */
    .video-card:hover .video-frame img {
      transform: scale(1.10);
    }

    /* overlay + play */
    .video-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .24));
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .video-play {
      width: 64px;
      height: 64px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .92);
      border: 1px solid rgba(0, 0, 0, .10);
      box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #111;
      transform: translateZ(0);
    }

    .video-play i {
      font-size: 20px;
      margin-left: 2px;
    }

    @media (max-width: 980px) {
      .videos-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 560px) {
      .videos-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .video-play {
        width: 58px;
        height: 58px;
      }
    }

    /* ===== Video Modal (9:16, no padding, close overlay) ===== */

    /* make video modal overlay darker than forms/reviews */
    #modalVideo.modal-overlay {
      background: rgba(0, 0, 0, .62);
      backdrop-filter: blur(6px);
    }

    /* the window IS the video frame (9:16) */
    .video-modal-window {
      background: transparent;
      padding: 0;
      border-radius: 18px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
      position: relative;
      text-align: left;

      /* strict portrait ratio */
      aspect-ratio: 9 / 16;

      /* size by height (prevents “wide” 16:9 look) */
      height: min(92vh, 820px);
      width: auto;

      /* safety for very small screens */
      max-width: 92vw;
      overflow: hidden;
    }

    /* video fills the whole modal, no borders/padding */
    .video-player-wrap {
      width: 100%;
      height: 100%;
      border-radius: 18px;
      overflow: hidden;
      background: #000;
      border: 0;
    }

    .video-player {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      background: #000;
    }

    .video-modal-close {
      position: absolute;
      top: calc(20px + env(safe-area-inset-top));
      right: calc(13px + env(safe-area-inset-right));
      z-index: 3;

      width: 44px;
      height: 44px;
      border-radius: 999px;

      border: 1px solid rgba(255, 255, 255, .22);
      background: rgba(0, 0, 0, .32);
      /* ✅ слегка прозрачный фон */
      color: #fff;

      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;

      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);

      transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    }

    .video-modal-close i {
      font-size: 26px;
      line-height: 1;
    }

    #modalVideo.modal-active .video-modal-close {
      display: flex;
    }

    .video-modal-close:hover {
      transform: translateY(-1px);
      background: rgba(0, 0, 0, .70);
      box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
    }

    @media (max-width: 560px) {
      .video-modal-close {
        top: calc(55px + env(safe-area-inset-top));
        /* +20px вниз на телефоне */
      }
    }

    /* ===== Video Loader ===== */

    .video-loader {
      position: absolute;
      inset: 0;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      transition: opacity .35s ease;
    }

    .video-loader.hide {
      opacity: 0;
      pointer-events: none;
    }

    .video-loader-inner {
      position: relative;
      width: 120px;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .video-loader-inner img {
      width: 64px;
      height: auto;
      z-index: 2;
      position: relative;
    }

    .spinner {
      position: absolute;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      border: 3px solid rgba(255, 255, 255, .15);
      border-top: 3px solid #336699;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* ===== Video Thumb Loader (per-card) ===== */
    .video-frame {
      position: relative;
    }

    .video-thumb-loader {
      z-index: 3;
    }

    .video-overlay {
      z-index: 4;
    }

    .video-frame img.video-thumb {
      position: relative;
      z-index: 1;
    }

    /* ===== Pagination (compact, inline, centered) ===== */
    .videos-section .pagination {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 8px;

      padding-left: 0;
      margin: 30px 0 0;
      /* ✅ отступ сверху 30px */
      list-style: none;
    }

    .videos-section .pagination .page-item {
      /* prevent vertical stacking */
      display: inline-flex !important;
      margin: 0;
    }

    .videos-section .pagination .page-link {
      /* compact sizes */
      min-width: 40px;
      height: 40px;
      padding: 0 12px;

      border-radius: 14px !important;

      display: inline-flex;
      align-items: center;
      justify-content: center;

      font-weight: 900;
      font-size: 14px;
      line-height: 1;
      color: var(--text);

      background: rgba(255, 255, 255, .82);
      border: 1px solid var(--stroke);
      box-shadow: var(--shadow2);

      transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
      text-decoration: none;
    }

    .videos-section .pagination .page-link:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, .94);
      border-color: rgba(0, 0, 0, .14);
      box-shadow: 0 12px 26px rgba(0, 0, 0, .09);
    }

    .videos-section .pagination .page-item.active .page-link {
      background: linear-gradient(180deg, var(--blue2), var(--blue));
      color: #fff;
      border-color: rgba(0, 113, 227, .35);
      box-shadow: 0 14px 28px rgba(0, 113, 227, .22);
    }

    .videos-section .pagination .page-item.disabled .page-link,
    .videos-section .pagination .page-item.disabled span.page-link {
      opacity: .55;
      pointer-events: none;
      box-shadow: none;
      background: rgba(255, 255, 255, .65);
      border: 1px solid rgba(0, 0, 0, .08);
      color: var(--muted2);
    }

    /* icons a bit smaller inside buttons */
    .videos-section .pagination .page-link i {
      font-size: 14px;
    }

    /* phone: even tighter */
    @media (max-width: 560px) {
      .videos-section .pagination {
        gap: 6px;
      }

      .videos-section .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        border-radius: 12px !important;
        font-size: 13px;
      }
    }