/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: #cdddf7; }

body {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f1f4f7;
  color: #15212e;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  border-radius: 7px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--dark { color: #fff; background: #1c2b3a; }
.btn--dark:hover { background: #263a4f; }
.btn--outline {
  color: #1c2b3a;
  background: #fff;
  border: 1px solid rgba(21,33,46,0.16);
}
.btn--outline:hover { background: #f5f7f9; }
.btn--blue { color: #fff; background: #2c61cf; }
.btn--blue:hover { background: #2555b5; }
.btn--lg { font-size: 15px; padding: 15px 30px; border-radius: 8px; }

/* ── Section label ────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2c61cf;
}
.section-label--light { color: #7fa8ff; }
.section-label__line {
  width: 28px; height: 2px;
  background: #2c61cf;
  display: block;
  flex-shrink: 0;
}
.section-label__line--light { background: #3b7dff; }

/* ── Header ───────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(21,33,46,0.10);
}
.header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.logo__icon { display: block; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 16px; color: #15212e; letter-spacing: 0.3px; }
.logo__sub {
  font-size: 9.5px;
  color: #8a96a4;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: #46525f;
  text-decoration: none;
  transition: color 0.15s;
}
.nav__link:hover { color: #2c61cf; }
.nav__link--phone { display: none; }

.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header__phone {
  font-size: 15px;
  font-weight: 700;
  color: #15212e;
  text-decoration: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.header__phone:hover { color: #2c61cf; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  z-index: 110;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: #15212e;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(44px, 6.5vw, 80px) 0 clamp(36px, 4vw, 52px);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28,43,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,43,58,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 105% at 70% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(125% 105% at 70% 0%, #000 35%, transparent 80%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}
.hero__content { flex: 1 1 470px; min-width: 300px; }
.hero__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: #101a26;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero__desc {
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.62;
  color: #4d5965;
  max-width: 490px;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual {
  flex: 1 1 380px;
  min-width: 300px;
  position: relative;
}
.hero__photo {
  position: relative;
  aspect-ratio: 4/4.3;
  border-radius: 10px;
  overflow: hidden;
  background-color: #dde3ec;
  border: 1px solid rgba(21,33,46,0.12);
}
.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 55%;
  display: block;
}

/* ── Sections ─────────────────────────────── */
.section {
  position: relative;
  padding: clamp(44px, 5vw, 68px) 0;
}
.section__heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.7px;
  color: #101a26;
}
.section__heading--lg {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.9px;
}
.section__header {
  margin-bottom: clamp(28px, 3vw, 38px);
  max-width: 620px;
}

/* ── About ────────────────────────────────── */
.about__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-start;
}
.about__left { flex: 1 1 260px; min-width: 240px; }
.about__right { flex: 1 1 300px; min-width: 260px; padding-top: 33px; }
.about__text {
  font-size: 16.5px;
  line-height: 1.68;
  color: #46525f;
  margin-bottom: 22px;
}
.about__list { display: flex; flex-direction: column; gap: 14px; }
.about__list-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(21,33,46,0.1);
  font-size: 15.5px;
  color: #2b3744;
  line-height: 1.5;
}
.about__list-item--last { border-bottom: none; padding-bottom: 0; }
.about__dash {
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2c61cf;
  margin-top: 1px;
}

/* ── Service cards ────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid rgba(21,33,46,0.12);
  border-radius: 10px;
  padding: 28px 26px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: #2c61cf;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(28,43,58,0.4);
}
.card__head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.card__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #2c61cf;
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  color: #101a26;
  margin-bottom: 9px;
  letter-spacing: -0.3px;
}
.card__text { font-size: 14.5px; line-height: 1.6; color: #5a6675; }

/* ── Service tree ─────────────────────────── */
.service-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-tree__root {
  width: 100%;
  max-width: 380px;
  position: relative;
  border-color: rgba(44, 97, 207, 0.35);
}
.service-tree__root::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 22px;
  background: rgba(44, 97, 207, 0.25);
}
.service-tree__branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 22px;
  position: relative;
}
.service-tree__branches::before {
  content: '';
  position: absolute;
  top: -22px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: rgba(44, 97, 207, 0.25);
}

/* ── Clients ──────────────────────────────── */
.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}
.client-card__logo {
  height: 40px;
  display: flex;
  align-items: center;
}
.client-card__logo img { height: 100%; width: auto; max-width: 100%; }

