  @font-face {
    font-family: 'TT Travels';
    src: url('../assets/fonts/TT-Travels-Next-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'TT Travels';
    src: url('../assets/fonts/TT-Travels-Next-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --bg: #ffffff;
    --fg: #111111;
    --muted: #5b5b5b;
    --line: #1a1a1a;

    --font-main: 'TT Travels', 'Segoe UI', sans-serif;

    /* ---- Aqua palette ---- */
    --aqua-blue-top: #8fd0ff;
    --aqua-blue-mid: #2f8fe6;
    --aqua-blue-bot: #0a5fd1;
    --aqua-blue-shine: #eaf7ff;

    --chrome-top: #f4f4f4;
    --chrome-bot: #cfcfcf;
    --chrome-line: #8f8f8f;

    --btn-top: #ffffff;
    --btn-mid: #e9e9e9;
    --btn-bot: #cfcfcf;
    --btn-line: #9a9a9a;

    --dot-red-top: #ff9d95;
    --dot-red-bot: #ff2d1a;
    --dot-yellow-top: #ffe89e;
    --dot-yellow-bot: #ffb200;
    --dot-green-top: #b6f28c;
    --dot-green-bot: #21c40c;

    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  * { box-sizing: border-box; }
  html { scroll-padding-top: env(safe-area-inset-top, 0px); }
  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-main);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }

  .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ---------- Header ---------- */
  header.site-header {
    padding: 26px 0 16px;
    border-bottom: 3px solid var(--line);
  }
  header.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
  }
  .logo-link img {
    height: 46px;
    width: auto;
    transition: transform 0.15s ease;
  }
  .logo-link:hover img { transform: scale(1.05); }
  .logo-link.pulse img { animation: logoPulse 0.4s ease; }
  @keyframes logoPulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.18) rotate(-3deg); }
    65% { transform: scale(0.94) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
  }
  .yt-link {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 0.01em;
  }
  .yt-link:hover { color: var(--aqua-blue-mid); }

  main { min-height: 60vh; }
  .page { display: none; padding: 56px 0 90px; }
  .page.active { display: block; animation: pageIn 0.5s cubic-bezier(.2,.8,.2,1); }
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---------- Aqua window chrome ---------- */
  .mac-window {
    border: 1px solid #7d7d7d;
    border-radius: 11px;
    background: var(--bg);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 14px 30px rgba(0,0,0,0.18);
    overflow: hidden;
  }
  .mac-titlebar {
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.55) 0px,
        rgba(255,255,255,0.55) 1px,
        rgba(0,0,0,0.02) 1px,
        rgba(0,0,0,0.02) 2px
      ),
      linear-gradient(to bottom, var(--chrome-top) 0%, var(--chrome-bot) 100%);
    border-bottom: 1px solid var(--chrome-line);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 32px;
  }
  .mac-dots { display: flex; gap: 8px; }
  .mac-dots span {
    width: 13px; height: 13px; border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset, 0 1px 1px rgba(255,255,255,0.5);
  }
  .mac-dots span::after {
    content: "";
    position: absolute;
    top: 1.5px; left: 2.5px;
    width: 5px; height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    filter: blur(0.3px);
  }
  .mac-dots span:nth-child(1) { background: linear-gradient(to bottom, var(--dot-red-top), var(--dot-red-bot)); }
  .mac-dots span:nth-child(2) { background: linear-gradient(to bottom, var(--dot-yellow-top), var(--dot-yellow-bot)); }
  .mac-dots span:nth-child(3) { background: linear-gradient(to bottom, var(--dot-green-top), var(--dot-green-bot)); }
  .mac-title {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.82rem;
    color: #3a3a3a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  }
  .mac-body {
    padding: 34px;
    background: linear-gradient(to bottom, #fbfbfb 0%, #ffffff 60px, #ffffff 100%);
  }

  /* ---------- Aqua buttons ---------- */
  .btn {
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    color: #1c1c1c;
    background: linear-gradient(to bottom, var(--btn-top) 0%, var(--btn-mid) 48%, var(--btn-bot) 52%, var(--btn-top) 100%);
    border: 1px solid var(--btn-line);
    border-radius: 999px;
    padding: 8px 28px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.9) inset,
      0 1px 2px rgba(0,0,0,0.25);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
  }
  .btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
  .btn:active { transform: translateY(1px) scale(0.98); }

  .btn.is-active,
  .btn-cta {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
    background: linear-gradient(to bottom, var(--aqua-blue-top) 0%, var(--aqua-blue-mid) 48%, var(--aqua-blue-bot) 52%, var(--aqua-blue-mid) 100%);
    border: 1px solid #0a4fae;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 1px 3px rgba(0,0,0,0.35);
  }
  .btn.is-active:hover,
  .btn-cta:hover { filter: brightness(1.06); }
  .btn-cta { padding: 10px 36px; font-size: 1rem; }

  /* ---------- Home page ---------- */
  .plugins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .plugin-col { text-align: center; }
  .plugin-col h2 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 2.05rem;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
  }
  .preview-box {
    border: 1px solid #7d7d7d;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }
  .preview-box img { width: 100%; height: auto; display: block; }

  .graph-box {
    display: flex;
    flex-direction: column;
    aspect-ratio: 640 / 360;
  }
  .graph-top {
    background: linear-gradient(to bottom, #6a6a6a 0%, #4a4a4a 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    text-align: center;
    padding: 12px 10px;
    border-bottom: 1px solid #2c2c2c;
  }
  .graph-img {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .graph-img img { width: 68%; height: auto; }

  .contact-block {
    margin-top: 64px;
    padding-top: 44px;
    border-top: 3px solid var(--line);
    text-align: center;
  }
  .contact-block .question {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0 0 34px;
  }
  .contact-block .line { font-size: 1.2rem; margin: 14px 0; font-weight: 500; }
  .contact-block a { text-decoration: underline; text-underline-offset: 3px; }
  .contact-block a:hover { color: var(--aqua-blue-mid); }

  /* ---------- Product pages ---------- */
  .product-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .product-hero {
    border: 1px solid #7d7d7d;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }
  .product-hero img { width: 100%; height: auto; display: block; }

  .tabs { display: flex; gap: 10px; margin-bottom: 26px; }

  .features h3, .price h3 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.45rem;
    margin: 0 0 10px;
  }
  .features ul {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.85;
  }
  .price { margin-bottom: 26px; }
  .price .amount {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.65rem;
    margin: 0 0 20px;
  }

  /* ---------- Graph page ---------- */
  .graph-page-text {
    font-family: var(--font-main);
    font-weight: 700;
    text-align: center;
    font-size: clamp(2.3rem, 7vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 40px 0 0;
  }

  footer.site-footer {
    border-top: 3px solid var(--line);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
  }

  @media (max-width: 760px) {
    .plugins-grid { grid-template-columns: 1fr; gap: 56px; }
    .product-layout { grid-template-columns: 1fr; }
    .yt-link { font-size: 1.1rem; }
    .logo-link img { height: 36px; }
    .mac-body { padding: 24px 18px; }
  }

  /* =========================================================
     ТЕМА: LIQUID GLASS — как в новом macOS
     ========================================================= */
  .glass-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    display: none;
    background: #eef1f6;
  }
  :root[data-theme="glass"] .glass-bg { display: block; }
  .glass-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.6;
    will-change: transform;
  }
  .glass-bg .b1 { width: 460px; height: 460px; top: -120px; left: -100px; background: #ff8fd6; animation: blobDrift1 19s ease-in-out infinite; }
  .glass-bg .b2 { width: 520px; height: 520px; top: -160px; right: -140px; background: #7fb2ff; animation: blobDrift2 23s ease-in-out infinite; }
  .glass-bg .b3 { width: 440px; height: 440px; bottom: -140px; left: 12%; background: #9dffcd; animation: blobDrift3 21s ease-in-out infinite; }
  .glass-bg .b4 { width: 400px; height: 400px; bottom: -150px; right: 8%; background: #ffd591; animation: blobDrift1 26s ease-in-out infinite reverse; }
  @keyframes blobDrift1 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px, 35px) scale(1.12); } }
  @keyframes blobDrift2 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 30px) scale(0.92); } }
  @keyframes blobDrift3 { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(35px, -45px) scale(1.1); } }

  :root[data-theme="glass"] body { background: transparent; }
  :root[data-theme="glass"] header.site-header,
  :root[data-theme="glass"] footer.site-footer { border-color: rgba(255,255,255,0.5); }

  :root[data-theme="glass"] .mac-window {
    position: relative;
    background: rgba(255,255,255,0.38);
    backdrop-filter: blur(34px) saturate(220%);
    -webkit-backdrop-filter: blur(34px) saturate(220%);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 28px;
    box-shadow:
      0 25px 60px rgba(31,38,135,0.22),
      0 1px 0 rgba(255,255,255,0.9) inset;
  }
  :root[data-theme="glass"] .mac-window::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.05) 35%, rgba(255,255,255,0.55) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  :root[data-theme="glass"] .mac-titlebar {
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    border-bottom: 1px solid rgba(255,255,255,0.45);
  }
  :root[data-theme="glass"] .mac-body { background: transparent; }
  :root[data-theme="glass"] .mac-dots span {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.7) inset, 0 2px 6px rgba(0,0,0,0.18);
  }
  :root[data-theme="glass"] .btn {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.32);
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.65);
    color: #1c1c1e;
    box-shadow: 0 8px 22px rgba(31,38,135,0.14), 0 1px 0 rgba(255,255,255,0.8) inset;
  }
  :root[data-theme="glass"] .btn::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 55%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0));
    pointer-events: none;
  }
  :root[data-theme="glass"] .btn.is-active,
  :root[data-theme="glass"] .btn-cta {
    background: linear-gradient(135deg, rgba(120,170,255,0.85), rgba(200,130,255,0.75));
    border: 1px solid rgba(255,255,255,0.8);
    color: #fff;
    text-shadow: none;
  }
  :root[data-theme="glass"] .preview-box,
  :root[data-theme="glass"] .product-hero {
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 22px;
  }
  :root[data-theme="glass"] .graph-top { background: rgba(70,70,70,0.5); backdrop-filter: blur(14px); }
  :root[data-theme="glass"] .theme-switcher {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.6);
  }
  :root[data-theme="glass"] .easter-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.6);
  }

  /* =========================================================
     ТЕМА: macOS FLAT (разблокируется пасхалкой)
     ========================================================= */
  :root[data-theme="flat"] body { background: #f5f5f7; }
  :root[data-theme="flat"] header.site-header,
  :root[data-theme="flat"] footer.site-footer { border-color: #e2e2e4; }
  :root[data-theme="flat"] .mac-window {
    background: #ffffff;
    border: 1px solid #d9d9dc;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.06);
  }
  :root[data-theme="flat"] .mac-titlebar {
    background: #ececee;
    border-bottom: 1px solid #dcdcdf;
  }
  :root[data-theme="flat"] .mac-dots span { box-shadow: none; }
  :root[data-theme="flat"] .mac-dots span::after { display: none; }
  :root[data-theme="flat"] .mac-body { background: #ffffff; }
  :root[data-theme="flat"] .btn {
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    box-shadow: none;
    color: #1d1d1f;
  }
  :root[data-theme="flat"] .btn.is-active,
  :root[data-theme="flat"] .btn-cta {
    background: #0a84ff;
    border-color: #0a84ff;
    color: #fff;
    text-shadow: none;
  }
  :root[data-theme="flat"] .preview-box,
  :root[data-theme="flat"] .product-hero {
    border: 1px solid #d2d2d7;
    border-radius: 12px;
  }
  :root[data-theme="flat"] .graph-top { background: #58585c; }

  /* ---------- Переключатель тем (появляется после пасхалки) ---------- */
  .theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.94);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.2,.8,.2,1), visibility 0.35s;
  }
  .theme-switcher.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .theme-switcher button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 7px 13px;
    border-radius: 999px;
    color: #333;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  }
  .theme-switcher button:hover { transform: translateY(-1px); }
  .theme-switcher button.active { background: #111111; color: #fff; }

  /* ---------- Пасхалка ---------- */
  .easter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
  }
  .easter-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .easter-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px 26px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45);
    transform: scale(0.88) translateY(16px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.4s ease;
  }
  .easter-overlay.visible .easter-card { transform: scale(1) translateY(0); opacity: 1; }
  .easter-card h2 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
    background: linear-gradient(90deg, #ff5f57, #febc2e, #28c840, #2f8fe6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .easter-card img {
    width: 100%;
    border-radius: 18px;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .easter-hint {
    margin: 16px 0 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #666;
  }
  .easter-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 6px;
  }
  .easter-close:hover { color: #333; }

  @media (prefers-reduced-motion: reduce) {
    .page.active,
    .logo-link.pulse img,
    .glass-bg .blob {
      animation: none !important;
    }
    .btn,
    .theme-switcher,
    .easter-card,
    .easter-overlay,
    .logo-link img {
      transition: none !important;
    }
  }
