/**
 * Современные страницы phlebolog.org — профили врачей и рубрики (симптомы и др.)
 * Откат: удалить .phlebolog-profile-on
 */

:root {
  --phlebo-font: var(--hd-font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif);
  --phlebo-scale: var(--hd-scale, 0.7);
  --phlebo-text: #1d1d1f;
  --phlebo-muted: #6e6e73;
  --phlebo-accent: #0a5878;
  --phlebo-link: #0071e3;
  --phlebo-bg: #f5f5f7;
  --phlebo-surface: #ffffff;
  --phlebo-line: rgba(0, 0, 0, 0.1);
  --phlebo-radius: 0;
  --phlebo-shadow: none;
  --phlebo-shadow-lg: none;
}

body.phlebo-profile-page,
body.phlebo-hub-page,
body.phlebo-article-page,
body.phlebo-reviews-page {
  font-family: var(--phlebo-font);
}

body.phlebo-profile-page #tz-main-body-wrapper,
body.phlebo-hub-page #tz-main-body-wrapper,
body.phlebo-article-page #tz-main-body-wrapper,
body.phlebo-reviews-page #tz-main-body-wrapper {
  background: var(--phlebo-bg);
  padding-bottom: 48px;
}

body.phlebo-profile-page .tpItemPage,
body.phlebo-article-page .tpItemPage {
  font-family: var(--phlebo-font);
  color: var(--phlebo-text);
}

body.phlebo-profile-page #tz-portfolio-template-head.phlebo-head-hidden,
body.phlebo-article-page #tz-portfolio-template-head.phlebo-head-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero (фон за фото, как apple.com/mac) ── */
body.phlebo-profile-page .phlebo-hero {
  position: relative;
  margin: 0 0 32px;
  padding: 48px 24px 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-hero-bg {
  position: absolute;
  inset: 0;
  background: #f5f5f7;
  z-index: 0;
}

body.phlebo-profile-page .phlebo-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  max-width: 920px;
  margin: 0 auto;
}

body.phlebo-profile-page .phlebo-hero-visual {
  flex: 0 1 320px;
  display: flex;
  justify-content: center;
}

body.phlebo-profile-page .phlebo-hero-media {
  position: relative;
  overflow: hidden;
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-hero-media img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
}

body.phlebo-profile-page .phlebo-hero-info {
  flex: 1 1 280px;
  max-width: 480px;
  text-align: left;
}

body.phlebo-profile-page .phlebo-hero-info .TzArticleTitle {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin: 0 0 12px !important;
  color: var(--phlebo-text) !important;
}

body.phlebo-profile-page .phlebo-hero-meta {
  margin-bottom: 16px;
}

body.phlebo-profile-page .phlebo-hero-meta .tpArticleCategory a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--phlebo-accent);
  background: #fff;
  border: 1px solid var(--phlebo-line);
  text-decoration: none;
}

body.phlebo-profile-page .phlebo-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--phlebo-muted);
  font-weight: 400;
}

body.phlebo-profile-page .phlebo-hero-lead p {
  margin: 0;
}

/* ── Запись на приём ── */
body.phlebo-profile-page .phlebo-booking,
body.phlebo-article-page .phlebo-booking {
  margin-bottom: 28px;
  padding: 28px;
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-booking-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 0 16px !important;
  color: var(--phlebo-accent) !important;
  letter-spacing: -0.02em;
}

body.phlebo-profile-page .phlebo-booking-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-booking-frame iframe {
  display: block;
  width: 100% !important;
  min-height: 720px;
  border: none !important;
}

/* ── Навигация (оглавление) ── */
body.phlebo-profile-page .phlebo-toc,
body.phlebo-article-page .phlebo-toc {
  margin-bottom: 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-toc-label,
body.phlebo-article-page .phlebo-toc-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--phlebo-muted);
  margin: 0 0 14px;
}

body.phlebo-profile-page .phlebo-toc-list,
body.phlebo-article-page .phlebo-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.phlebo-profile-page .phlebo-toc-list li,
body.phlebo-article-page .phlebo-toc-list li {
  margin: 0;
  list-style: none;
}

body.phlebo-profile-page .phlebo-toc-list a,
body.phlebo-article-page .phlebo-toc-list a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phlebo-text);
  background: var(--phlebo-bg);
  border: 1px solid var(--phlebo-line);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

