:root{
  --bg:#0b1020;
  --bg-2:#0f1730;
  --surface:#ffffff;
  --ink:#0b1020;
  --muted:#5b6680;
  --line:#e7ebf3;
  --brand:#2f6bff;
  --brand-2:#00c2a8;
  --accent:#ff7a45;
  --soft:#f5f7fc;
  --radius:18px;
  --shadow:0 20px 50px -20px rgba(16,34,80,.28);
  --shadow-sm:0 10px 30px -16px rgba(16,34,80,.30);
}
*{box-sizing:border-box}
picture{display:contents}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{
  margin:0;
  font-family:"Manrope",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--ink);
  background:var(--surface);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,92%);margin-inline:auto}
section{position:relative}
h1,h2,h3{line-height:1.15;margin:0}
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.78rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand);background:rgba(47,107,255,.08);
  padding:.45rem .9rem;border-radius:999px;
}
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-weight:700;font-size:.98rem;
  padding:.95rem 1.6rem;border-radius:999px;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor:pointer;border:none;
}
.btn-primary{background:linear-gradient(135deg,var(--brand),#5b86ff);color:#fff;box-shadow:0 14px 30px -12px rgba(47,107,255,.6)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 20px 40px -12px rgba(47,107,255,.7)}
.btn-ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.25)}
.btn-ghost:hover{background:rgba(255,255,255,.16)}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{transform:translateY(-2px)}

/* ===== Header ===== */
header{
  position:sticky;top:0;z-index:50;
  backdrop-filter:saturate(160%) blur(12px);
  background:rgba(255,255,255,.82);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 0}
.brand{display:flex;align-items:center;gap:.7rem;font-weight:800;font-size:1.25rem;letter-spacing:-.02em}
.brand img{height:42px;width:auto}
.brand span b{color:var(--brand)}
.menu{display:flex;align-items:center;gap:.35rem}
.menu a{
  position:relative;font-weight:600;font-size:.95rem;color:#37425c;
  padding:.55rem .8rem;border-radius:10px;transition:color .15s, background .15s;
}
.menu a:hover{color:var(--brand);background:var(--soft)}
.menu a.ext::after{content:"↗";font-size:.72em;opacity:.7;margin-left:.15rem}
.menu a.ext-cta{
  color:#fff;background:linear-gradient(135deg,var(--brand-2),#13b3d6);
  font-weight:700;margin-left:.35rem;
  box-shadow:0 10px 22px -10px rgba(0,194,168,.7);
}
.menu a.ext-cta:hover{color:#fff;background:linear-gradient(135deg,#00cdb1,#16bee2);transform:translateY(-1px)}
.menu a.ext-cta::after{opacity:.9}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:.4rem}
.burger span{width:24px;height:2px;background:var(--ink);border-radius:2px;transition:.25s}

