/*
 * Профориентация v3 — версия для встраивания в существующий шаблон сайта.
 * Все стили ограничены классом .prof-page и не должны влиять на другие страницы.
 */

.prof-page {
  --prof-orange: #f47b20;
  --prof-orange-dark: #d95f0b;
  --prof-orange-soft: #fff1e5;
  --prof-cream: #fffaf6;
  --prof-white: #ffffff;
  --prof-text: #303944;
  --prof-muted: #69717a;
  --prof-border: rgba(48, 57, 68, 0.12);
  --prof-shadow: 0 18px 48px rgba(76, 54, 38, 0.10);
  --prof-radius-lg: 28px;
  --prof-radius-md: 20px;
  --prof-radius-sm: 13px;

  width: 100%;
  margin: 24px 0 48px;
  color: var(--prof-text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.prof-page,
.prof-page * {
  box-sizing: border-box;
}

.prof-page h2,
.prof-page h3,
.prof-page h4,
.prof-page p,
.prof-page ul,
.prof-page ol {
  font-family: Montserrat, Arial, sans-serif;
  text-transform: none;
}

.prof-page h2,
.prof-page h3,
.prof-page h4 {
  color: var(--prof-text);
  font-weight: 800;
}

.prof-page button,
.prof-page a {
  font: inherit;
}

.prof-page a {
  text-decoration: none;
}

.prof-eyebrow {
  margin: 0 0 11px;
  color: var(--prof-orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  line-height: 1.3;
  text-transform: uppercase !important;
}

.prof-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.75fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(244, 123, 32, 0.13);
  border-radius: var(--prof-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 123, 32, 0.14) 0 150px, transparent 151px),
    linear-gradient(135deg, #ffffff 0%, #fffaf6 55%, #fff0e4 100%);
  box-shadow: var(--prof-shadow);
}

.prof-hero::after {
  content: "";
  position: absolute;
  right: 34%;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(244, 123, 32, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.prof-hero__content,
.prof-hero__visual {
  position: relative;
  z-index: 1;
}

.prof-title {
  max-width: 680px;
  margin: 0 !important;
  color: var(--prof-text) !important;
  font-size: clamp(32px, 3vw, 46px) !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em;
  line-height: 1.08 !important;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.prof-lead {
  max-width: 680px;
  margin: 20px 0 0 !important;
  color: var(--prof-muted);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.65;
}

.prof-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.prof-facts li {
  display: flex;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(244, 123, 32, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  flex-direction: column;
}

.prof-facts strong {
  color: var(--prof-text);
  font-size: 14px;
  line-height: 1.25;
}

.prof-facts span {
  margin-top: 3px;
  color: var(--prof-muted);
  font-size: 11px;
  line-height: 1.3;
}

.prof-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 20px;
  align-items: center;
  margin-top: 27px;
}

.prof-hero__note {
  color: var(--prof-muted);
  font-size: 13px;
  font-weight: 700;
}

.prof-summary-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(104, 61, 28, 0.12);
  backdrop-filter: blur(8px);
}

.prof-summary-card__label {
  margin: 0 0 16px !important;
  color: var(--prof-orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prof-summary-card__item {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--prof-border);
}

.prof-summary-card__item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.prof-summary-card__item:last-child {
  padding-bottom: 0;
}

.prof-summary-card__icon {
  display: grid;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--prof-orange);
  color: var(--prof-white);
  font-size: 11px;
  font-weight: 900;
  place-items: center;
}

.prof-summary-card__item strong,
.prof-summary-card__item span {
  display: block;
}

.prof-summary-card__item strong {
  color: var(--prof-text);
  font-size: 14px;
  line-height: 1.35;
}

.prof-summary-card__item div > span {
  margin-top: 4px;
  color: var(--prof-muted);
  font-size: 12px;
  line-height: 1.45;
}

.prof-audience,
.prof-process {
  padding-top: clamp(58px, 7vw, 84px);
}

.prof-section-heading {
  max-width: 700px;
  margin-bottom: 27px;
}

.prof-section-heading h2,
.prof-reviews__heading h2,
.prof-final-cta h2 {
  margin: 0 !important;
  color: var(--prof-text) !important;
  font-size: clamp(27px, 2.5vw, 38px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.16 !important;
}

.prof-section-heading > p:last-child {
  margin: 13px 0 0 !important;
  color: var(--prof-muted);
  font-size: 15px;
}

.prof-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 620px);
  padding: 7px;
  margin-bottom: 18px;
  border: 1px solid var(--prof-border);
  border-radius: 18px;
  background: var(--prof-white);
  box-shadow: 0 8px 26px rgba(61, 46, 35, 0.06);
}

.prof-tab {
  display: flex;
  min-height: 64px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--prof-muted);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.prof-tab:hover {
  color: var(--prof-text);
  transform: translateY(-1px);
}

.prof-tab.is-active {
  background: var(--prof-orange);
  color: var(--prof-white);
  box-shadow: 0 10px 24px rgba(244, 123, 32, 0.22);
}

.prof-tab__small {
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  opacity: 0.78;
  text-transform: uppercase;
}

.prof-tab > span:last-child {
  font-size: 15px;
  font-weight: 800;
}

.prof-tab:focus-visible,
.prof-button:focus-visible,
.prof-marquee-toggle:focus-visible {
  outline: 3px solid rgba(244, 123, 32, 0.35);
  outline-offset: 4px;
}

.prof-panel {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(244, 123, 32, 0.16);
  border-radius: var(--prof-radius-lg);
  background: var(--prof-white);
  box-shadow: var(--prof-shadow);
  animation: prof-panel-in 240ms ease both;
}

.prof-panel[hidden] {
  display: none !important;
}

@keyframes prof-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.prof-panel__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.65fr);
  gap: 26px;
  align-items: end;
}

.prof-panel__intro {
  max-width: 700px;
}

.prof-panel__label {
  display: inline-block;
  padding: 7px 11px;
  margin: 0 0 14px !important;
  border-radius: 999px;
  background: var(--prof-orange-soft);
  color: var(--prof-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prof-panel__intro h3 {
  margin: 0 !important;
  color: var(--prof-text) !important;
  font-size: clamp(24px, 2.4vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.18 !important;
}

.prof-panel__intro > p:last-child {
  margin: 15px 0 0 !important;
  color: var(--prof-muted);
  font-size: 15px;
  line-height: 1.65;
}

.prof-panel__result {
  padding: 20px;
  border-radius: 17px;
  background: var(--prof-orange-soft);
}

.prof-panel__result span,
.prof-panel__result strong {
  display: block;
}

.prof-panel__result span {
  margin-bottom: 7px;
  color: var(--prof-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.prof-panel__result strong {
  color: var(--prof-text);
  font-size: 14px;
  line-height: 1.45;
}

.prof-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 25px;
}

.prof-info-card {
  padding: 23px;
  border: 1px solid var(--prof-border);
  border-radius: var(--prof-radius-md);
  background: #fffdfb;
}

.prof-info-card--accent {
  border-color: rgba(244, 123, 32, 0.17);
  background: var(--prof-orange-soft);
}

.prof-info-card h4 {
  margin: 0 0 16px !important;
  color: var(--prof-text) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.prof-check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.prof-check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--prof-muted);
  font-size: 13px;
  line-height: 1.55;
}

.prof-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--prof-orange);
  color: var(--prof-white);
  font-size: 10px;
  font-weight: 900;
  place-items: center;
}

.prof-button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 13px;
  background: var(--prof-orange);
  color: var(--prof-white) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 12px 26px rgba(244, 123, 32, 0.22);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.prof-button:hover {
  background: var(--prof-orange-dark);
  color: var(--prof-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(217, 95, 11, 0.25);
}

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

.prof-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 23px;
  border: 1px solid var(--prof-border);
  border-radius: var(--prof-radius-md);
  background: var(--prof-white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.prof-step:hover {
  border-color: rgba(244, 123, 32, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(69, 49, 34, 0.08);
}

.prof-step__number {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--prof-orange-soft);
  color: var(--prof-orange-dark);
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.prof-step h3 {
  margin: 1px 0 7px !important;
  color: var(--prof-text) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.prof-step p {
  margin: 0 !important;
  color: var(--prof-muted);
  font-size: 13px;
  line-height: 1.55;
}

.prof-reviews {
  margin-top: clamp(58px, 7vw, 84px);
  padding: clamp(30px, 4vw, 44px) 0;
  overflow: hidden;
  border-radius: var(--prof-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 123, 32, 0.22), transparent 290px),
    #303944;
  color: var(--prof-white);
}

.prof-reviews__heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 42px) 25px;
}

.prof-reviews .prof-eyebrow {
  color: #ffb982;
}

.prof-reviews__heading h2 {
  max-width: 620px;
  color: var(--prof-white) !important;
}

.prof-marquee-toggle {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--prof-white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.prof-marquee-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.prof-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.prof-marquee__track {
  display: flex;
  width: max-content;
  animation: prof-marquee 42s linear infinite;
  will-change: transform;
}

.prof-marquee__group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
  flex: 0 0 auto;
}

.prof-marquee.is-paused .prof-marquee__track,
.prof-marquee:hover .prof-marquee__track,
.prof-marquee:focus-within .prof-marquee__track {
  animation-play-state: paused;
}

@keyframes prof-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.prof-review-card {
  display: flex;
  width: min(330px, calc(100vw - 64px));
  min-height: 205px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
}

.prof-review-card p {
  margin: 0 !important;
  color: var(--prof-white);
  font-size: 15px;
  line-height: 1.62;
}

.prof-review-card footer {
  margin-top: 25px;
  color: #ffb982;
  font-size: 11px;
  font-weight: 800;
}

.prof-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 4vw, 44px);
  margin-top: 22px;
  border-radius: var(--prof-radius-lg);
  background: var(--prof-orange);
  color: var(--prof-white);
}

.prof-final-cta .prof-eyebrow {
  color: rgba(255, 255, 255, 0.80);
}

.prof-final-cta h2 {
  max-width: 700px;
  color: var(--prof-white) !important;
}

.prof-final-cta p:last-child {
  margin: 13px 0 0 !important;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.prof-button--light {
  background: var(--prof-white);
  color: var(--prof-orange-dark) !important;
  box-shadow: none;
}

.prof-button--light:hover {
  background: #fff7f0;
  color: var(--prof-orange-dark) !important;
}

@media (max-width: 1050px) {
  .prof-hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 38px;
  }

  .prof-title {
    font-size: 37px !important;
  }

  .prof-facts {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .prof-facts li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: baseline;
  }

  .prof-facts span {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .prof-page {
    margin-top: 18px;
  }

  .prof-hero,
  .prof-panel__top,
  .prof-final-cta {
    grid-template-columns: 1fr;
  }

  .prof-hero__visual {
    max-width: 540px;
  }

  .prof-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .prof-facts li {
    display: flex;
  }

  .prof-final-cta .prof-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .prof-page {
    font-size: 15px;
  }

  .prof-hero {
    gap: 24px;
    padding: 27px 20px;
    border-radius: 22px;
  }

  .prof-title {
    font-size: clamp(30px, 9vw, 38px) !important;
  }

  .prof-lead {
    font-size: 15px;
  }

  .prof-facts,
  .prof-tabs,
  .prof-panel__grid,
  .prof-steps {
    grid-template-columns: 1fr;
  }

  .prof-facts {
    gap: 8px;
  }

  .prof-facts li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: baseline;
  }

  .prof-facts span {
    margin-top: 0;
  }

  .prof-hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .prof-button {
    width: 100%;
  }

  .prof-audience,
  .prof-process {
    padding-top: 58px;
  }

  .prof-panel {
    padding: 23px 18px;
    border-radius: 22px;
  }

  .prof-info-card {
    padding: 20px;
  }

  .prof-step {
    padding: 20px;
  }

  .prof-reviews {
    border-radius: 22px;
  }

  .prof-reviews__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .prof-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }

  .prof-marquee__track {
    animation: none;
    padding: 0 20px 10px;
  }

  .prof-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .prof-marquee-toggle {
    display: none;
  }

  .prof-final-cta {
    padding: 27px 20px;
    border-radius: 22px;
  }
}

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

  .prof-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
