/* Оксана Баркова: только itemid-123, поверх существующих стилей Joomla 3. */
body.itemid-123 #psycholog-page {
  --ob-green: #008d7b;
  --ob-green-dark: #087761;
  --ob-navy: #102b58;
  --ob-ink: #263746;
  --ob-muted: #5d7080;
  --ob-line: #dbe8e6;
  --ob-mint: #eef8f5;
  --ob-warm: #f8f6f2;
  color: var(--ob-ink);
  background: #fff;
  font: 16px/1.58 Arial, Helvetica, sans-serif;
}
body.itemid-123 #psycholog-page *,
body.itemid-123 #psycholog-page *::before,
body.itemid-123 #psycholog-page *::after { box-sizing: border-box; }
body.itemid-123 #content,
body.itemid-123 #psycholog-page,
body.itemid-123 #psycholog-page > [itemprop="articleBody"],
body.itemid-123 #psycholog-page .psycholog-page__container,
body.itemid-123 #psycholog-page .psycholog-content,
body.itemid-123 #psycholog-page .speсialist,
body.itemid-123 #psycholog-page .speсialist > .wrap,
body.itemid-123 #psycholog-page .specialist-article {
  width: 100%; max-width: none; margin: 0; padding: 0;
}
body.itemid-123 #psycholog-page .left_menu { display: none; }
body.itemid-123 #psycholog-page a:focus-visible,
body.itemid-123 #psycholog-page button:focus-visible,
body.itemid-123 #psycholog-page summary:focus-visible,
body.itemid-123 #psycholog-page .ob-cert-viewport:focus-visible {
  outline: 3px solid #53bdd2; outline-offset: 3px;
}

/* Навигация и первый экран. Заголовок переносится внутрь существующего hero через JS. */
body.itemid-123 #psycholog-page .bread-titel-wrap {
  display: block; width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto; padding: 18px 0 16px; text-align: left;
}
body.itemid-123 #psycholog-page .breadcrumb { margin: 0; padding: 0; background: none; }
body.itemid-123 #psycholog-page .breadcrumb li,
body.itemid-123 #psycholog-page .breadcrumb a { color: #71818c; font-size: 12px; }
body.itemid-123 #psycholog-page .breadcrumb a:hover { color: var(--ob-green); }
body.itemid-123 #psycholog-page .bread-titel-wrap > h1 { margin: 14px 0 10px; }
body.itemid-123 #psycholog-page h1,
body.itemid-123 #psycholog-page h2,
body.itemid-123 #psycholog-page .specialist__wrap-articles > article > h3 {
  color: var(--ob-navy) !important; text-align: left; text-transform: none;
  font-family: Georgia, 'Times New Roman', serif; font-weight: 400;
  letter-spacing: -.025em;
}
body.itemid-123 #psycholog-page h1 { font-size: clamp(43px, 4.5vw, 64px); line-height: 1.08; }
body.itemid-123 #psycholog-page h2 { font-size: clamp(31px, 3.1vw, 43px) !important; line-height: 1.16 !important; }
body.itemid-123 #psycholog-page .article__header.specialist-article__header {
  display: grid !important; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  width: 100%; min-height: 560px; margin: 0; border: 0;
  background: var(--ob-warm); box-shadow: none;
}
body.itemid-123 #psycholog-page .specialist-article__header > .wrap {
  display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start;
  min-width: 0; padding: 58px 42px 58px max(24px, calc((100vw - 1180px) / 2));
  grid-column: 1; grid-row: 1;
}
body.itemid-123 #psycholog-page .specialist-article__header > .figure {
  grid-column: 2; grid-row: 1; width: 100%; height: 100%; margin: 0;
  overflow: hidden; background: #e8ded3;
}
body.itemid-123 #psycholog-page .specialist-article__header .psycholog__img {
  display: block; width: 100%; height: 100%; min-height: 560px;
  object-fit: cover; object-position: center 26%;
}
body.itemid-123 #psycholog-page .specialist-article__header h1 {
  max-width: 640px; margin: 0 0 22px;
}
body.itemid-123 #psycholog-page .specialist-article__header .b-workers__prof {
  margin: 0 0 18px; color: var(--ob-ink); font-size: 19px; font-weight: 500;
  line-height: 1.45;
}
body.itemid-123 #psycholog-page .specialist-article__header .cost__b-text {
  margin: 0 0 27px; color: var(--ob-green) !important;
  font-size: 15px; font-weight: 700;
}
body.itemid-123 #psycholog-page .specialist-cost {
  width: 100%; max-width: 370px; padding: 20px 0 18px;
  border-top: 1px solid #d9e3df;
}
body.itemid-123 #psycholog-page .cost_field__text-h3 {
  margin: 0 0 4px; color: var(--ob-muted); font-size: 14px; font-weight: 400;
}
body.itemid-123 #psycholog-page .psycholog-price,
body.itemid-123 #psycholog-page .psycholog-price span {
  margin: 0; color: var(--ob-navy) !important; font: 400 37px/1.16 Georgia, 'Times New Roman', serif;
}
body.itemid-123 #psycholog-page .specialist__btns-group { margin: 8px 0 0; }
body.itemid-123 #psycholog-page .specialist__btns-group .b-btn {
  display: inline-flex; justify-content: center; align-items: center; min-height: 52px;
  padding: 13px 26px; border: 1px solid var(--ob-green); border-radius: 4px;
  background: var(--ob-green) !important; color: #fff !important;
  font-size: 14px; font-weight: 700; text-decoration: none; text-transform: none;
  transition: background .24s ease, transform .24s ease, box-shadow .24s ease;
}
body.itemid-123 #psycholog-page .specialist__btns-group .b-btn:hover {
  background: var(--ob-green-dark) !important; transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 141, 123, .18);
}

