:root{
    --white:#120E1C;
    --panel:#1D1730;
    --ink:#F3F1FA;
    --purple:#8B5CF6;
    --purple-dark:#6C3CE9;
    --purple-text:#A78BFA;   /* фиолетовый для мелкого текста на тёмном фоне (контраст ≥ 4.5) */
    --purple-deep:#2A1E48;
    --lavender:#251C3D;
    --grey:#A29CB3;
    --line: rgba(255,255,255,0.12);
    --radius:3px;
    --header-h:104px;      /* высота шапки: верхняя строка + основная */
    --header-h-mob:76px;   /* на мобильных верхней строки нет */
    --display:'Oswald', 'Arial Narrow', sans-serif;
    --body:'Inter', sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{background:var(--white); color:var(--ink); font-family:var(--body); line-height:1.5; -webkit-font-smoothing:antialiased;}
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}
  .wrap{max-width:1240px; margin:0 auto; padding:0 32px;}
  .eyebrow{font-family:var(--body); font-weight:600; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--purple-text); display:flex; align-items:center; gap:10px;}
  h1,h2,h3{font-family:var(--display); font-weight:700; letter-spacing:0; text-transform:uppercase; line-height:0.98;}
  .btn-circle{
    width:112px; height:112px; border-radius:50%;
    border:1px solid var(--ink); display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:4px; cursor:pointer;
    background:transparent; color:var(--ink); flex-shrink:0;
    font-family:var(--body); transition:all .25s ease;
  }
  .btn-circle span.arrow{font-size:20px; line-height:1;}
  .btn-circle span.txt{font-size:10px; text-transform:uppercase; letter-spacing:0.06em; text-align:center;}
  .btn-circle:hover{background:var(--purple); border-color:var(--purple); color:#fff;}
  .btn{
    font-size:13px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase;
    padding:15px 28px; border-radius:var(--radius); display:inline-flex; align-items:center; gap:10px;
    border:1px solid var(--ink); cursor:pointer; background:transparent; color:var(--ink); transition:all .2s ease;
  }
  .btn:hover{background:var(--ink); color:var(--white);}
  .btn.primary{background:var(--purple); border-color:var(--purple); color:#fff;}
  .btn.primary:hover{background:var(--purple-dark); border-color:var(--purple-dark);}

  /* HEADER */
  header{position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(18,14,28,0.82); backdrop-filter:blur(10px); border-bottom:1px solid var(--line);}
  .header-inner{display:flex; align-items:center; justify-content:space-between; padding:16px 32px; max-width:1240px; margin:0 auto;}
  .logo-wrap{display:flex; align-items:center; gap:10px; cursor:pointer;}
  .logo-wrap img{height:34px; width:auto; filter:brightness(0) invert(1);}
  .main-nav{display:flex; gap:30px; font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:0.03em;}
  .main-nav a{position:relative; color:var(--grey); transition:color .2s; padding-bottom:4px;}
  .main-nav a::after{content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--purple); transition:width .25s ease;}
  .main-nav a:hover{color:var(--ink);}
  .main-nav a:hover::after{width:100%;}
  .header-cta{display:flex; align-items:center; gap:18px;}
  .nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; z-index:120;}
  .nav-toggle span{width:24px; height:2px; background:var(--ink); display:block; transition:transform .25s ease, opacity .2s ease;}
  .nav-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle.active span:nth-child(2){opacity:0;}
  .nav-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .mobile-nav-overlay{position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:115; opacity:0; pointer-events:none; transition:opacity .3s ease;}
  .mobile-nav-overlay.open{opacity:1; pointer-events:auto;}
  .mobile-nav{
    position:fixed; top:0; right:0; height:100vh; width:82%; max-width:340px;
    background:linear-gradient(165deg, var(--panel) 0%, var(--white) 100%);
    z-index:116; padding:120px 34px 40px;
    display:flex; flex-direction:column; justify-content:space-between;
    transform:translateX(100%); transition:transform .35s cubic-bezier(.22,.9,.32,1);
    border-left:1px solid var(--line); overflow:hidden;
  }
  .mobile-nav.open{transform:translateX(0);}
  .mobile-nav-ghost{
    position:absolute; top:-6%; right:-8%; font-family:'Times New Roman', Times, serif;
    font-style:italic; font-weight:700; font-size:120px; color:rgba(139,92,246,0.12);
    pointer-events:none; line-height:1;
  }
  .mobile-nav-links{display:flex; flex-direction:column; gap:6px; position:relative;}
  .mobile-nav-links a{
    display:flex; align-items:baseline; gap:14px; padding:14px 0;
    border-bottom:1px solid var(--line); color:var(--ink);
    opacity:0; transform:translateX(16px); transition:transform .4s ease, opacity .4s ease, color .2s ease;
  }
  .mobile-nav.open .mobile-nav-links a{opacity:1; transform:translateX(0);}
  .mobile-nav.open .mobile-nav-links a:nth-child(1){transition-delay:.08s;}
  .mobile-nav.open .mobile-nav-links a:nth-child(2){transition-delay:.14s;}
  .mobile-nav.open .mobile-nav-links a:nth-child(3){transition-delay:.2s;}
  .mobile-nav.open .mobile-nav-links a:nth-child(4){transition-delay:.26s;}
  .mobile-nav-links a:hover{color:var(--purple);}
  .mobile-nav-links .mn-idx{font-family:var(--body); font-size:12px; color:var(--purple-text); font-weight:600;}
  .mobile-nav-links .mn-label{font-family:var(--display); font-size:26px; text-transform:uppercase; font-weight:700;}
  .mobile-nav-footer{display:flex; flex-direction:column; gap:8px; position:relative;}
  .mobile-nav-footer a{font-size:13.5px; color:var(--grey);}
  .mobile-nav-footer a:hover{color:var(--purple);}

  /* HERO */
  .hero{position:relative; min-height:100vh; min-height:100dvh; display:flex; align-items:flex-end; overflow:hidden; padding-bottom:64px;}
  .hero-bg{position:absolute; inset:0; z-index:0;}
  .hero-bg img{width:100%; height:100%; object-fit:cover; filter:saturate(0.9) brightness(0.55);}
  /* 3D-сцена стенда на фоне первого экрана */
  .hero-bg{
    background:
      radial-gradient(120% 90% at 72% 28%, rgba(139,92,246,.20) 0%, rgba(139,92,246,0) 58%),
      radial-gradient(90% 80% at 12% 88%, rgba(91,59,176,.16) 0%, rgba(91,59,176,0) 60%),
      linear-gradient(168deg, #191330 0%, #120e1c 62%, #0d0a16 100%);
  }
  .hero-3d{position:absolute; inset:0; z-index:1; opacity:0; transition:opacity 1.2s ease;}
  .hero-3d.ready{opacity:1;}
  .hero-3d canvas{width:100% !important; height:100% !important; display:block;}
  .hero-bg::after{content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
    background:linear-gradient(180deg, rgba(18,14,28,0) 0%, rgba(18,14,28,.35) 62%, rgba(18,14,28,.88) 100%);}
  .ghost-word{
    position:absolute; top:50%; left:50%; transform:translate(-50%,-55%);
    font-family:'Times New Roman', Times, serif; font-weight:700; font-style:italic;
    line-height:0.78; z-index:1; pointer-events:none; text-align:center;
    display:flex; flex-direction:column; align-items:center;
  }
  .ghost-word .a{
    font-size:min(26vw,340px); color:transparent;
    -webkit-text-stroke:1.5px rgba(255,255,255,0.22); text-stroke:1.5px rgba(255,255,255,0.22);
    letter-spacing:-0.02em;
  }
  .ghost-word .e{
    font-size:min(18vw,240px); color:rgba(108,60,233,0.42);
    margin-top:-0.24em; align-self:flex-end; margin-right:4%;
    letter-spacing:-0.01em;
  }
  .hero-content{position:relative; z-index:2; width:100%;}
  .hero-grid{display:grid; grid-template-columns:1fr; gap:40px; align-items:end;}
  .hero-eyebrow{color:rgba(255,255,255,0.7); font-size:12px; font-weight:600; letter-spacing:0.16em; text-transform:uppercase; margin-bottom:18px;}
  .hero-statement{display:flex; gap:26px; align-items:flex-start; max-width:640px; margin:0 0 34px;}
  .hero-statement .rule{width:2px; flex-shrink:0; background:rgba(255,255,255,0.35); margin-top:6px; align-self:stretch;}
  .hero-statement .txt{display:flex; flex-direction:column; gap:14px;}
  .hero-statement .brand{
    font-family:'Times New Roman', Times, serif; font-style:italic; font-weight:700;
    color:#fff; font-size:clamp(30px,4.2vw,48px); line-height:0.95;
  }
  .hero-statement p{color:rgba(255,255,255,0.78); font-family:var(--body); font-weight:400; font-size:15.5px; line-height:1.65; margin:0;}
  .hero-actions{display:flex; align-items:center; gap:22px;}

  /* STATS */
  .stats-strip{border-bottom:1px solid var(--line); padding:26px 0;}
  .stats-strip .wrap{display:grid; grid-template-columns:repeat(3,1fr);}
  .stat{text-align:center; border-left:1px solid var(--line); padding:0 10px;}
  .stat:first-child{border-left:none;}
  .stat .num{font-family:var(--display); font-size:34px; font-weight:700; color:var(--purple);}
  .stat .lbl{font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--grey); margin-top:4px; font-weight:600;}

  section{padding:110px 0;}
  .section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:48px; flex-wrap:wrap;}
  .section-head h2{font-size:clamp(30px,4vw,48px); margin-top:14px;}
  .section-head p{color:var(--grey); margin-top:12px; max-width:420px; font-size:14.5px;}

  /* FILTERS */
  .filters{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:44px;}
  .filter-btn{
    font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:0.03em;
    padding:10px 18px; border-radius:20px; border:1px solid var(--line); background:var(--panel); cursor:pointer; color:var(--grey); transition:all .2s;
  }
  .filter-btn.active, .filter-btn:hover{background:var(--ink); color:var(--white); border-color:var(--ink);}

  /* PORTFOLIO */
  .feature-card{display:grid; grid-template-columns:1fr 1fr; background:var(--purple-deep); border-radius:var(--radius); overflow:hidden; margin-bottom:20px;}
  .feature-card img{width:100%; height:100%; object-fit:cover; min-height:320px;}
  .feature-text{padding:44px; display:flex; flex-direction:column; justify-content:center; color:#fff;}
  .feature-text .tag{color:rgba(255,255,255,0.55); font-size:11px; text-transform:uppercase; letter-spacing:0.08em; font-weight:600; margin-bottom:14px;}
  .feature-text h3{font-size:32px; margin-bottom:14px;}
  .feature-text p{color:rgba(255,255,255,0.7); font-size:14px; margin-bottom:26px; max-width:340px;}

  .portfolio-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  .p-card{background:var(--lavender); border-radius:var(--radius); overflow:hidden; transition:transform .2s ease;}
  .p-card:hover{transform:translateY(-4px);}
  .p-card .thumb{aspect-ratio:4/3; overflow:hidden; cursor:pointer;}
  .p-card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease;}
  .p-card:hover .thumb img{transform:scale(1.06);}
  .p-card .meta{padding:16px 18px 20px;}
  .p-card .meta .cat{font-size:10.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--purple-text); font-weight:700;}
  .p-card .meta h4, .p-card .meta .p-title{font-family:var(--body); font-weight:600; font-size:14.5px; text-transform:none; margin-top:6px;}
  .p-card[hidden]{display:none;}

  /* SERVICES (compact list matching card language) */
  .services-list{display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
  .service-row{background:var(--panel); padding:26px 30px; display:flex; align-items:center; justify-content:space-between; gap:16px;}
  .service-row h3{font-family:var(--body); font-weight:600; font-size:16px; text-transform:none; letter-spacing:0;}
  .service-row .arrow{color:var(--purple); font-size:18px;}
  .service-row:hover{background:var(--lavender);}

  /* PROCESS */
  .accordion{display:flex; flex-direction:column; border-top:1px solid var(--line);}
  .acc-item{border-bottom:1px solid var(--line);}
  .acc-head{
    width:100%; display:flex; align-items:center; gap:22px; padding:26px 4px;
    background:none; border:none; cursor:pointer; text-align:left; color:var(--ink);
  }
  .acc-head .idx{font-family:var(--display); font-size:22px; font-weight:700; color:var(--purple); opacity:0.55; width:34px; flex-shrink:0;}
  .acc-head .acc-title{font-family:var(--display); font-size:clamp(20px,2.6vw,28px); text-transform:uppercase; font-weight:700; flex:1;}
  .acc-plus{position:relative; width:22px; height:22px; flex-shrink:0;}
  .acc-plus span{position:absolute; top:50%; left:50%; background:var(--ink); transition:transform .3s ease;}
  .acc-plus span:nth-child(1){width:16px; height:2px; transform:translate(-50%,-50%);}
  .acc-plus span:nth-child(2){width:2px; height:16px; transform:translate(-50%,-50%);}
  .acc-item.open .acc-plus span:nth-child(2){transform:translate(-50%,-50%) rotate(90deg); opacity:0;}
  .acc-item.open .acc-head .acc-title{color:var(--purple-text);}

  .acc-body{max-height:0; overflow:hidden; transition:max-height .45s ease;}
  .acc-item.open .acc-body{max-height:1100px;}
  .acc-body-inner{padding:0 4px 34px 56px;}
  .acc-lead{color:var(--grey); font-size:15px; margin-bottom:22px; max-width:520px;}
  .acc-grid{display:grid; grid-template-columns:1.3fr 1fr; gap:32px; margin-bottom:20px;}
  .acc-label{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--grey); margin-bottom:10px;}
  .acc-list{list-style:none; display:flex; flex-direction:column; gap:9px;}
  .acc-list li{font-size:14.5px; padding-left:16px; position:relative;}
  .acc-list li::before{content:''; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background:var(--purple);}
  .acc-fact{font-family:var(--display); font-size:26px; font-weight:700; color:var(--ink);}
  .acc-fact-sm{font-size:14px; color:var(--ink);}
  .acc-out{font-size:13.5px; color:var(--purple-text); font-weight:600; border-top:1px solid var(--line); padding-top:16px;}
  .acc-photos{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:22px;}
  .acc-photos img{display:block; width:100%; height:200px; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius); cursor:pointer; transition:transform .2s ease;}
  .acc-photos img:hover{transform:scale(1.02);}
  .acc-photos-single{grid-template-columns:minmax(160px,220px);}
  .acc-cta{
    display:inline-flex; align-items:center; gap:12px;
    background:linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color:#fff; font-weight:600; font-size:13.5px; letter-spacing:0.02em; text-transform:uppercase;
    padding:15px 26px; border-radius:30px; border:none;
    box-shadow:0 10px 26px -10px rgba(139,92,246,0.65);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .acc-cta i{
    width:18px; height:18px; border-radius:50%; background:rgba(255,255,255,0.2);
    position:relative; flex-shrink:0; transition:transform .3s ease, background .3s ease;
  }
  .acc-cta i::before{
    content:'→'; position:absolute; top:50%; left:50%; transform:translate(-50%,-52%);
    font-size:11px; line-height:1;
  }
  .acc-cta:hover{transform:translateY(-2px); box-shadow:0 14px 32px -8px rgba(139,92,246,0.85);}
  .acc-cta:hover i{transform:translateX(3px); background:rgba(255,255,255,0.32);}

  @media (max-width:640px){
    .acc-body-inner{padding-left:4px;}
    .acc-grid{grid-template-columns:1fr; gap:20px;}
    .acc-head{gap:14px;}
    .acc-head .idx{width:auto;}
    /* фото — горизонтальная лента вместо столбика */
    .acc-photos{display:flex; overflow-x:auto; scroll-snap-type:x mandatory;
      gap:10px; margin:0 -16px 20px; padding:0 16px 4px; scrollbar-width:none;}
    .acc-photos::-webkit-scrollbar{display:none;}
    .acc-photos img{flex:0 0 auto; width:64vw; max-width:260px; height:auto;
      aspect-ratio:4/3; scroll-snap-align:start;}
    .acc-item.open .acc-body{max-height:1200px;}
  }

  /* STATEMENT */
  .statement{position:relative; min-height:80vh; min-height:80dvh; display:flex; align-items:flex-end; overflow:hidden; padding:0;}
  .statement-bg{position:absolute; inset:0;}
  .statement-bg img{width:100%; height:100%; object-fit:cover; object-position:center 42%; filter:saturate(0.85) brightness(0.5);}
  .statement-bg::after{content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(21,16,31,0.9) 5%, rgba(21,16,31,0.1) 55%);}
  .statement-ghost{position:absolute; top:8%; left:50%; transform:translateX(-50%); font-family:var(--display); font-weight:700; font-size:min(16vw,220px); color:rgba(255,255,255,0.08); white-space:nowrap; z-index:1;}
  .statement-inner{position:relative; z-index:2; width:100%; padding:64px 0; display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap;}
  .statement-inner h2, .statement-title{color:#fff; font-size:clamp(30px,5vw,54px); line-height:1.02;
    font-family:var(--display); font-weight:700; text-transform:uppercase; letter-spacing:0;}
  .statement-inner h2 span, .statement-title span{display:block;}
  .statement-inner .side{color:rgba(255,255,255,0.65); font-size:13px; max-width:220px; text-align:right;}

  /* CONTACT */
  .contact-block{display:grid; grid-template-columns:1fr 1fr; gap:60px;}
  .contact-info .row{display:flex; flex-direction:column; gap:6px; margin-bottom:22px; padding-bottom:22px; border-bottom:1px solid var(--line);}
  .contact-info .row .lbl{font-size:11px; text-transform:uppercase; color:var(--grey); letter-spacing:0.05em; font-weight:600;}
  .contact-info .row .val{font-size:17px; font-weight:500;}
  .map-embed{margin-top:26px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); aspect-ratio:4/3; position:relative;}
  .map-embed iframe{width:100%; height:100%; border:0; filter:grayscale(0.15) contrast(1.05);}
  .map-embed{cursor:pointer;}
  .map-embed .map-lock{
    position:absolute; inset:0; z-index:2; background:transparent;
    display:flex; align-items:flex-end; justify-content:center; padding-bottom:16px;
  }
  .map-embed .map-lock span{
    background:rgba(18,14,28,.82); color:#fff; font-size:12.5px; font-weight:600;
    padding:8px 16px; border-radius:20px; backdrop-filter:blur(4px);
    opacity:0; transition:opacity .2s;
  }
  .map-embed:hover .map-lock span{opacity:1;}
  .map-embed.active .map-lock{display:none;}
  @media (max-width:900px){
    .map-embed{aspect-ratio:auto; height:280px; margin-top:20px;}
    /* на мобильных оверлей не нужен — карта прокручивается вместе со страницей внутри своего блока */
    .map-embed .map-lock{display:none;}
  }
  .map-badge{
    position:absolute; top:14px; left:14px; z-index:2;
    background:var(--ink); color:var(--white); font-family:var(--display);
    font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.02em;
    padding:8px 14px; border-radius:20px; display:flex; align-items:center; gap:8px;
    box-shadow:0 8px 20px -8px rgba(0,0,0,0.5); pointer-events:none;
  }
  .map-badge::before{content:''; width:7px; height:7px; border-radius:50%; background:var(--purple); flex-shrink:0;}
  form{display:flex; flex-direction:column; gap:16px;}
  input, textarea{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; color:var(--ink); font-family:var(--body); font-size:14px;}
  input:focus, textarea:focus{outline:none; border-color:var(--purple);}
  textarea{resize:vertical; min-height:110px;}
  ::placeholder{color:var(--grey);}

  footer{border-top:1px solid var(--line); padding:48px 0;}
  .footer-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;}
  .footer-inner p{color:var(--grey); font-size:13px;}
  .footer-links{display:flex; gap:24px; font-size:13px; color:var(--grey);}
  .footer-links a:hover{color:var(--purple);}

  @media (max-width:900px){
    .hero-grid{grid-template-columns:1fr;}
    .hero-thumbs{display:none;}
    .main-nav{display:none;}
    .header-cta{display:none;}
    .nav-toggle{display:flex;}
    .feature-card{grid-template-columns:1fr;}
    .portfolio-grid, .services-list{grid-template-columns:1fr;}
    .stats-strip .wrap{grid-template-columns:repeat(3,1fr); row-gap:20px;}
    .contact-block{grid-template-columns:1fr;}
    .statement-inner{flex-direction:column; align-items:center; text-align:center;}
    .statement-inner .side{text-align:center;}
    .wrap{padding-left:16px;}
  }
  @media (prefers-reduced-motion: reduce){ *{transition:none !important;} }


  #cursor-glow{
    position:fixed; top:0; left:0; width:220px; height:220px;
    border-radius:50%; pointer-events:none; z-index:-1;
    background:radial-gradient(circle, rgba(139,92,246,0.16) 0%, rgba(139,92,246,0.06) 40%, rgba(139,92,246,0) 70%);
    transform:translate(-50%,-50%); mix-blend-mode:screen;
    opacity:0; transition:opacity .3s ease;
  }
  @media (max-width:900px){ #cursor-glow{ display:none; } }

  .lightbox{
    position:fixed; inset:0; z-index:200; background:rgba(10,7,16,0.92);
    display:flex; align-items:center; justify-content:center; padding:40px;
    opacity:0; pointer-events:none; transition:opacity .3s ease;
  }
  .lightbox.open{opacity:1; pointer-events:auto;}
  .lightbox img{max-width:100%; max-height:85vh; border-radius:var(--radius); box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);}
  .lightbox-close{
    position:absolute; top:24px; right:28px; width:44px; height:44px; border-radius:50%;
    background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); color:#fff;
    font-size:20px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .lightbox-close:hover{background:rgba(255,255,255,0.18);}

  #backToTop{
    display:none; position:fixed; top:14px; left:50%; transform:translateX(-50%) translateY(-60px);
    width:42px; height:42px; border-radius:50%; z-index:130;
    background:rgba(18,14,28,0.85); backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,0.18); color:#fff;
    align-items:center; justify-content:center; cursor:pointer;
    opacity:0; transition:opacity .3s ease, transform .3s ease;
  }
  #backToTop.show{opacity:1; transform:translateX(-50%) translateY(0);}
  #backToTop svg{width:18px; height:18px;}
  @media (max-width:900px){ #backToTop{display:flex;} }

  #logo3d{
    position:fixed; right:26px; bottom:26px; width:96px; height:96px; z-index:130;
    cursor:pointer; opacity:0; transform:translateY(20px) scale(0.9);
    transition:opacity .4s ease, transform .4s ease; pointer-events:none;
  }
  #logo3d.show{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}
  #logo3d canvas{width:100% !important; height:100% !important; display:block;}
  #logo3d .logo3d-hint{
    position:absolute; bottom:-4px; left:50%; transform:translateX(-50%) translateY(100%);
    font-family:var(--body); font-size:10px; font-weight:600; letter-spacing:0.08em;
    text-transform:uppercase; color:var(--purple); white-space:nowrap;
    opacity:0; transition:opacity .25s ease; pointer-events:none;
  }
  #logo3d:hover .logo3d-hint{opacity:1;}
  @media (max-width:900px){
    #logo3d{display:none !important;}
  }
