/* Main styles based on 1920x3240 design
   Converted to % and vw (base width 1920px)
   1vw = 19.2px at 1920
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F8F9FC;
  color: #0B1D36;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header placeholder - space for injected header (108px = 5.625vw) */
.header-placeholder {
  width: 100%;
  height: 5.625vw; /* 108 / 1920 * 100 */
  min-height: 60px;
  background: #0B1D36;
}

/* ========== HERO SECTION ========== */
/* Original: top 108px, height 822px, full width */
.hero {
  position: relative;
  width: 100%;
  height: 42.8125vw; /* 822px at 1920 */
  min-height: 480px;
  max-height: 900px;
  background: linear-gradient(132.82deg, #8A8A8A 4.17%, #525253 27.67%, #444445 37.56%, #3A3A3B 55.3%);
  display: flex;
  align-items: flex-start;
  overflow: hidden; /* clip laptop — keeps background intact */
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(48vw, 720px);
  max-width: 100%;
  padding-left: 7.5vw;
  padding-right: 1.5vw;
  padding-top: clamp(48px, 7vw, 135px);
  padding-bottom: 24px;
  box-sizing: border-box;
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 56px);
  line-height: 1.22;
  color: #E8F0FE;
  margin-bottom: 1.2rem;
  max-width: 100%;
  /* keep phrases together — no one-word-per-line */
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.55vw, 28px);
  line-height: 1.4;
  color: #D9D9D9;
  margin-bottom: 1.5rem;
  max-width: 36em;
  overflow-wrap: normal;
  word-break: normal;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 1.3vw; /* ~25px between buttons (649-549-75≈25) */
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20.78vw; /* 399px */
  height: 3.903vw; /* 74.93px */
  min-height: 48px;
  border-radius: 0.417vw; /* 8px */
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.25vw; /* 24px */
  line-height: 1.51vw;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.hero__btn--primary {
  background: #1D4E90;
  color: #F8FAFC;
  border: none;
}

.hero__btn--primary:hover {
  background: #2563A8;
  transform: translateY(-2px);
}

.hero__btn--secondary {
  background: rgba(17, 46, 85, 0.5);
  border: 1px solid rgba(232, 240, 254, 0.5);
  color: #F8FAFC;
}

.hero__btn--secondary:hover {
  background: rgba(17, 46, 85, 0.7);
  transform: translateY(-2px);
}

/* Hero visual - laptop */
.hero__visual {
  position: absolute;
  right: 3.02vw; /* approx */
  top: 3.33vw; /* 64px from hero top */
  width: 50.83vw; /* 976px */
  height: 37.34vw; /* 717px */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero__laptop {
  width: 100%;
  height: 100%;
  background: #0B1D36;
  border-radius: 0.8vw;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.hero__laptop-screen {
  position: absolute;
  inset: 0;
  background: #0B1D36;
  border-radius: 0.8vw;
  overflow: hidden;
}

.hero__laptop-content {
  padding: 1.5vw;
  height: 100%;
  background: linear-gradient(180deg, #1a3a5c 0%, #0B1D36 100%);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0B1D36;
}

.hero__mockup-header {
  font-size: 1.2vw;
  color: #E8F0FE;
  font-weight: 600;
  margin-bottom: 1.5vw;
  padding-bottom: 0.8vw;
  border-bottom: 1px solid rgba(232,240,254,0.2);
}

.hero__mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8vw;
}

.hero__mockup-card {
  background: rgba(232, 240, 254, 0.1);
  border-radius: 0.4vw;
  aspect-ratio: 1.4;
  border: 1px solid rgba(232, 240, 254, 0.15);
}

/* ========== ADVANTAGES SECTION ========== */
/* Original container: left 137px, top 1053px (from page top, so after hero ~ 1053-930≈123px from hero end) */
.advantages {
  position: relative;
  width: 100%;
  padding: 6.51vw 7.135vw 4vw; /* top ~125px, sides 137px */
  background: #F8F9FC;
}

.advantages__header {
  margin-bottom: 3.125vw; /* ~60px */
}

.advantages__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.5vw; /* 48px */
  line-height: 3.021vw; /* 58px */
  color: #0B1D36;
  margin-bottom: 0.625vw; /* 12px */
}

.advantages__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25vw; /* 24px */
  line-height: 1.51vw; /* 29px */
  color: #5F6368;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.08vw 3.125vw; /* vertical ~40px, horizontal ~60px (from 500 cards + gaps) */
  max-width: 85.625vw; /* 1644px */
}