body.phlebo-profile-page .phlebo-toc-list a:hover,
body.phlebo-article-page .phlebo-toc-list a:hover {
  color: var(--phlebo-link);
  background: #fff;
  border-color: var(--phlebo-accent);
}

body.phlebo-profile-page .phlebo-lead,
body.phlebo-article-page .phlebo-lead {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--phlebo-text);
}

body.phlebo-profile-page .phlebo-lead p,
body.phlebo-article-page .phlebo-lead p {
  margin: 0;
}

/* ── Секции контента ── */
body.phlebo-profile-page .phlebo-sections,
body.phlebo-article-page .phlebo-sections {
  margin-top: 8px;
}

body.phlebo-profile-page .phlebo-blocks,
body.phlebo-article-page .phlebo-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.phlebo-profile-page .phlebo-block,
body.phlebo-article-page .phlebo-block {
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  scroll-margin-top: 100px;
}

body.phlebo-profile-page .phlebo-block-title,
body.phlebo-article-page .phlebo-block-title {
  margin: 0;
  padding: 18px 24px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--phlebo-accent);
  background: #fafafa;
  border-bottom: 1px solid var(--phlebo-line);
  border-left: 3px solid var(--phlebo-accent);
}

body.phlebo-profile-page .phlebo-block-content,
body.phlebo-article-page .phlebo-block-content {
  padding: 24px 28px 28px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--phlebo-text);
}

body.phlebo-profile-page .phlebo-block-content h4,
body.phlebo-article-page .phlebo-block-content h4 {
  font-size: 0.9375rem !important;
  color: var(--phlebo-muted) !important;
  font-weight: 500 !important;
  margin: 1.25em 0 0.75em !important;
}

body.phlebo-profile-page .phlebo-block-content img,
body.phlebo-article-page .phlebo-block-content img {
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-block-content blockquote,
body.phlebo-article-page .phlebo-block-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--phlebo-bg);
  border-left: 3px solid var(--phlebo-accent);
}

body.phlebo-profile-page .phlebo-block-content ul,
body.phlebo-article-page .phlebo-block-content ul {
  padding-left: 1.25em;
}

body.phlebo-profile-page .phlebo-block-content li,
body.phlebo-article-page .phlebo-block-content li {
  margin-bottom: 0.5em;
}

body.phlebo-profile-page .phlebo-block-content .dj-galleryGrid,
body.phlebo-article-page .phlebo-block-content .dj-galleryGrid {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-block-content iframe,
body.phlebo-article-page .phlebo-block-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 20px 0;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-profile-page .phlebo-block-content blockquote h4,
body.phlebo-article-page .phlebo-block-content blockquote h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--phlebo-accent) !important;
  margin: 0 !important;
}

body.phlebo-profile-page .phlebo-block-content blockquote + p,
body.phlebo-article-page .phlebo-block-content blockquote + p {
  margin-top: 12px;
}

/* Скрыть пустую строку после hero */
body.phlebo-profile-page .tpBody.phlebo-enhanced > .container-fluid > .row:empty,
body.phlebo-article-page .tpBody.phlebo-enhanced > .container-fluid > .row:empty {
  display: none;
}

@media (max-width: 767px) {
  body.phlebo-profile-page .phlebo-hero {
    margin: 0 0 24px;
    padding: 32px 16px 40px;
  }

  body.phlebo-profile-page .phlebo-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  body.phlebo-profile-page .phlebo-hero-info {
    text-align: center;
  }

  body.phlebo-profile-page .phlebo-booking,
  body.phlebo-profile-page .phlebo-toc,
  body.phlebo-article-page .phlebo-booking,
  body.phlebo-article-page .phlebo-toc {
    padding: 20px 16px;
  }

  body.phlebo-profile-page .phlebo-block-title,
  body.phlebo-article-page .phlebo-block-title {
    padding: 16px 18px;
    font-size: 1rem;
  }

  body.phlebo-profile-page .phlebo-block-content,
  body.phlebo-article-page .phlebo-block-content {
    padding: 18px 18px 22px;
  }

  body.phlebo-profile-page .phlebo-booking-frame iframe {
    min-height: 600px;
  }
}

/* ══════════════════════════════════════════
   Рубрики: симптомы, флебологи, статьи (view-portfolio)
   ══════════════════════════════════════════ */

