/* =========================
   База (светлее/мягче)
========================= */
:root {
    --text: #1b2845;
    --muted: #60708f;
    --brand: #2f6bcb;
    --brand-hover: #2556a3;

    --page: #f3f5fb;
    --bg-soft: #f7f9fc;
    --border: #e1e6f0;
    --shadow: 0 10px 28px rgba(15, 35, 75, .06);

    --badge-promo: #fff4e6;
    --badge-news: #e6f4ff;
    --badge-doc: #e9f8f1;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--page);
    color: var(--text);
    font-size: 16px;
}

a,
button {
    transition: all .2s ease;
}

a {
    color: var(--brand-hover);
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-title,
.top-bar__left,
.top-bar__right {
    min-width: 0;
}

.top-bar__text,
.top-bar__link,
.site-title__name,
.site-title__desc {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================
   Верхний баннер
========================= */
.announce {
    background: #0f1f38;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.announce__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.announce__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.announce__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announce__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announce__close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .announce__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .announce__actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================
   Верхняя панель
========================= */
.top-bar {
    background: #111b2f;
    color: #fff;
    padding: 6px 0;
    font-size: 14px;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar__left,
.top-bar__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

button.contrast-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

button.contrast-btn:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
    }

    .top-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .top-bar__left {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .top-bar__right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
    }

    .top-bar__right .top-bar__text {
        grid-column: 1 / -1;
    }

    #contrastToggle {
        justify-self: end;
    }

    .top-bar__right a[href="#lang"] {
        justify-self: end;
    }
}

/* =========================
   Шапка
========================= */
.header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-title {
    flex: 1 1 auto;
    text-align: center;
    color: var(--text);
    line-height: 1.35;
}

.site-title__name {
    font-weight: 800;
    font-size: 16px;
}

.site-title__desc {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 320px;
    max-width: 320px;
    justify-content: flex-end;
}

.search input {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

.search input:focus {
    outline: none;
    border-color: rgba(47, 107, 203, .55);
    box-shadow: 0 0 0 4px rgba(47, 107, 203, .12);
}

.search button {
    padding: 9px 12px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.search button:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

@media (max-width: 768px) {
    .header__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo img {
        height: 60px;
    }

    .site-title {
        flex: 1 1 220px;
        text-align: center;
    }

    .site-title__name {
        font-size: 15px;
        line-height: 1.25;
    }

    .site-title__desc {
        font-size: 13px;
        line-height: 1.35;
    }

    .search {
        flex: 1 1 100%;
        max-width: 100%;
        justify-content: center;
    }
}

/* =========================
   Навигация
========================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.menu li {
    position: relative;
    font-size: 14px;
}

.menu a {
    position: relative;
    color: var(--text);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 999px;
}

.menu a:hover {
    background: rgba(47, 107, 203, .08);
    color: var(--brand-hover);
}

.burger {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
}

@media (max-width: 768px) {
    .nav__inner {
        justify-content: center;
    }

    .burger {
        display: inline-block;
        margin: 0 auto;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .menu.open {
        display: flex;
    }
}

/* =========================
   Hero
========================= */
.hero {
    background: linear-gradient(135deg, #f8fbff 0%, #f5f7fb 50%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    padding: 34px 0;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 22px;
    align-items: start;
}

.hero__title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.hero__lead {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.6;
}

.hero__sub {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn--primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(47, 107, 203, .35);
    color: var(--brand-hover);
}

.btn--ghost:hover {
    background: rgba(47, 107, 203, .08);
}

.btn--link {
    background: transparent;
    border-color: transparent;
    color: var(--brand-hover);
    padding: 10px 6px;
}

.btn--link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero__chips {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__chips li {
    background: #fff;
    border: 1px solid var(--border);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
}

.hero__card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.hero__card-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.hero__list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.5;
}

.hero__note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 18px 0;
    }

    .hero__title {
        font-size: 24px;
    }

    .hero__lead {
        font-size: 14px;
    }

    .hero__sub {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

/* =========================
   Единый стиль секций
========================= */
.section {
    margin-top: 22px;
    padding: 24px 0;
}

.section .container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.section__link {
    color: var(--brand-hover);
    text-decoration: none;
}

.section__link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-title {
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.news__title .section-title__dot {
    background: #1b75d1;
}

.promo__title .section-title__dot {
    background: #ff9800;
}

.doctors__title .section-title__dot {
    background: #26a96a;
}

/* =========================
   Новости (отдельный характер)
========================= */
.news__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.news-card {
    border: 1px solid #dde3f2;
    border-radius: 14px;
    padding: 14px;
    background: #f7f9fc;
    display: grid;
    gap: 10px;
    position: relative;
}

.news-card::before {
    content: "Новость";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--badge-news);
    color: #14509c;
    font-size: 11px;
    font-weight: 600;
}

.news-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 14px;
}

.news-card__tag {
    background: #fff;
    border: 1px solid #dde3f2;
    border-radius: 999px;
    padding: 2px 8px;
}

.news-card__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
}

.news-card__text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.news-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   Акции (меньше хаоса)
========================= */
.promo__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

.promo-filter {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
}

.promo-filter:hover {
    background: rgba(255, 152, 0, .08);
}

.promo-filter--active {
    background: var(--badge-promo);
    border-color: #ffc58a;
    color: #a75b10;
}

.promo__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.promo__grid--collapsed .promo-card:nth-child(n+5) {
    display: none;
}

.promo-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #fff9f2);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.promo-card::before {
    content: "Акция";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--badge-promo);
    color: #a75b10;
    font-size: 11px;
    font-weight: 600;
}