/* Вкладки и вступление. Существующие отзывы и 29 документов остаются в DOM. */
body.itemid-123 #psycholog-page .tabs-wrap { width: 100%; margin: 0; padding: 0; }
body.itemid-123 #psycholog-page #specialist-tabs {
  display: flex !important; flex-wrap: wrap; gap: 10px;
  width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto; padding: 24px 0 22px; background: #fff;
}
body.itemid-123 #psycholog-page #specialist-tabs .specialist-tabs__item {
  width: auto; min-width: 0; margin: 0; padding: 12px 20px;
  border: 1px solid var(--ob-line); border-radius: 3px; background: #fff;
  color: var(--ob-muted); font-size: 13px; font-weight: 700; letter-spacing: 0;
  text-align: center; text-transform: none; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
body.itemid-123 #psycholog-page #specialist-tabs .specialist-tabs__item:hover {
  color: var(--ob-green); border-color: #9bcfc2;
}
body.itemid-123 #psycholog-page #specialist-tabs .specialist-tabs__item.active {
  color: #fff; background: var(--ob-green); border-color: var(--ob-green);
}
body.itemid-123 #psycholog-page .tabs-content { width: 100%; max-width: none; margin: 0; padding: 0; background: #fff; }
body.itemid-123 #psycholog-page #about-myself {
  width: 100%; padding: 24px 24px 26px !important; background: #fff;
  border-top: 1px solid #e7efeb; border-bottom: 1px solid #e7efeb;
}
body.itemid-123 #psycholog-page #about-myself > .wrap { width: min(1100px, 100%); max-width: none; margin: 0 auto; }
body.itemid-123 #psycholog-page #about-myself .specialist__b-text { display: block !important; max-width: none !important; }
body.itemid-123 #psycholog-page #about-myself .specialist__b-text > h2 {
  max-width: none; margin: 0 0 10px !important;
  color: var(--ob-navy) !important; font: 400 26px/1.3 Georgia, 'Times New Roman', serif !important;
}
body.itemid-123 #psycholog-page #about-myself p {
  max-width: none; margin: 0 0 10px !important; color: var(--ob-ink) !important;
  font-size: 16px !important; line-height: 1.5 !important;
}
body.itemid-123 #psycholog-page #about-myself p strong { color: var(--ob-navy) !important; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more { margin: 0; border: 0; background: transparent; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more > summary {
  display: inline-flex; align-items: center; gap: 9px; padding: 3px 0;
  color: var(--ob-green-dark); font: 600 14px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer; list-style: none;
}
body.itemid-123 #psycholog-page #about-myself .ob-intro-more > summary::-webkit-details-marker { display: none; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more > summary::after { content: '+'; font-size: 18px; font-weight: 400; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more[open] > summary::after { content: '−'; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more > summary:focus-visible { outline: 2px solid var(--ob-green); outline-offset: 4px; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more__opened,
body.itemid-123 #psycholog-page #about-myself .ob-intro-more[open] .ob-intro-more__closed,
body.itemid-123 #psycholog-page #about-myself .ob-intro-more:not([open]) > .ob-intro-more__text { display: none; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more[open] .ob-intro-more__opened { display: inline; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more__text { max-width: 920px; padding-top: 14px; }
body.itemid-123 #psycholog-page #about-myself .ob-intro-more__text > div[style*="border-left"] {
  margin: 10px 0 !important; padding: 4px 0 4px 14px !important; border-left: 2px solid #9dc6b9 !important;
}
body.itemid-123 #psycholog-page #about-myself .ob-intro-more__text > div[style*="border-left"] p {
  margin: 0 !important; color: var(--ob-navy) !important; font: 400 17px/1.4 Georgia, 'Times New Roman', serif !important;
}
body.itemid-123 #psycholog-page #about-myself .ob-intro-more__text > p:last-child { margin-bottom: 0 !important; }

