/* Scoped to the two Joomla menu items that render article 415. */
body.itemid-109 #content,
body.itemid-109 #family_psycholog_page,
body.itemid-109 #family_psycholog_page > [itemprop="articleBody"],
body.itemid-302 #content,
body.itemid-302 #family_psycholog_page,
body.itemid-302 #family_psycholog_page > [itemprop="articleBody"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.itemid-109 #family_psycholog_page,
body.itemid-302 #family_psycholog_page { display: block; background: #fff; }
body.itemid-109 #b-footer .b-consult-form,
body.itemid-302 #b-footer .b-consult-form { display: none !important; }

.yas-individual {
  --yi-navy: #102b58;
  --yi-text: #243451;
  --yi-muted: #5d687a;
  --yi-green: #0b8f76;
  --yi-green-hover: #087761;
  --yi-blue: #55c7e8;
  --yi-blue-bg: #edf9fc;
  --yi-line: #dbe4e8;
  width: 100%;
  overflow: hidden;
  color: var(--yi-text);
  background: #fff;
  font: 16px/1.55 Roboto, Arial, sans-serif;
}

.yas-individual *, .yas-individual *::before, .yas-individual *::after { box-sizing: border-box; }
.yas-individual__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.yas-individual h1, .yas-individual h2, .yas-individual h3, .yas-individual p { margin: 0; }
.yas-individual h1, .yas-individual h2, .yas-individual h3 { color: var(--yi-navy); text-align: left; text-transform: none; }
.yas-individual h1, .yas-individual h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.yas-individual h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; }
.yas-individual h3 { font: 500 25px/1.25 Georgia, "Times New Roman", serif; }
.yas-individual a { text-decoration: none; }

.yas-individual__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid var(--yi-green);
  border-radius: 3px;
  background: var(--yi-green);
  color: #fff !important;
  font: 700 14px/1.2 Roboto, Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.yas-individual__button:hover, .yas-individual__button:focus {
  border-color: var(--yi-green-hover);
  background: var(--yi-green-hover);
  color: #fff !important;
  transform: translateY(-1px);
}
.yas-individual a:focus-visible, .yas-individual summary:focus-visible { outline: 3px solid rgba(85,199,232,.6); outline-offset: 3px; }

.yas-individual__hero {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  min-height: 565px;
  background: #fff;
}
.yas-individual__hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 65px 28px 70px max(40px, calc((100vw - 1180px) / 2));
}
.yas-individual__hero h1 { font-size: clamp(42px, 4.5vw, 66px); line-height: 1.04; letter-spacing: -.025em; }
.yas-individual__hero-copy p { max-width: 470px; margin: 30px 0 26px; font-size: 19px; line-height: 1.47; }
.yas-individual__hero-media { position: relative; min-width: 0; overflow: hidden; }
.yas-individual__hero-media img { display: block; width: 100%; height: 100%; min-height: 565px; object-fit: cover; object-position: 49% 55%; }
.yas-individual__hero-media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: clamp(180px, 26vw, 360px);
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 10%, rgba(255,255,255,.83) 29%, rgba(255,255,255,.54) 52%, rgba(255,255,255,.23) 76%, rgba(255,255,255,0) 100%);
  content: "";
  pointer-events: none;
}

.yas-individual__facts { padding: 27px 0; background: var(--yi-blue-bg); }
.yas-individual__facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yas-individual__fact { display: flex; align-items: center; justify-content: center; gap: 19px; min-height: 58px; color: var(--yi-navy); font-size: 19px; }
.yas-individual__fact + .yas-individual__fact { border-left: 1px solid #cde7ef; }
.yas-individual__fact img { display: block; width: 46px; height: 46px; flex: none; }

.yas-individual__section { padding: 78px 0; }
.yas-individual__requests h2, .yas-individual__requests .yas-individual__intro { text-align: center; }
.yas-individual__intro { max-width: 670px; margin: 19px auto 0 !important; color: var(--yi-muted); font-size: 18px; }
.yas-individual__request-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 52px; }
.yas-individual__request { min-width: 0; padding: 0 38px 8px; text-align: center; }
.yas-individual__request + .yas-individual__request { border-left: 1px solid var(--yi-line); }
.yas-individual__request img { display: block; width: 68px; height: 68px; margin: 0 auto 24px; }
.yas-individual__request h3 { text-align: center; }
.yas-individual__request p { max-width: 290px; margin: 18px auto 0; color: var(--yi-muted); font-size: 17px; line-height: 1.55; }

