.med-page {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0 56px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1d2c35;
}

.med-page *,
.med-page *:before,
.med-page *:after {
  box-sizing: border-box;
}

.med-page h1,
.med-page h2,
.med-page h3,
.med-page p,
.med-page ul,
.med-page ol,
.med-page li,
.med-page figure {
  margin: 0;
  padding: 0;
}

.med-page ul,
.med-page ol {
  list-style-position: outside;
}

.med-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.med-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.med-icon--sm {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.med-letterhead {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid #dbe6ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 48, 71, .09);
}

.med-letterhead__col {
  padding: 22px 24px;
  text-align: center;
}

.med-letterhead__col + .med-letterhead__col {
  border-top: 1px solid #dbe6ea;
}

.med-letterhead__org {
  color: #637681;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.5;
}

.med-letterhead__dept {
  margin-top: 12px;
  color: #123047;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

.med-letterhead__contacts {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.med-letterhead__contacts li {
  margin-top: 7px;
  color: #1d2c35;
  font-size: .92rem;
}

.med-letterhead__contacts li:first-child {
  margin-top: 0;
}

.med-letterhead__contacts .med-icon {
  display: inline-block;
  margin: 0 7px 0 0;
  color: #1f6f8b;
  vertical-align: -3px;
}

.med-letterhead__contacts a,
.med-card__list a {
  color: #1f6f8b;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.med-letterhead__contacts a:hover,
.med-letterhead__contacts a:focus,
.med-card__list a:hover,
.med-card__list a:focus {
  color: #2a9d8f;
  text-decoration: underline;
}

.med-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  grid-gap: 28px;
  gap: 28px;
  overflow: hidden;
  padding: 26px 20px;
  border-radius: 20px;
  color: #fff;
  background: #123047;
  background: linear-gradient(135deg, #123047, #1b5873 60%, #2a9d8f);
  box-shadow: 0 18px 42px rgba(18, 48, 71, .2);
}

.med-hero:before,
.med-hero:after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.med-hero:before {
  width: 420px;
  height: 420px;
  right: -180px;
  top: -210px;
}

.med-hero:after {
  width: 260px;
  height: 260px;
  right: 90px;
  bottom: -190px;
}

.med-hero__content,
.med-hero__card {
  position: relative;
  z-index: 1;
}

.med-hero h1 {
  max-width: 720px;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.med-hero h1 span {
  color: #8fe1d6;
}

.med-lead {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
}

.med-hero__tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
}

.med-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  margin: 0 8px 8px 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  font-size: .86rem;
}

.med-hero__card {
  align-self: center;
  max-width: 520px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
}

.med-hero__card-label {
  margin-bottom: 6px;
  color: #bfe6e3;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.med-hero__card-name {
  font-size: 1.3rem;
  line-height: 1.25;
}

.med-hero__card-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.med-section {
  margin-top: 28px;
}

.med-section__head {
  margin-bottom: 16px;
}

.med-section__head h2 {
  color: #123047;
  font-size: 1.4rem;
  line-height: 1.2;
}

.med-section__head p {
  max-width: 680px;
  margin-top: 8px;
  color: #637681;
  font-size: .95rem;
}

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

.med-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dbe6ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 48, 71, .09);
}

.med-card--accent {
  border-color: rgba(42, 157, 143, .3);
  background: #fff;
  background: linear-gradient(145deg, #fff, #f0fbf9);
}

.med-card__top {
  display: flex;
  align-items: center;
  color: #1f6f8b;
}

.med-card__top .med-icon {
  margin-right: 10px;
}

.med-card__title {
  color: #123047;
  font-size: 1.05rem;
  font-weight: 700;
}

.med-card__value {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 600;
}

.med-card__muted {
  margin-top: 8px;
  color: #637681;
  font-size: .92rem;
}

.med-card__list {
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.med-card__list li {
  display: flex;
  align-items: flex-start;
  margin-top: 9px;
  font-size: .95rem;
}

.med-card__list li:first-child {
  margin-top: 0;
}

.med-card__list .med-icon {
  margin: 3px 9px 0 0;
  color: #1f6f8b;
}

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

.med-link-list li {
  display: block;
}

.med-link-list a {
  display: flex;
  align-items: center;
  min-height: 62px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe6ea;
  border-radius: 14px;
  color: #1d2c35;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 48, 71, .05);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.med-link-list .med-icon {
  margin-right: 11px;
  color: #2a9d8f;
}

.med-link-list a:hover,
.med-link-list a:focus {
  border-color: rgba(42, 157, 143, .55);
  box-shadow: 0 12px 24px rgba(18, 48, 71, .1);
  transform: translateY(-2px);
}

.med-photo-wrap {
  display: inline-block;
  max-width: 100%;
}

.med-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 48, 71, .09);
}

.med-task-intro {
  margin-bottom: 18px;
  padding-left: 22px;
}

.med-task-intro li {
  margin: 7px 0;
}

.med-task-intro li::marker,
.med-task__content li::marker {
  color: #2a9d8f;
  font-weight: 700;
}

.med-tasks {
  margin-top: 18px;
}

.med-acc {
  margin-bottom: 12px;
  border: 1px solid #dbe6ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 48, 71, .05);
}

.med-acc__head {
  margin: 0;
  font-size: 1.02rem;
}

.med-acc__check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.med-acc__label {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: #123047;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
}

.med-acc__label::after {
  width: 9px;
  height: 9px;
  margin-left: auto;
  padding-left: 14px;
  border-right: 2px solid #1f6f8b;
  border-bottom: 2px solid #1f6f8b;
  content: "";
  flex: 0 0 9px;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.med-acc__check:checked ~ .med-acc__head .med-acc__label::after {
  transform: rotate(225deg);
}

.med-acc__check:checked ~ .med-acc__head .med-acc__label {
  border-bottom: 1px solid #dbe6ea;
}

.med-acc__check:focus ~ .med-acc__head .med-acc__label {
  outline: 3px solid rgba(233, 185, 73, .75);
  outline-offset: -3px;
}

.med-task__number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  flex: 0 0 34px;
  text-align: center;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #2a9d8f;
  background: linear-gradient(135deg, #1f6f8b, #2a9d8f);
  font-size: .95rem;
}

.med-task__content {
  display: none;
  padding: 20px 22px 22px 68px;
  color: #1d2c35;
}

.med-acc__check:checked ~ .med-task__content {
  display: block;
}

.med-task__content p {
  margin: 0 0 12px;
}

.med-task__content ul,
.med-task__content ol {
  margin: 10px 0 0;
  padding-left: 24px;
}

.med-task__content ol {
  padding-left: 28px;
}

.med-task__content li {
  margin: 7px 0;
}

.med-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #dbe6ea;
  color: #637681;
  font-size: .86rem;
}

.med-footer span {
  margin: 4px 20px 4px 0;
}

.med-page a:focus {
  outline: 3px solid rgba(233, 185, 73, .75);
  outline-offset: 3px;
}

@media (min-width: 560px) {
  .med-hero {
    padding: 40px 36px;
  }

  .med-hero__card {
    padding: 26px;
  }

  .med-hero h1 {
    font-size: 2.8rem;
  }

  .med-section__head h2 {
    font-size: 1.7rem;
  }
}

@media (min-width: 900px) {
  .med-hero {
    padding: 52px 44px;
  }

  .med-hero h1 {
    font-size: 3.3rem;
  }

  .med-section__head h2 {
    font-size: 1.9rem;
  }

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

  .med-letterhead__col {
    padding: 26px 28px;
  }

  .med-letterhead__col + .med-letterhead__col {
    border-top: 0;
    border-left: 1px solid #dbe6ea;
  }
}

@media (min-width: 1200px) {
  .med-hero {
    padding: 58px;
  }

  .med-hero h1 {
    font-size: 3.6rem;
  }

  .med-section__head h2 {
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .med-hero {
    grid-template-columns: 1fr;
  }

  .med-contact-grid,
  .med-link-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .med-page {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .med-hero {
    border-radius: 16px;
  }

  .med-hero h1 {
    font-size: 1.9rem;
  }

  .med-acc__label {
    padding: 15px;
    font-size: .96rem;
  }

  .med-task__content {
    padding: 18px 15px 20px;
  }

  .med-task__number {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    margin-right: 10px;
  }
}

@media print {
  .med-page {
    width: 100%;
    padding: 0;
  }

  .med-hero {
    color: #000;
    background: #fff;
    border: 1px solid #bbb;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .med-hero:before,
  .med-hero:after {
    display: none;
  }

  .med-hero h1 span,
  .med-hero__card-label,
  .med-hero__card-note,
  .med-lead {
    color: #000;
  }

  .med-hero__card {
    border-color: #bbb;
    background: #fff;
  }

  .med-card,
  .med-link-list a,
  .med-acc,
  .med-letterhead,
  .med-photo {
    box-shadow: none;
  }

  .med-acc {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .med-task__content {
    display: block;
  }

  .med-acc__label::after,
  .med-acc__check {
    display: none;
  }
}