.advantage-card {
  background: #FFFFFF;
  border: 1px solid #E8F0FE;
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 0.3125vw; /* 6px */
  padding: 2.08vw 2.4vw 2.4vw; /* approx */
  display: flex;
  flex-direction: column;
  min-height: 26.5vw; /* ~508-551px */
  transition: transform 0.2s, box-shadow 0.2s;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.15);
}

.advantage-card__icon {
  width: 3.646vw; /* 70px */
  height: 3.646vw;
  min-width: 48px;
  min-height: 48px;
  margin-bottom: 1.25vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.advantage-card__icon svg {
  width: 100%;
  height: 100%;
}

.advantage-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.667vw; /* 32px */
  line-height: 2.031vw; /* 39px */
  color: #0B1D36;
  margin-bottom: 1.25vw;
}

.advantage-card__text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.042vw; /* 20px */
  line-height: 1.354vw; /* 26px */
  color: #5F6368;
  margin-bottom: 0.8vw;
}

.advantage-card__text:last-child {
  margin-bottom: 0;
}

/* ========== SERVICES SECTION ========== */
/* Original: top 2384px, height 465px, left ~147px, width 1638px */
.services {
  position: relative;
  width: 100%;
  padding: 0 7.135vw 5vw;
  background: #F8F9FC;
}

.services__container {
  width: 100%;
  max-width: 85.3125vw; /* 1638px */
  margin: 0 auto;
  background: #F3F9FF;
  border-radius: 0.417vw; /* 8px */
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
  padding: 2.656vw 2.97vw 3.125vw; /* approx from 2435-2384=51px top padding etc */
}

.services__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 2.5vw; /* 48px */
  line-height: 3.021vw;
  color: #0B1D36;
  margin-bottom: 2.08vw;
}

.services__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5vw 4vw;
}

.services__column ul {
  list-style: none;
}

.services__column li {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.667vw; /* 32px */
  line-height: 2.031vw; /* 39px */
  color: #5F6368;
  padding-left: 2.08vw; /* space for bullet */
  margin-bottom: 1.77vw; /* ~34px between items */
  min-height: 2.2vw;
}

.services__column li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55vw; /* center with text */
  width: 0.781vw; /* 15px */
  height: 0.781vw;
  background: #0B1D36;
  border-radius: 50%;
}

.services__column a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
.services__column a:hover {
  color: #1D4E90;
  opacity: 0.9;
}