.yas-individual__process { padding-top: 55px; }
.yas-individual__process h2 { max-width: 850px; margin: 0 auto; text-align: center; }
.yas-individual__steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 50px; }
.yas-individual__step { min-width: 0; padding: 0 16px; }
.yas-individual__step img { display: block; width: 72px; height: 72px; margin: 0 auto 23px; padding: 11px; border-radius: 50%; background: var(--yi-blue-bg); }
.yas-individual__step h3 { min-height: 64px; font-size: 23px; }
.yas-individual__step p { margin-top: 14px; color: var(--yi-muted); font-size: 16px; line-height: 1.6; }
.yas-individual__conditions { display: flex; align-items: center; gap: 28px; margin-top: 58px; padding: 27px 35px; border-radius: 4px; background: var(--yi-blue-bg); }
.yas-individual__conditions p { flex: 1; line-height: 1.58; }
.yas-individual__conditions a { flex: none; color: var(--yi-green); font-weight: 700; white-space: nowrap; }
.yas-individual__conditions a:hover { text-decoration: underline; }

.yas-individual__faq { padding-top: 38px; }
.yas-individual__faq h2 { margin-bottom: 25px; text-align: center; }
.yas-individual__faq-list { border-top: 1px solid var(--yi-line); }
.yas-individual__faq details { border-bottom: 1px solid var(--yi-line); }
.yas-individual__faq summary { position: relative; padding: 20px 52px 20px 4px; color: var(--yi-navy); cursor: pointer; font: 500 21px/1.4 Georgia, "Times New Roman", serif; list-style: none; }
.yas-individual__faq summary::-webkit-details-marker { display: none; }
.yas-individual__faq summary::before, .yas-individual__faq summary::after { position: absolute; top: 50%; right: 17px; width: 14px; height: 2px; background: var(--yi-navy); content: ""; transform: translateY(-50%); transition: transform .2s ease; }
.yas-individual__faq summary::after { transform: translateY(-50%) rotate(90deg); }
.yas-individual__faq details[open] summary::after { transform: translateY(-50%) rotate(0); }
.yas-individual__faq details p { max-width: 980px; padding: 0 52px 20px 4px; color: var(--yi-muted); line-height: 1.6; }
.yas-individual__faq details p a { color: var(--yi-green); text-decoration: underline; }
.yas-individual__faq details[open] p { animation: yi-faq-in .22s ease both; }
@keyframes yi-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.yas-individual__closing { padding-top: 0; padding-bottom: 54px; }
.yas-individual__closing-panel { min-height: 270px; padding: 42px 48px; border-radius: 5px; background: #f8f4ed url("/images/yasnost-individual/cta-chair.png") center / cover no-repeat; }
.yas-individual__closing-panel h2, .yas-individual__closing-panel p { max-width: 620px; }
.yas-individual__closing-panel p { margin: 13px 0 25px; font-size: 18px; }
.yas-individual__medical-note { margin-top: 17px !important; color: var(--yi-muted); font-size: 13px; text-align: center; }

.yas-individual--motion .yas-individual__hero-copy > * { animation: yi-rise .45s ease both; }
.yas-individual--motion .yas-individual__hero-copy > :nth-child(2) { animation-delay: .08s; }
.yas-individual--motion .yas-individual__hero-copy > :nth-child(3) { animation-delay: .16s; }
@keyframes yi-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.yas-individual--motion [data-yas-individual-reveal-group] > * { opacity: 0; transform: translateY(12px); transition: opacity .42s ease, transform .42s ease; }
.yas-individual--motion [data-yas-individual-reveal-group] > *.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .yas-individual__hero { grid-template-columns: minmax(0, 49%) minmax(0, 51%); min-height: 480px; }
  .yas-individual__hero-copy { padding: 48px 20px 48px 30px; }
  .yas-individual__hero h1 { font-size: clamp(38px, 5vw, 52px); }
  .yas-individual__hero-copy p { font-size: 17px; }
  .yas-individual__hero-media img { min-height: 480px; }
  .yas-individual__request { padding: 0 20px; }
  .yas-individual__steps { gap: 13px; }
  .yas-individual__step { padding: 0 6px; }
  .yas-individual__step h3 { font-size: 21px; }
}

