/* =========================
   Design tokens
========================= */

:root {
  --rm-navy: #071B52;
  --rm-navy-deep: #041637;
  --rm-orange: #F46F2C;
  --rm-bg: #F6EFE7;
  --rm-white: #FFFFFF;

  --rm-glass: rgba(255, 255, 255, 0.22);
  --rm-glass-border: rgba(255, 255, 255, 0.36);
  --rm-text-dark: #0B1F44;
}


/* =========================
   Hero isolation
========================= */

#rumira-hero,
#rumira-hero * {
  box-sizing: border-box;
}

#rumira-hero {
  position: relative;
  width: 100%;
  min-height: 960px;
  overflow: hidden;
  isolation: isolate;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--rm-navy);
  background: var(--rm-bg);
}


/* =========================
   Background layers
========================= */

#rumira-hero .rm-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("https://static.tildacdn.com/tild3831-3461-4838-b039-366435623764/ChatGPT_Image_13__20.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

/* Premium readability veil:
   - слева усиливает читаемость заголовка;
   - справа почти не гасит телефон;
   - снизу добавляет глубину карточкам.
*/
#rumira-hero .rm-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(246, 240, 232, 0.80) 0%,
      rgba(246, 240, 232, 0.62) 28%,
      rgba(246, 240, 232, 0.22) 54%,
      rgba(7, 27, 82, 0.05) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.03) 48%,
      rgba(0, 0, 0, 0.24) 100%
    );
}


/* =========================
   Route line
========================= */

#rumira-hero .rm-route {
  position: absolute;
  z-index: 4;
  left: 14.5%;
  top: 52%;
  width: 45.8%;
  max-width: 740px;
  height: auto;
  opacity: 0.74;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 176, 88, 0.42));
}


/* =========================
   Main layout
========================= */

#rumira-hero .rm-wrap {
  position: relative;
  z-index: 5;
  width: min(100%, 1728px);
  min-height: 960px;
  margin: 0 auto;
  padding: 42px 68px 58px;
}


/* =========================
   Header
========================= */

#rumira-hero .rm-header {
  position: relative;
  top:-68px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

#rumira-hero .rm-logo {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  background-position: center -40px;
}

#rumira-hero .rm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  position: relative;
  top: -10px;
}

#rumira-hero .rm-nav a {
  color: var(--rm-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

#rumira-hero .rm-nav a:hover {
  opacity: 0.72;
}

#rumira-hero .rm-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 246px;
  height: 58px;
  padding: 0 22px;
  color: var(--rm-navy);
  text-decoration: none;
  border: 1px solid rgba(7, 27, 82, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(7, 27, 82, 0.06);
}

#rumira-hero .rm-tg:hover {
  background: rgba(255, 255, 255, 0.28);
}


/* =========================
   Main content
========================= */

#rumira-hero .rm-content {
  position: relative;
  z-index: 12;
  width: 720px;
  padding-top: 40px;
  margin-top: -80px;
}

#rumira-hero .rm-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-bottom: 42px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid rgba(7, 27, 82, 0.12);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(7, 27, 82, 0.05);
  color: var(--rm-navy);
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
}

#rumira-hero .rm-title {
  margin: 0 0 28px;
  font-size: 74px;
  line-height: 1.07;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--rm-navy);
}

#rumira-hero .rm-title span {
  display: block;
  margin-top: 4px;
  color: var(--rm-orange);
}

#rumira-hero .rm-subtitle {
  width: 700px;
  max-width: 100%;
  margin: 0 0 44px;
  color: var(--rm-text-dark);
  font-size: 25px;
  line-height: 1.45;
  font-weight: 500;
}


/* =========================
   CTA buttons
========================= */

#rumira-hero .rm-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 78px;
}

#rumira-hero .rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

#rumira-hero .rm-btn:hover {
  transform: translateY(-2px);
}

#rumira-hero .rm-btn-main {
  min-width: 350px;
  padding: 12px 30px;
  gap: 14px;
  background: var(--rm-navy);
  color: #fff;
  box-shadow: 0 20px 48px rgba(7, 27, 82, 0.23);
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
}

#rumira-hero .rm-btn-main:hover {
  box-shadow: 0 24px 58px rgba(7, 27, 82, 0.30);
}

#rumira-hero .rm-btn-main small {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 500;
  opacity: 0.95;
}

#rumira-hero .rm-btn-ghost {
  min-width: 292px;
  padding: 0 28px;
  gap: 12px;
  border: 1px solid rgba(7, 27, 82, 0.24);
  color: var(--rm-navy);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 18px;
  font-weight: 700;
}

#rumira-hero .rm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(7, 27, 82, 0.34);
}


/* =========================
   Phone mockup
========================= */

#rumira-hero .rm-phone {
  position: absolute;
  z-index: 14;
  right: 60px;
  top: 108px;
  width: 455px;
  max-width: 34vw;
  height: auto;
  transform: rotate(4deg);
  transform-origin: center;
  filter: drop-shadow(0 42px 64px rgba(0, 0, 0, 0.32));
}


/* =========================
   Benefits cards
========================= */

#rumira-hero .rm-cards {
  position: relative;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 850px;
  max-width: calc(100vw - 130px);
}

#rumira-hero .rm-card {
  position: relative;
  min-height: 235px;
  padding: 30px 24px 24px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.08)),
    rgba(20, 20, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 45px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#rumira-hero .rm-card:first-child {
  border-color: rgba(255, 150, 65, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(255, 150, 65, 0.18),
    0 20px 52px rgba(255, 135, 50, 0.16);
}

#rumira-hero .rm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 0%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 50%);
}