body.phlebo-hub-page #tpPortfolio {
  font-family: var(--phlebo-font);
  color: var(--phlebo-text);
}

body.phlebo-hub-page .phlebo-hub-hero {
  position: relative;
  margin: 0 0 28px;
  padding: 40px 32px 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-hub-page .phlebo-hub-hero-bg {
  position: absolute;
  inset: 0;
  background: #f5f5f7;
  z-index: 0;
}

body.phlebo-hub-page .phlebo-hub-hero-inner {
  position: relative;
  z-index: 1;
}

body.phlebo-hub-page .phlebo-hub-hero .page-heading {
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-family: var(--phlebo-font) !important;
  font-size: clamp(28px, 3.2vw, 40px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.022em !important;
  line-height: 1.0833333333 !important;
  color: var(--phlebo-text) !important;
}

body.phlebo-hub-page .phlebo-hub-hero .description {
  font-family: var(--phlebo-font);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.381;
  letter-spacing: 0.011em;
  color: var(--phlebo-muted);
  max-width: none;
}

body.phlebo-hub-page .phlebo-hub-hero .description p {
  margin: 0;
}

body.phlebo-hub-page #portfolio.phlebo-portfolio-hidden {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.phlebo-hub-page .phlebo-cards-wrap.phlebo-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

body.phlebo-hub-page .phlebo-cards-wrap.phlebo-cards-grid .element.tz_item {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  opacity: 1 !important;
  float: none !important;
  margin: 0 !important;
  grid-column: auto !important;
}

body.phlebo-hub-page .phlebo-card .TzInner {
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  margin: 0 !important;
  background: var(--phlebo-surface);
  overflow: hidden;
  border: 1px solid var(--phlebo-line);
  transition: border-color 0.2s ease;
}

body.phlebo-hub-page .phlebo-card:hover .TzInner {
  border-color: var(--phlebo-accent);
}

body.phlebo-hub-page .phlebo-card .TzArticleMedia {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  height: auto !important;
  min-height: 0;
}

body.phlebo-hub-page .phlebo-card .overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.93);
  color: #222;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

body.phlebo-hub-page .phlebo-card .overlay-link p {
  margin: 0;
  font-family: var(--phlebo-font);
  font-size: 15px;
  line-height: 1.47;
  text-transform: none;
  text-align: center;
  color: var(--phlebo-muted);
}

body.phlebo-hub-page .phlebo-card .overlay-link:after {
  content: " ";
  display: inline-block;
  width: 2.5rem;
  border-top: 1px solid #222;
  margin-top: 0.85rem;
  flex-shrink: 0;
}

body.phlebo-hub-page .phlebo-card .TzInner:hover .overlay-link {
  transform: translateY(0);
}

body.phlebo-hub-page .phlebo-card .tz_portfolio_plus_image {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  height: auto !important;
  min-height: 160px;
  padding: 14px 14px 0;
  background: #fafafa;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-hub-page .phlebo-card .tz_portfolio_plus_image a {
  display: block;
  width: 100%;
  line-height: 0;
}

body.phlebo-hub-page .phlebo-card .tz_portfolio_plus_image img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  display: block;
}

body.phlebo-hub-page .phlebo-card .TzPortfolioDescription {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
  text-align: center;
}

body.phlebo-hub-page .phlebo-card .TzPortfolioTitle {
  margin: 0 0 12px !important;
  font-family: var(--phlebo-font) !important;
  font-size: clamp(19px, 2vw, 21px) !important;
  font-weight: 600 !important;
  line-height: 1.19 !important;
  letter-spacing: 0.011em;
}

body.phlebo-hub-page .phlebo-card .TzPortfolioTitle a {
  color: var(--phlebo-accent) !important;
  text-decoration: none;
}

body.phlebo-hub-page .phlebo-card .TzPortfolioTitle a:hover {
  color: var(--phlebo-link) !important;
}

body.phlebo-hub-page .phlebo-card .TzPortfolioReadmore {
  align-self: center;
  margin-top: auto;
  padding: 10px 20px !important;
  font-family: var(--phlebo-font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--phlebo-link) !important;
  background: #fff !important;
  border: 1px solid var(--phlebo-line) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}

