/* Standalone styles for /tseny. Existing theme primitives remain untouched. */
body:has(.pricing-page) { min-width: 0; }
html:has(.pricing-page) { scroll-behavior: smooth; }
.pricing-page { --price-brand: #0abab5; --price-ink: #101010; --price-muted: #4a4a4a; --price-line: #e8e7ec; --price-pale: #ecfafa; color: var(--price-ink); font-size: 14px; line-height: 1.5; overflow: hidden; }
.pricing-page *, .pricing-page *::before, .pricing-page *::after { box-sizing: border-box; }
.pricing-page [hidden] { display: none !important; }
.pricing-page section, .pricing-page article { box-sizing: border-box; }
.pricing-page h1, .pricing-page h2, .pricing-page h3, .pricing-page p { margin: 0; }
.pricing-page a { text-decoration: none; }
.pricing-shell { width: min(100% - 32px, 1192px); margin: 0 auto; }
.mobile-title, .mobile-copy { display: none; }

.pricing-hero { position: relative; padding: 0; background: linear-gradient(100deg, #06716e 0%, #0abab5 100%); color: #fff; overflow: hidden; }
.pricing-hero::before, .pricing-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.pricing-hero::before { width: 300px; height: 300px; right: -50px; top: -50px; }
.pricing-hero::after { width: 220px; height: 220px; right: 120px; bottom: -150px; }
.pricing-hero .pricing-shell { position: relative; z-index: 1; min-height: 418px; padding-top: 64px; }
.pricing-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 13px; line-height: 16px; animation: pricing-fade-up .45s ease-out both; }
.pricing-hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pricing-hero__copy { margin-top: 24px; animation: pricing-fade-up .5s .08s ease-out both; }
.pricing-hero h1 { color: #fff; font-size: 48px; font-weight: 700; line-height: 1.18; text-align: left; text-transform: uppercase; }
.pricing-hero__copy p { max-width: 1192px; margin-top: 16px; color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.5; }
.pricing-hero__actions { display: grid; grid-template-columns: max-content max-content 1fr; align-items: center; gap: 12px; margin-top: 24px; animation: pricing-fade-up .5s .16s ease-out both; }
.pricing-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 16px; font-size: 18px; line-height: 1; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.pricing-button .ti { display: block; flex: 0 0 20px; font-size: 20px; }
.pricing-button--light { color: var(--price-brand); background: #fff; }
.pricing-button--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
a.pricing-button--ghost, a.pricing-button--ghost:visited { color: #fff; }
.pricing-hero__actions > span { justify-self: end; color: rgba(255,255,255,.85); font-size: 13px; }

.pricing-popular { padding: 80px 0 120px; }
.pricing-page h2 { color: var(--price-ink); font-size: 38px; font-weight: 700; line-height: 1.2; text-align: center; text-transform: uppercase; }
.pricing-popular__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.pricing-popular__card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px; border: 1px solid var(--price-line); border-radius: 16px; box-shadow: 0 8px 8px rgba(0,0,0,.02); color: var(--price-ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pricing-popular__card img { width: 100%; height: 80px; border-radius: 8px; object-fit: cover; }
.pricing-popular__meta { display: flex; min-height: 70px; flex-direction: column; gap: 8px; }
.pricing-popular__meta b { overflow: hidden; font-size: 15px; font-weight: 700; line-height: 20px; }
.pricing-popular__meta strong { margin-top: auto; color: var(--price-brand); font-size: 16px; font-weight: 700; }
.pricing-popular__card em { color: var(--price-brand); font-size: 13px; font-style: normal; font-weight: 700; }
.pricing-popular__card em span { display: inline-flex; align-items: center; gap: 6px; }
/* The footer uses one Figma arrow asset. Suppress any inherited/generated arrow and
   keep the mobile-only copy hidden outside the mobile breakpoint. */
.pricing-popular__card em::before,
.pricing-popular__card em::after,
.pricing-popular__card em span::before,
.pricing-popular__card em span::after { content: none !important; display: none !important; }
.pricing-popular__card em .mobile-title { display: none !important; }
.pricing-popular__card em .desktop-title { display: inline-flex !important; }
.pricing-popular__card em img { display: block; width: 9px; height: 16px; }

.pricing-list { padding: 0 0 80px; }
.pricing-search label { display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 20px; border: 1.5px solid var(--price-brand); border-radius: 12px; background: #fff; }
.pricing-search__icon { flex: 0 0 auto; width: 20px; height: 20px; }
.pricing-search input { width: 100%; border: 0; outline: 0; color: var(--price-ink); font: inherit; font-size: 16px; background: transparent; }
.pricing-search input::placeholder { color: #8f9094; opacity: 1; }
.pricing-search__meta { display: flex; justify-content: space-between; margin-top: 16px; color: #8f9094; font-size: 13px; }
.pricing-search__meta button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--price-muted); font: inherit; font-size: 13px; background: transparent; cursor: pointer; }
.pricing-search__meta button img { width: 12px; height: 8px; }
.pricing-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pricing-tabs button { flex: 0 0 auto; max-width: 100%; padding: 10px 20px; border: 1px solid var(--price-line); border-radius: 999px; color: var(--price-muted); font: inherit; font-size: 14px; font-weight: 700; background: #fff; cursor: pointer; white-space: normal; transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease; }
.pricing-tabs button.is-active { border-color: var(--price-brand); color: #fff; background: var(--price-brand); }
.pricing-groups { display: grid; gap: 16px; margin-top: 32px; }
.pricing-group { overflow: hidden; border: 1px solid var(--price-line); border-radius: 12px; }
.pricing-group__head { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; padding: 16px 24px; border: 0; color: var(--price-ink); font: inherit; font-size: 18px; font-weight: 700; text-align: left; background: #fff; cursor: pointer; transition: background-color .25s ease; }
.pricing-group.is-open .pricing-group__head { background: var(--price-pale); }
.pricing-group__head small { margin-left: 8px; color: var(--price-brand); font-size: 13px; font-weight: 400; }
.pricing-group__head i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-style: normal; transition: transform .25s ease; }
.pricing-group__head i img { display: block; width: 16px; height: 16px; }
.pricing-group__body { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .38s ease, opacity .2s ease; }
.pricing-group.is-open .pricing-group__body { opacity: 1; }
.pricing-medbook-note { margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--price-line); color: var(--price-muted); font-size: 12px; line-height: 1.5; }
.pricing-row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; column-gap: 16px; align-items: center; min-height: 80px; padding: 16px 24px; border-top: 1px solid var(--price-line); background: #fff; transition: background-color .2s ease, opacity .2s ease; }
.pricing-row--simple { grid-template-columns: minmax(0, 1fr) 120px; }
.pricing-row:nth-child(odd) { background: #f9fafc; }
.pricing-row__code { color: #8f9094; font-size: 13px; }
.pricing-row__name { min-width: 0; color: var(--price-ink); font-size: 15px; font-weight: 700; }
.pricing-row strong { justify-self: end; color: var(--price-ink); font-size: 16px; white-space: nowrap; }
.pricing-row__appointment { display: none; }
.pricing-row--checkup { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) minmax(0, .5fr); align-items: start; min-height: 180px; }
.pricing-row--checkup .pricing-row__name { grid-column: 1; grid-row: 1; align-self: start; }
.pricing-row--checkup ul { grid-column: 2; grid-row: 1; margin: 0; padding: 0; list-style: none; color: var(--price-muted); font-size: 13px; line-height: 1.45; }
.pricing-row--checkup li { position: relative; margin: 0 0 2px; padding-left: 12px; }
.pricing-row--checkup li::before { content: '•'; position: absolute; left: 0; }
.pricing-row__checkup-actions { display: flex; grid-column: 3; grid-row: 1; align-items: flex-start; justify-content: flex-end; gap: 16px; width: 100%; }
.pricing-row--checkup strong { white-space: nowrap; }
.pricing-hint { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; padding: 0; border: 1px solid var(--price-line); border-radius: 50%; color: var(--price-brand); font-size: 10px; font-weight: 700; vertical-align: middle; background: #fff; cursor: pointer; }
.pricing-tooltip { position: absolute; z-index: 3; top: calc(100% + 10px); left: 0; width: 260px; padding: 12px; border-radius: 8px; color: var(--price-muted); font-size: 12px; font-weight: 400; line-height: 1.4; background: var(--price-pale); box-shadow: 0 5px 15px rgba(0,0,0,.12); }
.pricing-load-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; }
.pricing-load-more button { height: 44px; padding: 0 24px; border: 1.5px solid var(--price-brand); border-radius: 12px; color: var(--price-brand); font: inherit; font-size: 14px; font-weight: 700; background: #fff; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.pricing-load-more button:disabled { border-color: var(--price-line); color: #8f9094; cursor: default; }
.pricing-empty { margin: 24px 0 0; padding: 16px 20px; border-radius: 12px; color: var(--price-muted); background: #f9fafc; font-size: 14px; text-align: center; }
.pricing-load-more span { color: #8f9094; font-size: 12px; }

.pricing-notice { background: var(--price-pale); }
.pricing-notice .pricing-shell { display: flex; align-items: center; gap: 16px; min-height: 152px; }
.pricing-notice span { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 23px; font-weight: 700; font-family: serif; background: var(--price-brand); }
.pricing-notice p { max-width: 900px; color: var(--price-muted); font-size: 13px; line-height: 1.5; }

.pricing-terms { padding: 120px 0; }
.pricing-terms__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.pricing-terms article { display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 24px; border: 1px solid var(--price-line); border-radius: 16px; background: #f9fafc; }
.pricing-terms h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.pricing-terms p { color: var(--price-muted); font-size: 14px; line-height: 1.5; }
.pricing-tax { padding: 0 0 120px; }
.pricing-tax__card { display: flex; align-items: center; gap: 24px; padding: 24px; border-left: 4px solid var(--price-brand); border-radius: 16px; background: rgba(10,186,181,.05); }
.pricing-tax__card > span { display: grid; flex: 0 0 auto; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: #fff; font-size: 24px; font-weight: 700; background: var(--price-brand); }
.pricing-tax h2 { font-size: 20px; text-align: left; }
.pricing-tax p { margin-top: 8px; color: var(--price-muted); font-size: 13px; }
.pricing-tax a { display: inline-block; margin-top: 12px; color: var(--price-brand); font-size: 13px; font-weight: 700; }

.pricing-faq { padding: 0 0 120px; }
.pricing-faq__list { max-width: 740px; margin: 40px auto 0; }
.pricing-faq__list article { border-bottom: 1px solid var(--price-line); }
.pricing-faq button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 0; border: 0; color: var(--price-ink); font: inherit; font-size: 18px; font-weight: 700; text-align: left; background: transparent; cursor: pointer; }
.pricing-faq button i { flex: 0 0 auto; color: var(--price-brand); font-size: 22px; font-style: normal; font-weight: 400; }
.pricing-faq article p { max-height: 0; margin: 0; overflow: hidden; padding: 0 24px 0 0; color: var(--price-muted); font-size: 14px; opacity: 0; transition: max-height .3s ease, opacity .2s ease, padding-bottom .3s ease; }
.pricing-faq article.is-open p { padding-bottom: 20px; opacity: 1; }
.pricing-map { padding: 80px 0; background: var(--price-pale); }
.pricing-map .b-map__wrapper { padding: 0; }
.pricing-map .b-map__wrapper h2 { margin: 0 0 40px; }
.pricing-map .b-map__container { height: 640px; overflow: hidden; border-radius: 16px; }

@media (max-width: 1199px) {
    body:has(.pricing-page) .b-contact-bar { display: none; }
    body:has(.pricing-page) header .header { height: 80px; margin: 0; padding: 12px 16px; }
    body:has(.pricing-page) header .b-logo { transform: scale(.78); transform-origin: left center; }
    body:has(.pricing-page) header #main-nav { display: none; }
    body:has(.pricing-page) header .mobile-nav { display: flex; }
    body:has(.pricing-page) header #main-nav.active { display: block; }
    .pricing-hero .pricing-shell { min-height: 445px; padding-top: 64px; }
    .pricing-popular { padding-bottom: 120px; }
    .pricing-popular__grid { display: flex; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .pricing-popular__grid::-webkit-scrollbar { display: none; }
    .pricing-popular__card { flex: 0 0 225px; }
    .pricing-terms__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .pricing-shell { width: min(100% - 80px, 1192px); }
    .pricing-group__head { padding: 20px 24px; }
    .pricing-row:not(.pricing-row--checkup) { min-height: 68px; padding: 24px; }
    body:has(.pricing-page) .b-breadcrumbs { width: calc(100% - 80px); max-width: 1192px; height: 59px; margin: 0 auto; padding: 24px 0 16px; font-size: 14px; line-height: 19px; text-align: left; }
}

@media (min-width: 1200px) {
    body:has(.pricing-page) header .header { margin: 12px 0 0; }
}

/* На узком десктопе страница цен тянется от 1200px (у неё снят min-width
   у body), поэтому меню ужимаем отступами. Скрывать пункты нельзя: их
   состав меняется вместе со страницами сайта. */
@media (min-width: 1200px) and (max-width: 1365px) {
    body:has(.pricing-page) header #main-nav .b-menu > li > a { margin: 0 8px; }
}

@media (hover: hover) {
    .pricing-button:hover, .pricing-load-more button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,.12); }
    .pricing-popular__card:hover { border-color: rgba(10,186,181,.55); transform: translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
    .pricing-tabs button:hover { border-color: var(--price-brand); color: var(--price-brand); }
    .pricing-row:hover { background: #f0fbfb; }
}

@keyframes pricing-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.pricing-page) { scroll-behavior: auto; }
    .pricing-page *, .pricing-page *::before, .pricing-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 767px) {
    .pricing-shell { width: min(100% - 32px, 390px); }
    body:has(.pricing-page) header .header { height: 60px; padding: 4px 16px; }
    body:has(.pricing-page) header .b-logo { width: 150px; transform: none; }
    body:has(.pricing-page) header .b-logo__picture { width: 48px; height: 36px; }
    body:has(.pricing-page) header .b-logo__text { max-width: 92px; padding-left: 8px; font-size: 11px; line-height: 13px; }
    body:has(.pricing-page) header .mobile-nav { margin-left: auto; }
    body:has(.pricing-page) header .icon { width: 32px; height: 32px; background-size: 32px 32px; }
    body:has(.pricing-page) header .mobile-nav span { margin-left: 8px; }
    body:has(.pricing-page) .b-breadcrumbs { display: block; height: 40px; padding: 11px 16px; font-size: 10px; line-height: 18px; text-align: left; }
    body:has(.pricing-page) .b-breadcrumbs__item { color: var(--price-brand); text-decoration: none; }
    body:has(.pricing-page) .b-breadcrumbs__item::after { content: ' / '; color: #8f9094; padding: 0 4px; }
    body:has(.pricing-page) .b-breadcrumbs__item-current { color: #8f9094; }
    .desktop-title, .desktop-copy { display: none; }
    .mobile-title { display: inline; }
    .mobile-copy { display: block; }
    .pricing-page { font-size: 13px; }
    .pricing-hero::before { width: 150px; height: 150px; right: -40px; top: -20px; }
    .pricing-hero::after { width: 120px; height: 120px; right: auto; left: -20px; bottom: -20px; }
    .pricing-hero .pricing-shell { min-height: 425px; padding-top: 24px; padding-bottom: 32px; }
    .pricing-hero__badge { gap: 6px; padding: 6px 12px; font-size: 11px; }
    .pricing-hero__badge i { width: 6px; height: 6px; }
    .pricing-hero__copy { margin-top: 20px; }
    .pricing-hero h1 { font-size: 28px; line-height: 1.2; }
    .pricing-hero__copy p { margin-top: 12px; font-size: 14px; }
    .pricing-hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding-bottom: 0; }
    .pricing-button { width: 100%; height: 52px; border-radius: 16px; font-size: 18px; }
    .pricing-button .ti { font-size: 20px; }
    .pricing-hero__actions > span { align-self: stretch; font-size: 11px; text-align: center; }
    .pricing-popular { padding: 40px 0; }
    .pricing-page h2 { font-size: 24px; line-height: 1.3; }
    .pricing-popular h2 { font-size: 20px; text-align: left; text-transform: none; }
    .pricing-popular__grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; overflow: visible; padding: 0; }
    .pricing-popular__card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-height: 88px; padding: 12px; border-radius: 16px; }
    .pricing-popular__card:nth-child(n+4) { display: none; }
    .pricing-popular__card img { width: 64px; height: 64px; }
    .pricing-popular__meta { min-height: auto; gap: 4px; }
    .pricing-popular__meta b { font-size: 13px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }
    .pricing-popular__meta strong { margin: 0; font-size: 14px; }
    .pricing-popular__card em { font-size: 27px; font-weight: 400; }
    .pricing-popular__card em img { width: 9px; height: 16px; }
    .pricing-popular__card em .desktop-title { display: none !important; }
    .pricing-popular__card em .mobile-title { display: inline-flex !important; }
    .pricing-list { padding: 0 0 32px; }
    .pricing-search label { height: 44px; gap: 12px; padding: 0 16px; border-color: var(--price-line); border-radius: 12px; }
    .pricing-search__icon { width: 16px; height: 16px; }
    .pricing-search input { font-size: 14px; }
    .pricing-search__meta { display: none; }
    .pricing-tabs { margin-top: 24px; }
    .pricing-tabs button { padding: 8px 16px; font-size: 13px; }
    .pricing-groups { gap: 12px; margin-top: 16px; }
    .pricing-group { border-radius: 12px; }
    .pricing-group__head { min-height: 48px; padding: 16px 10px; font-size: 16px; }
    .pricing-group__head small { font-size: 11px; }
    .pricing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; min-height: 0; padding: 14px; }
    .pricing-row--simple { grid-template-columns: minmax(0, 1fr) auto; }
    .pricing-row__code { grid-column: 1; font-size: 10px; line-height: 1; }
    .pricing-row__name { grid-column: 1; font-size: 11px; line-height: 1.4; }
    .pricing-row strong { grid-column: 2; grid-row: 1 / span 2; font-size: 13px; }
    .pricing-row__appointment { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; height: 44px; margin-top: 0; padding: 10px 10px 10px 16px; border: 1px solid var(--price-brand); border-radius: 16px; color: var(--price-brand); font-size: 16px; font-weight: 600; }
    .pricing-row__appointment i { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; color: #fff; font-size: 18px; font-style: normal; background: rgba(10,186,181,.7); }
    .pricing-row__appointment i img { display: block; width: 10px; height: 10px; }
    .pricing-row--checkup { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; }
    .pricing-row--checkup { padding: 16px 24px; }
    .pricing-row__checkup-actions { display: contents; }
    .pricing-row--checkup .pricing-row__name { grid-column: 1; }
    .pricing-row--checkup ul { grid-column: 1 / -1; grid-row: auto; margin-top: 6px; font-size: 10px; line-height: 1.35; }
    .pricing-row--checkup strong { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
    .pricing-row--checkup .pricing-row__appointment { grid-row: auto; }
    .pricing-hint { width: 12px; height: 12px; font-size: 8px; }
    .pricing-load-more { margin-top: 24px; }
    .pricing-load-more button { width: 100%; }
    .pricing-notice .pricing-shell { align-items: flex-start; min-height: 132px; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
    .pricing-notice span { width: 24px; height: 24px; font-size: 14px; }
    .pricing-notice p { font-size: 10px; line-height: 1.5; }
    .pricing-terms { padding: 100px 0 40px; }
    .pricing-terms__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
    .pricing-terms article { min-height: 0; gap: 24px; padding: 16px; }
    .pricing-terms h3 { font-size: 14px; }
    .pricing-terms p { font-size: 12px; }
    .pricing-tax { padding-bottom: 80px; }
    .pricing-tax__card { align-items: flex-start; gap: 12px; padding: 16px; }
    .pricing-tax__card > span { width: 40px; height: 40px; font-size: 13px; }
    .pricing-tax h2 { font-size: 14px; line-height: 1.3; }
    .pricing-tax p { font-size: 11px; }
    .pricing-tax a { font-size: 11px; }
    .pricing-faq { padding-bottom: 80px; }
    .pricing-faq__list { margin-top: 24px; }
    .pricing-faq button { padding: 16px 0; font-size: 13px; line-height: 1.35; }
    .pricing-faq button i { font-size: 17px; }
    .pricing-faq article p { font-size: 12px; }
    .pricing-map { padding: 80px 0 0; }
    .pricing-map .b-map__wrapper h2 { margin-bottom: 24px; }
    .pricing-map .b-map__container { height: 420px; border-radius: 16px 16px 0 0; }
}
