/* Страница налогового вычета была свёрстана отдельно от сайта: системный
   Arial вместо фирменного шрифта, белый фон и контейнер 1028 px вместо
   общесайтовых 1120. Шапка и подвал на ней те же, что везде, поэтому
   выглядела она чужой страницей. Фон, шрифт и ширину берём общие. */
.network-hero {
  height: 542px;
  border-radius: 48px 48px 130px 48px;
  position: relative;
  background: var(--blue);
}
.network-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.network-hero-copy {
  position: relative;
  padding: 56px 0 40px 70px;
  width: 630px;
  color: #fff;
}
.network-hero h1 {
  line-height: 1.02;
  font-size: var(--wb-h1-hero);
  letter-spacing: 0;
}
.network-hero-copy > p {
  font-size: 15px;
  line-height: 1.25;
  max-width: 405px;
  margin: 24px 0;
}
.network-hero .button {
  min-height: 43px;
  padding-left: 18px;
}
.network-hero .button-icon {
  width: 27px;
  height: 27px;
}
.network-stats {
  display: flex;
  gap: 25px;
  margin-top: 28px;
}
.network-stats > span {
  font-size: 12px;
  line-height: 1.2;
  min-width: 90px;
}
.network-stats > span + span {
  padding-left: 25px;
  border-left: 1px solid #ffffff70;
}
.network-stats b {
  display: block;
  color: #c9e4f8;
  font-size: 40px;
  line-height: 1;
}
.network-slider {
  position: absolute;
  right: 6px;
  bottom: -4px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 12px;
  padding: 5px;
  border-radius: 20px;
  background: #fff;
}
.network-slider .round-button {
  width: 26px;
  height: 26px;
}
.network-clinic {
  position: relative;
  margin-top: var(--wb-section-pad);
  min-height: 646px;
  isolation: isolate;
  z-index: 1;
}
.network-clinic:before {
  content: "";
  position: absolute;
  inset: 0 0 15px;
  background: #fff;
  border-radius: 0 0 55% 24% / 0 0 14% 25%;
  z-index: -1;
}
.network-clinic-copy {
  padding-top: 48px;
  width: 590px;
}
.network-page h2 {
  line-height: 1.12;
  font-size: var(--wb-h2);
  color: var(--blue);
}
/* Акцент в заголовке: светлый лайм давал 2,24:1 даже по мерке крупного
   текста (нужно 3). Тот же зелёный, что у сумм вычета на страницах услуг.
   На синей полосе он же читается наоборот, поэтому там светлый. */
.network-page h2 span {
  color: #4e6b17;
}
.network-services h2 span {
  color: #c6e39a;
}
.network-clinic-copy > p,
.network-clinic-copy > ul {
  max-width: 435px;
  font-size: 15px;
  line-height: 1.18;
}
.network-clinic-copy > p {
  margin-top: 12px;
}
.network-clinic-copy > p:first-of-type {
  margin-top: 32px;
}
.network-clinic-copy > ul {
  list-style: none;
  padding-left: 0;
  margin-top: 4px;
}
.network-clinic-copy > ul li:before {
  content: "- ";
}
.network-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--sky);
  border-radius: 24px;
  padding: 14px 20px;
  margin-top: 32px;
  width: 530px;
  max-width: 100%;
}
.network-note .ref-image {
  width: 66px;
  height: 66px;
  border-radius: 50%;
}
.network-note p {
  font-size: 14px;
  line-height: 1.2;
}
.network-clinic-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 646px;
  overflow: hidden;
  border-radius: 65% 0 0 55% / 55% 0 0 45%;
  z-index: -1;
}
.network-clinic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}
.network-clinic .clinic-form {
  right: max(10%, calc((100% - 1028px) / 2));
  bottom: -24px;
  width: 298px;
  padding: 30px;
  border-radius: 24px;
  z-index: 2;
  box-shadow: 0 10px 35px #15334c19;
}
.network-clinic .clinic-form h3 {
  font-size: 25px;
  margin-bottom: 20px;
}
.network-clinic .clinic-form input:not([type="checkbox"]) {
  background: var(--paper);
  height: 40px;
  font-size: 12px;
  border-radius: 22px;
}
.network-services {
  background: var(--blue);
}
.network-services h2 {
  color: #fff;
  margin: 12px 0 30px;
}
.network-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.network-service {
  height: 224px;
  position: relative;
  border: 0;
  border-radius: 21px;
  padding: 0;
  background: var(--paper);
  color: #163b6b;
  text-align: left;
  overflow: hidden;
}
.network-service > .ref-image {
  position: absolute;
  inset: 0 0 auto;
  height: 126px;
  width: 100%;
  border-radius: 0 0 55% 0 / 0 0 16% 0;
}
.network-service b {
  position: absolute;
  top: 122px;
  left: 23px;
  right: 27px;
  font-size: 20px;
  line-height: 1.04;
}
.network-service > .round-button {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 35px;
  height: 35px;
  color: white;
  background: var(--blue);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--blue);
}
.network-doctors {
  position: relative;
  background: var(--paper);
  border-radius: 25px 25px 0 0;
}
.network-section-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.network-section-heading h2 {
  line-height: 1.12;
  font-size: var(--wb-h2);
}

