  :root{
    --bg: #FAFAF6;
    --paper: #FFFFFF;
    --ink: #0D0D10;
    --muted: #65656b;
    --line: #0D0D10;
    --blue: #2B4DFF;
    --lime: #C8FF3D;
    --red: #FF4433;
    --shadow: 7px 7px 0 var(--ink);
    --shadow-sm: 4px 4px 0 var(--ink);
  }
  *{ margin:0; padding:0; box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:'Manrope', sans-serif;
    overflow-x:hidden;
    cursor:auto;
  }
  ::selection{ background:var(--ink); color:var(--lime); }
  h1,h2,h3,.display{
    font-family:'Unbounded', sans-serif;
    font-weight:700;
    letter-spacing:-0.03em;
    line-height:0.98;
  }
  .mono{ font-family:'JetBrains Mono', monospace; }

  /* Custom cursor — terminal caret, true color-inversion via blend mode */
  .cursor{
    position:fixed; top:0; left:0;
    width:3px; height:22px;
    background:#fff;
    mix-blend-mode:difference;
    pointer-events:none;
    z-index:9999;
    transform:translate(-50%,-50%);
    animation:blink 1s step-end infinite;
  }
  .cursor-ring{
    position:fixed; top:0; left:0;
    width:38px; height:38px;
    border:1.5px solid #fff;
    background:transparent;
    mix-blend-mode:difference;
    pointer-events:none;
    z-index:9998;
    transform:translate(-50%,-50%) rotate(45deg);
    transition:width .25s, height .25s, border-color .25s, background .25s;
  }
  @keyframes blink{ 50%{ opacity:0; } }
  @media (hover:none){ .cursor,.cursor-ring{ display:none; } body{ cursor:auto; } }

  .wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(20px, 5vw, 64px); }
  section{ position:relative; }

  /* Nav */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:20px 0;
    background:rgba(250,250,246,0.88);
    backdrop-filter:blur(6px);
    border-bottom:1.5px solid var(--line);
  }
  nav{ display:flex; justify-content:space-between; align-items:center; }
  .logo{ font-family:'Unbounded'; font-weight:800; font-size:20px; letter-spacing:-0.01em; }
  .logo span{ color:var(--blue); }
  .nav-links{ display:flex; gap:8px; list-style:none; }
  .nav-links a{
    color:var(--ink); text-decoration:none; font-size:13px; font-weight:600;
    font-family:'JetBrains Mono'; padding:8px 14px;
    border:1.5px solid transparent; transition:border-color .2s, background .2s;
  }
  .nav-links a:hover{ border-color:var(--ink); background:var(--lime); }
  .nav-links a::before{ content:'/'; color:var(--blue); margin-right:2px; }
  .nav-right{ display:flex; align-items:center; gap:14px; }
  @media (max-width:768px){ .nav-links{ display:none; } }

  /* Hero */
  .hero{
    min-height:100vh;
    display:flex; flex-direction:column; justify-content:center;
    padding-top:140px; padding-bottom:80px;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:12px; color:var(--ink); font-weight:600;
    font-family:'JetBrains Mono';
    text-transform:uppercase; letter-spacing:0.08em;
    margin-bottom:30px;
    border:1.5px solid var(--ink); padding:7px 14px;
    background:var(--lime);
  }
  .eyebrow::before{
    content:''; width:7px; height:7px; background:var(--ink);
  }
  .hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:50px; align-items:start; }
  @media (max-width:860px){
    .hero-grid{ grid-template-columns:1fr; gap:40px; }
  }
  .editor-wrap{ position:relative; }

  /* Client review strip — sits flush on top of the editor window, same frame language */
  .hero-review{
    background:var(--ink); color:var(--bg); border:1.5px solid var(--ink);
    padding:22px 22px 20px;
    display:flex; flex-direction:column; gap:14px;
  }
  .hero-review .rev-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .hero-review .rev-stars{ display:flex; gap:2px; flex-shrink:0; }
  .hero-review .rev-stars svg{ width:14px; height:14px; }
  .hero-review .rev-stars path{ fill:var(--lime); stroke:var(--lime); stroke-width:1px; }
  .hero-review .rev-src{ font-family:'JetBrains Mono'; font-size:10px; color:#8a8a90; text-transform:uppercase; letter-spacing:0.06em; }
  .hero-review .rev-slides{ position:relative; overflow:hidden; transition:height .5s cubic-bezier(.65,0,.35,1); }
  .hero-review .rev-slide{
    position:absolute; top:0; left:0; right:0; opacity:0; pointer-events:none;
    transition:opacity .4s ease, transform .4s ease;
    transform:translateY(8px);
    display:flex; flex-direction:column; gap:16px;
  }
  .hero-review .rev-slide.active{ opacity:1; pointer-events:auto; transform:translateY(0); transition-delay:.1s; }
  .hero-review .rev-slide.leaving{ transform:translateY(-8px); transition-delay:0s; }
  .hero-review .rev-quote{
    font-family:'Manrope'; font-size:14px; line-height:1.6; font-weight:600;
  }
  .hero-review .rev-bottom{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .hero-review .rev-foot{ display:flex; align-items:center; gap:10px; }
  .hero-review .rev-avatar{
    width:32px; height:32px; border:1.5px solid var(--bg); flex-shrink:0;
    background:repeating-linear-gradient(135deg, #2a2a30, #2a2a30 6px, #1c1c20 6px 12px);
  }
  .hero-review .rev-name{ font-family:'JetBrains Mono'; font-size:10.5px; color:#b8b8be; line-height:1.35; }
  .hero-review .rev-name b{ display:block; color:var(--bg); font-size:12px; font-weight:700; }
  .hero-review .rev-proof{
    display:inline-flex; align-items:center; gap:6px; flex-shrink:0;
    background:transparent; border:1.5px solid #44444c; color:var(--bg);
    font-family:'JetBrains Mono'; font-size:11px; font-weight:600;
    padding:8px 12px; transition:border-color .2s, background .2s, color .2s;
  }
  .hero-review .rev-proof:hover{ border-color:var(--lime); background:var(--lime); color:var(--ink); }
  .hero-review .rev-foot-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:2px; }
  .hero-review .rev-dots{ display:flex; gap:6px; }
  .hero-review .rev-dot{
    width:6px; height:6px; border:1.5px solid var(--bg); background:transparent; padding:0;
    transition:background .2s; border-radius:50%;
  }
  .hero-review .rev-dot.active{ background:var(--lime); border-color:var(--lime); }
  @media (max-width:640px){
    .hero-review{ padding:20px 18px; }
    .hero-review .rev-quote{ font-size:13.5px; }
  }
  .hero h1{
    font-size:clamp(32px, 4.6vw, 60px);
  }
  .hero h1 .accent{ color:var(--blue); }
  .hero h1 .strike{ position:relative; color:var(--muted); -webkit-text-stroke:1px var(--ink); color:transparent; }
  .hero-sub{
    margin-top:28px; max-width:480px;
    font-size:17px; color:var(--muted); line-height:1.6;
  }
  .hero-cta{
    margin-top:40px; display:flex; gap:16px; align-items:center; flex-wrap:wrap;
  }
  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:16px 28px;
    font-weight:700; font-size:14px; font-family:'JetBrains Mono';
    text-decoration:none;
    background:var(--ink); color:var(--bg);
    border:1.5px solid var(--ink);
    box-shadow:var(--shadow-sm);
    transition:transform .2s, box-shadow .2s;
    will-change:transform;
  }
  .btn:hover{ transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
  .btn.ghost{
    background:var(--paper); color:var(--ink);
  }
  .btn.ghost:hover{ background:var(--lime); }

  /* Шапка в стиле редактора — переиспользуется в .terminal ниже */
  .editor-bar{
    display:flex; align-items:center; gap:8px;
    padding:12px 16px; border-bottom:1.5px solid var(--ink);
    background:var(--bg);
  }
  .editor-dot{ width:10px; height:10px; border:1.5px solid var(--ink); }
  .editor-dot:nth-child(1){ background:var(--red); }
  .editor-dot:nth-child(2){ background:var(--lime); }
  .editor-dot:nth-child(3){ background:var(--blue); }
  .editor-file{ margin-left:10px; font-family:'JetBrains Mono'; font-size:12px; color:var(--muted); }
  .typecursor{ display:inline-block; width:7px; height:14px; background:var(--ink); vertical-align:middle; animation:blink 1s step-end infinite; }

  /* Marquee — terminal status bar */
  .marquee-wrap{
    border-top:1.5px solid var(--line); border-bottom:1.5px solid var(--line);
    padding:16px 0; margin-top:90px;
    overflow:hidden; white-space:nowrap;
    background:var(--ink); color:var(--bg);
  }
  .marquee{
    display:inline-flex; gap:40px; animation:scroll 24s linear infinite;
  }
  .marquee span{
    font-family:'JetBrains Mono'; font-weight:500; font-size:14px;
    display:flex; align-items:center; gap:40px;
  }
  .marquee span em{ font-style:normal; color:var(--lime); }
  .marquee span::after{ content:'//'; color:var(--blue); }
  @keyframes scroll{ to{ transform:translateX(-50%); } }

  /* About — full-stack designer/developer */
  .about{ padding-top:130px; padding-bottom:100px; position:relative; }
  .about-grid{ display:grid; grid-template-columns:0.92fr 1.08fr; gap:56px; align-items:center; }
  @media (max-width:900px){ .about-grid{ grid-template-columns:1fr; gap:60px; } }

  .about-text h2{ font-size:clamp(28px, 3.4vw, 42px); margin-bottom:20px; }
  .about-text p{ color:var(--muted); font-size:16px; line-height:1.7; max-width:520px; }
  .about-text p + p{ margin-top:14px; }

  .about-stats{ display:grid; grid-template-columns:repeat(3,auto); gap:0; margin-top:42px; border:1.5px solid var(--ink); width:fit-content; }
  .stat{ padding:18px 26px; border-right:1.5px solid var(--ink); }
  .stat:last-child{ border-right:none; }
  .stat-num{ font-family:'Unbounded'; font-weight:800; font-size:30px; display:flex; align-items:baseline; gap:2px; }
  .stat-num .plus{ color:var(--blue); font-size:20px; }
  .stat-label{ font-family:'JetBrains Mono'; font-size:11px; color:var(--muted); margin-top:4px; text-transform:uppercase; letter-spacing:0.04em; }
  @media (max-width:480px){ .about-stats{ grid-template-columns:1fr; width:100%; } .stat{ border-right:none; border-bottom:1.5px solid var(--ink); } .stat:last-child{ border-bottom:none; } }

  /* Tilt ID card */
  .id-card-wrap{ perspective:1400px; }
  .id-card{
    position:relative; background:var(--paper); border:1.5px solid var(--ink); box-shadow:var(--shadow);
    transform-style:preserve-3d; will-change:transform; padding:26px;
  }
  .id-top{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px; }
  .id-top .editor-file{ margin-left:0; }
  .id-status{ display:inline-flex; align-items:center; gap:6px; font-family:'JetBrains Mono'; font-size:11px; color:var(--muted); }
  .id-status .dot{ width:7px; height:7px; background:var(--lime); border:1.5px solid var(--ink); }
  .id-photo{
    aspect-ratio:1/1; border:1.5px solid var(--ink); background:repeating-linear-gradient(135deg, #f0f0eb, #f0f0eb 10px, #e7e7e1 10px, #e7e7e1 20px);
    display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
    transform:translateZ(40px);
  }
  .id-photo span{ font-family:'JetBrains Mono'; font-size:13px; color:var(--muted); border:1.5px dashed var(--muted); padding:8px 14px; background:var(--paper); }
  .id-name{ margin-top:20px; transform:translateZ(30px); }
  .id-name h3{ font-family:'Unbounded'; font-size:21px; font-weight:700; }
  .id-name p{ font-family:'JetBrains Mono'; font-size:12px; color:var(--blue); margin-top:4px; }
  .id-skills{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; transform:translateZ(22px); }
  .skill-chip{
    font-family:'JetBrains Mono'; font-size:11px; font-weight:600; padding:6px 11px;
    border:1.5px solid var(--ink); background:var(--bg); transition:transform .2s, background .2s, box-shadow .2s;
  }
  .skill-chip:hover{ background:var(--lime); transform:translate(-2px,-2px); box-shadow:3px 3px 0 var(--ink); }
  .id-badge{
    position:absolute; top:-20px; right:-20px; width:84px; height:84px; transform:translateZ(60px);
  }
  .id-badge svg{ width:100%; height:100%; animation:spin 16s linear infinite; }
  .id-badge .pip{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:26px; height:26px; background:var(--blue); border:1.5px solid var(--ink); border-radius:50%;
  }

  /* Section heading */
  .section-head{ margin-bottom:56px; max-width:640px; }
  .tag{
    font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em;
    color:var(--ink); margin-bottom:14px; display:inline-block;
    font-family:'JetBrains Mono'; border:1.5px solid var(--ink); padding:5px 12px;
  }
  .section-head h2{ font-size:clamp(28px, 3.6vw, 44px); }
  .section-head p{ margin-top:18px; color:var(--muted); font-size:16px; line-height:1.6; }

  /* Projects — file browser cards */
  .projects{ padding-top:140px; padding-bottom:140px; }
  .project-grid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
  .project-card{
    background:var(--paper); border:1.5px solid var(--ink); box-shadow:var(--shadow-sm);
    position:relative; transition:transform .2s, box-shadow .2s;
  }
  .project-card:hover{ transform:translate(-3px,-3px); box-shadow:9px 9px 0 var(--ink); }
  .project-top{
    display:flex; justify-content:space-between; align-items:center;
    padding:12px 18px; border-bottom:1.5px solid var(--ink);
    font-family:'JetBrains Mono'; font-size:12px; color:var(--muted);
  }
  .project-top .status{ width:8px; height:8px; background:var(--lime); border:1.5px solid var(--ink); }
  .project-visual{ aspect-ratio:16/9; position:relative; overflow:hidden; border-bottom:1.5px solid var(--ink); }
  .project-visual .grad-1{ background:linear-gradient(135deg, #2B4DFF, #C8FF3D); }
  .project-visual .grad-2{ background:linear-gradient(135deg, #FF4433, #2B4DFF); }
  .project-visual .grad-3{ background:linear-gradient(135deg, #C8FF3D, #0D0D10); }
  .project-visual .grad-4{ background:linear-gradient(135deg, #2B4DFF, #FF4433); }
  .project-visual > div{ width:100%; height:100%; }
  .project-visual img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
  .project-card:hover .project-visual img{ transform:scale(1.04); }
  .project-body{ padding:24px; }
  .project-card h3{ font-size:19px; margin-bottom:10px; font-weight:700; }
  .project-card p{ color:var(--muted); line-height:1.6; margin-bottom:18px; font-size:14px; }
  .project-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
  .project-tags span{
    font-size:11px; font-family:'JetBrains Mono'; padding:5px 10px; border:1px solid var(--ink); color:var(--ink);
  }
  .project-link{
    color:var(--ink); text-decoration:none; font-weight:700; font-size:13px; font-family:'JetBrains Mono';
    display:inline-flex; align-items:center; gap:8px;
  }
  .project-link svg{ transition:transform .3s; }
  .project-link:hover svg{ transform:translate(3px,-3px); }
  @media (max-width:860px){ .project-grid{ grid-template-columns:1fr; } }

  /* Process — animated build terminal + 3D window stack */
  .process{ padding:120px 0; background:var(--ink); color:var(--bg); overflow:hidden; }
  .process .tag{ color:var(--lime); border-color:var(--lime); }
  .process .section-head p{ color:#a8a8ad; }
  .process-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:center; }

  .terminal{ background:#141417; border:1.5px solid #2c2c31; }
  .terminal .editor-bar{ background:#1b1b1f; border-bottom:1.5px solid #2c2c31; }
  .terminal .editor-file{ color:#8a8a90; }
  .term-body{ padding:22px 22px 26px; font-family:'JetBrains Mono'; font-size:13.5px; }
  .term-line{ margin-bottom:18px; opacity:0; }
  .term-line .prompt{ color:var(--lime); margin-right:8px; }
  .term-line .cmd{ color:var(--bg); }
  .term-out{
    margin:8px 0 0 20px; padding:10px 14px; color:#b9b9bf;
    border-left:1.5px solid var(--blue); font-size:12.5px; line-height:1.55;
    font-family:'Manrope';
  }
  .progress-wrap{ display:flex; align-items:center; gap:14px; margin-top:8px; }
  .progress-bar{ flex:1; height:8px; background:#2c2c31; position:relative; overflow:hidden; }
  .progress-fill{ position:absolute; left:0; top:0; bottom:0; width:0%; background:var(--lime); }
  .progress-pct{ font-family:'JetBrains Mono'; font-size:13px; color:var(--lime); min-width:42px; }

  .stack3d{ perspective:1300px; height:380px; display:flex; align-items:center; justify-content:center; }
  .stack3d-inner{ position:relative; width:230px; height:160px; transform-style:preserve-3d; will-change:transform; }
  .w-layer{
    position:absolute; inset:0; background:var(--paper); border:1.5px solid var(--ink);
    box-shadow:18px 18px 0 rgba(0,0,0,0.35);
    transition:transform 1.1s cubic-bezier(.65,0,.35,1), opacity 1.1s ease;
    will-change:transform;
  }
  .w-layer .wbar{ height:20px; border-bottom:1.5px solid var(--ink); display:flex; align-items:center; gap:5px; padding:0 9px; }
  .w-layer .wdot{ width:6px; height:6px; border:1px solid var(--ink); }
  .w-layer .wbody{ height:calc(100% - 20px); }
  /* Слот = позиция в стопке (зад/середина/перед). Класс назначается из JS
     и переключается циклически — анимирует чистый CSS-transition,
     без зависимости от GSAP, так переключение карточек не отваливается. */
  .slot-back{ transform:translateZ(-70px) translate(-26px,18px) rotate(-7deg) scale(0.84); opacity:0.5; z-index:1; }
  .slot-mid{  transform:translateZ(0px)   translate(8px,-6px)  rotate(2deg)  scale(0.98); opacity:0.85; z-index:2; }
  .slot-front{transform:translateZ(70px)  translate(26px,-22px) rotate(8deg) scale(1.1);  opacity:1;    z-index:3; }
  .w1 .wdot{ background:var(--red); }
  .w1 .wbody{ background:var(--lime); }
  .w2 .wdot{ background:var(--lime); }
  .w2 .wbody{ background:linear-gradient(135deg,#2B4DFF,#C8FF3D); }
  .w3 .wdot{ background:var(--blue); }
  .w3 .wbody{ background:linear-gradient(135deg,#FF4433,#2B4DFF); }
  .wlabel{
    height:100%; display:flex; align-items:center; justify-content:center; text-align:center;
    font-family:'JetBrains Mono'; font-size:12px; font-weight:700; padding:0 14px; line-height:1.4;
  }
  .w1 .wlabel{ color:var(--ink); }
  .w2 .wlabel, .w3 .wlabel{ color:#fff; }
  @media (max-width:900px){
    .process-grid{ grid-template-columns:1fr; }
    .stack3d{ height:auto; perspective:none; }
    .stack3d-inner{ display:flex; flex-direction:column; gap:14px; width:100%; height:auto; transform:none !important; }
    .w-layer{ position:static; transform:none !important; box-shadow:var(--shadow-sm); transition:none; }
    .w-layer .wbody{ height:64px; }
  }

  /* CTA */
  .cta-section{ padding-top:160px; padding-bottom:160px; }
  .cta-box{
    background:var(--paper); border:1.5px solid var(--ink); box-shadow:var(--shadow);
    padding:80px 56px; text-align:center; position:relative; overflow:hidden;
  }
  @media (max-width:600px){
    .cta-box{ padding:56px 24px; }
    .cta-badge{ display:none; }
  }
  .cta-symbols{ position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
  .cta-symbols span{
    position:absolute; font-family:'JetBrains Mono'; font-weight:700; color:var(--ink);
    opacity:0.05; font-size:42px; user-select:none;
  }
  .cta-box > *{ position:relative; z-index:1; }
  .cta-badge{
    position:absolute; top:-26px; right:-26px; width:108px; height:108px;
    z-index:2;
  }
  .cta-badge svg{ width:100%; height:100%; animation:spin 14s linear infinite; }
  .cta-badge .pip{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:34px; height:34px; background:var(--lime); border:1.5px solid var(--ink); border-radius:50%;
  }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  .cta-prompt{
    display:inline-flex; align-items:center; gap:2px; font-family:'JetBrains Mono'; font-size:13px;
    color:var(--muted); margin-bottom:22px; border:1.5px solid var(--ink); padding:8px 14px; background:var(--bg);
  }
  .cta-prompt .p1{ color:var(--blue); margin-right:6px; }
  .cta-prompt .typecursor{ background:var(--ink); }
  .cta-section h2{ font-size:clamp(30px,5vw,58px); max-width:780px; margin:0 auto; }
  .cta-section h2 .accent{ color:var(--blue); position:relative; display:inline-block; }
  .cta-section h2 .accent:hover{ animation:glitch 0.35s steps(2) infinite; }
  @keyframes glitch{
    0%{ text-shadow:-2px 0 var(--red), 2px 0 var(--lime); transform:translate(0,0); }
    50%{ text-shadow:2px 0 var(--red), -2px 0 var(--lime); transform:translate(-1px,1px); }
    100%{ text-shadow:-2px 0 var(--red), 2px 0 var(--lime); transform:translate(0,0); }
  }
  .cta-section p{ color:var(--muted); margin:24px auto 40px; max-width:440px; font-size:16px; }

  footer{
    border-top:1.5px solid var(--line); padding-top:36px; padding-bottom:36px;
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px;
    font-family:'JetBrains Mono'; font-size:13px;
  }
  footer .f-left{ color:var(--muted); }
  footer .f-links{ display:flex; gap:24px; list-style:none; }
  footer .f-links a{ color:var(--ink); text-decoration:none; transition:color .2s; }
  footer .f-links a:hover{ color:var(--blue); }

  /* Contact popup */
  .modal-overlay{
    position:fixed; inset:0; background:rgba(13,13,16,0.55); z-index:200;
    display:flex; align-items:center; justify-content:center; padding:24px;
    opacity:0; pointer-events:none; transition:opacity .25s;
  }
  .modal-overlay.open{ opacity:1; pointer-events:auto; }
  .modal-box{
    background:var(--paper); border:1.5px solid var(--ink); box-shadow:var(--shadow);
    width:100%; max-width:420px; padding:0; transform:translateY(16px) scale(0.98); transition:transform .25s;
  }
  .modal-overlay.open .modal-box{ transform:translateY(0) scale(1); }
  .modal-top{
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 16px; border-bottom:1.5px solid var(--ink);
  }
  .modal-top span{ font-family:'JetBrains Mono'; font-size:12px; color:var(--muted); }
  .modal-close{
    width:26px; height:26px; border:1.5px solid var(--ink); background:var(--paper);
    display:flex; align-items:center; justify-content:center; font-family:'JetBrains Mono'; font-size:14px;
  }
  .modal-close:hover{ background:var(--red); color:#fff; }
  .modal-body{ padding:32px 28px; }
  .modal-body h3{ font-size:24px; margin-bottom:10px; }
  .modal-body > p{ color:var(--muted); font-size:14px; margin-bottom:24px; line-height:1.55; }
  .contact-row{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    border:1.5px solid var(--ink); padding:14px 16px; margin-bottom:12px; text-decoration:none; color:var(--ink);
    transition:transform .15s, box-shadow .15s;
  }
  .contact-row:hover{ transform:translate(-2px,-2px); box-shadow:4px 4px 0 var(--ink); }
  .contact-row .c-label{ font-family:'JetBrains Mono'; font-size:11px; color:var(--muted); display:block; margin-bottom:3px; }
  .contact-row .c-value{ font-weight:700; font-size:15px; }
  .contact-row .c-go{ font-family:'JetBrains Mono'; color:var(--blue); }
  .modal-note{
    margin-top:18px; font-family:'JetBrains Mono'; font-size:12px; color:var(--muted);
    display:flex; align-items:center; gap:8px;
  }
  .modal-note::before{ content:''; width:7px; height:7px; background:var(--lime); border:1px solid var(--ink); }

  [data-reveal]{ opacity:0; transform:translateY(36px); }

  /* Доступность: видимый фокус для клавиатурной навигации */
  a:focus-visible, button:focus-visible{
    outline:2.5px solid var(--blue); outline-offset:3px;
  }

  /* Курсор по умолчанию виден; кастомный курсор включается JS-классом
     только после того, как реально зафиксировано движение мыши.
     Так клавиатурная и тач-навигация не остаются без курсора. */
  a, button{ cursor:pointer; }
  .has-custom-cursor a, .has-custom-cursor button{ cursor:none; }
  .has-custom-cursor body{ cursor:none; }

  /* Уважаем системную настройку "уменьшить анимацию" */
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{
      animation-duration:0.001ms !important;
      animation-iteration-count:1 !important;
      transition-duration:0.001ms !important;
      scroll-behavior:auto !important;
    }
    .cursor, .cursor-ring{ display:none; }
    body{ cursor:auto; }
    a, button{ cursor:pointer; }
  }

  /* Если JS не выполнился (CDN недоступен/скрипт заблокирован) —
     контент с data-reveal не должен оставаться невидимым навсегда */
  [data-reveal]{ opacity:1; transform:none; }
  .js-ready [data-reveal]{ opacity:0; transform:translateY(36px); }

  .noscript-banner{
    position:relative; z-index:9999; background:#0D0D10; color:#FAFAF6;
    padding:10px 20px; font-family:sans-serif; font-size:13px; text-align:center;
  }
  .nav-cta{ padding:11px 20px; font-size:13px; }
  .tag-centered{ display:block; width:fit-content; margin:0 auto 0; }
  .modal-box-narrow{ max-width:460px; }
  .modal-body-tight{ padding:24px; }
  .modal-note-tight{ margin-top:14px; }
  .proof-image-slot{
    aspect-ratio:4/3; border:1.5px solid var(--ink);
    background:repeating-linear-gradient(135deg, #eceee8, #eceee8 10px, #e0e2da 10px 20px);
    display:flex; align-items:center; justify-content:center;
    font-family:'JetBrains Mono'; font-size:12px; color:var(--muted);
    text-align:center; padding:20px;
  }
