/* Лендинг MED-complete */

:root {
  --med-blue: #3b6e9f;
  --med-blue-dark: #1a3d5c;
  --med-blue-mid: #4a9fd8;
  --med-blue-light: #e8f2fa;
}

.med-section-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--med-blue-dark);
}
.med-banner-title {
  margin: 0 auto 20px;
    max-width: 900px;
    font-family: var(--font);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    color: #326ea3;
    text-align: center;
}
.med-section-title--center {
  text-align: center;
}

.med-section-title--blue {
  color: var(--med-blue);
}

.med-section-title__muted {
  display: block;
  font-size: 0.72em;
  font-weight: 600;
  color: #64748b;
}

.med-section-title__accent {
  display: block;
  color: #326ea3;
}

.med-section-title__accent--inline {
  display: inline;
  font-size: inherit;
}

/* Hero — баннер с фото справа (по образцу pharm-hero) */
.med-hero {
  padding: 0 0 32px;
  background: var(--color-white);
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.med-hero__banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  aspect-ratio: 1024 / 256;
  min-height: 200px;
  max-height: 320px;
  background-color: #fff;
  overflow: hidden;
}

.med-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(65vw, 920px);
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000 32%);
}

.med-hero__banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  min-height: 100%;
}

.med-hero__content {
  max-width: min(44%, 530px);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.med-hero__tag {
  font-family: Inter;
  font-weight: 600;
  font-style: Semi Bold;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: block;
}

.med-hero__title {
  font-family: Inter;
  font-weight: 700;
  font-style: Bold;
  font-size: 48px;
  line-height: 55px;
  letter-spacing: 0%;
  color: rgba(50, 110, 163, 1);
  margin: 10px 0;
}

.med-hero__text {
  margin: 0;
  max-width: 530px;
  font-size: 16px;
  line-height: 1.5;
  color: #4a6278;
  padding-bottom: 20px;
}

.med-hero__btn {
  align-self: flex-start;
}

.med-btn.btn--primary {
  background: var(--med-blue);
  border-color: var(--med-blue);
}

.med-btn.btn--primary:hover {
  background: var(--med-blue-dark);
  border-color: var(--med-blue-dark);
}

.med-btn.btn--outline {
  border-color: var(--med-blue);
  color: var(--med-blue);
}

.med-btn.btn--outline:hover {
  background: var(--med-blue-light);
}

/* Suite */
.med-suite__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.med-suite__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.med-suite__text {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--med-blue-dark);
}

.med-suite__accent {
  color: var(--med-blue);
  font-weight: 700;
}

/* Features */
.med-features {
  padding-top: 64px;
  padding-bottom: 64px;
}

.med-features__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
  container-type: inline-size;
}

.med-features__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: end;
}

.med-features__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin: 0;
}

.med-features__title-sub {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.35em;
}

.med-features__title-line {
  color: #292929;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.med-features__title > .med-features__title-line {
  display: block;
}

.med-features__title-sub .med-features__title-line,
.med-features__title-sub .med-features__title-accent {
  display: inline;
}

.med-features__title-accent {
  color: #326ea3;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

@container (min-width: 520px) {
  .med-features__title {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    column-gap: 0.3em;
    row-gap: 12px;
  }

  .med-features__title > .med-features__title-line,
  .med-features__title-sub > .med-features__title-line {
    display: inline;
  }

  .med-features__title-accent {
    flex-basis: 100%;
  }
}

.med-features__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 42%, 601px);
  gap: 32px;
  align-items: stretch;
}

.med-features__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  justify-content: space-between;
}

.med-features-card {
  background: var(--med-blue-light);
  border-radius: var(--radius-md);
  padding: 45px 28px;
}

.med-features-card__title {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--med-blue-dark);
}

.med-features-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.med-features-card__list li {
  position: relative;
  padding: 8px 0 8px 36px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.5;
}

.med-features-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b6e9f'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 0 0 1px rgba(59, 110, 159, 0.15);
}

.med-features__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 100%;
}

.med-features__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Advantages */
.med-advantages {
  padding-top: 64px;
  padding-bottom: 64px;
}

.med-advantages .med-section-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.med-section-title__subtitle {
  color: var(--med-blue-dark);
  font-weight: 700;
}

.med-advantages__video {
  margin: 0 auto 70px;
}

.med-advantages__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--med-blue-light);
  border: 1px solid rgba(74, 159, 216, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.med-advantages__top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.med-advantages__bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.med-advantages__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 100%;
}