/* ===== Hero ===== */
.hero{
  position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(120deg,rgba(8,14,33,.92),rgba(8,14,33,.55)),url("images/hero.jpg") center/cover no-repeat;
  background:linear-gradient(120deg,rgba(8,14,33,.92),rgba(8,14,33,.55)),image-set(url("images/hero.avif") type("image/avif"),url("images/hero.jpg") type("image/jpeg")) center/cover no-repeat;
}
.hero::after{content:"";position:absolute;inset:0;background:radial-gradient(900px 500px at 85% -10%,rgba(0,194,168,.25),transparent 60%)}
.hero-inner{position:relative;z-index:2;padding:clamp(5rem,11vw,9rem) 0 clamp(4.5rem,9vw,7rem)}
.hero h1{font-size:clamp(2rem,4.2vw,3.2rem);font-weight:800;letter-spacing:-.02em;max-width:24ch}
.hero p{font-size:clamp(1.05rem,2vw,1.3rem);color:#c9d3ea;max-width:54ch;margin:1.4rem 0 2.2rem}
.hero .eyebrow{color:#bfe9ff;background:rgba(0,194,168,.16)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem}
.hero-stats{display:flex;flex-wrap:wrap;gap:2.5rem;margin-top:3.5rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,.14)}
.hero-stats .num{font-size:2.2rem;font-weight:800;background:linear-gradient(120deg,#fff,#8fe9dc);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-stats .lbl{font-size:.9rem;color:#aeb9d4}

/* ===== Feature cards (image boxes) ===== */
.features{margin-top:-4.5rem;position:relative;z-index:5;padding-bottom:5rem}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.fcard{
  position:relative;border-radius:var(--radius);overflow:hidden;min-height:330px;
  display:flex;flex-direction:column;justify-content:flex-end;
  color:#fff;box-shadow:var(--shadow);isolation:isolate;
}
.fcard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .5s ease}
.fcard::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,14,33,.05) 30%,rgba(8,14,33,.92))}
.fcard::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,14,33,.55),rgba(8,14,33,.78));opacity:0;transition:opacity .4s ease}
.fcard:hover::before{opacity:1}
.fcard:hover img{transform:scale(1.07)}
.fcard .body{padding:1.6rem}
.fcard h3{font-size:1.3rem;font-weight:700;margin-bottom:.5rem}
.fcard p{font-size:.93rem;color:#dfe5f3;max-height:0;opacity:0;overflow:hidden;transition:max-height .4s ease,opacity .3s ease,margin .4s ease}
.fcard:hover p{max-height:260px;opacity:1;margin-top:.4rem}

/* ===== Generic section ===== */
.sec{padding:clamp(4rem,8vw,6.5rem) 0}
.sec-head{max-width:62ch}
#outsourcing .sec-head{max-width:760px}
@media(min-width:761px){#outsourcing .sec-head h2{white-space:nowrap}}
.sec-head.center{margin-inline:auto;text-align:center}
.sec-head h2{font-size:clamp(1.8rem,4vw,2.7rem);font-weight:800;letter-spacing:-.02em;margin:1rem 0 .8rem}
.sec-head p{color:var(--muted);font-size:1.08rem}

/* ===== About ===== */
.about{background:var(--soft)}
.about-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:2.5rem;align-items:stretch}
.about-main{display:flex;flex-direction:column;gap:1.6rem}
.about-cols{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem 2rem;align-content:start}
.about-cols h3{font-size:1.15rem;margin-bottom:.45rem;color:var(--ink)}
.about-cols p{color:var(--muted);font-size:.96rem;margin:.3rem 0}
.about-cols ul{margin:.3rem 0 0;padding-left:1.1rem;color:var(--muted);font-size:.95rem}
.about-cols li{margin:.2rem 0}
.about-visual{position:relative}
.about-visual img{
  position:absolute;top:1.5rem;left:1.5rem;right:1.5rem;bottom:0;
  width:auto;height:auto;object-fit:cover;object-position:top center;
  border-radius:var(--radius);box-shadow:var(--shadow);
}
.badges{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:auto}
.badge{display:inline-flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.55rem 1rem;font-weight:600;font-size:.9rem;box-shadow:var(--shadow-sm)}
.badge .dot{width:9px;height:9px;border-radius:50%;background:var(--brand-2)}

/* ===== Products ===== */
.products .sec-head{margin-bottom:2.5rem}
.brand-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}
.brand-strip a{
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:1.6rem 1rem;filter:grayscale(1);opacity:.7;
  transition:filter .2s,opacity .2s,transform .2s,box-shadow .2s;
}
.brand-strip a:hover{filter:none;opacity:1;transform:translateY(-3px);box-shadow:var(--shadow-sm)}
.brand-strip img{width:auto;height:auto;max-width:100%;max-height:31px;object-fit:contain}
.shop-cta{
  margin-top:2.5rem;background:linear-gradient(120deg,var(--bg),var(--bg-2));
  border-radius:var(--radius);color:#fff;padding:2.4rem;overflow:hidden;position:relative;
  display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap;
}
.shop-cta::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(0,194,168,.4),transparent 70%)}
.shop-cta h3{font-size:1.6rem;position:relative;z-index:2}
.shop-cta p{color:#aeb9d4;margin-top:.4rem;position:relative;z-index:2;max-width:46ch}
.shop-cta .btn{position:relative;z-index:2}

/* ===== Outsourcing ===== */
.out{background:var(--soft)}
.out-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:3rem;align-items:stretch;margin-top:2.5rem}
.out-visual{position:relative;min-height:280px}
.out-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}
.steps{display:grid;gap:1.1rem}
.step{
  display:flex;gap:1.1rem;align-items:flex-start;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.3rem 1.4rem;
  box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s;
}
.step:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.step .n{
  flex:0 0 auto;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;
  font-weight:800;color:#fff;font-size:1.1rem;
}
.step:nth-child(1) .n{background:linear-gradient(135deg,#7b5cff,#5b86ff)}
.step:nth-child(2) .n{background:linear-gradient(135deg,#00c2a8,#36d9a0)}
.step:nth-child(3) .n{background:linear-gradient(135deg,#ff9a3d,#ff7a45)}
.step:nth-child(4) .n{background:linear-gradient(135deg,#ff5d73,#ff3d6e)}
.step .n svg{width:24px;height:24px;stroke:#fff}
.step h4{margin:0 0 .25rem;font-size:1.05rem}
.step p{margin:0;color:var(--muted);font-size:.93rem}

/* ===== Contacts ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:2.5rem}
.contact-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:2.2rem;box-shadow:var(--shadow-sm)}
.contact-list{display:grid;gap:1.4rem;margin-top:.5rem}
.cl-item{display:flex;gap:1rem;align-items:flex-start}
.cl-item .ico{flex:0 0 auto;width:46px;height:46px;border-radius:13px;background:rgba(47,107,255,.1);color:var(--brand);display:grid;place-items:center;font-size:1.2rem}
.cl-item .ico svg{width:22px;height:22px}
.cl-item b{display:block;font-size:1.05rem}
.cl-item a,.cl-item span{color:var(--muted)}
.cl-item a:hover{color:var(--brand)}
.map-card{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow-sm);min-height:340px}
.map-card iframe{width:100%;height:100%;min-height:340px;border:0;display:block}

/* ===== Footer ===== */
footer{background:var(--bg);color:#aeb9d4;padding:3.5rem 0 2rem}
.foot-top{display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap;padding-bottom:2.5rem;border-bottom:1px solid rgba(255,255,255,.1)}
.foot-brand{max-width:34ch}
.foot-brand .brand{color:#fff;margin-bottom:.8rem}
.foot-links{display:flex;gap:3.5rem;flex-wrap:wrap}
.foot-col h5{color:#fff;font-size:.95rem;margin:0 0 .9rem;letter-spacing:.02em}
.foot-col a{display:block;padding:.3rem 0;font-size:.92rem;transition:color .15s}
.foot-col a:hover{color:#fff}
.foot-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;padding-top:1.6rem;font-size:.86rem}

/* ===== Reveal animation ===== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* ===== Responsive ===== */
@media(max-width:980px){
  .feature-grid{grid-template-columns:1fr}
  .about-grid,.out-grid,.contact-grid{grid-template-columns:1fr}
  .about-visual{max-width:460px;width:100%;margin-inline:auto}
  .about-visual img{position:static;width:100%;height:auto;min-height:240px;max-height:340px;object-position:top center}
  .out-visual{position:static;min-height:0;max-width:520px;width:100%;margin-inline:auto}
  .out-visual img{position:static;width:100%;height:auto;object-fit:cover}
  .brand-strip{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .menu{display:none}
  .burger{display:flex}
  .menu.open{
    display:flex;flex-direction:column;align-items:stretch;gap:.2rem;
    position:absolute;top:100%;left:0;right:0;background:#fff;
    padding:1rem 6%;border-bottom:1px solid var(--line);box-shadow:var(--shadow);
  }
  /* ---- ритм секций ---- */
  .sec{padding:3rem 0}
  .sec-head h2{font-size:1.75rem;margin:.7rem 0 .6rem}
  .sec-head p{font-size:1rem}

  /* ---- hero ---- */
  .hero-inner{padding:3.25rem 0 2.75rem}
  .hero .eyebrow{font-size:.66rem;letter-spacing:.1em;padding:.4rem .75rem}
  .hero h1{font-size:2rem;margin-top:.9rem}
  .hero p{margin:1rem 0 1.5rem}
  .hero-actions{gap:.7rem}
  .hero-actions .btn{flex:1 1 auto;justify-content:center}
  .hero-stats{gap:1.1rem 1.6rem;margin-top:2rem;padding-top:1.4rem}
  .hero-stats .num{font-size:1.7rem}

  /* ---- features: показываем описание (нет ховера на тач) ---- */
  .features{margin-top:-3rem;padding-bottom:3rem}
  .feature-grid{gap:1rem}
  .fcard{min-height:240px}
  .fcard p{max-height:none;opacity:1;margin-top:.4rem}
  .fcard::before{opacity:1}

  /* ---- about / outsourcing ---- */
  .about-visual,.out-visual{display:none}
  .about-grid,.out-grid{gap:0;margin-top:1.5rem}
  .about-main{gap:1.4rem}
  .about-cols{grid-template-columns:1fr;gap:1.4rem}
  .steps{gap:.9rem}
  .step{padding:1.1rem 1.2rem}

  /* ---- products ---- */
  .products .sec-head{margin-bottom:1.6rem}
  .brand-strip{grid-template-columns:repeat(2,1fr);gap:.8rem}
  .brand-strip a{padding:1.1rem .8rem}
  .shop-cta{flex-direction:column;align-items:flex-start;gap:1.2rem;padding:1.6rem;margin-top:1.6rem}
  .shop-cta h3{font-size:1.35rem}

  /* ---- contacts ---- */
  .contact-grid{gap:1.2rem;margin-top:1.5rem}
  .contact-card{padding:1.5rem}
  .contact-list{gap:1.1rem}
  .map-card{min-height:260px}
  .map-card iframe{min-height:260px}

  /* ---- footer ---- */
  footer{padding:2.5rem 0 1.5rem}
}
