/* styles.css */
:root{
  --bg: #0b0f14;
  --bg2:#0f1620;
  --card:#101824;
  --text:#e6edf7;
  --muted:#a9b5c7;
  --line: rgba(255,255,255,.08);
  --brand:#4c8bd6;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(76,139,214,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(76,139,214,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.55);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.brand-logo{
  height:34px;
  width:auto;
  display:block;
}
.nav{
  display:flex;
  align-items:center;
  gap:14px;
}
.nav-link{
  font-size:14px;
  color:var(--muted);
  padding:10px 10px;
  border-radius:12px;
}
.nav-link:hover{
  color:var(--text);
  background: rgba(255,255,255,.04);
}
.nav-cta{
  color:var(--text);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}

/* Mobile menu — refined */
.nav-toggle{
  display:none;
  width:44px;
  height:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background: rgba(230,237,247,.9);
  border-radius:99px;
}

/* overlay */
.mobile-nav{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  padding:18px 22px 22px;
  background:
    linear-gradient(
      180deg,
      rgba(11,15,20,.98),
      rgba(11,15,20,.94)
    );
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  animation: menuDrop .18s ease-out;
}

.mobile-nav[hidden]{
  display:none !important;
}

@keyframes menuDrop{
  from{
    opacity:0;
    transform: translateY(-6px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

.mobile-link{
  display:block;
  padding:14px 4px;
  font-size:16px;
  color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,.04);
}

.mobile-link:last-child{
  border-bottom:none;
}

.mobile-link:hover{
  color:var(--text);
}

.mobile-cta{
  margin-top:14px;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:600;
  display:inline-block;
}

/* Hero */
.hero{
  padding:54px 0 20px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:center;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--muted);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:12px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height:1.08;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width:56ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
}
.btn-primary{
  border-color: rgba(76,139,214,.4);
  background: rgba(76,139,214,.18);
}
.btn-ghost{
  background: rgba(255,255,255,.02);
  color:var(--text);
}
.micro{
  margin:0;
  color: rgba(169,181,199,.85);
  font-size:13px;
}



/* Sections */
.section{
  padding:44px 0;
}
.section-alt{
  background: rgba(255,255,255,.02);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.tech-cloud{
  position:relative;
  overflow:hidden;
}

/* базовый стиль */
.tech{
  position:absolute;
  white-space:nowrap;
  font-weight:400;
  letter-spacing:.04em;
  color: rgba(230,237,247,.65);
  pointer-events:none;
}

/* вариации */
.tech.lg{ font-size:15px; font-weight:500; opacity:.75; }
.tech.md{ font-size:14px; opacity:.6; }
.tech.sm{ font-size:13px; opacity:.45; }

.tech-cloud{
  position:relative;
  overflow:hidden;
}

.hero-image{
  overflow: hidden;
}

.hero-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9; /* можно подкрутить */
  filter: saturate(0.9) contrast(1.05);
}

/* FIX: "right text" next to section title */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.section-head h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.01em;
}
.section-head p{
  margin:0;
  color: rgba(169,181,199,.78);
  max-width:62ch;
  line-height:1.45;
  font-size:13px;        /* smaller */
  font-style: italic;    /* nicer as requested */
  letter-spacing:.01em;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  padding:16px 16px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.card h3{
  margin:0 0 8px;
  font-size:16px;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.meta-row{margin-top:16px}

/* Tiles */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.tile{
  border:1px solid var(--line);
  background: rgba(16,24,36,.45);
  border-radius: var(--radius);
  padding:16px;
}
.tile h3{margin:0 0 8px; font-size:16px}
.tile p{margin:0; color:var(--muted); font-size:14px; line-height:1.55}

/* Pills */
.pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: rgba(230,237,247,.92);
  font-size:14px;
}

/* Partners */
.partners{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
.partner{
  border:1px solid var(--line);
  border-radius: 16px;
  text-align:center;
  background: rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:86px;
}
.partner:hover{
  background: rgba(255,255,255,.04);
}
.partner img{
  max-height: 92px;
  height:auto;
  width:auto;
  object-fit: contain;
  filter: none;
  opacity: .92;
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:center;
}
.contact h2{margin:0 0 10px; font-size:26px}
.contact p{margin:0 0 16px; color:var(--muted); line-height:1.6}
.contact-items{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.contact-item{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: rgba(230,237,247,.92);
  font-size:14px;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  background: rgba(0,0,0,.12);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.footer-logo{height:28px; width:auto; display:block}
.footer-meta{margin-top:8px; color:var(--muted); font-size:13px}
.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.footer-links a{
  color:var(--muted);
  font-size:14px;
}
.footer-links a:hover{color:var(--text)}

/* ===== Legal pages typography ===== */

.legal-text{
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(230,237,247,.88);
}

.legal-text p{
  margin: 0 0 18px;
}

.legal-text h3{
  margin: 34px 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(230,237,247,.95);
}

.legal-text strong{
  font-weight: 600;
  color: rgba(230,237,247,.95);
}

.legal-text a{
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(76,139,214,.35);
}

.legal-text a:hover{
  border-bottom-color: rgba(76,139,214,.7);
}

/* Contact image */
/* Contact pattern (low & wide) */
.contact-pattern{
  height: 140px;                 /* десктоп */
  overflow: hidden;
  filter: saturate(0.75) brightness(0.9);
}

.contact-pattern svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* waves */
.contact-pattern .wave{
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.2;
  opacity: .10;
}

.contact-pattern .w1{ opacity: .10; }
.contact-pattern .w2{ opacity: .07; }
.contact-pattern .w3{ opacity: .05; }

/* mobile */
@media (max-width: 980px){
  .contact-pattern{
    height: 110px;
  }
}

.contact-image img{
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;
}

/* mobile safety */
@media (max-width: 980px){
  .contact-image{
    max-height: 260px;
  }
}

/*

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; }
  .abstract-card{height:260px}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .grid-3{grid-template-columns: 1fr}
  .contact{grid-template-columns: 1fr}
  .partners{grid-template-columns: repeat(2, 1fr)}
  .section-head{flex-direction:column; align-items:flex-start}
  .section-head p{max-width: 70ch}
}

@media (max-width: 760px){
  .nav{display:none}
  .nav-toggle{display:block}
  .container{width:min(var(--max), calc(100% - 28px))}
  .cards{grid-template-columns: 1fr}
}

.hero-image{
  position: relative;
  overflow: hidden;
  border: none;              /* убираем карточность */
  background: none;
}

/* ===== HERO visual override ===== */

.hero-image{
  position: relative;
  height: 320px;
  border: none;
  box-shadow: none;
  background: none !important;
  overflow: hidden;
}

/* убиваем фон abstract-card именно здесь */
.hero-image.abstract-card{
  background: none !important;
  border: none !important;
}

/* перспективные линии */
.hero-image::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    repeating-linear-gradient(
      125deg,
      rgba(230,237,247,.10) 0px,
      rgba(230,237,247,.10) 1px,
      transparent 1px,
      transparent 26px
    );
  transform: skewX(-14deg);
  opacity: .35;
  mask-image: linear-gradient(
    to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,.65) 35%,
    rgba(0,0,0,.25) 55%,
    rgba(0,0,0,0) 80%
  );
  pointer-events:none;
}

/* мягкий инженерный свет */
.hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      520px 380px at 85% 50%,
      rgba(76,139,214,.22),
      transparent 60%
    );
  pointer-events:none;
}

/* mobile */
@media (max-width: 980px){
  .hero-image{
    display: none;
  }
}

