:root { 
      color-scheme: dark; 
      --cream: #f8f6f2; 
      --ink: #0a0a0a; 
      --accent: #ffffff; 
      --glass: rgba(255, 255, 255, 0.03);
      --border: rgba(255, 255, 255, 0.1);
      --text-dim: rgba(255, 255, 255, 0.6);
    }
    * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: #050505;
      color: var(--cream);
      overflow-y: auto;
      overflow-x: hidden;
      font-family: 'Inter', system-ui, sans-serif;
    }
    
    #bgWrap { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 1; transition: opacity 0.15s linear; }
    #bgCanvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
    #heroOverlay { position: fixed; inset: 0; z-index: 2; pointer-events: none;
      background: linear-gradient(
        to bottom,
        rgba(5,5,5,0.45) 0%,
        rgba(5,5,5,0.25) 40%,
        rgba(5,5,5,0.45) 100%
      );
    }
    
    #postFrameBackdrop {
      position: fixed; inset: 0; z-index: 25; pointer-events: none; opacity: 0; transition: opacity 0.15s linear;
      background: 
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%),
        #050505;
    }

    .noise-overlay {
      position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0.02;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    #loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #050505; }
    #loaderWrap { width: 180px; height: 1px; background: rgba(255,255,255,.1); overflow: hidden; }
    #loader-bar { height: 100%; width: 0%; background: #fff; transition: width .2s linear; }

    #overlay { position: fixed; inset: 0; z-index: 20; pointer-events: none; padding: 24px; display: flex; flex-direction: column; align-items: center; }
    
    .nav-pill { 
      pointer-events: auto; 
      position: fixed; 
      top: 32px; 
      left: 50%; 
      transform: translateX(-50%); 
      z-index: 40; 
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      gap: 48px; 
      padding: 12px 36px; 
      border-radius: 100px; 
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .nav-pill.nav-hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateX(-50%) translateY(-16px);
    }
    .brand { font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.25em; font-size: 13px; text-transform: uppercase; color: #fff; }
    .links { display: flex; gap: 20px; align-items: center; }
    .links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s; white-space: nowrap; display: inline-flex; align-items: center; height: 28px; }
    .links a:hover { color: #fff; }

    .hero { margin-top: 18vh; text-align: center; width: 100%; max-width: 900px; pointer-events: auto; padding: 0 20px; margin-left: auto; margin-right: auto; }
    h1 {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: clamp(26px, 2.5vw, 32px);
      font-weight: 400;
      line-height: 1.5;
      margin-bottom: 20px;
      color: rgba(255, 255, 255, 0.9);
      text-wrap: pretty;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      text-shadow: 0 10px 30px rgba(0,0,0,0.5);
      letter-spacing: -0.01em;
    }
    h1 .hero-subtitle {
      display: block;
      font-size: 0.75em;
      color: rgba(255, 255, 255, 0.7);
      margin-top: 40px;
      font-weight: 400;
      letter-spacing: -0.005em;
    }
    .subhead {
      font-size: clamp(13px, 1.0vw, 16px);
      color: rgba(255, 255, 255, 0.7);
      max-width: 800px;
      margin: 0 auto 40px;
      line-height: 1.65;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-weight: 500;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

    .cta { 
      display: inline-flex; 
      padding: 20px 48px; 
      border: 1px solid rgba(255,255,255,0.3); 
      color: #fff; 
      background: rgba(255,255,255,0.05);
      text-decoration: none; 
      font-weight: 600; 
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      border-radius: 2px;
      transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      opacity: 0;
      animation: fadeInUp 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      backdrop-filter: blur(10px);
    }
    .cta:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-2px); }

    #pageRoot { position: relative; z-index: 30; pointer-events: auto; margin-top: 100vh; }
    #pageRoot::before {
      content: '';
      position: absolute;
      top: -80px;
      left: 0;
      right: 0;
      height: 120px;
      background: linear-gradient(to bottom, rgba(5,5,5,0) 0%, rgba(5,5,5,1) 100%);
      z-index: 1;
      pointer-events: none;
    }
    
    section {
      min-height: 80vh;
      padding: 120px 10vw;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: rgba(5, 5, 5, 0.55);
      position: relative;
    }

    /* Первые две секции — такой же полупрозрачный фон, как у остальных секций */
    section:first-of-type,
    section:nth-of-type(2) {
      background: rgba(5, 5, 5, 0.55);
    }

    /* Плавный переход от Hero к первой секции */
    section:first-of-type::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 220px;
      background: linear-gradient(to bottom, rgba(5,5,5,1) 0%, transparent 100%);
      pointer-events: none;
      z-index: 1;
    }

    .content-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 80px;
      align-items: start;
    }

    .card {
      background: rgba(12, 12, 12, 0.82);
      border: 1px solid var(--border);
      padding: 48px;
      border-radius: 4px;
      transition: all 0.4s ease;
      position: relative;
    }
    .card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
    .card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); margin-bottom: 24px; display: block; font-weight: 700; }
    
    section h2 { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(34px, 4vw, 54px); font-weight: 500; margin: 0 0 32px; color: var(--cream); line-height: 1.1; }
    section p { font-size: 16px; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; font-weight: 400; }
    
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 40px;
      align-items: stretch;
    }
    .bento-item { grid-column: span 1; display: flex; flex-direction: column; }
    .partner-tags-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 32px; }
    .partner-tags-list li { border: 1px solid var(--border); background: rgba(255,255,255,0.04); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.05em; }
    .partner-photo-bio { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
    .partner-photo-bio p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }
    .partner-expertise-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
    .partner-expertise-list li { font-size: 14px; color: rgba(255,255,255,0.7); padding-left: 16px; position: relative; line-height: 1.5; }
    .partner-expertise-list li::before { content: '·'; position: absolute; left: 0; color: rgba(255,255,255,0.4); }
    .bento-item h3 { font-family: 'Inter', sans-serif; font-size: 18px; margin-bottom: 12px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
    .bento-item p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }

    .partner-profile {
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 60px;
      align-items: start;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      padding: 60px;
      border-radius: 4px;
    }
    .partner-info h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 38px; margin: 0 0 8px; font-weight: 500; }
    .partner-role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); margin-bottom: 32px; display: block; }
    .partner-bio { font-size: 15px; color: var(--text-dim); line-height: 1.8; grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--border); }
    .partner-bio ul { list-style: none; padding: 0; margin: 24px 0 0; }
    .partner-bio li { margin-bottom: 12px; padding-left: 20px; position: relative; }
    .partner-bio li::before { content: "—"; position: absolute; left: 0; color: rgba(255,255,255,0.3); }

    .metrics-strip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 48px 10vw;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      position: relative;
      z-index: 30;
      background: rgba(255,255,255,0.02);
    }
    .metric-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      flex: 1;
    }
    .metric-num {
      font-size: clamp(28px, 3vw, 42px);
      font-weight: 600;
      color: #fff;
      letter-spacing: -0.02em;
      line-height: 1;
    }
    .metric-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: rgba(255,255,255,0.4);
      font-weight: 500;
    }
    .metric-divider {
      width: 1px;
      height: 48px;
      background: var(--border);
      flex-shrink: 0;
    }
    .card-cta {
      display: inline-block;
      margin-top: 20px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(255,255,255,0.4);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    .card:hover .card-cta { color: rgba(255,255,255,0.9); }

    footer { padding: 80px 10vw; border-top: 1px solid var(--border); text-align: left; color: rgba(255,255,255,0.3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; display: flex; justify-content: space-between; align-items: center; }

    @media (max-width: 1024px) {
      .partner-profile { grid-template-columns: 260px 1fr; gap: 40px; padding: 40px; }
      .bento-grid { grid-template-columns: repeat(2, 1fr); }
    }

    .hamburger { display: none; }
    .mobile-menu { display: none; }

    @media (max-width: 768px) {
      html, body { overflow-x: hidden; max-width: 100vw; }
      #bgWrap { width: 100vw !important; }

      .nav-pill {
        width: calc(100% - 32px);
        gap: 0;
        padding: 10px 16px;
        justify-content: space-between;
      }
      .links { display: none; }
      .lang-switcher { margin-left: 0; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.15); }

      .content-grid { grid-template-columns: 1fr; gap: 40px; }
      .bento-grid { grid-template-columns: 1fr !important; }

      section {
        padding: 60px 20px;
        min-height: auto;
        background: rgba(5, 5, 5, 0.97) !important;
      }

      .hero { margin-top: 20vh; padding: 0 16px; }
      h1 { font-size: clamp(24px, 7vw, 32px); line-height: 1.5; margin-bottom: 24px; color: rgba(255,255,255,0.9); }
      h1 .hero-subtitle { font-size: 0.75em; color: rgba(255,255,255,0.7); margin-top: 24px; }
      .subhead { font-size: 12px; letter-spacing: 0.08em; }

      .partner-profile { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; }
      .partner-bio { grid-column: 1; }
      .partner-info h3 { font-size: 28px; }
      .partner-profile > div:first-child img { max-height: 320px; object-fit: cover; object-position: center top; }

      .card { padding: 28px 20px; background: rgba(12, 12, 12, 0.97) !important; }
      .cta { padding: 14px 28px; font-size: 11px; }

      footer { padding: 40px 20px; flex-direction: column; gap: 12px; text-align: center; }

      /* Hamburger button */
      .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 4px;
        flex-shrink: 0;
      }
      .hamburger span {
        display: block;
        height: 1.5px;
        width: 100%;
        background: rgba(255,255,255,0.8);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
        transform-origin: center;
      }
      .hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
      .hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
      .hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

      /* Mobile nav overlay */
      .mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(5,5,5,0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 40px 20px;
      }
      .mobile-menu.is-open { display: flex; }
      .mobile-menu a {
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 0.2s;
      }
      .mobile-menu a:hover { color: #fff; }
      .mobile-menu .mobile-lang {
        display: flex;
        gap: 16px;
        margin-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 32px;
        width: 100%;
        justify-content: center;
      }
      .mobile-menu .mobile-lang button {
        background: none;
        border: none;
        color: rgba(255,255,255,0.4);
        font-size: 12px;
        letter-spacing: 0.12em;
        font-family: 'Inter', sans-serif;
        text-transform: uppercase;
        cursor: pointer;
        padding: 6px 10px;
      }
      .mobile-menu .mobile-lang button.active { color: #fff; }
    }