/* Google fonts close to Figma setup (Inter + Public Sans) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Public+Sans:ital,wght@0,500;0,600;0,700;1,600;1,800&display=swap");

:root{
  /* Colors from Figma export */
  --accent-primary: #5F4AFB;
  --accent-border:  #7665F4;

  --text-primary:   #131414;
  --text-secondary: #6E6B6B;
  --text-nav:       #404040;

  --bg-page: #FFFFFF;
  --bg-hero: #F7F8FD;

  --border-header: #DFDDEF;

  /* Gradient used in Figma (“градиент 2 верт”) */
  --grad-1: linear-gradient(90deg, #57E7D7 1.14%, #699FE8 47.82%, #7663F4 100%);

  --radius-12: 12px;
  --radius-14: 14px;

  --container: 1280px;
}
.site-header { transition: transform .22s ease; will-change: transform; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================
   Buttons (shared)
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding: 0 16px;
  border-radius: var(--radius-12);
  font-size:14px;
  font-weight:500;
  line-height:14px;
  white-space:nowrap;
  cursor:pointer;
  border:1px solid transparent;
}

.btn-primary{
  background: var(--accent-primary);
  color:#F8FAFC;
}

.btn-outline{
  background: transparent;
  border-color: var(--accent-border);
  color:#2A2C30;
}

/* =========================
   Badge (shared)
========================= */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 2px 12px;
  border-radius: 9999px;
  font-size:14px;
  line-height:150%;
  color:#0A0A0A;
  background: #FFFFFF;
}
.badge--outline{
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-1) border-box;
}

/* =========================
   Header (shared)
========================= */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background:#FFFFFF;
  border-bottom: 1px solid var(--border-header);
}

.header__inner{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand__logo{
  width:28px;
  height:28px;
}
.brand__text{
  font-family:"Inter", sans-serif;
  font-weight:700;
  letter-spacing:0.5px;
  font-size:16px;
  color: var(--accent-primary);
}

/* Desktop nav */
.nav{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav__link{
  font-size:14px;
  line-height:14px;
  font-weight:400;
  color: var(--text-nav);
}
.nav__link--active{
  color: var(--accent-primary);
}

/* Actions */
.header__actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.lang{
  height:36px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  color:#2A2C30;
  cursor:pointer;
}
.lang__text{
  font-size:14px;
  line-height:14px;
}
.lang__chev{ display:block; }

.burger{
  display:none; /* shown on mobile */
  width:36px;
  height:36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor:pointer;
  padding: 0;
  color: var(--accent-primary);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
}


.burger__line{
  display:block;
  width:28px;
  height:3px;
  border-radius:999px;
  background: currentColor;
  margin: 0;
}

/* Mobile menu (overlay under header) */
.mobile-menu{
  border-bottom: 1px solid var(--border-header);
  background:#FFFFFF;
}
.mobile-menu__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 40px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.mobile-menu__link{
  font-size:14px;
  line-height:150%;
  color: var(--text-nav);
}
.mobile-menu__cta{
  display:flex;
  gap:12px;
  padding-top: 8px;
}

/* =========================
   Gradient text helpers (shared)
========================= */
.text-gradient-h2-italic{
  font-family: "Public Sans", sans-serif;
  font-style: italic;
  font-weight: 600;
  background: var(--grad-1);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-hero-vision{
  font-family: "Public Sans", sans-serif;
  font-style: italic;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   Responsive (shared)
========================= */
@media (max-width: 900px){
  .container{ padding: 0 16px; }

  .nav{ display:none; }
  .header__actions .lang,
  .header__actions .btn{ display:none; }

  .burger{ display:inline-flex; align-items:center; justify-content:center; }

  .mobile-menu__inner{ padding-left:16px; padding-right:16px; }
  .mobile-menu__cta{ flex-direction:column; }
  .mobile-menu__cta .btn{ width:100%; height:40px; }
}

html, body{
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}
/* ===== Sticky header: show on scroll up ===== */
.site-header {
  position: sticky; /* fallback, если JS отключён */
  top: 0;
  z-index: 1000;
  will-change: transform;
  transition: transform .22s ease;
}

/* когда нужно спрятать при скролле вниз */
.site-header.is-hidden {
  transform: translateY(-110%);
}

/* когда нужно показать (фикс сверху) */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* чтобы контент не прыгал, когда header становится fixed */
body.has-sticky-header {
  /* значение зададим через JS в inline style (padding-top) */
}