body.phlebo-hub-page .phlebo-card .TzPortfolioReadmore:hover {
  border-color: var(--phlebo-accent) !important;
  color: var(--phlebo-accent) !important;
}

@media (max-width: 991px) {
  body.phlebo-hub-page .phlebo-cards-wrap.phlebo-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.phlebo-hub-page .phlebo-hub-hero {
    padding: 28px 18px 24px;
    margin-bottom: 20px;
  }

  body.phlebo-hub-page .phlebo-hub-hero .page-heading {
    font-size: 28px !important;
  }

  body.phlebo-hub-page .phlebo-hub-hero .description {
    font-size: 17px;
  }

  body.phlebo-hub-page .phlebo-card .TzPortfolioTitle {
    font-size: 19px !important;
  }

  body.phlebo-hub-page .phlebo-card .TzPortfolioDescription {
    padding: 16px 18px 18px;
  }

  body.phlebo-hub-page .phlebo-card .tz_portfolio_plus_image {
    min-height: 140px;
    padding: 10px 10px 0;
  }
}

/* ══════════════════════════════════════════
   Правый сайдбар — на всех страницах сайта
   ══════════════════════════════════════════ */

#tz-right {
  padding-top: 4px;
}

#tz-right .tz-module {
  margin-bottom: 20px;
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  overflow: hidden;
}

#tz-right .module-inner {
  padding: 0;
}

#tz-right h3.module-title {
  margin: 0 !important;
  padding: 14px 18px !important;
  background: #fafafa;
  border-bottom: 1px solid var(--phlebo-line);
  border-left: 3px solid var(--phlebo-accent);
  font-family: var(--phlebo-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--phlebo-accent) !important;
}

#tz-right h3.module-title span {
  color: var(--phlebo-accent) !important;
}

#tz-right h3.module-title:before {
  display: none;
}

#tz-right .module-ct {
  padding: 18px;
  font-family: var(--phlebo-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--phlebo-muted);
}

#tz-right .module-ct p {
  margin: 0 0 12px;
}

#tz-right .module-ct p:last-child {
  margin-bottom: 0;
}

#tz-right .custom img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--phlebo-line);
}

#tz-right .custom a:hover img {
  border-color: var(--phlebo-accent);
}

#tz-right .custom iframe {
  max-width: 100%;
  border: 1px solid var(--phlebo-line);
}

#tz-right .custom .modal_link {
  display: block;
  margin-top: 8px;
}

#tz-right .tpp-module-carousel {
  margin: 0 -4px;
}

#tz-right .tpp-module-carousel .TzInner.card {
  margin: 0;
  border: 1px solid var(--phlebo-line);
  overflow: hidden;
  background: #fafafa;
}

#tz-right .tpp-module-carousel .tz_portfolio_plus_image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#tz-right .tpp-module-carousel .card-body {
  padding: 14px 16px 16px;
}

#tz-right .tpp-module-carousel .TzPortfolioTitle {
  margin: 0 0 8px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center;
}

#tz-right .tpp-module-carousel .TzPortfolioTitle a {
  color: var(--phlebo-accent) !important;
  text-decoration: none;
}

#tz-right .tpp-module-carousel .TzPortfolioIntrotext {
  font-size: 14px;
  line-height: 1.5;
  color: var(--phlebo-muted);
  text-align: center;
}

#tz-right .tpp-module-carousel .TzPortfolioIntrotext p {
  margin: 0;
}

#tz-right .mytestimonial.theme7 {
  background: #fafafa;
  border: 1px solid var(--phlebo-line);
  padding: 16px;
  margin: 0;
}

#tz-right .mytestimonial .content {
  margin-bottom: 12px;
}

#tz-right h3.mytestimonials_title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  color: var(--phlebo-text) !important;
}

#tz-right h3.mytestimonials_title:before {
  display: none;
}

#tz-right h3.mytestimonials_title a {
  color: var(--phlebo-accent) !important;
  text-decoration: none;
}

#tz-right .review-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--phlebo-muted);
}

#tz-right .testimonial-pic img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border: 1px solid var(--phlebo-line);
  margin: 8px 0;
}

#tz-right .testimonial-review {
  font-size: 13px;
  color: var(--phlebo-muted);
}

#tz-right .testimonial-review .mytestimonials_title {
  font-weight: 600;
  color: var(--phlebo-text);
}