/* Contacts minimal grid */
.contacts__grid--minimal {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 320px));
  gap: 20px;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  justify-content: center;
}
.contacts__grid--minimal .contacts__card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}
.contacts__grid--minimal .contacts__value {
  font-size: 1.15rem;
  line-height: 1.35;
  word-break: break-word;
}
.contacts__grid--minimal .contacts__label {
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.contacts__gate {
  max-width: 560px;
  margin: 0 auto;
}
.contacts__gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.2rem;
  box-shadow: 0 4px 24px rgba(11, 29, 54, 0.07);
  text-align: center;
}
.contacts__gate-text {
  color: #5A6A7E;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.5rem 0 1.25rem;
}
.contacts__submit--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.contacts__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
@media (max-width: 640px) {
  .contacts__grid--minimal {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* ========== FOOTER ========== */

.footer {
  width: 100%;
  min-height: 11.146vw;
  background: #0B1D36;
  padding: 3vw 7.81vw 2.5vw;
  color: #E8F0FE;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 2.5vw 3vw;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}

.footer__logo {
  width: 3.2vw;
  height: 3.2vw;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer__logo:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(232, 240, 254, 0.35);
}

.footer__logo:active {
  transform: scale(0.96);
}

.footer__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer__tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95vw;
  line-height: 1.4;
  color: rgba(232, 240, 254, 0.75);
  max-width: 18vw;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6vw 1.6vw;
  align-content: flex-start;
}

.footer__link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1vw;
  line-height: 1.5;
  color: #E8F0FE;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer__link:hover {
  opacity: 0.75;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5vw;
}

.footer__contact {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1vw;
  line-height: 1.5;
  color: #E8F0FE;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer__contact:hover {
  opacity: 0.75;
}

.footer__copyright {
  grid-column: 1 / -1;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9vw;
  line-height: 1.4;
  color: rgba(232, 240, 254, 0.55);
  margin-top: 1vw;
  padding-top: 1.2vw;
  border-top: 1px solid rgba(232, 240, 254, 0.12);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
  .hero__title {
    font-size: 2.8vw;
  }
  .advantage-card__title {
    font-size: 1.5vw;
  }
  .advantage-card__text {
    font-size: 1vw;
  }
  .services__column li {
    font-size: 1.4vw;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 520px;
    flex-direction: column;
    padding-bottom: 4vw;
    overflow: hidden;
  }
  .hero__content {
    width: 90%;
    padding: 6vw 5vw 2vw;
  }
  .hero__title {
    font-size: 6vw;
    line-height: 1.2;
  }
  .hero__subtitle {
    font-size: 3.2vw;
    line-height: 1.3;
    max-width: 100%;
  }
  .hero__btn {
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 18px;
  }
  .hero__visual {
    position: relative;
    right: auto;
    top: auto;
    width: 90%;
    height: 50vw;
    margin: 0 auto;
  }
  .hero__laptop {
    transform: none;
  }
  .advantages {
    padding: 8vw 4vw;
  }
  .advantages__title {
    font-size: 5vw;
  }
  .advantages__subtitle {
    font-size: 2.8vw;
  }
  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 4vw;
  }
  .advantage-card {
    min-height: auto;
    padding: 5vw;
  }
  .advantage-card__icon {
    width: 48px;
    height: 48px;
  }
  .advantage-card__title {
    font-size: 22px;
    line-height: 1.3;
  }
  .advantage-card__text {
    font-size: 16px;
    line-height: 1.5;
  }
  .services {
    padding: 0 4vw 8vw;
  }
  .services__container {
    padding: 5vw;
  }
  .services__title {
    font-size: 5vw;
  }
  .services__list {
    grid-template-columns: 1fr;
  }
  .services__column li {
    font-size: 18px;
    line-height: 1.4;
    padding-left: 28px;
    margin-bottom: 16px;
  }
  .services__column li::before {
    width: 12px;
    height: 12px;
    top: 6px;
  }
  .footer {
    padding: 32px 24px 24px;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__tagline {
    font-size: 14px;
    max-width: none;
  }
  .footer__nav {
    gap: 12px 20px;
  }
  .footer__link,
  .footer__contact {
    font-size: 15px;
  }
  .footer__copyright {
    font-size: 13px;
    margin-top: 8px;
    padding-top: 16px;
  }
}

@media (max-width: 600px) {
  .header-placeholder {
    height: 56px;
  }
  .hero__title {
    font-size: 7vw;
  }
  .hero__subtitle {
    font-size: 4vw;
  }
  .hero__btn {
    font-size: 16px;
    height: 48px;
  }
}

/* ========== CONTACTS ========== */
.contacts {
  background: #F5F7FA;
  padding: 4.5vw 4vw 5vw;
}
.contacts__container {
  max-width: 1100px;
  margin: 0 auto;
}
.contacts__title {
  font-size: 2.2vw;
  font-weight: 700;
  color: #0B1D36;
  margin-bottom: 0.5vw;
  text-align: center;
}
.contacts__subtitle {
  text-align: center;
  color: #5A6A7E;
  font-size: 1.05vw;
  margin-bottom: 2.5vw;
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2vw;
  margin-bottom: 3vw;
}
.contacts__card {
  background: #fff;
  border-radius: 12px;
  padding: 1.6vw 1.4vw;
  box-shadow: 0 4px 20px rgba(11, 29, 54, 0.06);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contacts__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(11, 29, 54, 0.1);
}
.contacts__icon {
  display: inline-flex;
  margin-bottom: 0.8vw;
}
.contacts__label {
  font-size: 0.85vw;
  font-weight: 600;
  color: #5A6A7E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4vw;
}
.contacts__value {
  font-size: 1.05vw;
  font-weight: 500;
  color: #0B1D36;
  text-decoration: none;
}
a.contacts__value:hover {
  color: #1D4E90;
}
.contacts__form {
  background: #fff;
  border-radius: 16px;
  padding: 2.2vw 2.5vw;
  box-shadow: 0 4px 24px rgba(11, 29, 54, 0.07);
  max-width: 720px;
  margin: 0 auto;
}
.contacts__form-title {
  font-size: 1.35vw;
  font-weight: 700;
  color: #0B1D36;
  margin-bottom: 1.4vw;
}
.contacts__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2vw;
}
.contacts__field {
  margin-bottom: 1.1vw;
}
.contacts__field label {
  display: block;
  font-size: 0.9vw;
  font-weight: 500;
  color: #3A4A5C;
  margin-bottom: 0.35vw;
}
.contacts__field input,
.contacts__field textarea,
.contacts__field select {
  width: 100%;
  border: 1.5px solid #D5DCE6;
  border-radius: 10px;
  padding: 0.75vw 1vw;
  font-family: inherit;
  font-size: 1vw;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  background: #fff;
  color: #1a1a1a;
}
.contacts__field select {
  cursor: pointer;
  appearance: auto;
}
.contacts__field input:focus,
.contacts__field textarea:focus,
.contacts__field select:focus {
  border-color: #1D4E90;
  box-shadow: 0 0 0 3px rgba(29, 78, 144, 0.12);
}
.contacts__field input.is-invalid,
.contacts__field textarea.is-invalid,
.contacts__field select.is-invalid {
  border-color: #E03E3E;
  background: #FFF8F8;
}
.contacts__field .field-error {
  display: block;
  color: #C62828;
  font-size: 0.8vw;
  margin-top: 0.3vw;
  min-height: 1.1em;
}
.contacts__submit {
  background: #1D4E90;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85vw 2.2vw;
  font-size: 1.05vw;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.contacts__submit:hover {
  background: #163A6B;
  transform: translateY(-1px);
}
.contacts__form-status {
  margin-top: 0.8vw;
  font-size: 0.95vw;
  color: #1B7A4A;
}
.contacts__form-status.is-error {
  color: #C62828;
}
@media (max-width: 900px) {
  .contacts__title { font-size: 28px; }
  .contacts__subtitle { font-size: 15px; margin-bottom: 24px; }
  .contacts__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contacts__label { font-size: 12px; }
  .contacts__value { font-size: 15px; }
  .contacts__form { padding: 24px 20px; }
  .contacts__form-title { font-size: 20px; }
  .contacts__form-row { grid-template-columns: 1fr; }
  .contacts__field label { font-size: 14px; }
  .contacts__field input,
  .contacts__field textarea,
  .contacts__field select { font-size: 15px; padding: 12px 14px; }
  .contacts__field .field-error { font-size: 12px; }
  .contacts__submit { font-size: 16px; padding: 14px 28px; width: 100%; }
}
@media (max-width: 520px) {
  .contacts__grid { grid-template-columns: 1fr; }
}


/* === Contacts layout fix (centered cards) === */
.contacts .contacts__container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contacts .contacts__grid.contacts__grid--minimal {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 2rem;
  grid-template-columns: none;
}
.contacts .contacts__grid--minimal .contacts__card {
  flex: 1 1 240px;
  max-width: 300px;
  min-width: 220px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  box-sizing: border-box;
}
.contacts .contacts__grid--minimal .contacts__value {
  font-size: 1.1rem;
  line-height: 1.4;
  white-space: normal;
}
.contacts .contacts__form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.contacts .contacts__form-status a {
  color: #1D4E90;
  font-weight: 600;
}

/* Global toast — top right */
.zezento-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: none;
  max-width: min(360px, 90vw);
  text-align: left;
}
.zezento-toast--ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.zezento-toast--err {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}
