/* ============================================================
   Team367 — design system
   Brand palette lifted from the original site:
   blue #0732EF · cream #F8F6F3 · periwinkle #BCC5F2 · lime #D9FB99
   ============================================================ */

:root {
  --blue: #0732ef;
  --blue-dark: #0526bd;
  --blue-soft: #8094f1;
  --peri: #bcc5f2;
  --lime: #d9fb99;
  --cream: #f8f6f3;
  --white: #ffffff;
  --ink: #0a1033;
  --muted: #59608a;
  --line: #e3e0dc;

  --radius: 18px;
  --radius-sm: 12px;
  /* Как на исходном сайте: контент тянется во всю ширину,
     от края его отделяют только поля в 60 px. */
  --container: 1760px;
  --gutter: 60px;
  --shadow: 0 18px 40px -24px rgba(7, 50, 239, 0.45);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: -0.01em; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; }

.muted { color: var(--muted); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }

.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.logo {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; border-radius: 8px; }

/* подпись рядом с логотипом */
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-tagline {
  border-left: 1.5px solid var(--line);
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 230px;
}
.brand-tagline b { color: var(--blue); font-weight: 600; }
@media (max-width: 1200px) { .brand-tagline { display: none; } }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 500; color: var(--blue); }
.main-nav a.active { text-decoration: underline; text-underline-offset: 6px; }
.main-nav .nav-cta {
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
}
.main-nav .nav-cta:hover { background: var(--blue); color: var(--white); text-decoration: none; }

.burger {
  display: none;
  width: 44px; height: 40px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 9px 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--blue);
  margin: 3px 0;
  border-radius: 2px;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 116px) 0 clamp(48px, 7vw, 96px);
}

.hero-inner { position: relative; z-index: 2; max-width: 952px; }
.hero h1 { margin-bottom: 22px; }
/* уже leader: узор справа не должен налезать на текст абзаца */
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); opacity: 0.78; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--lime);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.eyebrow .ar { text-transform: none; letter-spacing: 0; font-size: 16px; }

/* Фирменный узор — тот же SVG, что стоял на Wix, прижат к правому краю */
.hero-pattern {
  position: absolute;
  z-index: 1;
  top: 60px;
  right: var(--gutter);
  width: clamp(260px, 44vw, 660px);
  height: auto;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-pattern { top: auto; bottom: -40px; right: -60px; width: 340px; opacity: 0.85; }
}
@media (max-width: 700px) {
  .hero-pattern { width: 220px; right: -60px; bottom: -50px; opacity: 0.55; }
  .eyebrow { font-size: 13px; padding: 6px 14px; }
}

/* ---------------- page hero (inner pages) ---------------- */

.page-hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }

/* ---------------- generic sections ---------------- */

.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-white { background: var(--white); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-blue .lead { color: rgba(255, 255, 255, 0.82); }

.section-head { max-width: 720px; margin-bottom: 42px; }

/* ---------------- cards ---------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { margin-bottom: 4px; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card ul li { margin-bottom: 6px; }
.card .card-link { margin-top: auto; padding-top: 14px; font-weight: 700; }

.card-cream { background: var(--cream); }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--peri);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 2; }
.card-icon.lime { background: var(--lime); }

/* ---------------- stats ---------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat-value {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.stat-label { color: rgba(255, 255, 255, 0.78); margin-top: 8px; font-size: 16px; }

/* ---------------- process ---------------- */

.step {
  border-top: 2px solid var(--blue);
  padding-top: 18px;
}
.step-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.55;
  letter-spacing: 0.08em;
}
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); }

/* ---------------- partners ---------------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 46px;
  align-items: center;
}
.partner {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.cta-band .btn {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.cta-band .btn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* ---------------- split: текст + фотография во всю ширину ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.split-text { max-width: 640px; }
.split-media img {
  width: 100%;
  height: clamp(280px, 38vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
}
/* фотография уходит за правый край экрана — как тянется контент на исходном сайте */
.split-bleed .split-media {
  margin-right: calc(-1 * var(--gutter));
}
.split-bleed .split-media img {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-bleed .split-media { margin-right: calc(-1 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); }
  .split-bleed .split-media img { border-radius: 0; height: 260px; }
}

.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--lime);
}

/* ---------------- полоса про регион MENA (с арабским) ---------------- */

.mena {
  position: relative;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.mena-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.mena::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 18, 60, 0.94) 0%, rgba(7, 50, 239, 0.78) 50%, rgba(7, 18, 60, 0.9) 100%);
}
.mena .container { position: relative; z-index: 2; }
.mena h2, .mena h3 { color: var(--white); }
.mena p { color: rgba(255, 255, 255, 0.86); }

.mena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .mena-grid { grid-template-columns: 1fr; } }

/* ---------------- арабский ---------------- */

[dir="rtl"], .ar {
  font-family: "Cairo", "Familjen Grotesk", "Geeza Pro", sans-serif;
}
[dir="rtl"] { text-align: right; }
[dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
.ar-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.85; }
.ar-divider {
  width: 64px; height: 4px;
  background: var(--lime);
  border-radius: 2px;
  margin: 0 0 22px;
}
[dir="rtl"] .ar-divider { margin-left: 0; margin-right: 0; }

/* ---------------- form ---------------- */

.form-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.order-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-form h2,
.contact-card h2 { font-size: clamp(24px, 2.4vw, 30px); }

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.order-form input,
.order-form select,
.order-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
}
.order-form textarea { min-height: 132px; resize: vertical; }
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(7, 50, 239, 0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 14px; color: var(--muted); margin: 0; }

.form-status { font-size: 15px; font-weight: 600; min-height: 22px; }
.form-status.ok { color: #0a7a3d; }
.form-status.err { color: #c02626; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--peri);
  display: grid;
  place-items: center;
}
.contact-item .ico svg { width: 19px; height: 19px; stroke: var(--blue); fill: none; stroke-width: 2; }
.contact-item b { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 16px; color: var(--muted); }
.contact-item a { color: var(--blue); }

/* ---------------- legal pages ---------------- */

.legal { max-width: 820px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 40px; }
.legal h3 { margin-top: 26px; }
.legal ul { color: var(--muted); padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .effective { color: var(--muted); font-size: 15px; }

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 28px;
  margin-top: 0;
}
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: 17px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { color: var(--lime); font-weight: 600; margin-bottom: 10px; }
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}
.footer-bottom a { display: inline; margin: 0; }

/* ---------------- mobile nav ---------------- */

@media (max-width: 860px) {
  .burger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 24px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; font-size: 18px; }
  .site-header { position: relative; }
}
