:root {
  --pn-black: #08090b;
  --pn-charcoal: #111419;
  --pn-panel: #181c22;
  --pn-panel-soft: #20252c;
  --pn-line: #3c424a;
  --pn-line-soft: #2a3037;
  --pn-white: #f1f0ed;
  --pn-silver: #c7cbd0;
  --pn-muted: #9ea4ab;
  --pn-action: #e2e4e6;
  --pn-action-ink: #111317;
  --pn-wine: #7d2638;
  --pn-success: #668579;
}

html {
  scroll-behavior: smooth;
}

body.psychologist-ad-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--pn-white);
  background: var(--pn-black);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

.psychologist-ad-page *,
.psychologist-ad-page *::before,
.psychologist-ad-page *::after {
  box-sizing: border-box;
}

.psychologist-ad-page a {
  color: inherit;
}

.pn-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.pn-header {
  position: relative;
  z-index: 20;
  height: 68px;
  border-bottom: 1px solid var(--pn-line-soft);
  background: var(--pn-black);
}

.pn-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  height: 100%;
}

.pn-brand {
  color: var(--pn-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  text-decoration: none;
}

.pn-header-home {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
}

.pn-hero {
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
  min-height: calc(100svh - 68px);
  border-bottom: 1px solid var(--pn-line-soft);
  background: var(--pn-charcoal);
}

.pn-portrait {
  position: relative;
  min-height: 780px;
  margin: 0;
  overflow: hidden;
  background: #30343a;
}

.pn-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset -56px 0 72px rgba(8, 9, 11, 0.34);
  pointer-events: none;
}

.pn-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 780px;
  object-fit: cover;
  object-position: 50% 50%;
}

.pn-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 56px;
  container-type: inline-size;
}

.pn-kicker {
  margin: 0 0 10px;
  color: var(--pn-silver);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pn-hero h1.pn-kicker {
  max-width: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-size: clamp(17px, 5.75cqw, 44px);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
}

.pn-hero h1,
.pn-feedback h2,
.pn-chat h2,
.pn-requests h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.pn-hero h1 {
  max-width: 700px;
  font-size: 64px;
  line-height: 1.02;
}

.pn-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--pn-silver);
  font-size: 19px;
  line-height: 1.52;
}

.pn-credentials {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr 1fr;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--pn-line);
  border-bottom: 1px solid var(--pn-line);
}

.pn-credentials > * {
  margin: 0;
  padding: 15px 16px;
  color: var(--pn-muted);
  font-size: 13px;
  line-height: 1.4;
}

.pn-credentials > :first-child {
  padding-left: 0;
  color: var(--pn-white);
}

.pn-credentials > * + * {
  border-left: 1px solid var(--pn-line-soft);
}

.pn-credentials ul {
  list-style: none;
}

.pn-credentials li {
  position: relative;
  padding-left: 16px;
}

.pn-credentials li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pn-credentials li + li {
  margin-top: 7px;
}

.pn-credentials .pn-role-list {
  font-weight: 700;
}

.pn-credentials .pn-education-list {
  color: var(--pn-silver);
}

.pn-chat {
  margin-top: 26px;
  padding: 22px 24px 24px;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  background: #171b20;
  container-type: inline-size;
}

.pn-chat-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.pn-chat h2,
.pn-requests h2 {
  font-size: 28px;
  line-height: 1.12;
}

.pn-chat-heading p {
  margin: 0;
  color: var(--pn-muted);
  font-size: 14px;
  text-align: right;
}

.pn-chat-heading h2 {
  font-size: clamp(20px, 5cqw, 28px);
  white-space: nowrap;
}

.pn-messenger-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pn-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pn-button span {
  font-size: 20px;
  line-height: 1;
}

.pn-button-primary {
  color: var(--pn-white);
  border-color: #4a5058;
  background: var(--pn-panel-soft);
}

.pn-button-primary:hover,
.pn-button-primary:focus-visible {
  border-color: var(--pn-silver);
  background: #292f37;
}

.pn-button-light {
  color: var(--pn-action-ink);
  background: var(--pn-action);
}

.pn-button-light:hover,
.pn-button-light:focus-visible {
  background: #ffffff;
}

.pn-button:disabled {
  color: #747980;
  background: #2b3036;
  cursor: not-allowed;
}

