/* Figma tokens */
:root {
  --rx-blue: #2154b2;
  --rx-blue-dark: #1a4fb0;
  --rx-blue-light: #50b3ff;
  --rx-red: #cc0a0a;
  --rx-bg: #eaf1f6;
  --rx-text: rgba(0, 0, 0, 0.87);
  --rx-text-muted: rgba(0, 0, 0, 0.54);
  --rx-card-shadow: 0 2px 10.5px rgba(17, 38, 53, 0.1);
  --rx-radius: 10px;
}

.btn--red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 50px;
  border-radius: 8px;
  background: var(--rx-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.75px;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn--red:hover {
  color: #fff;
  background: #b20003;
  box-shadow: 0 8px 20px rgba(204, 10, 10, 0.25);
}

.text-gradient-blue {
  background: linear-gradient(180deg, var(--rx-blue) 0%, var(--rx-blue-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-cover {
  background: #fff;
}

.home-cover__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(240px, 34vw, 380px));
  gap: clamp(16px, 2.5vw, 32px);
  align-items: stretch;
}

.home-cover__content {
  align-self: start;
}

.home-cover__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rx-blue);
  overflow-wrap: break-word;
}

.home-cover__subtitle {
  margin: 12px 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--rx-text);
}

.home-cover__desc {
  margin: clamp(16px, 2.5vw, 30px) 0 0;
  max-width: min(540px, 100%);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.44px;
  color: var(--rx-blue-light);
}

.home-cover__btn {
  margin-top: clamp(16px, 2.5vw, 30px);
}

/* Высота = блок текста с кнопкой; подложки на самом изображении */
.home-cover__visual {
  display: flex;
  width: 100%;
  max-width: clamp(240px, 34vw, 380px);
  min-height: 100%;
  justify-self: end;
  align-self: stretch;
}

.home-cover__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 21px;
}

.home-cover__photo--placeholder {
  background: linear-gradient(145deg, #d4e4f4 0%, #eaf1f6 45%, #c8daf0 100%);
  min-height: 280px;
}

@media (max-width: 767px) {
  .home-cover__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-cover__desc {
    color: var(--rx-text-muted);
  }

  .home-cover__visual {
    display: none;
  }

  .home-cover__btn {
    width: 100%;
  }
}
