@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&family=Literata:opsz,wght@7..72,500;7..72,700&display=swap");

:root {
  --bg: #f7f3ef;
  --bg-dark: #1c1a19;
  --accent: #d87b5a;
  --accent-dark: #b85e40;
  --text: #1b1b1b;
  --muted: #57524c;
  --card: #fffaf5;
  --stroke: rgba(27, 27, 27, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 239, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.logo-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 6px 6px 6px 0;
  transform: rotate(15deg);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(184, 94, 64, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  background: var(--text);
  color: #fff;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-family: "Literata", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-photo {
  display: grid;
  gap: 16px;
}

.photo-frame {
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(216, 123, 90, 0.25), rgba(255, 255, 255, 0.9));
}

.trainer-photo {
  width: 100%;
  min-height: 380px;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  background: #fff;
}

.photo-tag {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  justify-self: start;
}

.section-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-family: "Literata", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
}

.pain {
  padding: 70px 0;
}

.about {
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-size: 0.85rem;
}

.about-card ul,
.program-card ul,
.format-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-card li::before,
.program-card li::before,
.format-card li::before {
  content: "—";
  margin-right: 8px;
  color: var(--accent);
}

.about-card li,
.program-card li,
.format-card li {
  display: flex;
  align-items: flex-start;
}

.approach {
  padding: 70px 0;
}

.step {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.program {
  padding: 70px 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.program-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
}

.format {
  padding: 70px 0;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.format-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.format-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.format-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--stroke);
}

.testimonials {
  padding: 70px 0;
}

.testimonial span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing {
  padding: 70px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.pricing-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.pricing-card.accent {
  background: var(--card);
  border-color: rgba(216, 123, 90, 0.35);
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--accent);
}

.price-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-footnote {
  color: var(--muted);
  font-size: 0.85rem;
}

.adhd-test {
  padding: 70px 0;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.test-card,
.bonus-card {
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.test-note {
  color: var(--muted);
  margin: 10px 0 18px;
}

.test-form {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.test-result {
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}

.cta {
  padding: 80px 0 100px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.modal:not(.show-submit) #test-submit {
  display: none;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  width: min(560px, 92%);
  max-height: 80vh;
  overflow: auto;
  border-radius: 24px;
  padding: 28px 28px 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.test-q {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px 16px;
  background: #faf6f2;
  display: grid;
  gap: 8px;
}

.test-contact {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.test-contact input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: inherit;
}

.test-contact input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.test-q p {
  font-weight: 600;
}

.test-q label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.test-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.test-form {
  margin-top: 16px;
}

.test-contact {
  margin-top: 6px;
}

.test-actions .btn {
  flex: 1;
}

.test-contact {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px 16px;
  background: #faf6f2;
  display: grid;
  gap: 10px;
}

.test-contact label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.test-contact input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: inherit;
}

.test-contact input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.bot-link {
  margin-top: 22px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.bot-link[hidden] {
  display: none !important;
}

.btn-telegram {
  background: #2aabee;
  color: #fff;
  border: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
}

.btn-telegram:hover {
  background: #1d8fcb;
}

.tg-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: #fff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M9.04 15.59 8.7 20.12c.49 0 .7-.21.96-.46l2.3-2.2 4.77 3.49c.87.48 1.49.23 1.72-.8l3.12-14.64c.27-1.24-.45-1.73-1.3-1.42L2.2 9.27C.98 9.73 1 10.4 2 10.72l4.73 1.48 10.98-6.93c.52-.34 1-.15.61.19l-8.9 8.03Z\"/></svg>') center / contain no-repeat;
}

body.modal-open {
  overflow: hidden;
}

.cta-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  background: var(--bg-dark);
  color: #fff;
  padding: 40px;
  border-radius: 28px;
}

.cta-form {
  display: grid;
  gap: 14px;
}

.cta-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.cta-form input,
.cta-form textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.form-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
}

.site-footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--stroke);
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid h4 {
  margin-bottom: 10px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.7;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(216, 123, 90, 0.5), rgba(216, 123, 90, 0));
  top: -60px;
  right: 10%;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(52, 92, 85, 0.35), rgba(52, 92, 85, 0));
  bottom: 10%;
  left: -40px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(27, 27, 27, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 27, 27, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 880px) {
  .nav {
    display: none;
  }
  .hero {
    padding-top: 60px;
  }
  .cta-inner {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stats {
    gap: 16px;
  }
  .photo-placeholder {
    min-height: 280px;
  }
}
.test-step {
  display: none;
}

.test-step.is-active {
  display: grid;
}