/* ── Contacts ─────────────────────────────── */
.contacts-section {
  position: relative;
  padding: clamp(44px, 5vw, 72px) 0 clamp(28px, 3vw, 40px);
}
.contacts {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1c2b3a;
  padding: clamp(36px, 4vw, 58px) clamp(28px, 4vw, 54px);
}
.contacts__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 120% at 85% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 120% at 85% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.contacts__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 4vw, 56px);
}
.contacts__info { flex: 1 1 320px; min-width: 280px; }
.contacts__heading {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.7px;
  color: #fff;
  margin-bottom: 14px;
}
.contacts__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(232,237,242,0.62);
  max-width: 420px;
  margin-bottom: 30px;
}
.contacts__details { display: flex; flex-direction: column; }
.contacts__item {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contacts__item--last { border-bottom: 1px solid rgba(255,255,255,0.12); }
.contacts__item-label {
  font-size: 11px;
  color: rgba(232,237,242,0.45);
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contacts__item-value {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
a.contacts__item-value:hover { text-decoration: underline; }

.contacts__form-wrap { flex: 1 1 300px; min-width: 280px; align-self: center; }
.contacts__form-card {
  background: #16202b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
}
.contacts__hours-label {
  font-size: 11px;
  color: rgba(232,237,242,0.5);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.contacts__hours-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}
.contacts__legal {
  font-size: 12.5px;
  color: rgba(232,237,242,0.42);
  line-height: 1.7;
  text-align: center;
  margin-top: 16px;
}

/* ── Form inputs ──────────────────────────── */
.form { display: flex; flex-direction: column; gap: 12px; }
.form__input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: #fff;
  font-family: inherit;
  font-size: 16px; /* <16px triggers iOS Safari auto-zoom on focus */
  outline: none;
  transition: border-color 0.15s;
}
.form__input::placeholder { color: rgba(232,237,242,0.35); }
.form__input:focus { border-color: #3b7dff; }
.form__textarea { resize: vertical; min-height: 80px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form__submit { margin-top: 4px; width: 100%; }
.form__success { text-align: center; padding: 20px 0; }
.form__success-text {
  font-size: 15px;
  color: rgba(232,237,242,0.7);
  line-height: 1.5;
}

/* ── Footer ───────────────────────────────── */
.footer {
  position: relative;
  padding: 0 0 24px;
}
.footer__inner {
  padding-top: 24px;
  border-top: 1px solid rgba(21,33,46,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6c7886;
}
.footer__left {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* ── Scroll reveal ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ───────────────────────────────── */
@media (max-width: 840px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(255,255,255,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 22px; font-weight: 600; }
  .nav__link--phone { display: inline-flex; color: #15212e; }
  .burger { display: flex; }
  .header__right { display: none; }

  .hero { padding-top: 32px; }
  .hero__content { flex-basis: 100%; min-width: unset; }
  .hero__title { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 16px; }
  .hero__desc { font-size: 15px; margin-bottom: 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn--lg { padding: 14px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .hero__visual { flex-basis: 100%; min-width: unset; }
  .hero__photo { aspect-ratio: 16/10; }

  .section { padding: 36px 0; }
  .section__heading { font-size: 24px; }
  .section__heading--lg { font-size: 26px; }

  .about__left, .about__right { flex-basis: 100%; min-width: unset; }
  .about__right { padding-top: 0; }
  .about__text { font-size: 15px; }
  .about__list-item { font-size: 14px; }

  .services { grid-template-columns: 1fr; gap: 10px; }
  .service-tree__root { max-width: 100%; }
  .service-tree__root::after,
  .service-tree__branches::before { display: none; }
  .service-tree__branches { grid-template-columns: 1fr; margin-top: 10px; }
  .card { padding: 22px 20px; }
  .card__title { font-size: 17px; }
  .card__text { font-size: 13.5px; }

  .clients { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .client-card { padding: 20px 14px; }
  .client-card__logo { height: 30px; }

  .contacts { border-radius: 12px; padding: 28px 20px; }
  .contacts__grid { flex-direction: column; }
  .contacts__info, .contacts__form-wrap { flex-basis: 100%; min-width: unset; }
  .contacts__heading { font-size: 26px; }
  .contacts__desc { font-size: 14px; margin-bottom: 22px; }
  .contacts__item-value { font-size: 16px; }
  .contacts__form-card { padding: 22px 18px; }

  .footer__inner { flex-direction: column; text-align: center; gap: 10px; }
  .footer__left { flex-direction: column; gap: 8px; }
}