/* ================= МНОГОСТРАНИЧНАЯ ВЕРСИЯ ================= */

/* --- Верхняя строка шапки --- */
.header-top{border-bottom:1px solid var(--line); font-size:12.5px; color:var(--grey);}
.header-top-inner{display:flex; align-items:center; gap:28px; padding:8px 0; flex-wrap:wrap;}
.ht-item{display:flex; align-items:center; gap:8px;}
.ht-phones{margin-left:auto; display:flex; gap:16px;}
.ht-phones a{color:var(--ink); font-weight:600;}
.ht-phones a:hover{color:var(--purple);}
@media (max-width:900px){ .header-top{display:none;} }

/* --- Меню с подменю --- */
.main-nav > ul{list-style:none; display:flex; gap:28px; margin:0; padding:0;}
.main-nav li{position:relative;}
.main-nav li.has-sub > a{padding-right:15px;}
.main-nav li.has-sub > a::before{content:''; position:absolute; right:1px; top:calc(50% - 5px);
  width:5px; height:5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg); opacity:.8; transition:transform .2s ease;}
.main-nav li.has-sub:hover > a::before{transform:translateY(3px) rotate(225deg);}
.main-nav a.active{color:var(--ink);}
.main-nav a.active::after{width:100%;}
.main-nav .submenu, .submenu{
  position:absolute; top:100%; left:-16px; min-width:260px; padding:10px 0;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 20px 40px -18px rgba(0,0,0,.6);
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
  z-index:120; display:block;
}
.main-nav li:hover > .submenu{opacity:1; visibility:visible; transform:translateY(0);}
.submenu li{display:block;}
.submenu a{
  display:block; padding:9px 18px; font-size:13px; text-transform:none;
  letter-spacing:0; font-weight:500; color:var(--grey);
}
.submenu a:hover{color:var(--purple); background:rgba(139,92,246,.07);}
.submenu a::after{display:none;}

