/* Психологія Некст — static site */
:root {
  --ink: #10131a;
  --ink-soft: #2a2e38;
  --accent: #0c2d6b;
  --accent-dark: #081f4a;
  --accent-soft: #e8eef8;
  --sand: #f3f4f7;
  --paper: #fafbfd;
  --line: #dde1ea;
  --muted: #5a6170;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(12, 45, 107, 0.1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(12, 45, 107, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(12, 45, 107, 0.05), transparent 50%),
    var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 20, 26, 0.94);
  backdrop-filter: blur(10px);
  color: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.9;
}

.logo img,
.logo__img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
  overflow: visible;
}

@media (min-width: 761px) {
  .logo img,
  .logo__img {
    height: 34px;
    max-width: 170px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.is-open {
    display: flex;
  }
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  width: 100%;
  display: block;
  padding: 2.75rem 0 2.5rem;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

.hero > .container,
.page-hero > .container {
  width: min(100% - 2rem, var(--max));
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

.hero__grid,
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.hero__intro,
.hero__body {
  min-width: 0;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.hero__intro h1 {
  margin-bottom: 0;
}

.hero__body {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .hero,
  .page-hero {
    padding: 3.5rem 0 3rem;
  }

  .hero__grid,
  .page-hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas:
      "intro visual"
      "body visual";
    column-gap: 2rem;
    row-gap: 1.25rem;
    align-items: center;
  }

  .hero__intro {
    grid-area: intro;
  }

  .hero__visual {
    grid-area: visual;
  }

  .hero__body {
    grid-area: body;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  max-width: 22ch;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.55;
}

.page-hero .hero__lead {
  max-width: 58ch;
}

.hero__visual {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin: 0.5rem auto 0.25rem;
  background: transparent;
}

@media (min-width: 900px) {
  .hero__visual {
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: center;
  }
}

.hero__visual img,
.hero__visual svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

@media (min-width: 900px) {
  .hero__visual img,
  .hero__visual svg {
    max-height: 560px;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
}

.hero__points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn--block {
  width: 100%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--ink .muted,
.section--ink .text-muted {
  color: rgba(255, 255, 255, 0.7);
}

.section--ink a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section--ink a:hover {
  color: #dbe7ff;
}

.section--ink .section__label {
  color: #9bb6e8;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.section__lead {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.muted,
.text-muted {
  color: var(--muted);
}

/* Cards */
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(15, 107, 107, 0.35);
  box-shadow: var(--shadow);
}

.card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.15rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.price-tag {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
}

/* Approach list */
.approach {
  display: grid;
  gap: 0;
}

.approach__item {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .approach__item {
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.approach__item:last-child {
  border-bottom: 1px solid var(--line);
}

.approach__num {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
}

/* Program page hero extras — base rules shared with .hero above */

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.content-block {
  margin-bottom: 2.5rem;
}

.content-block h2 {
  font-size: 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.price-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.price-box__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--accent);
  margin: 0.5rem 0 1.25rem;
}

.installment-note {
  margin: 0.85rem 0 0;
  text-align: center;
}

.installment-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.installment-link:hover {
  color: var(--ink);
}

#installment-terms {
  scroll-margin-top: 5.5rem;
}

.price-options {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .price-options {
    grid-template-columns: 1fr 1fr;
  }
}

.price-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--paper);
}

.price-option h3 {
  font-size: 1.1rem;
}

.price-option__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin: 0.5rem 0 1rem;
}

.lecture {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}

.lecture:last-child {
  border-bottom: 1px solid var(--line);
}

.lecture h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.lecture strong {
  color: var(--ink-soft);
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Contacts / footer */
.contacts-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .contacts-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

.site-footer__meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.7;
}

.requisites {
  display: grid;
  gap: 0.35rem;
}

.requisites strong {
  color: var(--white);
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 26, 0.55);
}

.modal__dialog {
  position: relative;
  width: min(100%, 460px);
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal__title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  padding-right: 1.5rem;
}

.modal__dialog--legal {
  width: min(100%, 720px);
  padding: 1.5rem 1.5rem 1.75rem;
}

.modal__dialog--legal .modal__title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.legal-doc {
  display: grid;
  gap: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-doc__section h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 0.45rem;
}

.legal-doc__section p {
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.legal-doc__section p:last-child {
  margin-bottom: 0;
}

.legal-doc__section a {
  color: var(--accent);
  font-weight: 600;
}

.legal-doc--page {
  max-width: 46rem;
}

.legal-doc--page .legal-doc__section {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.legal-doc--page .legal-doc__section:first-child {
  border-top: none;
  padding-top: 0;
}

.faq .legal-doc {
  margin-top: 0.85rem;
}

.faq .legal-doc__section h3 {
  font-size: 0.98rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--paper);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(15, 107, 107, 0.25);
  border-color: var(--accent);
}

.form-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 1rem 0 1.25rem;
}

.form-check a {
  color: var(--accent);
  text-decoration: underline;
}

.form-check input {
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

.layout-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .layout-split {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

  .layout-split__aside {
    position: sticky;
    top: 5.5rem;
  }
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.principle {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.principle h3 {
  font-size: 1.2rem;
}

.strip {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

@media (min-width: 700px) {
  .strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.strip__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.strip__item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.prose p {
  max-width: 68ch;
}