#rumira-hero .rm-card-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.23));
}

#rumira-hero .rm-card-title {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  margin: 18px 0 16px;
  min-height: 58px;
  color: #fff;
}

#rumira-hero .rm-card-text {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}


/* =========================
   Responsive: desktop narrow
========================= */

/* =========================
   Responsive: laptop
========================= */

@media (max-width: 1400px) {

  #rumira-hero {
    min-height: 900px;
  }

  #rumira-hero .rm-wrap {
    min-height: 900px;
    padding: 32px 42px 48px;
  }

  #rumira-hero .rm-header {
    top: -40px;
  }

  #rumira-hero .rm-logo {
    width: 250px;
  }

  #rumira-hero .rm-nav {
    gap: 28px;
    font-size: 16px;
  }

  #rumira-hero .rm-content {
    width: 58%;
    max-width: 650px;
    margin-top: -50px;
  }

  #rumira-hero .rm-title {
    font-size: 60px;
  }

  #rumira-hero .rm-subtitle {
    font-size: 21px;
  }

  #rumira-hero .rm-phone {
    width: 390px;
    right: 25px;
    top: 140px;
    max-width: 32vw;
  }

  #rumira-hero .rm-cards {
    width: 60%;
    max-width: 760px;
  }

}


/* =========================
   Responsive: tablet
========================= */

@media (max-width: 1180px) {

  #rumira-hero {
    min-height: auto;
  }

  #rumira-hero .rm-wrap {
    padding: 26px 24px 44px;
    min-height: auto;
  }

  #rumira-hero .rm-header {
    top: 0;
    gap: 20px;
  }

  #rumira-hero .rm-nav {
    display: none;
  }

  #rumira-hero .rm-logo {
    width: 220px;
  }

  #rumira-hero .rm-tg {
    min-width: 200px;
    height: 52px;
    font-size: 15px;
  }

  #rumira-hero .rm-content {
    width: 58%;
    max-width: 520px;
    margin-top: 20px;
    padding-top: 20px;
  }

  #rumira-hero .rm-chip {
    margin-bottom: 24px;
  }

  #rumira-hero .rm-title {
    font-size: 48px;
    line-height: 1.08;
    margin-bottom: 22px;
  }

  #rumira-hero .rm-subtitle {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 30px;
  }

  #rumira-hero .rm-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 40px;
  }

  #rumira-hero .rm-btn-main {
    min-width: 320px;
  }

  #rumira-hero .rm-phone {
    width: 320px;
    right: 0;
    top: 190px;
    max-width: 36vw;
  }

  #rumira-hero .rm-cards {
    width: 58%;
    max-width: 58%;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  #rumira-hero .rm-card {
    min-height: 205px;
  }

}


/* =========================
   Responsive: mobile
========================= */

@media (max-width: 768px) {

  #rumira-hero {
    min-height: auto;
  }

  #rumira-hero .rm-wrap {
    padding: 20px 18px 32px;
  }

  #rumira-hero .rm-header {
    top: 0;
    justify-content: center;
  }

  #rumira-hero .rm-tg {
    display: none;
  }

  #rumira-hero .rm-logo {
    width: 200px;
  }

  #rumira-hero .rm-content {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding-top: 20px;
    text-align: center;
  }

  #rumira-hero .rm-chip {
    min-height: 42px;
    margin-bottom: 22px;
    padding: 0 14px;
    font-size: 14px;
  }

  #rumira-hero .rm-title {
    font-size: 40px;
    line-height: 1.08;
    margin-bottom: 18px;
  }

  #rumira-hero .rm-subtitle {
    width: 100%;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  #rumira-hero .rm-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 320px;
  }

  #rumira-hero .rm-btn {
    width: 100%;
    min-width: 0;
    min-height: 60px;
  }

  #rumira-hero .rm-btn-main,
  #rumira-hero .rm-btn-ghost {
    width: 100%;
    font-size: 16px;
  }

  #rumira-hero .rm-phone {
    top: 470px;
    left: 50%;
    right: auto;
    width: 270px;
    max-width: 72vw;
    transform: translateX(-50%) rotate(2deg);
  }

  #rumira-hero .rm-cards {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  #rumira-hero .rm-card {
    min-height: 180px;
    padding: 20px 14px;
    border-radius: 18px;
  }

  #rumira-hero .rm-card-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  #rumira-hero .rm-card-title {
    font-size: 17px;
  }

  #rumira-hero .rm-card-text {
    font-size: 13px;
    line-height: 1.45;
  }

}


/* =========================
   Small mobile
========================= */

@media (max-width: 480px) {

  #rumira-hero .rm-title {
    font-size: 34px;
  }

  #rumira-hero .rm-subtitle {
    font-size: 16px;
  }

  #rumira-hero .rm-actions {
    margin-bottom: 290px;
  }

  #rumira-hero .rm-phone {
    width: 245px;
    top: 445px;
  }

  #rumira-hero .rm-cards {
    grid-template-columns: 1fr;
  }
  
/* Карточки преимуществ */
#rumira-hero .rm-card{
    padding: 28px 26px !important;
}

/* Заголовки */
#rumira-hero .rm-card-title{
    font-size: 20px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
    text-align: center !important;

    width: 100% !important;
    max-width: 230px !important;
    margin: 18px auto 14px !important;

    word-break: keep-all !important;
}

/* Описание */
#rumira-hero .rm-card-text{
    font-size: 16px !important;
    line-height: 1.45 !important;
    max-width: 210px !important;
    margin: 0 auto !important;
}