/* ==========================================================================
   Шаблон «Медицинский туризм» (medical-tourism.php)
   Все селекторы изолированы в .aderm-landing, чтобы не конфликтовать
   с глобальными стилями темы (body letter-spacing, a:hover, .btn, --text и т.п.).
   Ширину .container задаёт сама тема (main.css / media.css): 1100px.
   ========================================================================== */

.aderm-landing {
  --aderm-navy: #0b3a6c;
  --aderm-navy-deep: #08305c;
  --aderm-text: #2b5276;
  --aderm-btn-from: #0a75cf;
  --aderm-btn-to: #0459b0;
  --aderm-page: #f5faff;

  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
  line-height: normal;
  letter-spacing: normal;
  color: var(--aderm-text);
  background: var(--aderm-page);
  -webkit-font-smoothing: antialiased;
}
.aderm-landing *, .aderm-landing *::before, .aderm-landing *::after { box-sizing: border-box; }
/* .container не сбрасываем: его margin/padding задаёт тема (margin: 0 auto, на мобильных — padding: 0 15px) */
.aderm-landing :not(.container), .aderm-landing ::before, .aderm-landing ::after { margin: 0; padding: 0; }
.aderm-landing img { display: block; max-width: none; }
.aderm-landing a, .aderm-landing a:hover { color: inherit; text-decoration: none; }

.aderm-landing .container { position: relative; }

.aderm-landing .icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */
.aderm-landing .aderm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  height: 38px;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--aderm-btn-from) 0%, var(--aderm-btn-to) 100%);
  box-shadow: 0 4px 10px rgba(6, 92, 178, .22);
  color: #fff;
  font-size: 11.2px;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
  letter-spacing: -.005em;
  transition: filter .2s, box-shadow .2s;
}
.aderm-landing .aderm-btn:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 14px rgba(6, 92, 178, .3); }
.aderm-landing .aderm-btn .icon { width: 13px; height: 13px; stroke-width: 1.6; }

/* ---------- HERO ---------- */
.aderm-landing .hero {
  position: relative;
  height: 413px;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 62% 40%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #e7f5fe 0%, #ebf6fe 55%, #eef8ff 80%, #eaf6ff 100%);
}
.aderm-landing .hero__photo {
  position: absolute;
  top: 1px;
  right: 0;
  width: 542px;
  height: 411px;
}
/* мягкое затухание фото влево + маскировка подписи, запечённой в кадре */
.aderm-landing .hero__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ebf6fe 0%, rgba(235, 246, 254, .55) 8%, rgba(235, 246, 254, 0) 22%);
  z-index: 1;
}
.aderm-landing .hero__photo::after {
  content: '';
  position: absolute;
  left: 0;
  top: 316px;
  width: 140px;
  height: 84px;
  background: radial-gradient(closest-side, #ecf5fa 74%, rgba(236, 245, 250, 0));
  transform: scale(1.25, 1);
  transform-origin: left center;
  z-index: 1;
}
.aderm-landing .hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* правый край фото растворяется в фоне, когда экран шире контейнера */
  -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 48px);
  mask-image: linear-gradient(270deg, transparent 0, #000 48px);
}

.aderm-landing .hero__content {
  position: relative;
  z-index: 2;
  padding-top: 29px;
}
.aderm-landing .hero__kicker {
  font-size: 11.6px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: #1d4c7d;
}
.aderm-landing .hero__title {
  margin-top: 9px;
  font-size: 34.6px;
  font-weight: 700;
  line-height: 37.5px;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--aderm-navy);
}
.aderm-landing .hero__text {
  margin-top: 17px;
  font-size: 13.15px;
  font-weight: 500;
  line-height: 20.5px;
  color: #2d5679;
}

