/* =========================================================
   Базовые переменные и общие правила страницы
   ========================================================= */
:root {
  --color-white: #ffffff;
  --color-black: #181717;
  --color-orange: #fb8c27;
  --color-olive: #cfd3bb;
  --color-badge-border: #d9d9d9;
}

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

body {
  margin: 0;
  background: transparent;
  color: var(--color-black);
  font-family: "Inter", "Involve", "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing {
  width: 100%;
}

.floating-frame10 {
  position: fixed;
  right: clamp(8px, 1.5vw, 20px);
  bottom: clamp(8px, 1.5vw, 20px);
  z-index: 9999;
  display: inline-flex;
  line-height: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.floating-frame10__img {
  display: block;
  width: clamp(18px, 4.2vw, 46px);
  height: auto;
}

.floating-frame10:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.floating-frame10:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

/* =========================================================
   Секция 1: Hero (grid layout)
   ========================================================= */
.hero-screen {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px 24px;
  overflow: hidden;
}

/* Фоновый блок hero */
.hero-bg {
  position: absolute;
  inset: 18px 20px auto;
  height: 802px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 0;
}

.hero-bg .rectangle {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #abaf9379 -33.25%,
    rgba(255, 255, 255, 0.6) 70%,
    rgb(253, 250, 250) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1472px;
}

/* Шапка hero */
.hero-screen .header {
  margin: 26px 0 72px;
  padding: 8px 16px;
  border: 1px solid var(--color-olive);
  border-radius: 40px;
  background: var(--color-white);
}

.hero-screen .logo {
  width: 120px;
  height: 50px;
}

.hero-screen .group,
.hero-screen .logo-image {
  display: block;
  width: 120px;
  height: 50px;
}

.hero-screen .logo-image {
  object-fit: contain;
}

.hero-screen .navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero-screen .text-wrapper-3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-screen .buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hero-screen .mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-screen .mobile-menu-line {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #181717;
}

.hero-screen .frame,
.hero-screen .div-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.hero-screen .frame {
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  background: transparent;
}

.hero-screen .div-wrapper {
  border: 1px solid var(--color-orange);
  background: var(--color-orange);
  color: var(--color-white);
}

/* Текстовый контент hero */
.hero-content {
  margin-bottom: 30px;
  text-align: center;
}

.hero-screen .text-wrapper {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}

.hero-screen .p {
  margin: 0 auto 22px;
  max-width: 658px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.2;
}

.hero-screen .hero-break-mobile {
  display: none;
}

.hero-screen .hero-break-desktop {
  display: inline;
}

.hero-screen .main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 40px;
  background: var(--color-orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-screen .frame:hover {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(251, 140, 39, 0.24);
  transform: translateY(-1px);
}

.hero-screen .div-wrapper:hover,
.hero-screen .main-button:hover {
  box-shadow: 0 8px 20px rgba(251, 140, 39, 0.28);
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.hero-screen .mobile-menu-button:hover {
  opacity: 0.8;
}

.hero-screen .frame:active,
.hero-screen .div-wrapper:active,
.hero-screen .main-button:active {
  transform: translateY(0);
  filter: brightness(0.9);
}

.hero-screen .mobile-menu-button:active {
  transform: scale(0.96);
}

.hero-screen .frame:focus-visible,
.hero-screen .div-wrapper:focus-visible,
.hero-screen .main-button:focus-visible,
.hero-screen .mobile-menu-button:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.hero-screen .text-wrapper-2 {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Медиа-контент hero */
.hero-media-row {
  position: relative;
  row-gap: 14px;
  margin: 115px auto 0;
  max-width: 1160px;
  min-height: 560px;
}

.hero-media-row > .col-md-6 {
  flex: 0 0 82.33%;
  max-width: 82.33%;
  margin: 0 auto;
  z-index: 2;
}

.hero-media-row > .col-md-3 {
  position: absolute;
  width: clamp(180px, 22.414%, 260px);
  max-width: 260px;
  z-index: 3;
}

.hero-media-row > .col-md-3:nth-child(2) {
  left: 12.845%;
  top: 61.607%;
  transform: translate(-50%, -50%);
}

.hero-media-row > .col-md-3:nth-child(3) {
  left: 91.121%;
  top: 6.25%;
  transform: translate(-50%, -50%);
}

.hero-screen .hero,
.hero-screen .hero-img,
.hero-screen .hero-2 {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}


/* =========================================================
   Секция 2: О системе (grid layout)
   ========================================================= */
.about-screen {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 20px 28px;
}

.about-container {
  max-width: 1320px;
}

/* Бейдж секции */
.about-screen .info {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 121px;
  height: 32px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--color-badge-border);
  border-radius: 60px;
  background: var(--color-white);
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
}

.about-screen .information {
  width: 16px;
  height: 16px;
}

.about-screen .text-wrapper-2 {
  width: 73px;
  height: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  text-align: center;
}

/* Заголовок и описание */
.about-screen .div {
  margin: 20px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.about-screen .text-wrapper {
  margin: 0 0 34px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

/* Карточки преимуществ */
.about-screen .benefits {
  row-gap: 16px;
}

.about-screen .benefit {
  height: 100%;
  padding: 12px 8px;
  text-align: center;
}

.about-screen .info-icon,
.about-screen .img {
  display: block;
  width: 64px;
  height: 76px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.about-screen .info-2 {
  display: block;
  width: 66.02px;
  height: 76px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.about-screen .p,
.about-screen .text-wrapper-3,
.about-screen .text-wrapper-4 {
  margin: 0;
  font-family: "Involve", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

/* =========================================================
   Адаптив для объединенной страницы
   ========================================================= */
@media (max-width: 991px) {
  .hero-screen {
    padding: 8px 12px 20px;
  }

  .hero-bg {
    inset: 0;         /* растянуть от края до края */
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
  .hero-bg .rectangle {
    object-fit: cover;
    object-position: 55% 50%;
    transform: scale(1.12) translateY(-12%);
    transform-origin: center;
  }

  .hero-screen .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .hero-screen .header.row {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-screen .header > .col-xs-12.col-md-2 {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-screen .header > .col-xs-12.col-md-7,
  .hero-screen .header > .col-xs-12.col-md-3 {
    display: none;
  }

  .hero-screen .mobile-menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 32px;
    min-height: 26px;
    margin-left: auto;
    cursor: pointer;
  }

  .hero-screen .mobile-menu-line {
    width: 24px;
    height: 2px;
  }

  .hero-media-row {
    min-height: 0;
    max-width: 760px;
    margin-top: 156px;
  }

  .hero-media-row > .col-md-6,
  .hero-media-row > .col-md-3 {
    position: static;
    width: auto;
    flex: 0 0 100%;
    max-width: 100%;
  }


  .about-screen {
    padding: 24px 12px 20px;
  }
}

@media (max-width: 767px) {
  .hero-bg {
    height: 667px;
  }
  


  .hero-screen .hero-break-mobile {
    display: inline;
  }

  .hero-screen .hero-break-desktop {
    display: none;
  }

  .hero-screen .logo,
  .hero-screen .group,
  .hero-screen .logo-image {
    width: 92px;
    height: 38px;
  }

  .hero-screen .text-wrapper {
    font-size: 25px;
    margin-top: 60px;
  }

  .hero-screen .p {
    font-size: 16px;
  }

  .about-screen .div {
    margin-top: 16px;
    font-size: 26px;
  }

  .about-screen .text-wrapper {
    margin-bottom: 22px;
  }
}

/* Unified rule: hide side hero media on <= 992px */
@media (max-width: 992px) {
  .hero-media-row > .col-md-3 {
    display: none;
  }

  .hero-media-row > .col-md-6 {
    position: static;
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}


/* Keep 3 cards in one row until 736.4px */
@media (max-width: 1200px) and (min-width: 736.401px) {
  .about-screen .benefits.row {
    display: flex !important;
    flex-wrap: nowrap;
  }

  .about-screen .benefits.row > .col-xs-12.col-md-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }

  .about-screen .benefit,
  .about-screen .p,
  .about-screen .text-wrapper-3,
  .about-screen .text-wrapper-4 {
    width: 100% !important;
    min-height: 0;
  }
}

/* Stack cards only after 736.4px and below */
@media (max-width: 736.4px) {
  .about-screen .benefits.row > .col-xs-12.col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .about-screen .benefits {
    gap: 50px;
    margin-top: 18px;
  }

  .about-screen .benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    text-align: left;
  }

  .about-screen .info-icon,
  .about-screen .img,
  .about-screen .info-2 {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    margin: 0;
  }

  .about-screen .p,
  .about-screen .text-wrapper-3,
  .about-screen .text-wrapper-4 {
    width: auto;
    min-height: 0;
    margin: 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.35;
  }
}