.pn-direct-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pn-direct-contacts a,
.pn-direct-contacts button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  color: var(--pn-white);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pn-direct-contacts span {
  color: var(--pn-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pn-direct-contacts strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.pn-requests {
  margin-top: 24px;
}

.pn-requests ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pn-requests li {
  position: relative;
  min-height: 34px;
  padding: 7px 0 7px 20px;
  border-top: 1px solid var(--pn-line-soft);
  color: var(--pn-silver);
  font-size: 14px;
  line-height: 1.35;
}

.pn-requests li::before {
  position: absolute;
  top: 14px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pn-success);
  content: "";
}

.pn-feedback {
  padding: 76px 0;
  background: #0d0f12;
}

.pn-feedback-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(480px, 1.28fr);
  gap: 72px;
  align-items: start;
}

.pn-feedback-messenger-column {
  position: sticky;
  top: 28px;
  display: grid;
  min-width: 0;
  gap: 26px;
}

.pn-feedback-messengers {
  display: grid;
  gap: 12px;
}

.pn-feedback-messengers .pn-button {
  width: 100%;
}

.pn-feedback-form-column {
  display: grid;
  min-width: 0;
  gap: 26px;
}

.pn-feedback-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.pn-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  background: var(--pn-panel);
}

.pn-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pn-form label {
  display: grid;
  gap: 7px;
  color: var(--pn-silver);
  font-size: 13px;
  font-weight: 700;
}

.pn-form label > span em {
  color: #d9a3ae;
  font-style: normal;
}

.pn-form input[type="text"],
.pn-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #4a515a;
  border-radius: 8px;
  outline: none;
  color: var(--pn-white);
  background: #0d1014;
  font: inherit;
  font-size: 15px;
}

.pn-form textarea {
  min-height: 108px;
  resize: vertical;
}

.pn-form input::placeholder,
.pn-form textarea::placeholder {
  color: #777e86;
  opacity: 1;
}

.pn-form input:focus,
.pn-form textarea:focus {
  border-color: var(--pn-action);
  box-shadow: 0 0 0 2px rgba(226, 228, 230, 0.16);
}

.pn-form .pn-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--pn-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.pn-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pn-action);
}