.med-advantages__media img {
  display: block;
  width: 601px;
  height: 598px;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.med-advantages__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.med-advantages__cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.med-advantages__ecosystem {
  display: flex;
  height: 100%;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--med-blue-dark);
  flex-direction: column;
  justify-content: center;
}

.med-advantages__accent {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--med-blue);
}

.med-advantage-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26, 61, 92, 0.08);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
}

.med-advantage-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 2px solid var(--med-blue);
  background: #fff;
  flex-shrink: 0;
}

.med-advantage-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.med-advantage-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--med-blue-dark);
}

.med-advantage-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* Tech / Benefits */
.med-tech {
  padding-top: 64px;
  padding-bottom: 64px;
}

.med-tech__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.med-tech__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: end;
}

.med-tech__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.med-tech__title-line {
  display: block;
  color: #292929;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.med-tech__title-accent {
  display: block;
  color: #326ea3;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.med-tech__panel {
  background: #eef2f6;
  border-radius: var(--radius-lg);
  padding: 28px;
}

.med-tech__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.med-tech-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26, 61, 92, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.med-tech-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--med-blue);
  background: #fff;
  flex-shrink: 0;
}

.med-tech-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.med-tech-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--med-blue-dark);
}

.med-tech-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

/* Banner — технические особенности */
.med-banner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.med-banner__head {
  margin-bottom: 40px;
  text-align: center;
}

.med-banner__subtitle {
  margin: 0 auto;
  font-family: var(--font);
  font-size: clamp(16px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.45;
  color: #282828;
  text-align: center;
}

.med-banner__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.med-banner__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.med-banner__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1170 / 520;
  object-fit: cover;
  object-position: center center;
}

.med-banner__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.med-banner-card {
  background: #eef2f6;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.med-banner-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--med-blue);
  background: #fff;
  flex-shrink: 0;
}

.med-banner-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.med-banner-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--med-blue-dark);
}

.med-banner-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}

/* Portal */
.med-portal__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.med-portal__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
  text-align: end;
}

.med-portal__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.med-portal__title-line {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  display: block;
  color: #292929;
}

.med-portal__title-brand {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  display: block;
  color: #326ea3;
  letter-spacing: 0.01em;
}

.med-portal__showcase {
  margin-bottom: 24px;
}

.med-portal__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.med-portal__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: left center;
}

.med-portal__esia-card {
  position: absolute;
  top: 50%;
  right: clamp(16px, 4vw, 40px);
  transform: translateY(-50%);
  width: min(100%, 318px);
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.med-portal__esia-logo {
  display: block;
  width: 132px;
  height: 28px;
  margin-bottom: 20px;
}

.med-portal__esia-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.med-portal__esia-lead {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.med-portal__esia-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.med-portal__esia-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 8px;
}

.med-portal__esia-link {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--med-blue);
  text-align: center;
  text-decoration: none;
}

.med-portal__esia-link:hover {
  text-decoration: underline;
}

.med-portal__esia-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #6b7280;
}

.med-portal__app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: #eef2f6;
  border-radius: var(--radius-lg);
}

.med-portal__app-text {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--med-blue-dark);
}

.med-store-badges {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 16px;
  flex-shrink: 0;
}

.med-store-badge {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.med-store-badge:hover {
  opacity: 0.85;
}

.med-store-badge img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 100%;
}

/* Infomat */
.med-infomat__panel {
  background: #eef2f6;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.med-infomat__grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.med-infomat__visual img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
}

.med-infomat__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--med-blue);
  letter-spacing: 0.01em;
}

.med-infomat__lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
}

.med-infomat__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.med-infomat-card {
  background: #e4e9ef;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.med-infomat-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid var(--med-blue);
  background: #fff;
  flex-shrink: 0;
}

.med-infomat-card__icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.med-infomat-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--med-blue-dark);
}

.med-infomat-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

/* Support */
.med-support__title {
  margin-bottom: 40px;
  max-width: 960px;
  margin-inline: auto;
  color: #282828;
}

.med-support__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.med-support-card {
  padding: 32px 28px;
  background: #f2f4f7;
  border-radius: 24px;
}

.med-support-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--med-blue-dark);
}

.med-support-card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #475467;
}

.med-support-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.med-support-card .med-btn.btn--primary {
  background: var(--med-blue);
  border-color: var(--med-blue);
  color: #fff;
}