#tz-right .myt-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--phlebo-accent) !important;
  background: #fff;
  border: 1px solid var(--phlebo-line);
  text-decoration: none !important;
  transition: border-color 0.2s;
}

#tz-right .myt-btn:hover {
  border-color: var(--phlebo-accent);
}

#tz-right .post-large-rate {
  margin: 6px 0 8px;
}

#tz-right .owl-carousel .owl-dots {
  margin-top: 14px;
  text-align: center;
}

#tz-right .owl-carousel .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 4px;
  background: #d2d2d7;
  transition: background 0.2s;
}

#tz-right .owl-carousel .owl-dot.active span {
  background: var(--phlebo-accent);
}

#tz-right .owl-carousel .owl-nav button {
  width: 32px;
  height: 32px;
  background: var(--phlebo-surface) !important;
  border: 1px solid var(--phlebo-line) !important;
  color: var(--phlebo-accent) !important;
}

@media (min-width: 992px) {
  #tz-right {
    position: sticky;
    top: 90px;
    align-self: flex-start;
  }
}

@media (max-width: 991px) {
  #tz-right .tz-module {
    margin-bottom: 16px;
  }

  #tz-right h3.module-title {
    font-size: 14px !important;
    padding: 14px 16px !important;
  }
}

/* ── Внутренние статьи (симптомы, контент) ── */
body.phlebo-article-page .phlebo-article-hero {
  margin: 0 0 28px;
  padding: 36px 28px 40px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-article-page .phlebo-article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

body.phlebo-article-page .phlebo-article-hero .TzArticleTitle {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: var(--phlebo-text) !important;
  margin: 0 !important;
}

body.phlebo-article-page .phlebo-article-hero .phlebo-hero-meta {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--phlebo-muted);
}

body.phlebo-article-page .phlebo-article-hero .phlebo-hero-meta a {
  color: var(--phlebo-link);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   Страница цен /tseny
   ══════════════════════════════════════════ */

body.phlebo-prices-page #tz-main-body-wrapper {
  background: var(--phlebo-bg);
  padding-bottom: 48px;
}

body.phlebo-prices-page .tpItemPage {
  font-family: var(--phlebo-font);
  color: var(--phlebo-text);
}

body.phlebo-prices-page .phlebo-prices-hero {
  margin: 0 0 28px;
  padding: 36px 28px 40px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-prices-page .phlebo-prices-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

body.phlebo-prices-page .phlebo-prices-hero h1 {
  margin: 0 0 16px !important;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: var(--phlebo-text) !important;
}

body.phlebo-prices-page .phlebo-prices-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--phlebo-muted);
}

body.phlebo-prices-page .phlebo-prices-lead p {
  margin: 0;
}

body.phlebo-prices-page .phlebo-prices-nav {
  margin-bottom: 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-prices-page .phlebo-prices-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--phlebo-muted);
  margin: 0 0 14px;
}

body.phlebo-prices-page .phlebo-prices-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.phlebo-prices-page .phlebo-prices-nav-list a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phlebo-text);
  background: var(--phlebo-bg);
  border: 1px solid var(--phlebo-line);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

body.phlebo-prices-page .phlebo-prices-nav-list a:hover {
  color: var(--phlebo-link);
  background: #fff;
  border-color: var(--phlebo-accent);
}

body.phlebo-prices-page .phlebo-prices-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.phlebo-prices-page .phlebo-price-section {
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  scroll-margin-top: 100px;
}

body.phlebo-prices-page .phlebo-price-section-title {
  margin: 0;
  padding: 18px 24px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--phlebo-accent);
  background: #fafafa;
  border-bottom: 1px solid var(--phlebo-line);
  border-left: 3px solid var(--phlebo-accent);
}

body.phlebo-prices-page .phlebo-price-section-body {
  padding: 0;
  overflow-x: auto;
}

body.phlebo-prices-page .phlebo-price-section-body .table-responsive {
  margin: 0;
  border: none;
}

body.phlebo-prices-page table.phlebo-price-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

body.phlebo-prices-page table.phlebo-price-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--phlebo-muted);
  background: #fafafa;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-prices-page table.phlebo-price-table tbody tr {
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-prices-page table.phlebo-price-table tbody tr:nth-child(even) {
  background: rgba(245, 245, 247, 0.6);
}