/* --- Иконки телефона и почты в мобильной шапке --- */
.header-mobile-actions{display:none; align-items:center; gap:6px; position:relative;}
.hm-btn{
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  background:none; border:1px solid var(--line); border-radius:50%;
  color:var(--ink); cursor:pointer; padding:0;
}
.hm-btn svg{width:17px; height:17px;}
.hm-btn:hover{border-color:var(--purple); color:var(--purple);}
.phone-drop{
  position:absolute; top:46px; right:44px; z-index:130;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:8px 0; min-width:190px; display:none;
  box-shadow:0 16px 32px -14px rgba(0,0,0,.6);
}
.phone-drop.open{display:block;}
.phone-drop a{display:block; padding:9px 16px; font-size:14px; font-weight:600;}
.phone-drop a:hover{color:var(--purple); background:rgba(139,92,246,.07);}
@media (max-width:900px){ .header-mobile-actions{display:flex;} }

/* --- Хлебные крошки --- */
.breadcrumbs{display:block; width:100%;}
.breadcrumbs .wrap{width:100%;}
.breadcrumbs{padding:calc(var(--header-h) + 18px) 0 0;}
.breadcrumbs ol{list-style:none; display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  padding:0; padding-inline-start:0; margin:0; margin-inline-start:0;
  font-size:13px; color:var(--grey);}