.aderm-landing .hero__features {
  display: flex;
  margin-top: 37px;
  list-style: none;
}
.aderm-landing .hero__feature {
  display: flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 15px;
  color: #1f3f62;
}
.aderm-landing .hero__feature .icon { color: #1c5aa2; flex: none; }
.aderm-landing .hero__feature:nth-child(1) { width: 154px; }
.aderm-landing .hero__feature:nth-child(1) .icon { width: 34px; height: 34px; margin-right: 13px; }
.aderm-landing .hero__feature:nth-child(2) { width: 163px; }
.aderm-landing .hero__feature:nth-child(2) .icon { width: 30px; height: 34px; margin-right: 13px; }
.aderm-landing .hero__feature:nth-child(3) { width: 144px; }
.aderm-landing .hero__feature:nth-child(3) .icon { width: 35px; height: 35px; margin-right: 11px; }
.aderm-landing .hero__feature:nth-child(4) .icon { width: 30px; height: 37px; margin-right: 11px; }

/* ---------- НАПРАВЛЕНИЯ ---------- */
.aderm-landing .directions {
  background: var(--aderm-page);
  padding: 28px 0 26px;
}
.aderm-landing .directions__grid {
  display: grid;
  grid-template-columns: 497fr 466fr;
  column-gap: 16px;
}

.aderm-landing .card {
  position: relative;
  height: 429px;
  border-radius: 9px;
  overflow: hidden;
  background: #f8fcfe;
  border: 1px solid #edf5fb;
  box-shadow: 0 3px 14px rgba(36, 99, 160, .07);
}
.aderm-landing .card__inner {
  position: relative;
  z-index: 2;
  padding: 6px 0 0 12px;
}
.aderm-landing .card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.aderm-landing .card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: linear-gradient(160deg, #dbf0ff 0%, #c9e6fd 100%);
  color: #1c5aa2;
}
.aderm-landing .card__badge .icon { width: 32px; height: 32px; }
.aderm-landing .card__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #2c4c6e;
}
.aderm-landing .card__title {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 31px;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--aderm-navy-deep);
}
.aderm-landing .card__title small {
  display: block;
  font-size: 24.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.aderm-landing .card__text {
  margin-top: 14px;
  font-size: 10.8px;
  font-weight: 500;
  line-height: 18.5px;
  color: #355d80;
}
.aderm-landing .card__list {
  list-style: none;
  margin-top: 20px;
}
.aderm-landing .card__list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 19px;
  padding-left: 33px;
  font-size: 10.9px;
  font-weight: 500;
  line-height: 15px;
  list-style: none;
  color: #3b5873;
}
.aderm-landing .card__list li + li { margin-top: 15px; }
.aderm-landing .card__list li .icon {
  position: absolute;
  left: 1px;
  top: 50%;
  width: 21px;
  height: 21px;
  margin-top: -11px;
  stroke-width: 2.6;
  color: #1d5ea3;
}
.aderm-landing .card__list li.is-multiline .icon { top: 9px; }
.aderm-landing .card__btn { margin-top: 25px; }

.aderm-landing .card__script {
  position: absolute;
  z-index: 3;
  font-family: 'Marck Script', cursive;
  font-size: 21px;
  line-height: 22px;
  text-align: center;
  color: #1c4f87;
  letter-spacing: -.04em;
  word-spacing: -.08em;
  transform: rotate(-15deg);
  white-space: nowrap;
}