body.phlebo-prices-page table.phlebo-price-table tbody tr:hover {
  background: rgba(10, 88, 120, 0.04);
}

body.phlebo-prices-page table.phlebo-price-table td {
  padding: 16px 18px;
  vertical-align: top;
  color: var(--phlebo-text);
}

body.phlebo-prices-page table.phlebo-price-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--phlebo-accent);
}

body.phlebo-prices-page table.phlebo-price-table td p {
  margin: 0;
}

body.phlebo-prices-page table.phlebo-price-table strong {
  color: #c93434;
  font-weight: 700;
}

body.phlebo-prices-page table.phlebo-price-table span[style*="line-through"],
body.phlebo-prices-page table.phlebo-price-table s,
body.phlebo-prices-page table.phlebo-price-table del,
body.phlebo-prices-page table.phlebo-price-table .phlebo-price-old {
  color: var(--phlebo-muted) !important;
  font-weight: 500 !important;
  font-size: 1.1875rem;
  text-decoration: line-through;
  margin-left: 0.45em;
}

body.phlebo-prices-page table.phlebo-price-table.phlebo-price-no-category .phlebo-price-col-category {
  display: none !important;
}

body.phlebo-prices-page .phlebo-prices-footer {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--phlebo-text);
}

body.phlebo-prices-page .phlebo-prices-footer p {
  margin: 0 0 12px;
}

body.phlebo-prices-page .phlebo-prices-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body.phlebo-prices-page .phlebo-prices-hero {
    padding: 28px 16px 32px;
  }

  body.phlebo-prices-page .phlebo-prices-nav {
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.phlebo-prices-page .phlebo-prices-nav-list {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  body.phlebo-prices-page .phlebo-prices-nav-list a {
    white-space: nowrap;
  }

  body.phlebo-prices-page .phlebo-price-section {
    margin-bottom: 20px;
  }

  body.phlebo-prices-page .phlebo-price-section-title {
    font-size: 1.0625rem;
    padding: 14px 16px;
  }

  body.phlebo-prices-page .phlebo-prices-footer {
    padding: 20px 16px;
  }

  body.phlebo-prices-page table.phlebo-price-table {
    font-size: 0.9375rem;
  }

  body.phlebo-prices-page table.phlebo-price-table thead {
    display: none;
  }

  body.phlebo-prices-page table.phlebo-price-table tbody {
    display: block;
  }

  body.phlebo-prices-page table.phlebo-price-table tbody tr {
    display: block;
    padding: 0;
    margin: 0 0 10px;
    border: 1px solid var(--phlebo-line);
    background: #fff !important;
    overflow: hidden;
  }

  body.phlebo-prices-page table.phlebo-price-table tbody tr:last-child {
    margin-bottom: 0;
  }

  body.phlebo-prices-page table.phlebo-price-table tbody tr:hover {
    border-color: var(--phlebo-accent);
  }

  body.phlebo-prices-page table.phlebo-price-table tbody tr.phlebo-price-row-short::before {
    content: attr(data-phlebo-service);
    display: block;
    padding: 10px 16px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--phlebo-muted);
    background: #fafafa;
    border-bottom: 1px solid var(--phlebo-line);
  }

  body.phlebo-prices-page table.phlebo-price-table td {
    display: block;
    padding: 12px 16px;
    text-align: left !important;
    white-space: normal;
    border: none;
  }

  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-empty,
  body.phlebo-prices-page table.phlebo-price-table td:empty {
    display: none !important;
  }

  body.phlebo-prices-page table.phlebo-price-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--phlebo-muted);
    margin-bottom: 6px;
  }

  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-service {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--phlebo-text);
    padding-bottom: 10px;
  }

  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-category {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid var(--phlebo-line);
    line-height: 1.45;
  }

  body.phlebo-prices-page table.phlebo-price-table tr.phlebo-price-row-full td.phlebo-price-cell-category {
    border-top: none;
    padding-top: 0;
  }

  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-price {
    padding-top: 12px;
    border-top: 1px solid var(--phlebo-line);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--phlebo-accent);
  }

  body.phlebo-prices-page table.phlebo-price-table tr.phlebo-price-row-short td.phlebo-price-cell-category {
    border-top: none;
    padding-top: 14px;
  }

  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-price .phlebo-price-old,
  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-price span[style*="line-through"],
  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-price s,
  body.phlebo-prices-page table.phlebo-price-table td.phlebo-price-cell-price del {
    font-size: 1rem;
    margin-left: 0.35em;
  }

  body.phlebo-prices-page table.phlebo-price-table td p {
    margin: 0;
  }
}