.breadcrumbs li{display:flex; align-items:center; gap:8px;}
.breadcrumbs li:not(:last-child)::after{content:'/'; opacity:.5;}
.breadcrumbs a:hover{color:var(--purple);}
.breadcrumbs li:last-child span{color:var(--ink); font-weight:600;}
.breadcrumbs a{color:var(--grey); transition:color .2s;}

/* --- Шапка внутренней страницы --- */
.page-hero{padding:36px 0 8px;}
.page-hero h1{font-size:clamp(30px,5vw,52px); max-width:900px;}
.page-hero .lead{color:var(--paper-dim,var(--grey)); font-size:16px; max-width:640px; margin-top:18px; line-height:1.65;}

/* --- Типографика текстовых блоков --- */
.text-block{max-width:820px; font-size:15.5px; line-height:1.75; color:var(--grey);}
.text-block h2{font-size:clamp(24px,3.2vw,34px); margin:44px 0 18px; color:var(--ink);}
.text-block h3{font-family:var(--body); font-weight:700; font-size:19px; text-transform:none;
  letter-spacing:0; margin:30px 0 12px; color:var(--ink);}
.text-block p{margin-bottom:16px;}
.text-block ul, .text-block ol{margin:0 0 18px 0; padding-left:20px;}
.text-block li{margin-bottom:9px;}
.text-block ul{list-style:none; padding-left:0;}
.text-block ul li{position:relative; padding-left:20px;}
.text-block ul li::before{content:''; position:absolute; left:0; top:9px; width:6px; height:6px;
  border-radius:50%; background:var(--purple);}