.pn-consent a {
  color: var(--pn-silver);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pn-form-submit {
  display: grid;
  grid-template-columns: minmax(210px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.pn-form-status {
  margin: 0;
  color: var(--pn-silver);
  font-size: 13px;
}

.pn-footer {
  padding: 34px 0;
  border-top: 1px solid var(--pn-line-soft);
  background: var(--pn-black);
}

.pn-footer-inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pn-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.pn-footer nav a {
  color: var(--pn-muted);
  font-size: 12px;
  text-decoration: none;
}

.pn-footer nav a:hover,
.pn-footer nav a:focus-visible {
  color: var(--pn-white);
  text-decoration: underline;
}

.psychologist-ad-page .cookie-banner {
  position: fixed;
  right: auto;
  bottom: 24px;
  left: 16px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(560px, calc(42vw - 32px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  color: var(--pn-white);
  background: #171a1f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.46);
}

.psychologist-ad-page .cookie-banner[hidden] {
  display: none;
}

.psychologist-ad-page .cookie-banner p {
  margin: 0;
  color: var(--pn-silver);
  font-size: 13px;
  text-align: center;
}

.psychologist-ad-page .cookie-banner a {
  color: var(--pn-white);
}

.psychologist-ad-page .cookie-actions {
  display: flex;
  justify-content: center;
}

.psychologist-ad-page .cookie-actions .pn-button {
  min-height: 36px;
  padding-block: 8px;
  font-size: 12px;
}

.psychologist-ad-page .telegram-confirm-modal {
  width: min(440px, calc(100% - 32px));
  max-width: 440px;
  padding: 0;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  color: var(--pn-white);
  background: var(--pn-panel);
}

.psychologist-ad-page .telegram-confirm-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.psychologist-ad-page .telegram-confirm-card {
  position: relative;
  padding: 28px;
  color: var(--pn-white);
  background: var(--pn-panel);
}

.psychologist-ad-page .telegram-confirm-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.psychologist-ad-page .telegram-confirm-card p {
  margin: 12px 0 0;
  color: var(--pn-muted);
}

.psychologist-ad-page .telegram-confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.psychologist-ad-page .telegram-confirm-actions .btn {
  min-height: 46px;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  color: var(--pn-white);
  background: var(--pn-panel-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.psychologist-ad-page .telegram-confirm-actions .btn-primary {
  color: var(--pn-action-ink);
  border-color: var(--pn-action);
  background: var(--pn-action);
}

.psychologist-ad-page .telegram-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--pn-line);
  border-radius: 50%;
  color: var(--pn-white);
  background: var(--pn-panel-soft);
  font-size: 22px;
  line-height: 34px;
  cursor: pointer;
}

.psychologist-ad-page .viternal-copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  padding: 11px 14px;
  border: 1px solid var(--pn-line);
  border-radius: 8px;
  color: var(--pn-white);
  background: var(--pn-panel);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.psychologist-ad-page .viternal-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.psychologist-ad-page :focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .pn-hero {
    grid-template-columns: minmax(330px, 38%) minmax(0, 1fr);
  }

  .pn-portrait,
  .pn-portrait img {
    min-height: 820px;
  }

  .pn-hero-copy {
    padding: 38px;
  }

  .pn-credentials {
    grid-template-columns: 1fr;
  }

  .pn-credentials > * {
    padding-inline: 0;
  }

  .pn-credentials > * + * {
    border-top: 1px solid var(--pn-line-soft);
    border-left: 0;
  }

  .psychologist-ad-page .cookie-banner {
    left: 12px;
    width: calc(38vw - 24px);
  }

}

@media (max-width: 860px) {
  .pn-shell {
    width: min(100% - 36px, 720px);
  }

  .pn-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pn-portrait,
  .pn-portrait img {
    min-height: 0;
    height: 300px;
  }

  .pn-portrait img {
    object-position: 50% 36%;
  }

  .pn-portrait::after {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -48px 64px rgba(8, 9, 11, 0.28);
  }

  .pn-hero-copy {
    padding: 28px 28px 40px;
  }

  .pn-feedback-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pn-feedback-messenger-column {
    position: static;
  }

  .psychologist-ad-page .cookie-banner {
    left: 18px;
    width: min(540px, calc(100% - 36px));
  }
}

@media (max-width: 600px) {
  .pn-shell {
    width: calc(100% - 28px);
  }

  .pn-header {
    height: 58px;
  }

  .pn-brand {
    font-size: 27px;
  }

  .pn-header-inner {
    gap: 12px;
  }

  .pn-header-home {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .pn-portrait,
  .pn-portrait img {
    height: 255px;
  }

  .pn-portrait img {
    object-position: 50% 22%;
  }

  .pn-hero-copy {
    padding: 18px 18px 34px;
  }

  .pn-credentials {
    margin-top: 20px;
  }

  .pn-credentials > * {
    padding-block: 11px;
    font-size: 12px;
  }

  .pn-chat {
    margin-top: 20px;
    padding: 18px 14px;
  }

  .pn-chat-heading h2 {
    font-size: clamp(20px, 7cqw, 25px);
  }

  .pn-requests h2 {
    font-size: 25px;
  }

  .pn-messenger-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pn-button {
    min-height: 46px;
  }

  .pn-direct-contacts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pn-direct-contacts a,
  .pn-direct-contacts button {
    border-bottom: 1px solid var(--pn-line-soft);
  }

  .pn-requests ul {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pn-feedback {
    padding: 48px 0;
  }

  .pn-feedback h2 {
    font-size: 30px;
  }

  .pn-form {
    gap: 15px;
    padding: 20px 16px;
  }

  .pn-form-row,
  .pn-form-submit {
    grid-template-columns: 1fr;
  }

  .pn-form-submit {
    gap: 12px;
  }

  .pn-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pn-footer nav {
    display: grid;
    justify-content: start;
    gap: 12px;
  }

  .psychologist-ad-page .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    gap: 10px;
    padding: 12px;
  }

  .psychologist-ad-page .cookie-actions .pn-button {
    width: 100%;
  }

  .psychologist-ad-page .telegram-confirm-card {
    padding: 24px 18px 18px;
  }

  .psychologist-ad-page .telegram-confirm-card h2 {
    padding-right: 40px;
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pn-button,
  .psychologist-ad-page .viternal-copy-toast {
    transition: none;
  }
}