/* ══════════════════════════════════════════
   Отзывы /otzyvy
   ══════════════════════════════════════════ */

body.phlebo-reviews-page #tz-component {
  font-family: var(--phlebo-font);
  color: var(--phlebo-text);
}

body.phlebo-reviews-page .phlebo-reviews-hero {
  margin: 0 0 24px;
  padding: 36px 28px 32px;
  background: #f5f5f7;
  border-bottom: 1px solid var(--phlebo-line);
}

body.phlebo-reviews-page .phlebo-reviews-hero-inner {
  max-width: none;
}

body.phlebo-reviews-page .phlebo-reviews-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--phlebo-text);
}

body.phlebo-reviews-page .phlebo-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.phlebo-reviews-page .phlebo-review-card {
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  transition: border-color 0.2s ease;
}

body.phlebo-reviews-page .phlebo-review-card:hover {
  border-color: var(--phlebo-accent);
}

body.phlebo-reviews-page .phlebo-review-card-inner {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
}

body.phlebo-reviews-page .phlebo-review-avatar {
  flex: 0 0 88px;
  width: 88px;
}

body.phlebo-reviews-page .phlebo-review-avatar img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--phlebo-line);
}

body.phlebo-reviews-page .phlebo-review-content {
  flex: 1;
  min-width: 0;
}

body.phlebo-reviews-page .phlebo-review-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 10px;
}

body.phlebo-reviews-page .phlebo-review-author {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--phlebo-text);
}

body.phlebo-reviews-page .phlebo-review-date {
  font-size: 0.8125rem;
  color: var(--phlebo-muted);
}

body.phlebo-reviews-page .phlebo-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

body.phlebo-reviews-page .phlebo-review-star {
  font-size: 18px;
  line-height: 1;
  color: #d1d1d6;
}

body.phlebo-reviews-page .phlebo-review-star.is-filled {
  color: #c93434;
}

body.phlebo-reviews-page .phlebo-review-title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

body.phlebo-reviews-page .phlebo-review-title a {
  color: var(--phlebo-text);
  text-decoration: none;
}

body.phlebo-reviews-page .phlebo-review-title a:hover {
  color: var(--phlebo-accent);
}

body.phlebo-reviews-page .phlebo-review-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--phlebo-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.phlebo-reviews-page .phlebo-review-excerpt p {
  margin: 0;
}

body.phlebo-reviews-page .phlebo-review-more {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--phlebo-accent);
  border: 1px solid var(--phlebo-accent);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

body.phlebo-reviews-page .phlebo-review-more:hover {
  background: var(--phlebo-accent);
  color: #fff;
  text-decoration: none;
}

body.phlebo-reviews-page .phlebo-reviews-pagination {
  margin-top: 28px;
  padding-top: 8px;
  text-align: center;
}

body.phlebo-reviews-page .phlebo-reviews-pagination .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.phlebo-reviews-page .phlebo-reviews-pagination .pagination > li {
  display: inline-block;
}

body.phlebo-reviews-page .phlebo-reviews-pagination .pagination > li > a,
body.phlebo-reviews-page .phlebo-reviews-pagination .pagination > li.active > a {
  display: inline-block;
  min-width: 36px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phlebo-text);
  background: var(--phlebo-surface);
  border: 1px solid var(--phlebo-line);
  text-decoration: none;
}

body.phlebo-reviews-page .phlebo-reviews-pagination .pagination > li.active > a,
body.phlebo-reviews-page .phlebo-reviews-pagination .pagination > li > a:hover {
  background: var(--phlebo-accent);
  border-color: var(--phlebo-accent);
  color: #fff;
}

@media (max-width: 767px) {
  body.phlebo-reviews-page .phlebo-reviews-hero {
    padding: 28px 16px 24px;
  }

  body.phlebo-reviews-page .phlebo-review-card-inner {
    flex-direction: column;
    padding: 18px 16px;
    gap: 14px;
  }

  body.phlebo-reviews-page .phlebo-review-avatar {
    flex-basis: auto;
  }

  body.phlebo-reviews-page .phlebo-review-excerpt {
    -webkit-line-clamp: 6;
  }
}