.network-doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.network-doctor-photo {
  display: block;
  width: 78%;
  height: 195px;
  margin: 0 auto;
  border-radius: 150px 150px 0 0;
  overflow: hidden;
  background: var(--sky);
}
.network-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}
.network-doctor-copy {
  position: relative;
  background: #fff;
  border-radius: 23px;
  padding: 27px 26px 23px;
}
.network-doctor-copy h3 {
  font-size: 22px;
  line-height: 1.03;
}
.network-doctor-copy .doctor-role {
  display: inline-block;
  padding: 4px 9px;
  background: var(--sky);
  border-radius: 20px;
  font-size: 13px;
  margin: 10px 0 16px;
}
.network-doctor-copy ol {
  padding-left: 18px;
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}
.network-doctor-copy li + li {
  margin-top: 14px;
}
.network-doctor-copy .text-link {
  margin-top: 22px;
  color: var(--blue);
  font-size: 12px;
  padding: 0;
  border: 0;
  background: none;
}
.network-reviews.container {
  width: 100%;
  padding: var(--wb-section-pad) max(40px, calc((100% - 1028px) / 2));
  background: var(--paper);
}
#network-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.network-review {
  border: 1px solid #dbe1e8;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  text-align: left;
}
.network-review p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  margin: 14px 0;
}
.network-review strong {
  display: block;
  color: var(--blue);
}
.network-review small {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .network-hero-copy {
    padding-left: 40px;
  }
  .network-clinic-copy {
    width: 51%;
  }

  .network-clinic-photo {
    width: 47%;
  }
  .network-clinic .clinic-form {
    right: 5%;
  }
  .network-service b {
    font-size: 17px;
    left: 16px;
  }
  .network-section-heading {
    flex-wrap: wrap;
  }
  .network-doctor-copy {
    padding: 22px 18px;
  }
  .network-doctor-copy h3 {
    font-size: 19px;
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .network-hero > img {
    object-position: 30% center;
  }
  .network-hero-copy {
    padding: 48px 0 40px 36px;
    width: 460px;
  }

  .network-hero-copy > p {
    max-width: 320px;
  }
}
@media (max-width: 700px) {
  .network-hero {
    height: 690px;
    border-radius: 30px 30px 70px 30px;
  }
  .network-hero > img {
    width: 100%;
    height: 300px;
    top: auto;
    bottom: 0;
    object-position: 77% center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .network-hero-copy {
    width: 100%;
    padding: 28px 24px;
  }

  .network-hero-copy > p {
    font-size: 13px;
    max-width: 320px;
    margin: 20px 0;
  }
  .network-stats {
    margin-top: 20px;
    gap: 13px;
  }
  .network-stats > span {
    min-width: 0;
    font-size: 12px;
  }
  .network-stats > span + span {
    padding-left: 13px;
  }
  .network-stats b {
    font-size: 30px;
  }

  .network-clinic {
    min-height: 0;
    padding-bottom: var(--wb-section-pad);
  }
  .network-clinic-copy {
    width: 100%;
    padding: 38px 0 24px;
  }
  .network-clinic-copy > p,
  .network-clinic-copy > ul {
    font-size: 14px;
  }
  .network-clinic-copy > p:first-of-type {
    margin-top: 20px;
  }
  .network-note {
    margin-top: 24px;
  }
  .network-clinic-photo {
    position: relative;
    width: calc(100% - 16px);
    margin-left: 16px;
    height: 360px;
    z-index: 0;
  }
  .network-clinic .clinic-form {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -150px 32px 0 auto;
    width: 260px;
    padding: 24px;
  }
  .network-clinic .clinic-form h3 {
    font-size: 24px;
  }

  .network-services h2 br {
    display: none;
  }
  .network-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .network-service {
    height: 196px;
    border-radius: 15px;
  }
  .network-service > .ref-image {
    height: 104px;
  }
  .network-service b {
    top: 104px;
    left: 12px;
    right: 12px;
    font-size: 14px;
  }
  .network-service > .round-button {
    width: 27px;
    height: 27px;
    right: 10px;
    bottom: 9px;
  }

  .network-section-heading {
    gap: 14px;
  }
  .network-section-heading h2 {
    width: 100%;
  }
  .network-section-heading .doctor-filters {
    margin-left: 0;
  }
  .network-section-heading > .round-button {
    margin-left: auto;
  }
  .network-doctor-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .network-doctor-photo {
    height: 265px;
    width: 80%;
  }
  .network-doctor-copy h3 {
    font-size: 24px;
  }
  .network-doctor-copy {
    padding: 25px;
  }
  .network-reviews.container {
    padding: var(--wb-section-pad) 16px;
  }
  #network-reviews {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .network-page * {
    scroll-behavior: auto;
  }
}
@media (max-width: 360px) {
  .network-hero-copy {
    padding: 26px 20px;
  }

  .network-hero .button {
    font-size: 12px;
  }
  .network-service b {
    font-size: 13px;
  }
}

/* Цель касания кнопки записи в карточке врача: было 139x20. */
@media (max-width: 760px) {
  .network-doctor-copy .button,
  .network-doctor-copy a[data-booking],
  .network-doctor-copy button {
    min-height: 44px;
  }
}

/* ── Статья: содержание справа, польза слева ───────────────────────────
   Владелец 16.10: «страница блога делай как страницу блога». Раскладка
   та же, что у статей блога: колонка текста и липкое содержание справа,
   под содержанием кнопка записи. Общие блоки (врачи, цены) выходят во
   всю ширину сетки, чтобы не ужиматься в колонку текста. */
.article-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
  margin-block: var(--wb-section-pad);
}
.article-page > .article-content {
  min-width: 0;
}
.article-page > .article-content > section {
  margin-bottom: 42px;
}
/* Подзаголовок внутри статьи это своя роль, но вставленные в текст общие
   блоки главной приносят с собой заголовок секции: он остаётся на общей
   шкале сайта (гейт `test:type`). */