.text-block strong{color:var(--ink);}
.text-block a{color:var(--purple-text); text-decoration:underline; text-underline-offset:3px;}
.text-block table{width:100%; border-collapse:collapse; margin:8px 0 22px; font-size:14.5px; line-height:1.55;}
.text-block th, .text-block td{padding:11px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top;}
.text-block th{color:var(--ink); font-weight:700; background:var(--panel);}
.text-block td:first-child{color:var(--ink); font-weight:600; white-space:nowrap;}
@media (max-width: 640px){
  .text-block table, .text-block tbody, .text-block tr, .text-block td{display:block; width:100%;}
  .text-block thead{display:none;}
  .text-block tr{padding:12px 0; border-bottom:1px solid var(--line);}
  .text-block td{padding:2px 0; border:0; white-space:normal !important;}
  .text-block td:first-child{font-size:15px;}
  .text-block td:last-child{color:var(--purple-text); font-weight:600; margin-top:4px;}
  .text-block td[data-label]:not(:first-child)::before{content:attr(data-label) ": "; color:var(--grey); font-weight:400;}
}

/* --- Сетка карточек (виды продукции, перелинковка) --- */
.card-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px;}
.card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:transform .2s ease, border-color .2s ease;}
.card:hover{transform:translateY(-4px); border-color:var(--purple);}
.card img{width:100%; aspect-ratio:4/3; object-fit:cover;}
.card-body{padding:18px 20px 22px; display:flex; flex-direction:column; gap:8px; flex:1;}
.card-body h3{font-family:var(--body); font-weight:700; font-size:16.5px; text-transform:none; letter-spacing:0;}
.card-body p{font-size:13.5px; color:var(--grey); line-height:1.6; flex:1;}
.card-link{font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em;
  color:var(--purple-text); display:inline-flex; align-items:center; gap:6px; margin-top:4px;}
.card.no-link:hover{transform:none; border-color:var(--line);}

/* --- Слайдер --- */
.slider{position:relative;}
.slider-track{display:flex; gap:16px; overflow-x:auto; scroll-behavior:smooth;
  scrollbar-width:none; padding-bottom:4px;}
.slider-track::-webkit-scrollbar{display:none;}
.slider-track > *{flex:0 0 auto;}
.slider-controls{display:flex; gap:8px; margin-top:20px;}
.slider-btn{width:42px; height:42px; border-radius:50%; border:1px solid var(--line);
  background:transparent; color:var(--ink); cursor:pointer; font-size:18px; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:all .2s;}
.slider-btn:hover{background:var(--purple); border-color:var(--purple); color:#fff;}
.slider-dots{display:none;}

/* --- Логотипы клиентов --- */
.clients-track > *{width:170px; height:92px; display:flex; align-items:center; justify-content:center;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:14px;}
.clients-track img{max-width:100%; max-height:100%; object-fit:contain;
  filter:grayscale(1) brightness(1.6); opacity:.75; transition:all .25s;}
.clients-track > *:hover img{filter:none; opacity:1;}

/* --- Отзывы --- */
.reviews-track > *{width:260px;}
.reviews-track img{width:100%; height:340px; object-fit:cover; border-radius:var(--radius);
  border:1px solid var(--line); cursor:zoom-in; transition:transform .2s;}
.reviews-track img:hover{transform:translateY(-4px);}
.reviews-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px;}
.review-item{display:flex; flex-direction:column; gap:12px;}
.review-item img{width:100%; object-fit:cover; border-radius:var(--radius); border:1px solid var(--line); cursor:zoom-in;}
.review-item .review-text{font-size:13.5px; color:var(--grey); line-height:1.6;}

/* --- Блог --- */
.blog-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px;}
.blog-card{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:transform .2s, border-color .2s;}
.blog-card:hover{transform:translateY(-4px); border-color:var(--purple);}
.blog-card img{width:100%; aspect-ratio:16/9; object-fit:cover;}
.blog-card-body{padding:20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1;}
.blog-date{font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--purple-text); font-weight:700;}
.blog-card h2, .blog-card h3, .blog-card .card-h{font-family:var(--body); font-weight:700; font-size:17px;
  text-transform:none; letter-spacing:0; line-height:1.35;}
.blog-card p{font-size:13.5px; color:var(--grey); line-height:1.6; flex:1;}
.article-meta{display:flex; gap:18px; font-size:12.5px; color:var(--grey); margin-top:14px;}
.article-cover{width:100%; max-height:440px; object-fit:cover; border-radius:var(--radius); margin:28px 0 8px;}