/* Пять исходных иконок и содержание карточек. */
body.itemid-123 #psycholog-page .tabs-wrap > .wrap--flex--horisontal {
  display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px; width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto; padding: 72px 0 90px;
}
body.itemid-123 #psycholog-page .specialist__wrap-articles { display: contents !important; }
body.itemid-123 #psycholog-page .specialist__wrap-articles > h3,
body.itemid-123 #psycholog-page .specialist__wrap-articles > .b-text { display: none; }
body.itemid-123 #psycholog-page .specialist__wrap-articles > article,
body.itemid-123 #psycholog-page .specialist__wrap-articles > figure {
  min-width: 0; width: 100%; margin: 0; border: 1px solid var(--ob-line);
  border-radius: 5px; background: #fff; box-shadow: 0 10px 30px rgba(17, 58, 66, .045);
}
body.itemid-123 #psycholog-page .specialist__wrap-articles > article {
  display: block !important; padding: 34px 38px 38px;
}
body.itemid-123 #psycholog-page article[data-anchor="about"] { grid-column: 1 / 6; order: 1; }
body.itemid-123 #psycholog-page article[data-anchor="tow"] { grid-column: 6 / -1; order: 2; }
body.itemid-123 #psycholog-page article[data-anchor="three"] { grid-column: 1 / -1; order: 3; }
body.itemid-123 #psycholog-page article[data-anchor="four"] { grid-column: 1 / -1; order: 4; }
body.itemid-123 #psycholog-page article[data-anchor="one"] { grid-column: 1 / -1; order: 5; }
body.itemid-123 #psycholog-page .specialist__wrap-articles > figure { display: none !important; }
body.itemid-123 #psycholog-page .specialist__wrap-articles > figure img { width: 100%; max-height: 500px; object-fit: cover; }
body.itemid-123 #psycholog-page .specialist__wrap-articles > article > img {
  display: block; width: 54px; height: 54px; margin: 0 0 21px;
  object-fit: contain;
}
body.itemid-123 #psycholog-page .specialist__wrap-articles > article > h3 {
  margin: 0 0 18px; font-size: clamp(28px, 2.6vw, 35px); line-height: 1.18;
}
body.itemid-123 #psycholog-page .specialist__wrap-articles > article h3:not(:first-of-type),
body.itemid-123 #psycholog-page .specialist__wrap-articles > article h4 {
  color: var(--ob-navy) !important; font-size: 18px; line-height: 1.35;
}
body.itemid-123 #psycholog-page .specialist__wrap-articles > article p,
body.itemid-123 #psycholog-page .specialist__wrap-articles > article div {
  color: var(--ob-muted) !important;
}
body.itemid-123 #psycholog-page .specialist__wrap-articles > article strong { color: var(--ob-ink) !important; }
body.itemid-123 #psycholog-page .specialist__wrap-articles > article [style*="border-left"] {
  border-left-color: var(--ob-green) !important; background-color: var(--ob-mint) !important;
}
body.itemid-123 #psycholog-page article[data-anchor="three"] { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
body.itemid-123 #psycholog-page article[data-anchor="three"] > img,
body.itemid-123 #psycholog-page article[data-anchor="three"] > h3,
body.itemid-123 #psycholog-page article[data-anchor="three"] > p { grid-column: 1 / -1; }
body.itemid-123 #psycholog-page article[data-anchor="three"] > div {
  min-width: 0; margin: 0 !important; padding: 20px 20px 10px;
  border: 1px solid var(--ob-line); border-radius: 4px; background: #fafdfe;
}
body.itemid-123 #psycholog-page article[data-anchor="three"] > div h3 { margin-bottom: 13px !important; }
body.itemid-123 #psycholog-page article[data-anchor="three"] span[style*="color"] { color: var(--ob-green) !important; }
body.itemid-123 #psycholog-page article[data-anchor="four"] > div > div[style*="border-bottom"] {
  padding: 14px 0 !important; border-bottom-color: var(--ob-line) !important;
}
body.itemid-123 #psycholog-page article[data-anchor="four"] h4 {
  margin: 28px 0 8px !important; color: var(--ob-green) !important;
}
body.itemid-123 #psycholog-page article[data-anchor="four"] details summary,
body.itemid-123 #psycholog-page #psycholog-comments details summary {
  border-color: var(--ob-green) !important; border-radius: 3px;
  background: #fff !important; color: var(--ob-green) !important;
}
body.itemid-123 #psycholog-page .author-library > div:first-of-type {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 34px;
}
body.itemid-123 #psycholog-page .author-library a { color: var(--ob-green) !important; }
body.itemid-123 #psycholog-page .author-library a:hover { color: var(--ob-green-dark) !important; text-decoration: underline; }
body.itemid-123 #psycholog-page [style*="color: #2fb991"],
body.itemid-123 #psycholog-page [style*="color: #4ba689"],
body.itemid-123 #psycholog-page [style*="color: #3f8f77"] { color: var(--ob-green) !important; }
body.itemid-123 #psycholog-page [style*="background-color: #4ba689"] { background-color: var(--ob-green) !important; }
body.itemid-123 #psycholog-page [style*="border-left: 3px solid #4ba689"],
body.itemid-123 #psycholog-page [style*="border-left: 4px solid #4ba689"],
body.itemid-123 #psycholog-page [style*="border: 1px solid #4ba689"] { border-color: var(--ob-green) !important; }

/* Вкладки отзывов и дипломов: только оформление, существующее поведение не меняется. */
body.itemid-123 #psycholog-page #psycholog-comments,
body.itemid-123 #psycholog-page .ob-cert-section {
  width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto 70px; padding: 48px 0 0;
}
body.itemid-123 #psycholog-page #psycholog-comments .quote-block {
  width: 100%; border: 1px solid var(--ob-line); border-radius: 5px;
  background: #fff; box-shadow: 0 10px 30px rgba(17, 58, 66, .045);
}
body.itemid-123 #psycholog-page #psycholog-comments h2,
body.itemid-123 #psycholog-page .ob-cert-title { color: var(--ob-navy) !important; }
body.itemid-123 #psycholog-page #psycholog-comments p[style*="color: #4ba689"] { color: var(--ob-green) !important; }
body.itemid-123 #psycholog-page #psycholog-comments div[style*="background-color: #4ba689"] { background-color: var(--ob-green) !important; }
body.itemid-123 #psycholog-page #psycholog-comments article[style*="border-bottom"] { border-color: var(--ob-line) !important; }
body.itemid-123 #psycholog-page .ob-cert-section .ob-cert-gallery { max-width: none; }
body.itemid-123 #psycholog-page .ob-cert-card { border-color: var(--ob-line); border-radius: 4px; }
body.itemid-123 #psycholog-page .ob-cert-counter,
body.itemid-123 #psycholog-page .ob-cert-card time { color: var(--ob-green); }
body.itemid-123 #psycholog-page .ob-cert-arrow { background-color: var(--ob-green); }