/* карточка «Медицинский туризм» */
.aderm-landing .card--tourism {
  background:
    linear-gradient(90deg, #f8fcfe 0%, #f6fbfe 50%, rgba(246, 251, 254, 0) 72%),
    linear-gradient(180deg, #e0f1fe 0%, #e6f6fe 30%, #edf8fe 60%, #f2f9fe 100%);
}
.aderm-landing .card--tourism .card__text { margin-top: 11px; }
.aderm-landing .card--tourism .card__list li:nth-child(3) { width: 330px; }
.aderm-landing .card--tourism .card__btn { width: 279px; margin-top: 23px; }
.aderm-landing .card--tourism .card__script { left: calc(100% - 151px); top: 34px; line-height: 23px; }
.aderm-landing .tourism__plane {
  position: absolute;
  left: calc(100% - 171px);
  top: 104px;
  width: 64px;
  height: 24px;
  z-index: 1;
  opacity: .78;
}
.aderm-landing .tourism__photo {
  position: absolute;
  right: 0;
  top: 131px;
  width: 172px;
  height: 292px;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14px, #000 50px), linear-gradient(180deg, transparent 0, #000 26px);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, transparent 14px, #000 50px), linear-gradient(180deg, transparent 0, #000 26px);
  mask-composite: intersect;
}

/* карточка «Агентская сеть» */
.aderm-landing .card--agency {
  background: linear-gradient(180deg, #f6fcfe 0%, #f0f9fd 100%);
}
.aderm-landing .card--agency .card__inner { padding-left: 12px; }
.aderm-landing .card--agency .card__title { margin-top: 14px; line-height: 29px; }
.aderm-landing .card--agency .card__text { margin-top: 17px; }
.aderm-landing .card--agency .card__list { margin-top: 23px; }
.aderm-landing .card--agency .card__list li + li { margin-top: 14.5px; }
.aderm-landing .card--agency .card__btn { width: 261px; margin-top: 30px; }
.aderm-landing .agency__panel {
  position: absolute;
  top: 5px;
  right: 0;
  width: 157px;
  bottom: 4px;
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(90, 128, 158, .55) 0, rgba(160, 192, 214, .25) 6px, rgba(255, 255, 255, 0) 16px),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #dbe9f3 0%, #e6f1fb 25%, #e9f3fb 60%, #dbeaf3 100%);
}
.aderm-landing .agency__panel img {
  position: absolute;
  left: 0;
  top: 131px;
  width: 157px;
  height: 288px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px);
  mask-image: linear-gradient(180deg, transparent 0, #000 20px);
}
.aderm-landing .card--agency .card__script { left: calc(100% - 149px); top: 34px; }

/* ---------- РЕГИСТРАЦИЯ ---------- */
.aderm-landing .register {
  background: linear-gradient(180deg, #e5f3fd 0%, #e2f4fe 40%, #e6f5fe 70%, #e3f4fe 100%);
  padding: 25px 0 26px;
}
.aderm-landing .register__head { padding-top: 2px; }
.aderm-landing .register__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: -.017em;
  text-transform: none;
  color: #073a69;
}
.aderm-landing .register__text {
  margin-top: 15px;
  font-size: 13.2px;
  font-weight: 500;
  line-height: 22px;
  color: #234f7c;
}
.aderm-landing .register__grid {
  display: grid;
  grid-template-columns: 482fr 464fr;
  column-gap: 16px;
  margin-top: 21px;
}

.aderm-landing .reg-card {
  position: relative;
  display: grid;
  height: 225px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f1fafe 0%, #f5fbfe 100%);
  border: 1px solid #e9f3fa;
  box-shadow: 0 2px 10px rgba(36, 99, 160, .06);
}
.aderm-landing .reg-card--patient { grid-template-columns: 1fr 129px; }
.aderm-landing .reg-card--doctor { grid-template-columns: 1fr 136px; }

.aderm-landing .reg-card__main { padding: 5px 0 0 17px; }
.aderm-landing .reg-card--doctor .reg-card__main { padding-left: 18px; }

.aderm-landing .reg-card__head {
  display: flex;
  align-items: center;
  margin-left: -6px;
}
.aderm-landing .reg-card--doctor .reg-card__head { margin-left: -1px; }
.aderm-landing .reg-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #def3ff 0%, #cdebfd 100%);
  color: #1d5aa0;
}
.aderm-landing .reg-card__avatar .icon { width: 36px; height: 38px; stroke-width: 1.6; }
.aderm-landing .reg-card__title {
  position: relative;
  top: -4px;
  margin-left: 18px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -.01em;
  text-transform: none;
  color: #0c2f55;
}
.aderm-landing .reg-card--doctor .reg-card__title { margin-left: 17px; }

.aderm-landing .reg-card__text {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 19px;
  white-space: nowrap;
  color: #2f4f6e;
}
.aderm-landing .reg-card__btn {
  width: 317px;
  height: 40px;
  margin-top: 14px;
  font-size: 10.9px;
}
.aderm-landing .reg-card--doctor .reg-card__btn { width: 289px; margin-top: 15px; }
.aderm-landing .reg-card__login {
  margin-top: 13px;
  font-size: 11px;
  font-weight: 500;
  color: #48627c;
}
.aderm-landing .reg-card__login a,
.aderm-landing .reg-card__login a:hover {
  color: #1a5a9e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aderm-landing .reg-card__side {
  position: relative;
  list-style: none;
  padding: 70px 0 0 12px;
}
.aderm-landing .reg-card__side::before {
  content: '';
  position: absolute;
  left: 0;
  top: 62px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(196, 214, 226, 0), #cbd9e3 18%, #cbd9e3 100%);
}
.aderm-landing .reg-card--doctor .reg-card__side { padding: 70px 0 0 18px; }
.aderm-landing .reg-card__side li {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 8.4px;
  font-weight: 500;
  line-height: 13px;
  white-space: nowrap;
  list-style: none;
  color: #4a6884;
}
.aderm-landing .reg-card__side li + li { margin-top: 6px; }
.aderm-landing .reg-card__side .icon {
  flex: none;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  color: #1d5aa0;
  stroke-width: 1.6;
}
.aderm-landing .reg-card--doctor .reg-card__side .icon { width: 32px; height: 32px; margin-right: 9px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .aderm-landing .hero { height: auto; padding-bottom: 32px; }
  .aderm-landing .hero__photo { opacity: .35; }
  .aderm-landing .hero__features { flex-wrap: wrap; row-gap: 16px; }
  .aderm-landing .directions__grid,
  .aderm-landing .register__grid { grid-template-columns: 1fr; row-gap: 16px; }
  .aderm-landing .card { height: auto; padding-bottom: 24px; }
  .aderm-landing .reg-card { height: auto; padding-bottom: 20px; }
}
@media (max-width: 600px) {
  .aderm-landing .hero__photo { display: none; }
  .aderm-landing .hero__title { font-size: 28px; line-height: 32px; }
  .aderm-landing .hero__title br,
  .aderm-landing .hero__kicker br,
  .aderm-landing .hero__text br { display: none; }
  .aderm-landing .hero__feature { width: 50% !important; }
  .aderm-landing .card__text,
  .aderm-landing .card__list li { width: auto !important; }
  .aderm-landing .card--tourism .card__text,
  .aderm-landing .card--agency .card__text { width: auto; padding-right: 12px; }
  .aderm-landing .card__btn,
  .aderm-landing .reg-card__btn { width: calc(100% - 12px) !important; }
  .aderm-landing .card__script,
  .aderm-landing .tourism__photo,
  .aderm-landing .agency__panel,
  .aderm-landing .tourism__plane { display: none; }
  .aderm-landing .register__title { font-size: 28px; line-height: 34px; }
  .aderm-landing .card__text br,
  .aderm-landing .register__text br,
  .aderm-landing .reg-card__text br { display: none; }
  .aderm-landing .reg-card__title,
  .aderm-landing .reg-card__text { white-space: normal; }
  .aderm-landing .reg-card--patient,
  .aderm-landing .reg-card--doctor { grid-template-columns: 1fr; }
  .aderm-landing .reg-card__main { padding-right: 16px; }
  .aderm-landing .reg-card__btn { width: 100% !important; }
  .aderm-landing .reg-card__side { padding: 16px 0 0 18px !important; }
  .aderm-landing .reg-card__side::before { display: none; }
}