/* --- Форма --- */
.form-label{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  color:var(--grey); margin-bottom:2px;}
.submit-note{font-size:12.5px; color:var(--purple-text); font-weight:600;}
.submit-error{font-size:12.5px; color:#ff6b6b; font-weight:600;}
.lead-section{padding:96px 0;}

/* --- Лайтбокс: стрелки --- */
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:52px; height:52px; border-radius:50%; z-index:2;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); color:#fff;
  font-size:28px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lightbox-nav:hover{background:rgba(255,255,255,.18);}
.lightbox-prev{left:24px;}
.lightbox-next{right:24px;}
@media (max-width:640px){
  .lightbox-prev{left:8px;} .lightbox-next{right:8px;}
  .lightbox-nav{width:42px; height:42px; font-size:22px;}
}

/* --- Футер --- */
footer{border-top:1px solid var(--line); padding:60px 0 32px; margin-top:0;}
.footer-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; align-items:start;}
.footer-col{display:flex; flex-direction:column; gap:10px;}
.footer-col > a{font-size:13.5px; color:var(--grey); transition:color .2s;}
.footer-col > a:hover{color:var(--purple);}
.footer-title{font-family:var(--display); font-size:17px; font-weight:700; text-transform:uppercase;
  color:var(--ink); margin-bottom:6px;}
.footer-about{font-size:13px; color:var(--grey); line-height:1.6; max-width:280px;}
.footer-plain{font-size:13.5px; color:var(--grey);}
.footer-logo img{height:34px; width:auto; filter:brightness(0) invert(1);}
.footer-socials{display:flex; gap:10px; margin-top:8px;}
.footer-socials a{width:38px; height:38px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--grey); transition:all .2s;}
.footer-socials svg{width:18px; height:18px;}
.footer-socials a:hover{border-color:var(--purple); color:var(--purple);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; gap:16px;
  flex-wrap:wrap; margin-top:44px; padding-top:24px; border-top:1px solid var(--line);
  font-size:12.5px; color:var(--grey);}
.footer-bottom a:hover{color:var(--purple);}
@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr; gap:32px;}
}
@media (max-width:560px){
  .footer-grid{grid-template-columns:1fr;}
}

/* --- Секции внутренних страниц --- */
.inner-section{padding:72px 0;}
.inner-section.tight{padding:48px 0;}

/* --- H1 на главной --- */
.hero-h1{
  color:#fff; font-size:clamp(30px,4.6vw,56px); line-height:1.02;
  margin:0 0 26px; max-width:760px;
}

/* --- Отступ для страниц без хлебных крошек --- */
main.pad-top{padding-top:calc(var(--header-h) + 20px);}

/* --- Секция формы на внутренних страницах --- */
body:not([data-page="home"]) .lead-section{border-top:1px solid var(--line);}

/* ================= МОБИЛЬНАЯ ВЕРСИЯ ================= */

@media (max-width:900px){

  /* --- Первый экран: компактный, видно контент ниже --- */
  .hero{min-height:auto; height:62vh; height:62dvh; max-height:520px; padding-bottom:32px;}
  .hero-h1{font-size:clamp(26px,7vw,34px); margin-bottom:18px;}
  .hero-statement{gap:14px; margin-bottom:26px;}
  .hero-statement .brand{font-size:26px;}
  .hero-statement p{font-size:13.5px; line-height:1.55;}
  .ghost-word{font-size:min(30vw,190px); opacity:.5;}
  .hero-actions{gap:14px;}
  .btn-circle{width:78px; height:78px;}

  /* --- Меньше воздуха, меньше скролла --- */
  section{padding:56px 0;}
  .inner-section{padding:48px 0;}
  .inner-section.tight{padding:36px 0;}
  .lead-section{padding:52px 0;}
  .page-hero{padding:24px 0 4px;}
  .section-head{margin-bottom:28px; gap:12px;}
  .section-head h2{margin-top:10px;}
  .section-head p{font-size:14px;}
  .breadcrumbs{padding-top:calc(var(--header-h-mob) + 22px);}
  main.pad-top{padding-top:calc(var(--header-h-mob) + 28px);}

  /* --- Хлебные крошки: одна строка со сдвигом --- */
  .breadcrumbs ol{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px;}
  .breadcrumbs ol::-webkit-scrollbar{display:none;}
  .breadcrumbs li{white-space:nowrap;}

  /* --- Портфолио в две колонки --- */
  .portfolio-grid{grid-template-columns:1fr 1fr; gap:10px;}
  .p-card .meta{padding:10px 12px 14px;}
  .p-card .meta .cat{font-size:9.5px;}

  /* --- Фильтры: горизонтальная лента --- */
  .filters{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;
    margin-left:-16px; margin-right:-16px; padding:0 16px 4px;
    scroll-snap-type:x proximity;}
  .filters::-webkit-scrollbar{display:none;}
  .filter-btn{flex:0 0 auto; scroll-snap-align:start; font-size:12px; padding:9px 15px;}

  /* --- Слайдеры: листание с залипанием --- */
  .slider-track{scroll-snap-type:x mandatory; gap:12px;
    margin-left:-16px; margin-right:-16px; padding:0 16px;}
  .slider-track > *{scroll-snap-align:start;}
  .slider-controls{display:none;}
  .clients-track > *{width:132px; height:76px;}
  /* карточки уже, чтобы край следующей выглядывал — видно, что листается */
  .gallery-grid > *{width:72vw; max-width:300px;}
  .reviews-track > *{width:56vw; max-width:230px;}
  /* точки-индикаторы слайдера */
  .slider-dots{display:flex; justify-content:center; gap:6px; margin-top:14px;}
  .slider-dots .dot{width:6px; height:6px; border-radius:50%; background:var(--line);
    transition:background .2s, width .2s;}
  .slider-dots .dot.active{background:var(--purple); width:18px; border-radius:3px;}

  /* --- Карточки: крупное фото сверху --- */
  .card-grid{grid-template-columns:1fr 1fr; gap:12px;}
  .card{flex-direction:column;}
  .card img{width:100%; aspect-ratio:4/3;}
  .card-body{padding:14px 15px 16px;}
  .card-body h3{font-size:14.5px; line-height:1.25;}
  .card-body p{font-size:12px; display:-webkit-box; -webkit-line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;}
  .card-link{font-size:11px;}
  .blog-grid{grid-template-columns:1fr; gap:16px;}

  /* --- Показатели --- */
  .stats-strip{padding:18px 0;}
  .stats-strip .num{font-size:26px;}
  .stats-strip .lbl{font-size:9.5px; letter-spacing:.03em;}

  /* --- Текст --- */
  .text-block{font-size:15px; line-height:1.7;}
  .text-block h2{font-size:23px; margin:32px 0 14px;}
  .text-block h3{font-size:17px; margin:24px 0 10px;}
  .page-hero .lead{font-size:14.5px; margin-top:14px;}

  /* --- Блок-слоган --- */
  .statement{min-height:56vh; min-height:56dvh;}
  .statement-inner{padding:44px 0;}
  .statement-ghost{font-size:min(24vw,150px);}

  /* --- Формы: 16px, иначе iOS зумит экран --- */
  input, textarea, select{font-size:16px; padding:15px 16px;}
  textarea{min-height:104px;}
  button:not(.hm-btn):not(.nav-toggle):not(.slider-btn):not(.lightbox-close):not(.lightbox-nav),
  .btn, .acc-cta{min-height:46px;}
  .hm-btn{
    width:40px; height:40px; min-height:40px; max-height:40px;
    aspect-ratio:1/1; flex:0 0 40px; border-radius:50%; padding:0;
  }

  /* --- Аккордеон --- */
  .acc-head{padding:20px 4px;}
  .acc-head .acc-title{font-size:17px;}
  .acc-lead{font-size:14.5px;}

  /* --- Футер: крупнее тап-зоны --- */
  .footer-col > a{padding:5px 0; font-size:14px;}
  .footer-bottom{flex-direction:column; align-items:flex-start; gap:10px;}

  /* --- Плавающая кнопка заявки --- */
  .mobile-fab{
    position:fixed; right:16px; bottom:16px; z-index:125;
    opacity:0; transform:translateY(14px) scale(.9); pointer-events:none;
    transition:opacity .28s ease, transform .28s ease;
  }
  .mobile-fab.show{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}
  .mobile-fab.hidden{opacity:0; transform:translateY(14px) scale(.9); pointer-events:none;}
  .fab-btn{
    width:54px; height:54px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--purple); color:#fff;
    box-shadow:0 10px 26px -8px rgba(139,92,246,.75);
  }
  .fab-btn svg{width:22px; height:22px;}
  .fab-btn:active{transform:scale(.94);}

  /* кнопка «наверх» — над кнопкой заявки */
  #backToTop{top:auto; bottom:82px; left:auto; right:20px; transform:translateY(14px);}
  #backToTop.show{transform:translateY(0);}
}