/* Новый FAQ публикуется статическим HTML вместо старого блока и его модальных окон. */
body.itemid-123 #psycholog-page .ob-faq {
  width: 100%; padding: 73px 24px 80px; background: var(--ob-mint);
}
body.itemid-123 #psycholog-page .ob-faq__inner {
  display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  gap: 72px; width: min(1180px, 100%); margin: 0 auto;
}
body.itemid-123 #psycholog-page .ob-faq__intro h2 { margin: 0 0 17px; max-width: 430px; }
body.itemid-123 #psycholog-page .ob-faq__intro p { max-width: 360px; margin: 0; color: var(--ob-muted); font-size: 17px; }
body.itemid-123 #psycholog-page .ob-faq__list { border-top: 1px solid #c8ddd7; }
body.itemid-123 #psycholog-page .ob-faq details { border-bottom: 1px solid #c8ddd7; }
body.itemid-123 #psycholog-page .ob-faq summary {
  position: relative; display: block; padding: 21px 45px 21px 0;
  color: var(--ob-navy); font-size: 18px; font-weight: 600; line-height: 1.35;
  list-style: none; cursor: pointer;
}
body.itemid-123 #psycholog-page .ob-faq summary::-webkit-details-marker { display: none; }
body.itemid-123 #psycholog-page .ob-faq summary::after {
  position: absolute; top: 15px; right: 5px; content: '+';
  color: var(--ob-green); font: 30px/1.3 Arial, sans-serif;
}
body.itemid-123 #psycholog-page .ob-faq details[open] summary::after { content: '−'; }
body.itemid-123 #psycholog-page .ob-faq__answer { padding: 0 45px 20px 0; }
body.itemid-123 #psycholog-page .ob-faq__answer p { margin: 0; color: var(--ob-muted); font-size: 16px; line-height: 1.6; }
body.itemid-123 #psycholog-page .ob-faq__answer a { color: var(--ob-green); text-decoration: underline; text-underline-offset: 3px; }

/* Баннер внизу только этой страницы: исходное фото стало фоном. */
body.itemid-123 #b-footer {
  --ob-green: #008d7b; --ob-green-dark: #087761;
  --ob-navy: #102b58; --ob-ink: #263746; --ob-muted: #5d7080;
}
body.itemid-123 #b-footer > .b-consult-form {
  display: flex !important; align-items: center; min-height: 420px;
  padding: 0 !important;
  border-top: 1px solid #e9e6e1;
  background-color: #f8f6f2 !important;
  background-image: linear-gradient(90deg, #f8f6f2 0%, #f8f6f2 51%, rgba(248,246,242,.98) 60%, rgba(248,246,242,.80) 69%, rgba(248,246,242,.35) 79%, rgba(248,246,242,.07) 88%, rgba(248,246,242,0) 95%), url('/images/content/psycholog_page/kabinet-psihologa-oksana-barkova.jpg') !important;
  background-position: center, right center; background-size: 100% 100%, auto 100%; background-repeat: no-repeat;
}
body.itemid-123 #b-footer #footer-fb {
  display: flex !important; flex-direction: column; align-items: flex-start;
  width: min(1180px, calc(100% - 48px)); max-width: none;
  margin: 0 auto; padding: 52px 0 55px; text-align: left;
}
body.itemid-123 #b-footer #footer-fb h2 {
  max-width: 560px; margin: 0 0 14px; color: var(--ob-navy) !important;
  font: 400 clamp(33px, 3.1vw, 45px)/1.14 Georgia, 'Times New Roman', serif;
  text-align: left; text-transform: none;
}
body.itemid-123 #b-footer #footer-fb > p:not(.agreement-text) {
  max-width: 490px; margin: 0 0 23px; color: var(--ob-ink) !important;
  font-size: 17px; line-height: 1.5; text-align: left;
}
body.itemid-123 #b-footer #footer-fb > a.b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 13px 25px; border: 1px solid var(--ob-green);
  border-radius: 4px; background: var(--ob-green) !important;
  color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
body.itemid-123 #b-footer #footer-fb > a.b-btn:hover { background: var(--ob-green-dark) !important; transform: translateY(-2px); }
body.itemid-123 #b-footer #footer-fb .agreement-text {
  max-width: 575px; margin: 18px 0 0; color: #536673 !important;
  font-size: 12px; line-height: 1.45; text-align: left;
}
body.itemid-123 #b-footer #footer-fb .agreement-text a { color: var(--ob-green) !important; }
body.itemid-123 #b-footer #footer-fb .agreement-text br { display: none; }