.article-page h2:not(.section-title) {
  font-size: var(--wb-h2-text);
  line-height: 1.2;
  margin: 0 0 14px;
}
.article-page h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.article-page p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.6;
}
.article-list,
.article-steps {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 17px;
  line-height: 1.55;
}
.article-note {
  padding: 14px 18px;
  border-radius: 16px;
  background: #eef4fb;
  font-size: 15px;
}
.tax-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 14px;
}
.tax-docs > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

/* Калькулятор возврата. Считает в браузере, ничего никуда не отправляет. */
.tax-calc {
  display: grid;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.tax-calc-fields {
  display: grid;
  /* `minmax(240px, …)` держал колонку шире экрана: на 320 px карточке остаётся
     примерно 230 px, и страница уезжала в горизонтальную прокрутку. */
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  align-items: start;
}
.tax-calc-field {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.tax-calc-field input {
  /* Поле ввода само по себе шире колонки: минимальный размер элемента сетки
     это его min-content, а у `input` он считается по атрибуту `size`. */
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 700 22px/1 var(--figma-font-heading, "Golos Text", Arial, sans-serif);
}
.tax-calc-kind {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tax-calc-kind legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.tax-calc-kind label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
}
.tax-calc-kind small {
  color: var(--muted);
}
.tax-calc-out {
  display: block;
  padding: 18px 22px;
  border-radius: 18px;
  background: #eaf3dc;
  font: 700 30px/1.15 var(--figma-font-heading, "Golos Text", Arial, sans-serif);
  color: #3f5a12;
}
.tax-calc-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.article-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-comment-form {
  display: grid;
  gap: 14px;
  padding: 24px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.article-comment-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  resize: vertical;
}
/* Общие блоки во всю ширину сетки статьи. */
.article-page > .article-content > .home-cases,
.article-page > .article-content > .doctors-section,
.article-page .home-cases,
.article-page .doctors-section {
  width: auto;
  max-width: none;
  margin-inline: 0;
}
@media (max-width: 1000px) {
  .article-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .article-page > .article-sidebar {
    position: static;
  }
}