.promo-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffefe0;
    color: #a75b10;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(255, 197, 138, .7);
}

.promo-card__title {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.25;
    color: var(--text);
}

.promo-card__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.promo-card__date {
    margin: 0;
    font-size: 12px;
    color: #a75b10;
}

.promo-card__actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.promo__more {
    margin-top: 12px;
    text-align: center;
}

.promo__more-btn {
    border: none;
    background: transparent;
    color: var(--brand-hover);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .promo-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .promo-card__actions .btn {
        width: 100%;
    }
}

/* =========================
   Врачи (профильные карточки)
========================= */
/* Карточки врачей крупнее */
.doctors__slider{
  display:grid;
  gap: 12px;
}

.doctors__track{
  display:flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scroll-padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.doc-card{
  border:1px solid #dde3f2;
  border-radius: 22px;
  padding: 16px;
  background:#fff;
  display:flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 14px 32px rgba(15,35,75,.08);
  scroll-snap-align: start;
}

.doc-card::before{
  content:"Врач";
  position:absolute;
  top:12px;
  left:16px;
  padding:2px 8px;
  border-radius:999px;
  background: var(--badge-doc);
  color:#0f7246;
  font-size:11px;
  font-weight:600;
}

.doc-card__top{
  display:flex;
  gap: 14px;
  align-items:center;
  margin-top: 16px;
}

.doc-card__avatar{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow:hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#1f5a3a;
  font-size: 20px;
}

.doc-card__avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.doc-card__info{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.doc-card__name{
  margin:0;
  font-size: 16px;
  line-height: 1.3;
}

.doc-card__spec{
  margin:0;
  font-size: 13px;
  color: var(--muted);
}

.doc-card__tagline{
  margin:0;
  font-size: 13px;
  color: var(--muted);
  line-height:1.4;
}

.doc-card__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.doc-card--slide{
  flex: 0 0 clamp(280px, 70vw, 360px);
}

.trust {
    margin-top: 14px;
}

.trust__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.trust__item {
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.trust__title {
    font-weight: 900;
    margin-bottom: 4px;
    color: var(--text);
}

.trust__desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
}

/* =========================
   Modal
========================= */
.modal {
    border: none;
    padding: 0;
    border-radius: 16px;
    width: min(640px, calc(100% - 24px));
}

.modal::backdrop {
    background: rgba(0, 0, 0, .55);
}

.modal__box {
    padding: 16px;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.modal__title {
    margin: 0;
    font-size: 20px;
}

.modal__close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.modal__body {
    padding: 12px 0;
    display: grid;
    gap: 10px;
}

.field {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(47, 107, 203, .55);
    box-shadow: 0 0 0 4px rgba(47, 107, 203, .12);
}

.modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.modal__note {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 768px) {
    .modal {
        width: calc(100% - 16px);
    }

    .modal__box {
        padding: 12px;
    }

    .modal__body {
        max-height: 60vh;
        overflow: auto;
    }

    .modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* =========================
   Footer
========================= */
.footer {
    margin-top: 26px;
    padding: 26px 0 16px;
    background: #0f1f38;
    color: rgba(255, 255, 255, .92);
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__inner {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer__brand {
    font-weight: 900;
    margin-bottom: 8px;
}

.footer__title {
    font-weight: 900;
    margin-bottom: 10px;
}

.footer__text {
    margin: 6px 0;
    color: rgba(255, 255, 255, .86);
}

.footer__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, .86);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
}

.footer__policy {
    color: rgba(255, 255, 255, .9);
}

/* =========================
   High contrast
========================= */
.high-contrast {
    background: #000;
    color: #fff;
}

.high-contrast .top-bar,
.high-contrast .header,
.high-contrast .nav {
    background: #000;
    border-bottom: 1px solid #444;
}

.high-contrast a,
.high-contrast span {
    color: #00ffff !important;
}

.high-contrast img {
    filter: brightness(.8) contrast(1.2);
}

.high-contrast .search input {
    background: #000;
    border-color: #00ffff;
    color: #fff;
}

.high-contrast .search button {
    background: #00ffff;
    border-color: #00ffff;
    color: #000;
}

.high-contrast .hero {
    background: #000;
    border-bottom: 1px solid #444;
}

.high-contrast .section .container,
.high-contrast .hero__card,
.high-contrast .promo-card,
.high-contrast .news-card,
.high-contrast .doc-card {
    background: #000;
    border-color: #00ffff;
    box-shadow: none;
}

.high-contrast .btn--primary {
    background: #00ffff;
    border-color: #00ffff;
    color: #000;
}

.high-contrast .btn--ghost {
    border-color: #00ffff;
    color: #00ffff;
}

.high-contrast .modal {
    background: #000;
    color: #fff;
    border: 1px solid #00ffff;
}

.high-contrast .modal__close {
    background: #000;
    border-color: #00ffff;
    color: #00ffff;
}

.high-contrast .field input,
.high-contrast .field select,
.high-contrast .field textarea {
    background: #000;
    color: #fff;
    border-color: #00ffff;
}

.research__grid{
  display:grid;
  gap: 18px;
  grid-template-columns: minmax(0,2fr) minmax(0,1.4fr);
}
.research__column{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.research__subtitle{
  margin:0;
  font-size:18px;
}
.research__desc{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

.research-cards{
  display:grid;
  gap:10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.research-card{
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--bg-soft);
  padding:10px 10px 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:90px;
}
.research-card__icon{
  width:32px;
  height:32px;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--border);
}
.research-card__title{
  margin:0;
  font-size:13px;
  line-height:1.35;
}

/* "Большая" карточка УЗИ */
.research-card--wide{
  display:grid;
  grid-template-columns: 1.1fr 2fr;
  gap:12px;
  background:#fff;
}
.research-card__media{
  border-radius:14px;
  background: linear-gradient(135deg,#e6f4ff,#f7f9fc);
}
.research-card__body{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.research-card__text{
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.research-card__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:4px;
}

.research__actions{
  margin-top:6px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .research__grid{
    grid-template-columns: 1fr;
  }
  .research-card--wide{
    grid-template-columns: 1fr;
  }
}
.research-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:90px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--bg-soft);
  padding:10px 10px 12px;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
.research-card:hover{
  border-color: rgba(47,107,203,.45);
  box-shadow: 0 6px 18px rgba(15,35,75,.08);
  background:#fff;
}
.research-card--wide{
  text-decoration:none;
  color:inherit;
}
.research-card--wide .btn{
  pointer-events:none; /* чтобы клик шёл по всей карточке */
}
.schedule{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.schedule-doctor{
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px 14px;
  background:#fff;
}
.schedule-doctor__name{
  margin:0 0 4px;
  font-size:16px;
}
.schedule-doctor__spec{
  margin:0 0 8px;
  font-size:13px;
  color:var(--muted);
}
.schedule-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.schedule-day{
  min-width:140px;
}
.schedule-day__title{
  font-size:13px;
  font-weight:600;
  margin-bottom:4px;
}
.schedule-slots{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.schedule-slot{
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-soft);
  font-size:12px;
  cursor:pointer;
}
.schedule-slot:hover{
  border-color:rgba(47,107,203,.6);
  background:#fff;
}
@media (max-width: 700px){
  .schedule-grid{
    flex-direction:column;
  }
}
.modal-schedule{
  margin-top: 8px;
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-schedule__hint{
  font-size: 12px;
  color: var(--muted);
}
.modal-schedule__doctor{
  padding: 6px 6px 8px;
  border-radius: 8px;
}
.modal-schedule__doctor-name{
  font-size: 13px;
  font-weight: 600;
}
.modal-schedule__doctor-spec{
  font-size: 12px;
  color: var(--muted);
}
.modal-schedule__row{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}
.modal-schedule__day{
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
}
.modal-schedule__slots{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.modal-slot{
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.modal-slot:hover{
  border-color: rgba(47,107,203,.6);
  background: #f5f8ff;
}

.modal__body--scroll{
  max-height: 60vh;
  overflow-y: auto;
}

.search-highlight {
  background: yellow;
  color: inherit;
  padding: 0 2px;
}
.schedule__table-wrapper {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.schedule-table thead th {
  font-weight: 600;
  background-color: #f7f7f9;
}

.schedule-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.schedule-table tr:nth-child(even) td,
.schedule-table tr:nth-child(even) th[scope="row"] {
  background-color: #fafafa;
}

.schedule-table a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.schedule-table a:hover {
  text-decoration: none;
  border-bottom-style: solid;
}

.schedule-table__note {
  font-size: 0.85em;
  color: #666;
}

.doctors-schedule .doctor-group + .doctor-group {
  margin-top: 2.5rem;
}

.doctor-group__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.doctor-group__note {
  font-size: 0.9rem;
  color: #666;
}

.doctor-table {
  width: 100%;
}

.doctor-table--scroll {
  overflow-x: auto;
}

.doctor-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}

.doctor-table th,
.doctor-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.doctor-table thead th:first-child,
.doctor-table tbody td:first-child {
  text-align: left;
}

.doctor-cell__name {
  font-weight: 600;
}

.doctor-cell__note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.1rem;
}
.doctors-page .section__lead {
  max-width: 640px;
  margin-top: 0.5rem;
  color: #555;
}

.doctors-filter {
  margin: 1.5rem 0 1rem;
}

.doctors-filter__field {
  max-width: 320px;
}

/* базово: одна колонка на маленьких экранах */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* планшет: две карточки в ряд */
@media (min-width: 768px) {
  .doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* десктоп: три карточки в ряд */
@media (min-width: 1200px) {
  .doctors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.doctor-card {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.doctor-card__media {
  flex: 0 0 72px;        /* фиксированная ширина колонки под фото */
  display: flex;
  align-items: flex-start;
}

.doctor-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}


.doctor-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.doctor-card__body {
  flex: 1 1 auto;
}

.doctor-card__name {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.doctor-card__spec {
  font-size: 0.9rem;
  color: #444;
}

.doctor-card__degree {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.35rem;
}

.doctor-card__price {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.doctor-card__schedule {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.6rem;
}

.doctor-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doctor-card__more {
  font-size: 0.85rem;
}

/* Адаптив */
@media (max-width: 640px) {
  .doctor-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .doctor-card__media {
    flex: 0 0 auto;
  }
}
.doctor-page .doctor-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 2rem;
}

.doctor-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  text-decoration: none;
}

.doctor-back:hover {
  text-decoration: underline;
}

.doctor-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doctor-photo__img {
  width: 100%;
  max-width: 260px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.doctor-primary__name {
  font-size: 1.4rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.doctor-primary__spec {
  font-size: 0.95rem;
  color: #374151;
}

.doctor-primary__degree {
  font-size: 0.9rem;
  color: #6b7280;
}

.doctor-prices p {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.doctor-block-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doctor-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doctor-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.doctor-section p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.doctor-list {
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.doctor-list li + li {
  margin-top: 0.25rem;
}

/* Видео-заглушка */
.doctor-video-placeholder {
  border-radius: 12px;
  border: 1px dashed #d1d5db;
  padding: 1.5rem;
  text-align: center;
  color: #6b7280;
}

.doctor-video iframe {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
}

/* Таблицы расписания */
.doctor-schedule__tabs {
  display: inline-flex;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.doctor-tab {
  border: none;
  background: transparent;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #4b5563;
}

.doctor-tab--active {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  color: #111827;
}

.doctor-schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.doctor-schedule__table th,
.doctor-schedule__table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.doctor-schedule__table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

.doctor-schedule__pane {
  display: none;
}

.doctor-schedule__pane--active {
  display: block;
}

/* Адаптив */
@media (max-width: 900px) {
  .doctor-page .doctor-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .doctor-photo__img {
    max-width: 200px;
  }
}
.research-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.research-note__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.research-note__list {
  font-size: 0.9rem;
  color: #374151;
  padding-left: 1.1rem;
}

.research-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.research-cat {
  position: relative;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  color: #111827;
}

.research-cat--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.research-groups {
  margin-top: 0.5rem;
}

.research-group {
  display: none;
}

.research-group--active {
  display: block;
}

.research-group__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.research-table th,
.research-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.research-table thead th {
  font-weight: 600;
  background: #f3f4f6;
}

.research-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

@media (max-width: 700px) {
  .research-table thead {
    display: none;
  }
  .research-table tbody tr {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .research-table td {
    display: block;
    border: none;
    padding: 0.2rem 0;
  }
  .research-table td:nth-child(1) {
    font-weight: 600;
  }
}
.research-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.research-tile {
  display: block;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111827;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}

.research-tile:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}
.test-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.test-cat {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: #f3f4f6;
  color: #374151;
}

.test-cat--active {
  background: #2563eb;
  color: #ffffff;
}

.test-group {
  display: none;
}

.test-group--active {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* карточки как раньше */
.test-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.test-card__title {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.test-card__info {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 0.45rem;
}

.test-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.test-card__price {
  font-weight: 600;
  font-size: 0.95rem;
}

.test-card__link {
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
}
/* Категории анализов */

.test-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.test-cat {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: #f3f4f6;
  color: #374151;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.test-cat:hover {
  background: #e5e7eb;
}

.test-cat--active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Группы анализов */

.test-group {
  display: none;
}

.test-group--active {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Карточки анализов */

.test-card {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.test-card:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.test-card__title-main {
  font-size: 0.96rem;
  font-weight: 600;
}

.test-card__title-sub {
  font-size: 0.84rem;
  color: #6b7280;
}

.test-card__info {
  font-size: 0.84rem;
  color: #4b5563;
  margin-top: 0.4rem;
  line-height: 1.5;
}


/* Иконка подготовки */

.test-card__prep {
  border: none;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.test-card__prep:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.test-card__link {
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
}

.test-card__link:hover {
  text-decoration: underline;
}

/* Модальные окна подготовки
   (можно использовать те же базовые стили, что для appointmentModal) */

.modal {
  border: none;
  padding: 0;
  max-width: 520px;
  width: 100%;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.modal__box {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.35);
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.modal__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.modal__close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.modal__close:hover {
  color: #111827;
}

.modal__body {
  font-size: 0.9rem;
  color: #374151;
}

.modal__body ul {
  padding-left: 1.1rem;
}

.modal__body li + li {
  margin-top: 0.25rem;
}

/* Адаптив */

@media (max-width: 768px) {
  .test-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-card__actions {
    align-self: stretch;
    justify-content: flex-start;
  }

  .modal {
    margin: 0 1rem;
  }
}
.test-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.test-cat__icon {
  width: 18px;
  height: 18px;
}
.test-card__prep {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.45rem 0.9rem;    /* больше отступы */
  border-radius: 999px;

  font-size: 0.9rem;          /* крупнее текст */
  line-height: 1.2;

  border: none;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;

  transition: background 0.15s ease, transform 0.1s ease;
}

.test-card__prep:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.test-card__prep-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .test-cats {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .test-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-card__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
.test-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;          /* позволит перенести действия на новую строку */
}

.test-card__price {
  white-space: nowrap;
}

.test-card__actions {
  display: flex;
  flex-direction: column;   /* одна строка над другой */
  align-items: flex-end;    /* или flex-start, если нужно слева */
  gap: 0.25rem;
}


/* кнопка подготовки — не слишком широкая */
.test-card__prep {
  max-width: 100%;
}

/* мобильная версия: всё в столбик, чтобы точно не пересекалось */
@media (max-width: 768px) {
  .test-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.test-card__meta {
  margin: 0.25rem 0 0.4rem;
}

.test-card__prep-text {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  color: #2563eb;
  cursor: pointer;
}
.price-search {
  margin-bottom: 1.25rem;
}

.price-search input[type="search"] {
  width: 100%;
  max-width: 480px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

/* Аккордеон категорий */
.price-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-category {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;
}

.price-category__header {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: none;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.price-category__title {
  font-size: 0.98rem;
  font-weight: 600;
}

.price-category__chevron {
  font-size: 0.9rem;
  color: #6b7280;
  transition: transform 0.15s ease;
}

.price-category__body {
  padding: 0.7rem 0.9rem 0.75rem;
  display: none;
}

.price-category--open .price-category__body {
  display: block;
}

.price-category--open .price-category__chevron {
  transform: rotate(180deg);
}

/* Подкатегории и список */
.price-subcategory + .price-subcategory {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.price-subcategory__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.price-item__name {
  flex: 1;
}

.price-item__price {
  white-space: nowrap;
  font-weight: 600;
}

/* мобильная адаптация */
@media (max-width: 768px) {
  .price-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-item__price {
    font-size: 0.9rem;
  }
}
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  color: #f9fafb;
  padding: 0.9rem 0;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1 1 260px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    align-items: flex-start;
  }
}
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
  display: none;                /* скрыта по умолчанию */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.back-to-top:hover {
  background: #1d4ed8;
}

html {
  scroll-behavior: smooth;      /* плавная прокрутка */
}
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.docs-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  color: #111827;
  font-size: 0.92rem;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.docs-item:hover {
  background: #f3f4f6;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.docs-item__icon {
  font-size: 1.1rem;
}

.docs-item__text {
  flex: 1;
}

/* Общий блок внутри секции нормативных актов */
.docs-block {
  margin-top: 1.25rem;
}

.docs-block__title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.docs-block__text {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

/* Список ссылок-документов */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  color: #111827;
  font-size: 0.9rem;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.docs-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.docs-item__icon {
  font-size: 1.1rem;
  margin-top: 0.05rem;
}

.docs-item__text {
  flex: 1;
  line-height: 1.4;
}

/* Адаптив — немного увеличиваем кликабельную область на мобилках */
@media (max-width: 640px) {
  .docs-item {
    padding: 0.7rem 0.85rem;
  }
}
.section--narrow .container {
  max-width: 800px;
}

.policy {
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.6;
}

.policy__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.policy p + p {
  margin-top: 0.4rem;
}

.policy ul {
  margin: 0.4rem 0 0.4rem 1.2rem;
}

.policy li + li {
  margin-top: 0.2rem;
}

.tax-block {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.tax-block__text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.tax-block__text + .tax-block__text {
  margin-top: 0.4rem;
}

.tax-list {
  margin: 0.6rem 0 0.8rem 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.tax-list li + li {
  margin-top: 0.25rem;
}

.tax-block__actions {
  margin-top: 0.8rem;
}
.section_contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: stretch;
}

.contacts-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacts-block__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contacts-block__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.contacts-block__value {
  font-size: 0.95rem;
}

.contacts-block__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.contacts-block__phones a {
  font-size: 0.95rem;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

.contacts-block__phones a:hover {
  text-decoration: underline;
}

.contacts-block__route {
  margin-top: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.contacts-block__actions {
  margin-top: 1.25rem;
}

.contacts-map {
  width: 100%;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
}

@media (max-width: 900px) {
  .section_contacts__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.video-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-carousel__track-wrapper {
  overflow: hidden;
  flex: 1 1 auto;
}

.video-carousel__track {
  display: flex;
  gap: 1rem;
  scroll-behavior: smooth;
}

.video-card {
  flex: 0 0 260px;
}

.video-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-card__thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 1.4rem;
}

.video-card__title {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

/* Кнопки навигации */
.video-carousel__nav {
  border: none;
  background: #ffffff;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-carousel__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 768px) {
  .video-carousel__nav {
    display: none;
  }

  .video-carousel__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .video-card {
    scroll-snap-align: start;
  }
}

#videos .container {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}
.video-card__thumb {
    min-height: 150px;
}
.section > .container {
  background: #fff !important;
}
