/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 78, 216, .25);
}
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--ghost-light { color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--primary-dark); }
.btn--white { background: #fff; color: var(--primary-dark); }
.btn--white:hover { background: #e0e7ff; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}
.logo--light { color: #fff; }
.logo__text { letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link {
  position: relative;
  font-weight: 500;
  color: var(--text);
  padding: .25rem 0;
}
.nav__link:hover { color: var(--primary); }
.nav__link--active { color: var(--primary); }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(1200px 600px at 90% -10%, #dbeafe 0%, transparent 60%),
    radial-gradient(800px 400px at 10% 110%, #e0e7ff 0%, transparent 60%),
    #fff;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero__badge {
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--primary-dark);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.accent { color: var(--primary); }
.hero__text {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}
.stat__label { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

.hero__visual {
  position: relative;
}
.hero__visual-inner {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}
.hero__svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(29, 78, 216, .25));
  border-radius: 32px;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__badge-float {
  position: absolute;
  bottom: 24px;
  left: -16px;
  background: #fff;
  padding: .85rem 1.15rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, .15);
  animation: floatY 4s ease-in-out infinite;
  animation-delay: -2s;
}
.hero__badge-icon {
  font-size: 1.6rem;
  background: #fef3c7;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__badge-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}
.hero__badge-text {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section__subtitle { color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card__title { font-size: 1.25rem; margin-bottom: .5rem; font-weight: 700; }
.card__text { color: var(--muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .25;
  line-height: 1;
  margin-bottom: .5rem;
}
.feature h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.feature p { color: var(--muted); }

/* ---------- Calc ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.calc__list { margin-top: 1.5rem; }
.calc__list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: .5rem;
  color: var(--muted);
}
.calc__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.calc__form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field span { font-size: .9rem; font-weight: 600; color: var(--text); }
.field input,
.field select,
.field textarea {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .15);
}
.form__note { margin-top: 1rem; font-size: .95rem; color: var(--primary); min-height: 1.2em; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 4rem 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .5rem; }
.cta p { opacity: .9; }
.cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; }

/* ---------- Services ---------- */
.service {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service:last-child { border-bottom: none; }
.service__icon {
  font-size: 4rem;
  background: #dbeafe;
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service--reverse .service__icon { background: #fef3c7; }
.service__body h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.service__body p { color: var(--muted); margin-bottom: 1rem; }
.service__body ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: .35rem;
  color: var(--text);
}
.service__body ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-grid p { color: var(--muted); margin-bottom: 1rem; }
.about-card {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-card h3 { margin-bottom: 1rem; }
.about-list li {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list strong { color: var(--primary); font-size: 1.1rem; }

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: .35rem;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #dbeafe;
}
.timeline span {
  display: inline-block;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .25rem;
}
.timeline p { color: var(--muted); }

/* ---------- Tracking ---------- */
.track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.track__field { width: 100%; }
.track__hint { text-align: center; color: var(--muted); margin-top: 2rem; }
.track__hint code {
  background: var(--bg-alt);
  padding: .15rem .5rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

.track__result {
  max-width: 720px;
  margin: 2rem auto 0;
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.track__result h2 { margin-bottom: 1.5rem; font-size: 1.4rem; }
.steps {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}
.steps li {
  position: relative;
  padding: 0 0 1.25rem 1rem;
}
.steps li::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: .4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
}
.steps li.done::before { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.steps li.current::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); animation: pulse 1.5s infinite; }
.steps strong { display: block; }
.steps small { color: var(--muted); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contacts-grid h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.contacts-grid h3 { margin: 2rem 0 1rem; }
.contacts-info p { margin-bottom: 1rem; color: var(--muted); }
.contacts-info strong { color: var(--text); }
.contacts-info a { color: var(--primary); }
.offices li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.offices li:last-child { border-bottom: none; }
.offices a { color: var(--primary); }

.contact-form {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map {
  height: 420px;
  background: var(--bg-alt);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 4rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer__col ul li { margin-bottom: .5rem; }
.footer__col a { color: #cbd5e1; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__about { margin-top: 1rem; font-size: .95rem; }
.footer address { font-style: normal; line-height: 1.8; }

.footer__bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner,
  .calc,
  .about-grid,
  .contacts-grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 80px 1fr; gap: 1.5rem; }
  .service__icon { width: 80px; height: 80px; font-size: 2.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transform: translateY(-150%);
    transition: transform .3s ease;
    gap: 1rem;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__link { display: block; padding: .75rem 0; }

  .form-row { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 3rem 0; }
  .hero { padding: 2.5rem 0 3rem; }
  .hero__stats { gap: 1.5rem; }
}
