:root{
  --bg: #F4F6F8;
  --ink: #0f172a;
  --muted: #526175;

  --navy: #0b1220;
  --navy-2: #111b2e;

  --accent: #2563eb;
  --accent-2: #1d4ed8;

  --line: rgba(15,23,42,.10);
  --container: 1120px;

  /* висота навбару для якорів */
  --nav-h: 56px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* помітніший градієнт + сітка */
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(255,140,0,0.22), transparent 60%),
    radial-gradient(1100px 650px at 88% 18%, rgba(0,180,120,0.18), transparent 62%),
    radial-gradient(900px 520px at 70% 85%, rgba(70,120,255,0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f1f4fb 100%),

    repeating-linear-gradient(to right, rgba(0,0,0,0.08) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.08) 0 1px, transparent 1px 32px),

    repeating-linear-gradient(to right, rgba(0,0,0,0.12) 0 1px, transparent 1px 128px),
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.12) 0 1px, transparent 1px 128px);
  background-attachment: fixed;
}

a{ color: var(--accent-2); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }

/* badge */
.badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  color: var(--accent-2);
}
.badge--b2b{ background: rgba(37,99,235,.12); }

/* ============ HERO (FULLSCREEN VIDEO) ============ */
.hero{
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero--video{
  position: relative;
  overflow: hidden;
  height: 72vh;
  min-height: 520px;
  max-height: 760px;
  padding: 0;
}
.hero__bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 80% at 40% 35%, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(11,18,32,0.25) 0%, rgba(11,18,32,0.85) 100%);
}
.hero__topbar{
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 3;
}
.hero__topbar .container{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero__inner{
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 110px 0 40px;
}
.hero__brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.logo{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}
.logo img{ width: 100%; height: 100%; object-fit: contain; display: block; }

.hero__title{ margin: 0; font-size: clamp(28px, 4vw, 40px); }
.hero__subtitle{ margin: 2px 0 0; color: rgba(255,255,255,.78); font-weight: 600; }
.hero__lead{ margin: 10px 0 0; max-width: 980px; color: rgba(255,255,255,.92); font-size: 16px; }

@media (prefers-reduced-motion: reduce){
  .hero__bg-video{ display: none; }
}

/* ===== NAV ===== */
.nav{
  width: 100%;
  background: rgba(244,246,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.10);
}
.nav.is-fixed{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(244,246,248,.96);
  border-bottom: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
}

.nav__inner{
  padding: 10px 0;
}

.nav__bar{
  display: none; /* desktop hidden */
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav__toggle{
  appearance: none;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.60);
  border-radius: 12px;
  height: 40px;
  width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.nav__toggle-lines{
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after,
.nav__toggle-lines{
  background: transparent;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(15,23,42,.85);
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.nav__toggle-lines::before{ top: 2px; }
.nav__toggle-lines::after{ top: 8px; }

.nav.is-open .nav__toggle-lines::before{ top: 5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-lines::after{ top: 5px; transform: rotate(-45deg); }

.nav__links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav__links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  color: #0b0f19;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.nav__links a:hover{
  background: rgba(15,23,42,.06);
  text-decoration: none;
}

/* spacer щоб сторінка не "стрибала" */
.nav-spacer{ height: 0; }

/* щоб при кліку по якорях заголовки не ховалися під nav */
.section{ padding: 44px 0; scroll-margin-top: calc(var(--nav-h) + 14px); }

.section__head{ margin-bottom: 14px; }
.section__head h2{ margin: 0; font-size: 28px; }
.section__sub{ margin: 6px 0 0; color: var(--muted); max-width: 900px; }

/* layout */
.content-grid{
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px){
  .content-grid{ grid-template-columns: 1fr; }
}

.content{ padding: 0; border: none; background: transparent; box-shadow: none; }
.content h3{ margin: 18px 0 8px; font-size: 18px; }

.panel{ padding: 0; border: none; background: transparent; box-shadow: none; }
.panel h3{ margin: 0 0 10px; font-size: 16px; }

.bullets{ margin: 10px 0 0; padding-left: 18px; }
.bullets li{ margin: 6px 0; }

.callout{
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid rgba(37,99,235,.75);
  background: rgba(37,99,235,.08);
  color: #0c2c60;
}

/* footer */
.footer{
  background: var(--navy);
  color: rgba(255,255,255,.82);
  padding: 26px 0;
  margin-top: 10px;
}
.footer__inner{ display: grid; gap: 10px; }
.footer__copy{ font-size: 13px; color: rgba(255,255,255,.72); }

/* base button */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.10);
  color: var(--accent-2);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(37,99,235,.14);
  text-decoration: none;
}

/* map button */
.btn--map{
  background: rgba(11,18,32,.70);
  border: 1px solid rgba(37,99,235,.55);
  color: rgba(96,165,250,.95);
  box-shadow:
    0 0 0 4px rgba(37,99,235,.12),
    0 10px 26px rgba(0,0,0,.35);
}
.btn--map:hover{
  background: rgba(11,18,32,.85);
  box-shadow:
    0 0 0 4px rgba(37,99,235,.16),
    0 14px 34px rgba(0,0,0,.40);
}

/* footer map */
.footer-map{ margin-top: 0; padding-top: 0; }
.footer-map__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-map__title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.85);
}
.footer-map__embed{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.footer-map__embed iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}
.footer-map__note{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.60);
}
@media (max-width: 560px){
  .footer-map__embed iframe{ height: 240px; }
}

