/* =========================================================
   Базовые переменные и общие правила страницы
   ========================================================= */
: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%;
}

/* Scroll reveal for top-level sections */
.landing > section,
.landing > div {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s ease, transform 2.4s ease;
  will-change: opacity, transform;
}

.landing > section.section-revealed,
.landing > div.section-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder that keeps old vertical spacing after removing section badges/titles */
.section-badge-spacer {
  width: 1px;
  min-height: 56px;
  margin: 0 auto;
}

.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;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.floating-frame10.floating-frame10--visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.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);
}

@media (hover: none) {
  .floating-frame10 {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing > section,
  .landing > div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* Фоновый блок hero */
.hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  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-top: clamp(26px, 2vw, 42px);
  margin-bottom: clamp(72px, 5vw, 120px);
  padding: clamp(8px, 0.8vw, 14px) clamp(16px, 1.6vw, 28px);
  border: 1px solid var(--color-olive);
  border-radius: 40px;
  background: var(--color-white);
}

.hero-screen .logo {
  width: clamp(120px, 8vw, 180px);
  height: auto;
}

.hero-screen .group,
.hero-screen .logo-image {
  display: block;
  width: clamp(120px, 8vw, 180px);
  height: auto;
}

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

.hero-screen .header-nav-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(24px, 3vw, 48px);
  min-width: 0;
}

.hero-screen .header-quick-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.hero-screen .header-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--color-orange);
  border-radius: 20px;
  font-size: clamp(16px, 0.95vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--color-black);
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.hero-screen .header-quick-link:hover {
  background: rgba(251, 140, 39, 0.14);
  color: var(--color-black);
  box-shadow: 0 8px 20px rgba(251, 140, 39, 0.28);
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.hero-screen .navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 12px 20px;
  min-width: 0;
}

.hero-screen .text-wrapper-3 {
  font-size: clamp(16px, 0.95vw, 22px);
  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 .hero-mobile-nav {
  display: none;
}

.hero-screen .frame,
.hero-screen .div-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 0.75vw, 14px) clamp(16px, 1.15vw, 28px);
  border-radius: clamp(20px, 2vw, 36px);
  font-weight: 700;
  font-size: clamp(16px, 0.95vw, 21px);
  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,
.hero-screen .header-quick-link: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 .header-quick-link: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: 1440px) and (min-width: 1151px) {
  .hero-screen .header-nav-group {
    align-items: flex-start;
  }

  .hero-screen .header-quick-links {
    margin-top: 2px;
  }

  .hero-screen .navbar {
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 8px;
    column-gap: 20px;
  }

  .hero-screen .navbar .text-wrapper-3 {
    flex-shrink: 0;
  }
}

/* Шапка: бургер-меню */
@media (max-width: 1176px) {
  .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;
    position: relative;
  }

  .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-7.header-nav-group,
  .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-screen .hero-mobile-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(260px, calc(100vw - 24px));
    padding: 10px;
    display: grid;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(100, 107, 65, 0.35);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  .hero-screen .hero-mobile-nav[hidden] {
    display: none;
  }

  .hero-screen .hero-mobile-nav__link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.3;
  }

  .hero-screen .hero-mobile-nav__link:hover,
  .hero-screen .hero-mobile-nav__link:focus-visible {
    background: rgba(207, 211, 187, 0.35);
    outline: none;
  }

  .hero-screen .hero-mobile-nav__link--accent {
    font-weight: 500;
    color: var(--color-black);
  }

  .hero-screen .hero-mobile-nav__link--accent:hover {
    background: rgba(251, 140, 39, 0.14);
    color: var(--color-black);
    box-shadow: 0 8px 20px rgba(251, 140, 39, 0.28);
    filter: brightness(0.95);
    transform: translateY(-1px);
  }

  .hero-screen .hero-mobile-nav__link--accent:active {
    transform: translateY(0);
    filter: brightness(0.9);
  }

  .hero-screen .hero-mobile-nav__link--accent:focus-visible {
    background: rgba(251, 140, 39, 0.14);
    color: var(--color-black);
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
  }
}

@media (max-width: 991px) {
  .hero-screen {
    padding: 8px 12px 20px;
  }

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

  .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: auto;
  }
  


  .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;
  }
}

@media (min-width: 1500px) {
  .hero-screen {
    max-width: none;
    padding-left: clamp(20px, 3vw, 64px);
    padding-right: clamp(20px, 3vw, 64px);
  }

  .hero-bg {
    inset: 0;
    height: auto;
  }

  .hero-container {
    max-width: none;
  }

  .hero-screen .main-button {
    padding: clamp(10px, 0.75vw, 14px) clamp(16px, 1.15vw, 28px);
    border-radius: clamp(20px, 2vw, 36px);
  }

  .hero-content {
    margin-bottom: clamp(30px, 3vw, 64px);
  }

  .hero-content .col-lg-8 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .hero-screen .text-wrapper {
    font-size: clamp(48px, 3.1vw, 72px);
    margin-bottom: clamp(16px, 1.2vw, 28px);
  }

  .hero-screen .p {
    max-width: clamp(658px, 50vw, 1200px);
    font-size: clamp(20px, 1.35vw, 30px);
    margin-bottom: clamp(22px, 1.8vw, 44px);
  }

  .about-screen {
    max-width: none;
  }

  .hero-media-row {
    margin-top: clamp(115px, 6.5vw, 180px);
    max-width: none;
    min-height: clamp(560px, 40vw, 920px);
  }

  .hero-media-row > .col-md-6 {
    flex: 0 0 78%;
    max-width: 78%;
  }

  .hero-media-row > .col-md-3 {
    width: clamp(220px, 17vw, 420px);
    max-width: none;
  }
}