/* Небольшое движение при появлении карточек; без скрытия при выключенном JS. */
@media (prefers-reduced-motion: no-preference) {
  body.itemid-123 #psycholog-page.ob-motion-ready .ob-reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
  }
  body.itemid-123 #psycholog-page.ob-motion-ready .ob-reveal.is-visible { opacity: 1; transform: none; }
  body.itemid-123 #psycholog-page .specialist__wrap-articles > article {
    transition: box-shadow .25s ease, border-color .25s ease;
  }
  body.itemid-123 #psycholog-page .specialist__wrap-articles > article:hover {
    border-color: #aed7cb; box-shadow: 0 16px 40px rgba(17, 58, 66, .09);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.itemid-123 #psycholog-page *, body.itemid-123 #psycholog-page *::before,
  body.itemid-123 #psycholog-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {

  body.itemid-123 #psycholog-page .article__header.specialist-article__header { grid-template-columns: 1fr 43%; min-height: 480px; }
  body.itemid-123 #psycholog-page .specialist-article__header > .wrap { padding: 40px 28px; }
  body.itemid-123 #psycholog-page .specialist-article__header .psycholog__img { min-height: 480px; }
  body.itemid-123 #psycholog-page article[data-anchor="about"],
  body.itemid-123 #psycholog-page article[data-anchor="tow"] { grid-column: 1 / -1; }
  body.itemid-123 #psycholog-page .ob-faq__inner { grid-template-columns: 1fr; gap: 28px; }
  body.itemid-123 #psycholog-page .ob-faq__intro h2,
  body.itemid-123 #psycholog-page .ob-faq__intro p { max-width: none; }
}
@media (max-width: 680px) {
  body.itemid-123 #psycholog-page .bread-titel-wrap,
  body.itemid-123 #psycholog-page #specialist-tabs,
  body.itemid-123 #psycholog-page .tabs-wrap > .wrap--flex--horisontal,
  body.itemid-123 #psycholog-page #psycholog-comments,
  body.itemid-123 #psycholog-page .ob-cert-section { width: calc(100% - 32px); }
  body.itemid-123 #psycholog-page .article__header.specialist-article__header {
    display: flex !important; flex-direction: column; min-height: 0;
  }
  body.itemid-123 #psycholog-page .specialist-article__header > .wrap { order: 2; padding: 31px 16px 39px; }
  body.itemid-123 #psycholog-page .specialist-article__header > .figure { order: 1; height: 315px; }
  body.itemid-123 #psycholog-page .specialist-article__header .psycholog__img { min-height: 0; height: 315px; object-position: center 22%; }
  body.itemid-123 #psycholog-page .specialist-article__header h1 { font-size: 43px; margin-bottom: 16px; }
  body.itemid-123 #psycholog-page .specialist-article__header .b-workers__prof { font-size: 17px; }
  body.itemid-123 #psycholog-page .specialist__btns-group,
  body.itemid-123 #psycholog-page .specialist__btns-group .b-btn { width: 100%; }
  body.itemid-123 #psycholog-page #specialist-tabs { gap: 7px; padding: 18px 0; }
  body.itemid-123 #psycholog-page #specialist-tabs .specialist-tabs__item { flex: 1 1 auto; padding: 11px 10px; font-size: 12px; }
  body.itemid-123 #psycholog-page #about-myself { padding: 22px 16px 24px !important; }
  body.itemid-123 #psycholog-page #about-myself .specialist__b-text > h2 { font-size: 23px !important; }
  body.itemid-123 #psycholog-page #about-myself p { font-size: 15px !important; }
  body.itemid-123 #psycholog-page .tabs-wrap > .wrap--flex--horisontal { display: flex !important; flex-direction: column; gap: 16px; padding: 50px 0 65px; }
  body.itemid-123 #psycholog-page .specialist__wrap-articles { display: contents !important; }
  body.itemid-123 #psycholog-page .specialist__wrap-articles > article { padding: 27px 22px; }
  body.itemid-123 #psycholog-page article[data-anchor="three"] { display: block !important; }
  body.itemid-123 #psycholog-page article[data-anchor="three"] > div { margin: 14px 0 0 !important; }
  body.itemid-123 #psycholog-page .author-library > div:first-of-type { display: block; }
  body.itemid-123 #psycholog-page #psycholog-comments,
  body.itemid-123 #psycholog-page .ob-cert-section { padding-top: 18px; margin-bottom: 48px; }
  body.itemid-123 #psycholog-page #psycholog-comments .quote-block { padding: 26px 19px !important; }
  body.itemid-123 #psycholog-page .ob-faq { padding: 53px 16px 57px; }
  body.itemid-123 #psycholog-page .ob-faq__inner { display: block; }
  body.itemid-123 #psycholog-page .ob-faq__intro { margin-bottom: 26px; }
  body.itemid-123 #psycholog-page .ob-faq__intro p { font-size: 16px; }
  body.itemid-123 #psycholog-page .ob-faq summary { padding: 18px 35px 18px 0; font-size: 17px; }
  body.itemid-123 #psycholog-page .ob-faq__answer { padding-right: 25px; }
  body.itemid-123 #b-footer > .b-consult-form {
    display: block !important; min-height: 0; padding: min(66vw, 265px) 0 0 !important;
    background-image: url('/images/content/psycholog_page/kabinet-psihologa-oksana-barkova.jpg') !important;
    background-position: center top; background-size: 100% auto; background-repeat: no-repeat;
  }
  body.itemid-123 #b-footer #footer-fb { width: calc(100% - 32px); padding: 36px 0 46px; }
  body.itemid-123 #b-footer #footer-fb h2 { font-size: 34px; }
  body.itemid-123 #b-footer #footer-fb > a.b-btn { width: 100%; text-align: center; }
}

/* Карточки по образцу обновлённой страницы /otzyvy/. */
body.itemid-123 #psycholog-page #psycholog-comments { padding-top: 28px; margin-bottom: 48px; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-title { margin: 0 0 20px !important; text-align: left; color: #102f5f !important; font: 400 32px/1.2 Georgia, 'Times New Roman', serif !important; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-card { min-width: 0; min-height: 210px; display: flex; flex-direction: column; padding: 18px 18px 12px; border: 1px solid #dbe3e8; border-radius: 6px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-card:hover { border-color: #bfd1d9; box-shadow: 0 18px 42px rgba(16,47,95,.07); transform: translateY(-3px); }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-body { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; flex: 1; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-quote { color: #ecdfd4; font: 700 50px/.85 Georgia, serif; letter-spacing: -.12em; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-label { margin: 0 0 8px !important; color: #60708a !important; font: 400 12px/1.3 Arial, sans-serif !important; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-excerpt, body.itemid-123 #psycholog-page #psycholog-comments .ob-review-full p { margin: 0 0 10px !important; color: #17325a !important; font: 400 14px/1.5 Arial, sans-serif !important; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more { margin: 10px 0 0; border: 0; border-top: 1px solid #edf0f2; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 0; border: 0; border-radius: 0; background: transparent; color: #087f6d; font: 700 12px/1.4 Arial, sans-serif; cursor: pointer; list-style: none; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more > summary::-webkit-details-marker { display: none; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more > summary:focus-visible { outline: 2px solid var(--ob-green); outline-offset: 4px; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-opened, body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more[open] .ob-review-closed, body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more:not([open]) .ob-review-full { display: none; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more[open] .ob-review-opened { display: inline; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-more[open] .ob-review-arrow { transform: rotate(-90deg); }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-full { padding: 14px 0 0; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-full p:last-child { margin-bottom: 0 !important; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-note { margin: 20px 0 0 !important; color: #60708a !important; font: 400 13px/1.5 Arial, sans-serif !important; }
@media (max-width: 1000px) {
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-grid { grid-template-columns: 1fr; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-title { font-size: 27px !important; }
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
body.itemid-123 #psycholog-page #psycholog-comments .ob-review-card:hover { transform: none; }
}

/* Убираем старый декоративный уголок под отзывами. */
body.itemid-123 #psycholog-page #psycholog-comments::before { content: none !important; display: none !important; }

/* Первый экран по утверждённому concept-desktop-v4.png. */
body.itemid-123 #psycholog-page .article__header.specialist-article__header.ob-hero-v4 {
  display: grid !important;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 62px);
  width: min(1380px, calc(100% - 64px));
  min-height: 0;
  margin: 0 auto;
  padding: 58px 0 48px;
  background: transparent;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .figure,