.med-support-card .med-btn.btn--primary:hover {
  background: var(--med-blue-dark);
  border-color: var(--med-blue-dark);
  color: #fff;
}

.med-support-card--highlight {
  background: var(--med-blue-mid);
  color: #fff;
}

.med-support-card--highlight h3,
.med-support-card--highlight p {
  color: rgba(255, 255, 255, 0.95);
}

/* Contact */
.med-contact {
  padding-bottom: 72px;
}

.med-contact .med-section-title--center {
  margin-bottom: 40px;
  color: #282828;
}

.med-contact .form-notice {
  margin-bottom: 24px;
}

.med-contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.45fr;
  gap: 160px;
  align-items: stretch;
}

.med-contact-form {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.05fr);
  gap: 28px 36px;
  align-items: start;
  padding: 36px 40px;
  background: #3370a1;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(13, 61, 110, 0.18);
}

.med-contact-form__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 260px;
}

.med-contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.med-contact-form__field input,
.med-contact-form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
}

.med-contact-form__field input {
  height: 40px;
}

.med-contact-form__field textarea {
  min-height: 79px;
  resize: vertical;
}

.med-contact-form__field input::placeholder,
.med-contact-form__field textarea::placeholder {
  color: #94a3b8;
}

.med-contact-form__field input:focus,
.med-contact-form__field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.med-contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.med-contact-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.med-contact-form__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.med-contact-form__consent a {
  color: #9ec9ef;
  text-decoration: underline;
}

.med-contact-form__submit {
  flex-shrink: 0;
  min-width: 220px;
  padding: 14px 28px;
  border: 0;
  border-radius: 6px;
  background: #0096d6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.med-contact-form__submit:hover {
  background: #00a8f0;
}

.med-contact-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 40px 36px;
  border-radius: 24px;
  background: #5d9bd5;
  color: #fff;
  box-shadow: 0 12px 40px rgba(13, 61, 110, 0.18);
}

.med-contact-aside__title,
.med-contact-aside__text,
.med-contact-aside__btn {
  position: relative;
  z-index: 1;
}

.med-contact-aside__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.med-contact-aside__text {
  margin: 0 0 auto;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
}

.med-contact-aside__btn {
  margin-top: 32px;
  min-width: 220px;
  align-self: center;
  color: var(--med-blue-dark);
}

.med-contact-aside__gear {
  position: absolute;
  width: 200px;
  right: 0;
  bottom: 0;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1024px) {
  .med-hero__content {
    max-width: min(50%, 480px);
    padding: 0 0 0 8px;
  }

  .med-advantages__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .med-advantages__bottom {
    grid-template-columns: 1fr;
  }

  .med-advantages__panel {
    padding: 20px;
  }

  .med-advantages__media img {
    aspect-ratio: 4 / 3;
    min-height: auto;
    height: auto;
  }

  .med-tech__intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .med-tech__lead {
    text-align: left;
  }

  .med-tech__panel {
    padding: 20px;
  }

  .med-tech__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .med-banner__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .med-features__head,
  .med-features__body,
  .med-portal__head,
  .med-infomat__grid {
    grid-template-columns: 1fr;
  }

  .med-features__lead,
  .med-portal__lead {
    text-align: left;
  }

  .med-portal__app-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .med-features__media img {
    aspect-ratio: 601 / 802;
    min-height: auto;
    height: auto;
  }

  .med-support__grid {
    grid-template-columns: 1fr;
  }

  .med-contact__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .med-contact-form {
    grid-template-columns: 1fr;
  }

  .med-contact-form__lead {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .med-portal__esia-card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 16px;
    box-shadow: none;
    border: 1px solid var(--color-border);
  }

  .med-portal__media {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: #eef2f6;
    padding: 16px;
  }

  .med-portal__media img {
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  .med-advantages__top,
  .med-advantages__cards-row,
  .med-infomat__features,
  .med-tech__grid,
  .med-banner__grid {
    grid-template-columns: 1fr;
  }

  .med-portal__app-bar {
    padding: 20px;
  }

  .med-store-badges {
    width: 100%;
    justify-content: center;
  }

  .med-contact-form,
  .med-contact-aside {
    padding: 28px 24px;
  }

  .med-contact-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .med-contact-form__consent {
    max-width: none;
  }

  .med-contact-form__submit,
  .med-contact-aside__btn {
    width: 100%;
    min-width: 0;
  }
}