@media (min-width:901px){
  .mobile-fab{display:none;}
}

@media (max-width:560px){
  .wrap{padding-left:16px; padding-right:16px;}
  .hero{height:66vh; height:66dvh;}
}

/* ============ УЛУЧШЕНИЯ МОБИЛЬНОГО ИНТЕРФЕЙСА ============ */

/* --- Раскрывающееся подменю в бургере (пункт 2) --- */
.mn-group{display:flex; flex-direction:column;}
.mn-row{display:flex; align-items:center;}
.mn-row .mn-main{flex:1;}
.mn-expand{
  background:none; border:none; color:var(--grey); padding:10px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:transform .3s ease, color .2s;
}
.mn-expand svg{width:22px; height:22px;}
.mn-group.open .mn-expand{transform:rotate(180deg); color:var(--purple);}
.mn-sub{
  max-height:0; overflow:hidden; transition:max-height .35s ease;
  display:flex; flex-direction:column; padding-left:14px;
}
.mn-group.open .mn-sub{max-height:420px;}
.mn-sub a{
  font-family:var(--body); font-size:14.5px; text-transform:none; font-weight:500;
  color:var(--grey); padding:9px 0; border-bottom:1px solid var(--line);
}
.mn-sub a:last-child{border-bottom:none;}
.mn-sub a:hover{color:var(--purple);}

/* --- Тактильный отклик на нажатия (пункт 4) --- */
@media (hover:none){
  .card:active, .blog-card:active, .p-card:active,
  .btn:active, .acc-cta:active, .filter-btn:active,
  .mobile-nav-links a:active, .footer-col a:active{
    transform:scale(0.975); opacity:.85; transition:transform .1s, opacity .1s;
  }
  .fab-btn:active{transform:scale(0.9);}
}

/* --- Плавное появление страницы (пункт 5) --- */
@media (max-width:900px){
  main{animation:pageFade .35s ease;}
  @keyframes pageFade{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);}}
}

@media (max-width:900px){
  /* --- Форма: 2 поля вместо трёх (пункт 3) --- */
  .lead-section form textarea{display:none;}
  .lead-section .form-hint{font-size:12px; color:var(--grey); margin-top:-4px;}

  /* --- Фоновая надпись меньше (пункт 7) --- */
  .ghost-word{font-size:min(26vw,150px); opacity:.4;}

  /* --- Плотнее секции (пункт 8) --- */
  section{padding:44px 0;}
  .inner-section{padding:40px 0;}
  .inner-section.tight{padding:30px 0;}
  .lead-section{padding:44px 0;}

  /* --- Счётчики крупнее (пункт 9) --- */
  .stats-strip .wrap{gap:8px;}
  .stats-strip .num{font-size:30px;}
  .stats-strip .stat{padding:4px 6px;}
  .stats-strip .lbl{font-size:10px; line-height:1.25; margin-top:4px;}
}

/* --- Кнопка «наверх» и заявка не конкурируют (пункт 6) --- */
@media (max-width:900px){
  #backToTop.show ~ .mobile-fab.show .fab-btn{box-shadow:0 6px 16px -6px rgba(139,92,246,.6);}
}

/* ---- Замена тегов заголовков без изменения внешнего вида (п.2 ТЗ) ---- */
/* блок формы обратной связи: был h2, стал div — вид сохраняем */
.h2-look{
  font-family:var(--display); font-weight:700; text-transform:uppercase;
  letter-spacing:0; line-height:0.98;
  font-size:clamp(30px,4vw,48px); margin-top:14px;
}
/* карточки услуг: был h3, стал h2 — вид сохраняем */
.card-h{
  font-family:var(--body); font-weight:700; font-size:16.5px;
  text-transform:none; letter-spacing:0; line-height:1.3;
}
@media (max-width:900px){
  .h2-look{font-size:clamp(24px,6vw,32px);}
  .card-h{font-size:14.5px; line-height:1.25;}
}

/* ---- Отзывы ---- */
.review-slide{width:260px; display:flex; flex-direction:column; gap:10px;}
.review-slide img{width:100%; height:340px; object-fit:cover; border-radius:var(--radius);
  border:1px solid var(--line); cursor:zoom-in; transition:transform .2s;}