body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap {
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: auto;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .figure {
  grid-column: 1;
  overflow: visible;
  background: transparent;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .psycholog__img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 480 / 644;
  border-radius: 15px;
  object-fit: cover;
  object-position: center 25%;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .figure .cost__b-text {
  margin: 24px 0 0;
  color: #008d7b !important;
  font: 600 20px/1.35 Arial, Helvetica, sans-serif;
  text-align: left;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap {
  display: flex !important;
  grid-column: 2;
  align-items: stretch;
  justify-content: flex-start;
  padding: 8px 0 0;
}
body.itemid-123 #psycholog-page .ob-hero-v4 h1 {
  margin: 0 0 22px;
  color: #092873 !important;
  font: 400 clamp(40px, 3.3vw, 50px)/1.12 Georgia, 'Times New Roman', serif;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .b-workers__prof {
  margin: 0 0 29px;
  color: #092873;
  font: 400 clamp(20px, 1.8vw, 28px)/1.35 Arial, Helvetica, sans-serif;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself {
  width: 100%;
  margin: 0;
  padding: 24px !important;
  border: 1px solid #eef0f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(33, 44, 64, .055);
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself > .wrap { width: 100%; }
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #008d7b;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2 {
  position: relative;
  margin: 0 0 14px !important;
  color: #092873 !important;
  font: normal 600 24px/1.35 Arial, Helvetica, sans-serif !important;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2::before {
  content: '“';
  display: inline-block;
  margin-right: 13px;
  color: #008d7b;
  font: 700 1.7em/.55 Georgia, serif;
  vertical-align: -.2em;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself p {
  margin: 0 0 8px !important;
  color: #092873 !important;
  font: normal 400 17px/1.48 Arial, Helvetica, sans-serif !important;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .ob-intro-more__text > div[style*="border-left"] p {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: inherit !important;
  font-style: normal !important;
  line-height: 1.48 !important;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .ob-intro-more__text { font-size: 17px; }
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself p strong {
  color: #092873 !important;
  font-weight: 700;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .ob-intro-more__text {
  max-width: none;
  padding: 0;
  border: 0;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .ob-hero-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 0;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #eef0f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(33, 44, 64, .045);
}
body.itemid-123 #psycholog-page .ob-hero-v4 .specialist-cost {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e3e6e7;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .cost_field__text-h3 {
  margin: 0 0 7px;
  color: #6076a2;
  font-size: 18px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .psycholog-price,
body.itemid-123 #psycholog-page .ob-hero-v4 .psycholog-price span {
  color: #092873 !important;
  font: 400 clamp(35px, 3vw, 45px)/1.1 Georgia, 'Times New Roman', serif;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group { width: 100%; margin: 0; }
body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group .b-btn {
  width: 100%;
  min-height: 56px;
  font: 500 17px/1.25 Arial, Helvetica, sans-serif;
  text-align: center;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) { background: #f8f7f4; }
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs {
  width: min(1412px, calc(100% - 64px));
  gap: clamp(24px, 4vw, 70px);
  margin: 0 auto;
  padding: 7px 0 0;
  border-bottom: 1px solid #dcdede;
  background: transparent;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item,
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item.active {
  flex: 0 0 auto;
  padding: 10px 2px 19px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #092873;
  font: 400 21px/1.3 Arial, Helvetica, sans-serif;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item.active {
  border-bottom-color: #008d7b;
  color: #008d7b;
  font-weight: 600;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) .tabs-content { background: transparent; }

@media (max-width: 1100px) {
  body.itemid-123 #psycholog-page .article__header.specialist-article__header.ob-hero-v4 {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 28px;
    width: calc(100% - 40px);
    padding-top: 38px;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap { padding-top: 10px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself { padding: 25px 22px 22px !important; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .ob-hero-price-row { gap: 16px; padding: 18px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group .b-btn { min-height: 60px; font-size: 16px; }
}
@media (max-width: 760px) {
  body.itemid-123 #psycholog-page .article__header.specialist-article__header.ob-hero-v4 {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 20px 0 26px;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .figure {
    order: 1;
    width: calc(100% - 32px);
    height: auto;
    margin: 0 auto;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 .psycholog__img {
    width: 100%;
    height: auto;
    max-height: 500px;
    aspect-ratio: 480 / 540;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .figure .cost__b-text { margin: 13px 0 0; font-size: 16px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap {
    order: 2;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 30px 0 0;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 h1 { margin-bottom: 14px; font-size: 39px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .b-workers__prof { margin-bottom: 22px; font-size: 18px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2 { font-size: 22px !important; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself p { font-size: 16px !important; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .ob-intro-more__text { font-size: 16px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .ob-hero-price-row { grid-template-columns: 1fr; gap: 16px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .specialist-cost { padding: 0 0 12px; border: 0; border-bottom: 1px solid #e3e6e7; }
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs {
    flex-wrap: nowrap;
    gap: 20px;
    width: calc(100% - 32px);
    overflow-x: auto;
  }
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item,
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item.active {
    flex: 0 0 auto;
    padding: 10px 0 13px;
    font-size: 16px;
    white-space: nowrap;
  }
}

/* Утверждённая тестовая страница, 01.10.2026. */
/* Локальный предпросмотр: первый экран из макета и действующие разделы страницы. */
body.itemid-123 #psycholog-page:has(.ob-hero-v4) {
  background: #fbfaf8;
}
body.itemid-123 #psycholog-page .bread-titel-wrap {
  height: 0;
  padding: 0;
  overflow: hidden;
}
body.itemid-123 #psycholog-page .article__header.specialist-article__header.ob-hero-v4 {
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 54px;
  width: min(1346px, calc(100% - 96px));
  padding: 58px 0 24px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .figure {
  align-self: start;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .psycholog__img {
  display: block;
  aspect-ratio: 480 / 644;
  object-position: center 24%;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .figure .cost__b-text {
  margin-top: 24px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap {
  display: flex !important;
  flex-direction: column;
  padding: 44px 0 0;
}
body.itemid-123 #psycholog-page .ob-hero-v4 h1 {
  margin: 0 0 35px;
  font-size: 42px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .b-workers__prof {
  margin: 0 0 31px;
  font-size: 27px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself {
  position: relative;
  padding: 32px 31px 25px !important;
  border-radius: 22px;
  box-shadow: 0 13px 36px rgba(29, 43, 65, .06);
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text {
  margin-bottom: 0;
  padding: 12px 0 0 32px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2 {
  margin: 0 0 16px !important;
  padding-left: 50px;
  font: 600 26px/1.3 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2::before {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  color: #008d7b;
  font: 700 44px/1 Georgia, serif;
  vertical-align: baseline;
}
body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself p {
  margin-bottom: 8px !important;
  font: 400 18px/1.55 Arial, Helvetica, sans-serif !important;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .ob-hero-price-row {
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 30px;
  min-height: 136px;
  margin-top: 21px;
  padding: 24px 29px 24px 38px;
  border-radius: 17px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .specialist-cost {
  padding: 0;
  border: 0;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .cost_field__text-h3 {
  font-size: 18px;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group {
  padding-left: 29px;
  border-left: 1px solid #e3e6e7;
}
body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group .b-btn {
  min-height: 74px;
  background: #008d7b !important;
  font-size: 20px;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs {
  width: min(1412px, calc(100% - 124px));
  padding-top: 1px;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) .tabs-wrap > .wrap--flex--horisontal {
  padding-top: 32px;
}
@media (max-width: 1200px) {
  body.itemid-123 #psycholog-page .article__header.specialist-article__header.ob-hero-v4 {
    grid-template-columns: minmax(0, 31%) minmax(0, 1fr);
    gap: 32px;
    width: calc(100% - 48px);
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap { padding-top: 15px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 h1 { font-size: clamp(34px, 3.4vw, 40px); margin-bottom: 20px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .b-workers__prof { font-size: clamp(18px, 2.1vw, 25px); }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself { min-height: 0; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text { min-height: 0; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself p { font-size: 17px !important; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .ob-hero-price-row { grid-template-columns: 1fr; gap: 15px; padding: 20px 24px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group { padding: 0; border: 0; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .specialist__btns-group .b-btn { min-height: 58px; font-size: 17px; }
}
@media (max-width: 760px) {
  body.itemid-123 #psycholog-page .article__header.specialist-article__header.ob-hero-v4 {
    width: 100%;
    padding: 20px 0 30px;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .wrap { padding-top: 25px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 > .figure { width: min(280px, calc(100% - 32px)); }
  body.itemid-123 #psycholog-page .ob-hero-v4 h1 { font-size: 32px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .b-workers__prof { font-size: 18px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself { padding: 23px 20px !important; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text { padding-left: 17px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2 {
    padding-left: 37px;
    font-size: 22px !important;
  }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself .specialist__b-text > h2::before { font-size: 36px; }
  body.itemid-123 #psycholog-page .ob-hero-v4 #about-myself p { font-size: 16px !important; }
  body.itemid-123 #psycholog-page .ob-hero-v4 .ob-hero-price-row { margin-top: 16px; }
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs { width: calc(100% - 32px); }
}

/* Только внешние стрелки карусели: отдельное место рядом с сертификатами. */
body.itemid-123 #psycholog-page #sertification.ob-cert-section {
  width: min(1340px, calc(100% - 48px));
}
body.itemid-123 #psycholog-page #sertification .ob-cert-gallery {
  width: 100%;
  max-width: none;
}
body.itemid-123 #psycholog-page #sertification .ob-cert-carousel {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  column-gap: 16px;
}
body.itemid-123 #psycholog-page #sertification .ob-cert-viewport {
  grid-column: 2;
  min-width: 0;
}
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: 50px;
  height: 50px;
  color: #008d7b !important;
  border: 1px solid #c7e2d9;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(14, 91, 77, .12);
  transform: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: ob-cert-arrow-appear .45s ease both;
}
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--prev { grid-column: 1; }
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--next { grid-column: 3; }
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow::before,
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow:hover::before,
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow:focus-visible::before {
  display: block;
  color: #008d7b !important;
  font: 400 36px/1 Arial, Helvetica, sans-serif;
  transition: transform .22s ease;
}
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--prev::before { content: '‹'; }
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--next::before { content: '›'; }
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow:hover,
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow:focus-visible {
  border-color: #008d7b;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(14, 91, 77, .2);
  transform: translateY(-3px) scale(1.04);
}
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--prev:hover::before,
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--prev:focus-visible::before {
  transform: translateX(-3px);
}
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--next:hover::before,
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--next:focus-visible::before {
  transform: translateX(3px);
}
body.itemid-123 #psycholog-page #sertification .ob-cert-arrow:focus-visible {
  outline: 3px solid rgba(0, 141, 123, .26);
  outline-offset: 3px;
}
@keyframes ob-cert-arrow-appear {
  from { opacity: 0; scale: .85; }
  to { opacity: 1; scale: 1; }
}
@media (max-width: 820px) {
  body.itemid-123 #psycholog-page #sertification.ob-cert-section { width: calc(100% - 32px); }
  body.itemid-123 #psycholog-page #sertification .ob-cert-carousel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 16px;
  }
  body.itemid-123 #psycholog-page #sertification .ob-cert-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }
  body.itemid-123 #psycholog-page #sertification .ob-cert-arrow {
    grid-row: 2;
    justify-self: center;
    width: 46px;
    height: 46px;
  }
  body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--prev { grid-column: 1; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-arrow--next { grid-column: 2; }
}
/* Базовая галерея в template.css действует только от 768px: восстанавливаем её на телефоне. */
@media (max-width: 767px) {
  body.itemid-123 #psycholog-page #sertification .ob-cert-gallery.ob-reveal { opacity: 1; transform: none; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-heading { display: block; margin: 0 0 18px; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-subtitle { margin: 0; color: #6e7472; font-size: 14px; line-height: 1.5; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-counter { display: inline-block; margin-top: 13px; padding: 7px 12px; border: 1px solid #c7e2d9; background: #fff; font-size: 14px; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-viewport { overflow-x: auto; overflow-y: hidden; padding: 5px 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-viewport::-webkit-scrollbar { display: none; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-track { display: flex; align-items: stretch; gap: 18px; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-card { flex: 0 0 100%; min-width: 0; margin: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #dbe8e6; background: #fff; box-shadow: 0 5px 18px rgba(31, 48, 42, .06); }
  body.itemid-123 #psycholog-page #sertification .ob-cert-open { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-image-wrap { display: flex; align-items: center; justify-content: center; height: min(112vw, 500px); padding: 12px; overflow: hidden; background: #fbfcfb; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-card figcaption { display: flex; align-items: flex-start; gap: 10px; min-height: 66px; padding: 14px 16px; border-top: 1px solid #edf1ef; color: #4f5553; font-size: 14px; line-height: 1.45; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-card time { flex: 0 0 auto; font-weight: 700; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-arrow { display: flex; align-items: center; justify-content: center; cursor: pointer; }
  body.itemid-123 #psycholog-page #sertification .ob-cert-help { margin: 9px 0 0; color: #858a88; font-size: 13px; line-height: 1.45; text-align: center; }
  body.itemid-123 > .ob-cert-lightbox[hidden] { display: none !important; }
  body.itemid-123 > .ob-cert-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 64px 12px 78px; background: rgba(22, 29, 27, .91); }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-figure img { display: block; max-width: 96vw; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border: 4px solid #fff; background: #fff; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-figure figcaption { margin-top: 13px; color: #fff; font-size: 14px; text-align: center; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-close,
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-arrow { position: fixed; z-index: 2; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: #087761; cursor: pointer; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-close { top: 12px; right: 12px; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-arrow { bottom: 14px; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-arrow--prev { left: calc(50% - 58px); }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-arrow--next { right: calc(50% - 58px); }
  body.itemid-123.ob-cert-lock { overflow: hidden; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-close::before { content: '×'; font: 32px/1 Arial, sans-serif; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-arrow--prev::before { content: '‹'; font: 36px/1 Arial, sans-serif; }
  body.itemid-123 > .ob-cert-lightbox .ob-cert-lightbox-arrow--next::before { content: '›'; font: 36px/1 Arial, sans-serif; }
}
@media (prefers-reduced-motion: reduce) {
  body.itemid-123 #psycholog-page #sertification .ob-cert-arrow,
  body.itemid-123 #psycholog-page #sertification .ob-cert-arrow::before {
    animation: none;
    transition: none;
  }
}

/* На промежуточной ширине шапка остаётся в пределах страницы. */
@media (min-width: 901px) and (max-width: 1080px) {
  body.itemid-123 .yas-header-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding-top: 16px; padding-bottom: 16px; }
  body.itemid-123 .yas-header-main > .yas-location,
  body.itemid-123 .yas-header-main > .yas-contact-block,
  body.itemid-123 .yas-header-main > .yas-header-actions { min-height: 0; padding-left: 0; border-left: 0; }
  body.itemid-123 .yas-header-actions { flex-direction: row; flex-wrap: wrap; align-content: center; }
}

/* Подпись связана с отзывами; свободное место оставлено после неё. */
body.itemid-123 #psycholog-page #psycholog-comments .ob-reviews-note {
  margin: 16px 0 44px !important;
  padding: 0 !important;
  border: 0;
  line-height: 1.6 !important;
}

/* Кнопки разделов: форма старых страниц, основной зелёный из шапки профиля. */
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  padding: 12px 0 10px;
  border-bottom: 0;
  overflow: visible;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item,
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item.active {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 55px;
  padding: 17px 22px;
  border: 1px solid #dfe8e3;
  border-radius: 10px 10px 0 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 51, 40, .05);
  color: #008d7b;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .01em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  cursor: pointer;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item.active {
  color: #444;
  background: #eef8f5;
  border-color: #cce7dd;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item:not(.active):hover {
  color: #087761;
  background: #eef8f5;
}
body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item:focus-visible {
  outline: 3px solid #008d7b;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: calc(100% - 32px);
    overflow: visible;
  }
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item,
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item.active {
    width: 100%;
    min-height: 60px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
  }
  body.itemid-123 #psycholog-page:has(.ob-hero-v4) #specialist-tabs .specialist-tabs__item:last-child { grid-column: 1 / -1; }
}

/* Убираем пустой абзац, оставленный редактором между вкладками и карточками. */
body.itemid-123 #psycholog-page .tabs-wrap > #specialist-tabs ~ p { display: none; }