/* CONTACT */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 34px;
  align-items: start;
  margin-top: 10px;
}
@media (max-width: 920px){
  .contact-layout{ grid-template-columns: 1fr; gap: 22px; }
}

.contact-left{ display: grid; gap: 12px; }
.contact-item{ padding: 0; border: none; }

.contact-k{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--muted);
  text-transform: uppercase;
}
.contact-v{ margin-top: 6px; font-weight: 800; }

/* email black */
.contact-email{ color: var(--ink) !important; text-decoration: none; }
.contact-email:hover{ text-decoration: underline; }

/* whatsapp */
.contact-whatsapp{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  text-decoration: none;
}
.contact-whatsapp__icon{ display: inline-flex; width: 22px; height: 22px; color: #5B9EEE; }
.contact-whatsapp__number{ font-weight: 800; color: #5B9EEE; }

/* form card */
.contact-form-card{
  border-radius: 18px;
  padding: 18px;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(15,23,42,.08);
}

/* form grid */
.contact-form .form-row{ display: grid; gap: 14px; margin-bottom: 14px; }
.contact-form .form-row--two{ grid-template-columns: 1fr 1fr; }
@media (max-width: 720px){
  .contact-form .form-row--two{ grid-template-columns: 1fr; }
}

/* labels */
.field-label{
  display: inline-block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.field-label span{ color: #ef4444; margin-left: 4px; }

.field-input,
.field-textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field-textarea{ min-height: 120px; resize: vertical; }

.field-input::placeholder,
.field-textarea::placeholder{ color: rgba(15,23,42,.45); }

.field-input:focus,
.field-textarea:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.form-note{ margin-top: 6px; font-size: 13px; color: var(--muted); }
.form-submit{ margin-top: 14px; }

.btn-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #5B9EEE;
  color: #061018;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  transition: transform .15s ease, filter .15s ease;
}
.btn-submit:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.form-status{
  display: none;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0B1220;
}

/* =======================
   MOBILE OPTIMIZATION
   ======================= */
@media (max-width: 820px){
  .container{ width: min(var(--container), calc(100% - 28px)); }

  /* hero tighter */
  .hero--video{
    height: 74vh;
    min-height: 520px;
  }
  .hero__inner{ padding: 92px 0 28px; }
  .hero__brand{ gap: 12px; }
  .logo{ width: 48px; height: 48px; border-radius: 14px; }
  .hero__subtitle{ font-size: 14px; }
  .hero__lead{ font-size: 15px; line-height: 1.75; }

  /* NAV becomes burger */
  .nav__bar{ display: flex; }
  .nav__links{
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 18px 44px rgba(15,23,42,.10);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
  }
  .nav__links a{
    justify-content: flex-start;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 14px;
    background: rgba(15,23,42,.03);
  }
  .nav__links a:hover{ background: rgba(15,23,42,.06); }

  .nav.is-open .nav__links{ display: flex; }

  /* sections spacing */
  .section{ padding: 34px 0; }
  .section__head h2{ font-size: 26px; }

  /* contact */
  .contact-form-card{ padding: 16px; }
}