@media (max-width: 680px) {
  .yas-individual__inner { width: min(100% - 32px, 520px); }
  .yas-individual__hero { display: flex; flex-direction: column; }
  .yas-individual__hero-copy { padding: 46px 20px 38px; }
  .yas-individual__hero h1 { font-size: clamp(38px, 10vw, 51px); }
  .yas-individual__hero-copy p { margin: 22px 0; font-size: 17px; }
  .yas-individual__button { width: 100%; }
  .yas-individual__hero-media { height: min(74vw, 380px); }
  .yas-individual__hero-media img { height: 100%; min-height: 0; object-position: center 60%; }
  .yas-individual__hero-media::before { inset: 0 0 auto; width: auto; height: 96px; background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,.86) 25%,rgba(255,255,255,.38) 66%,rgba(255,255,255,0) 100%); }
  .yas-individual__facts { padding: 13px 0; }
  .yas-individual__facts-grid { grid-template-columns: 1fr; }
  .yas-individual__fact { justify-content: flex-start; min-height: 55px; gap: 15px; font-size: 16px; }
  .yas-individual__fact img { width: 34px; height: 34px; }
  .yas-individual__fact + .yas-individual__fact { border-left: 0; border-top: 1px solid #cde7ef; }
  .yas-individual__section { padding: 55px 0; }
  .yas-individual h2 { font-size: clamp(31px, 8vw, 40px); }
  .yas-individual__intro { font-size: 16px; }
  .yas-individual__request-grid, .yas-individual__steps { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .yas-individual__request { padding: 22px 0; }
  .yas-individual__request + .yas-individual__request { border-left: 0; border-top: 1px solid var(--yi-line); }
  .yas-individual__request img { margin-bottom: 13px; }
  .yas-individual__request p { margin-top: 8px; font-size: 16px; }
  .yas-individual__process { padding-top: 32px; }
  .yas-individual__step { padding: 22px 0; border-top: 1px solid var(--yi-line); }
  .yas-individual__step img { width: 60px; height: 60px; margin: 0 0 16px; }
  .yas-individual__step h3 { min-height: 0; font-size: 22px; }
  .yas-individual__step p { margin-top: 8px; }
  .yas-individual__conditions { display: block; margin-top: 24px; padding: 22px; }
  .yas-individual__conditions a { display: inline-block; margin-top: 14px; }
  .yas-individual__faq { padding-top: 12px; }
  .yas-individual__faq summary { padding: 17px 38px 17px 0; font-size: 19px; }
  .yas-individual__faq details p { padding: 0 16px 18px 0; }
  .yas-individual__closing { padding-top: 0; }
  .yas-individual__closing-panel { min-height: 0; padding: 32px 24px 210px; background-position: 67% bottom; background-size: auto 100%; }
  .yas-individual__closing-panel p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .yas-individual *, .yas-individual *::before, .yas-individual *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .yas-individual--motion [data-yas-individual-reveal-group] > * { opacity: 1; transform: none; }
}