.review-slide img:hover{transform:translateY(-4px);}
.review-caption{font-size:13px; color:var(--grey); text-align:center;}
.reviews-empty{max-width:540px; display:flex; flex-direction:column; gap:14px;
  color:var(--grey); font-size:15.5px; line-height:1.7;}
.reviews-empty a{color:var(--purple); text-decoration:underline; text-underline-offset:3px;}
.reviews-empty .btn{align-self:flex-start; margin-top:8px; text-decoration:none;}
.review-item figcaption{margin-top:10px;}

/* ---- Логотипы клиентов крупнее (п.5.2) ---- */
.clients-track > *{width:230px; height:130px; padding:18px;}
.clients-track img{filter:grayscale(1) brightness(1.7); opacity:.85;}
.clients-track > *:hover img{filter:none; opacity:1;}

@media (max-width:900px){
  .clients-track > *{width:172px; height:104px; padding:14px;}
  .review-slide{width:56vw; max-width:230px;}
  .review-slide img{height:290px;}
}

/* ---- Карта на всю ширину на странице контактов ---- */
.map-embed.map-wide{
  margin-top:0; aspect-ratio:auto; height:460px; width:100%;
}
@media (max-width:900px){
  .map-embed.map-wide{height:320px;}
}

/* ---- Стрелки слайдера: заметнее и рядом с заголовком ---- */
.section-head .slider-controls{margin-top:0; align-self:flex-end; flex-shrink:0;}
.slider-btn{
  width:48px; height:48px; font-size:22px;
  border:1px solid var(--purple); color:var(--purple);
  background:rgba(139,92,246,.08);
}
.slider-btn:hover{background:var(--purple); color:#fff; border-color:var(--purple);}
@media (max-width:900px){
  .section-head .slider-controls{display:none;}
}

/* ---- Логотипы клиентов крупнее (п.5.2 ТЗ) ---- */
.clients-track > *{width:340px; height:180px; padding:0; overflow:hidden; border-radius:var(--radius);}
.clients-track img{width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; filter:none; opacity:1; transition:transform .3s ease;}
.clients-track > *:hover img{filter:none; transform:scale(1.04);}
@media (max-width:900px){
  .clients-track > *{width:260px; height:138px;}
}

/* ---- Первый экран не уходит под шапку (мобильная версия) ---- */
.hero{padding-top:calc(var(--header-h) + 32px);}
@media (max-width:900px){
  .hero{height:auto; min-height:62vh; min-height:62dvh; max-height:none;
        padding-top:calc(var(--header-h-mob) + 28px);}
}

/* =====================================================================
   Плавные анимации кнопок и карточек
   Единая кривая и длительность вместо резких «all .2s».
   ===================================================================== */
:root{
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --t-fast: .28s;
  --t-med: .45s;
}
.btn, .btn-circle, .filter-btn, .slider-btn, .acc-cta, .fab-btn,
.header-cta .btn, .lead-form button, .back-to-top, #backToTop{
  transition:
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out),
    opacity var(--t-fast) var(--ease-out);
  will-change:auto;
}
@media (hover:hover){
  .btn:hover, .filter-btn:hover, .acc-cta:hover{transform:translateY(-2px);}
  .btn.primary:hover{box-shadow:0 10px 26px -12px rgba(139,92,246,.75);}
  .btn-circle:hover{transform:scale(1.05); box-shadow:0 12px 30px -14px rgba(139,92,246,.8);}
  .slider-btn:hover{transform:scale(1.06);}
  .btn:active, .filter-btn:active, .acc-cta:active, .btn-circle:active, .slider-btn:active{
    transform:translateY(0) scale(.98); transition-duration:.12s;
  }
}
.card, .blog-card, .p-card{
  transition:transform var(--t-med) var(--ease-out), border-color var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.card img, .blog-card img, .p-card img{transition:transform .7s var(--ease-out);}
@media (hover:hover){
  .card:hover, .blog-card:hover{box-shadow:0 18px 40px -24px rgba(139,92,246,.55);}
  .card:hover img, .blog-card:hover img, .p-card:hover img{transform:scale(1.035);}
}
.card, .blog-card, .p-card .thumb{overflow:hidden;}
.main-nav a, .submenu a, .footer-col a, .breadcrumbs a{transition:color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);}
.main-nav a::after{transition:width .4s var(--ease-out);}
.submenu{transition:opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{transition-duration:.01ms !important; animation-duration:.01ms !important;}
}

/* ---- Карточки услуг: аккуратная сетка и одинаковые пропорции фото ---- */
.card img, .blog-card img{height:auto; aspect-ratio:4/3; object-fit:cover; display:block;}
.blog-card img{aspect-ratio:16/10;}
@media (min-width:1101px){
  .card-grid{grid-template-columns:repeat(3,1fr);}
}
.statement-bg::after{background:
  linear-gradient(90deg, rgba(21,16,31,.88) 0%, rgba(21,16,31,.55) 45%, rgba(21,16,31,.25) 100%),
  linear-gradient(0deg, rgba(21,16,31,.9) 5%, rgba(21,16,31,.1) 55%);}
.statement-bg img{filter:saturate(.95) brightness(.78);}
@media (max-width:900px){
  .statement-bg::after{background:linear-gradient(0deg, rgba(21,16,31,.92) 8%, rgba(21,16,31,.35) 60%, rgba(21,16,31,.2) 100%);}
}

/* ---------- Кейсы ---------- */
.case-layout{display:grid; grid-template-columns:280px 1fr; gap:32px; align-items:start; margin-bottom:32px;}
.case-facts{background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; position:sticky; top:calc(var(--header-h) + 20px);}
.case-facts div{padding:10px 0; border-bottom:1px solid var(--line);}
.case-facts div:last-child{border-bottom:0;}
.case-facts dt{font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--grey); margin-bottom:4px;}
.case-facts dd{color:var(--ink); font-weight:600; font-size:15px; margin:0;}
.case-gallery{display:grid; gap:16px;}
.case-gallery img{width:100%; height:auto; max-height:640px; object-fit:cover; display:block; border-radius:var(--radius);}
.case-gallery figcaption{font-size:13px; color:var(--grey); margin-top:8px;}
@media (max-width: 900px){
  .case-layout{grid-template-columns:1fr; gap:20px;}
  .case-facts{position:static;}
}

/* ---------- Чек-листы в статьях ---------- */
.text-block ul li.check{padding-left:30px;}
.text-block ul li.check::before{width:14px; height:14px; top:5px; background:transparent; border:1.5px solid var(--purple); border-radius:3px;}