/* ══════════════════════════════════════════
   Мобильная шапка (все страницы)
   ══════════════════════════════════════════ */

@media (max-width: 979px) {
  #tz-topheader-wrapper {
    border-bottom: 1px solid var(--phlebo-line);
    font-family: var(--phlebo-font);
  }

  #tz-topheader-wrapper #topheader.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  #tz-topheader-wrapper #topheader.row > [class*="col-"] {
    float: none !important;
    clear: none !important;
    text-align: left !important;
    padding-left: 0;
    padding-right: 0;
  }

  #tz-topleft2 {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid var(--phlebo-line);
  }

  #tz-topleft2 .module-inner,
  #tz-topleft2 .module-ct,
  #tz-topleft2 .custom {
    margin: 0;
    padding: 0;
  }

  #tz-topleft2 .social-icons {
    display: flex !important;
    float: none !important;
    width: 100% !important;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  #tz-topleft2 .social-icons > span:nth-child(n+4) {
    display: none !important;
  }

  #tz-topleft2 .social-icons span a {
    float: none;
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-left: none;
    border-right: 1px solid var(--phlebo-line);
  }

  #tz-topleft2 .social-icons span:first-child a {
    border-left: none;
  }

  #tz-topleft2 .max-fixed-btn {
    display: none !important;
  }

  #tz-topleft_mob {
    order: 2;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none;
    display: flex !important;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px !important;
  }

  #tz-topright_mob {
    order: 3;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-height: 52px;
    padding: 8px 12px 8px 0 !important;
  }

  #tz-topleft_mob .callus,
  #tz-topright_mob p {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }

  #tz-topleft_mob .topbar-email,
  #tz-topleft_mob .topbar-email a {
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 600;
    color: var(--phlebo-text) !important;
    border: none !important;
    padding: 0 !important;
    white-space: nowrap;
  }

  #tz-topright_mob .sppb-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 0 !important;
    border: 1px solid #c93434 !important;
    background: #fff !important;
    color: #c93434 !important;
    box-shadow: none !important;
  }

  header#tz-header-wrapper {
    border-bottom: 1px solid var(--phlebo-line);
    background: #fff;
    z-index: 1000;
  }

  header#tz-header-wrapper .container {
    padding-left: 0;
    padding-right: 0;
  }

  header#tz-header-wrapper #header.row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    min-height: 58px;
  }

  header#tz-header-wrapper #header.row > [class*="col-"] {
    float: none !important;
    padding-left: 0;
    padding-right: 0;
  }

  #tz-logo {
    flex: 1 1 auto;
    width: auto !important;
    max-width: calc(100% - 60px);
    padding: 8px 0 8px 12px !important;
  }

  #tz-logo #tzlogo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }

  #tz-logo img {
    max-height: 42px;
    width: auto;
    max-width: 100%;
    height: auto !important;
  }

  #tz-position-7 {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 12px 8px 0 !important;
  }

  #dj-megamenu585 {
    display: none !important;
  }

  #dj-megamenu585mobile {
    display: block !important;
    padding-top: 0 !important;
    margin: 0;
  }

  #dj-megamenu585mobile .dj-mobile-open-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    border-radius: 0;
    border: 1px solid var(--phlebo-line);
    background: #f5f5f7;
    color: var(--phlebo-text);
  }

  #dj-megamenu585mobile .dj-mobile-open-btn:hover,
  #dj-megamenu585mobile .dj-mobile-open-btn:focus {
    background: var(--phlebo-accent);
    border-color: var(--phlebo-accent);
    color: #fff;
  }

  .header-style-1.affix {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  .header-style-1.affix #tz-logo img {
    max-height: 36px;
  }
}

@media (max-width: 479px) {
  #tz-topleft_mob .topbar-email,
  #tz-topleft_mob .topbar-email a {
    font-size: 14px !important;
  }

  #tz-topright_mob .sppb-btn {
    padding: 9px 10px !important;
    font-size: 11px !important;
  }

  #tz-logo {
    padding-left: 10px !important;
  }

  #tz-logo img {
    max-height: 36px;
  }
}
