/* Стили, специфичные для главной страницы. Подключается после
   entersight-tokens.css и site.css. */

/* --------------------------------------------------------------------------
   Хиро — скруглённая синяя карточка (не full-bleed!) с текстурным фоном,
   белая панель с CTA лежит поверх, картинка устройств выступает за
   нижний край карточки на белую подложку страницы.
   -------------------------------------------------------------------------- */
.hero {
  padding-top: var(--es-space-9);
  padding-bottom: var(--es-space-13);
  background: var(--es-bg);
}

.hero__card {
  position: relative;
  overflow: visible;
  border-radius: 25px;
  /* main_1.svg — это и есть вся карточка целиком: заливка #00A3FF,
     скругление ~25px и узор уже запечены в файле экспортом с Tilda.
     Никаких CSS-имитаций поверх — только сам ассет. */
  background: url('/assets/hero-card-bg.svg') center / cover no-repeat;
  padding: var(--es-space-11) var(--es-space-9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--es-space-9);
  align-items: start;
}

.hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--es-space-3);
}
.hero__display {
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  color: rgba(255,255,255,.85);
}
.hero__h1 {
  font-size: 26px;
  line-height: 34px;
  font-weight: var(--es-fw-semibold);
  letter-spacing: var(--es-ls-normal);
  color: #fff;
  max-width: 34ch;
  margin-top: var(--es-space-3);
}

.hero__panel {
  position: relative;
  z-index: 1;
  margin-top: var(--es-space-9);
  max-width: 480px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0px 2px 99px -8px rgba(0,0,0,.1);
  padding: var(--es-space-6) var(--es-space-5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--es-space-4);
}
.hero__sub {
  font-size: 42px;
  line-height: 1.05;
  font-weight: var(--es-fw-semibold);
  color: var(--es-text);
}
/* Значения из реального экспорта (не токен-шкала — это специфика хиро) */
.hero__badge {
  font-size: 18px;
  line-height: 1;
  font-weight: var(--es-fw-medium);
  color: var(--es-accent);
}
.hero__cta {
  margin-top: var(--es-space-1);
  font-size: 20px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0px 2px 99px -8px rgba(0,0,0,.1);
}

.hero__visual {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: -80px;
}
.hero__product-shot {
  width: 100%;
  height: auto;
}

@media (max-width: 1023px) {
  .hero__card { grid-template-columns: 1fr; padding: var(--es-space-9) var(--es-space-6); }
  .hero__visual { order: -1; margin-bottom: 0; max-width: 420px; margin-inline: auto; }
  .hero__panel { max-width: none; }
}
@media (max-width: 767px) {
  .hero__card { border-radius: var(--es-radius-lg); padding: var(--es-space-7) var(--es-space-5); }
  .hero__panel { padding: var(--es-space-5); }
}

/* --------------------------------------------------------------------------
   Вступление — текст + карточки-иллюстрация, фон #f5f5f8 (из экспорта)
   -------------------------------------------------------------------------- */
.intro {
  background: #f5f5f8;
  padding-block: var(--es-space-12);
}
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--es-space-9);
  align-items: center;
}
.intro__text {
  display: flex;
  flex-direction: column;
  gap: var(--es-space-6);
}
.intro__text p {
  font-size: 24px;
  line-height: 1.4;
  color: var(--es-text);
}
.intro__text p:last-child { font-size: 22px; }
.intro__text strong { font-weight: var(--es-fw-semibold); }
.intro__image { width: 100%; height: auto; }

@media (max-width: 1023px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__image { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .intro__text p, .intro__text p:last-child { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   Форматы магазинов — 4 карточки, фон секции #f5f5f6 (из экспорта)
   -------------------------------------------------------------------------- */
.formats {
  background: #f5f5f6;
  padding-block: var(--es-space-13);
}
.formats__title {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--es-space-11);
  font-size: 42px;
}
.formats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--es-space-6);
}
.formats__card {
  background: #fff;
  border-radius: var(--es-radius-lg);
  padding: var(--es-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--es-space-6);
}
.formats__card img { width: 56px; height: 56px; }
.formats__card-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: var(--es-fw-semibold);
  color: var(--es-text);
}
a.formats__card-title:hover { color: var(--es-accent); }
.formats__card-link {
  font-size: var(--es-body-size);
  font-weight: var(--es-fw-medium);
  color: var(--es-accent);
}
.formats__card-link:hover { color: #0593e6; }

@media (max-width: 1023px) {
  .formats__grid { grid-template-columns: repeat(2, 1fr); }
  .formats__title { font-size: 28px; }
}
@media (max-width: 767px) {
  .formats__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Госсистемы — 4 карточки с логотипами, фон белый
   -------------------------------------------------------------------------- */
.gov {
  background: #fff;
  padding-block: var(--es-space-13);
}
.gov__title {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--es-space-11);
  font-size: 42px;
}
.gov__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--es-space-6);
}
.gov__card {
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius-lg);
  padding: var(--es-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--es-space-6);
}
.gov__card img { width: 56px; height: 56px; object-fit: contain; }
.gov__card-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: var(--es-fw-semibold);
  color: var(--es-text);
}
a.gov__card-title:hover { color: var(--es-accent); }
.gov__card-link {
  font-size: var(--es-body-size);
  font-weight: var(--es-fw-medium);
  color: var(--es-accent);
}
.gov__card-link:hover { color: #0593e6; }

@media (max-width: 1023px) {
  .gov__grid { grid-template-columns: repeat(2, 1fr); }
  .gov__title { font-size: 28px; }
}
@media (max-width: 767px) {
  .gov__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Иконки-преимущества — отдельная секция под хиро, на белом фоне.
   Цвета иконок оригинальные (акценты подбрендов), не унифицируем —
   это единственное место на сайте, где они так используются.
   -------------------------------------------------------------------------- */
.hero-features {
  padding-top: var(--es-space-13);
  padding-bottom: var(--es-space-12);
}
.hero-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--es-space-6);
}
.hero-features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--es-space-4);
  text-align: center;
}
.hero-features__item img { width: 48px; height: 48px; }
.hero-features__label {
  font-size: 22px;
  line-height: 28px;
  font-weight: var(--es-fw-medium);
  max-width: 20ch;
}

@media (max-width: 1023px) {
  .hero-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero-features__grid { grid-template-columns: 1fr; }
  .hero-features__label { font-size: 18px; line-height: 26px; }
}
