* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #c5d1d9;
  --surface: #e1e7ec;
  --ink: #1f2e3a;
  --ink-soft: #596a78;
  --muted: #596a78;
  --line: rgba(31, 46, 58, 0.12);
  --accent: #1f2e3a;
  --accent-dark: #152028;
  --accent-soft: #dce3e8;
  --teal: #42596e;
  --teal-dark: #2e4254;
  --cream: #f4f9ff;
  --shadow: 0 18px 40px rgba(31, 46, 58, 0.14);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--ink);
}

img {
  max-width: 100%;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* ---------- Навигация ---------- */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31, 46, 58, 0.08);
}

.nav-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--teal);
  color: #fff;
}

.nav-links a:focus-visible,
.menu-toggle:focus-visible,
.work-card-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero-block {
  position: relative;
  overflow: hidden;
  padding: 60px 52px 56px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius);
  color: var(--cream);
  margin-bottom: 40px;
}

.hero-block::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 227, 232, 0.35) 0%, rgba(220, 227, 232, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text-block {
  max-width: 620px;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8b8a8;
}

.hero-text-block h1 {
  margin: 0 0 28px;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 288px;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.hero-name {
  margin: 14px 0 0;
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  color: #c8b8a8;
  white-space: nowrap;
}

/* ---------- Общие блоки ---------- */

.content-block {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.content-block h3 {
  margin-top: 0;
  font-size: 1.18rem;
}

.content-block p,
.content-block li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.content-block ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.content-block ul li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 1.3rem;
}

.content-block ul li:last-child {
  margin-bottom: 0;
}

.content-block ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.content-block .nested-list {
  margin: 8px 0 0;
  padding-left: 0;
}

.content-block .nested-list li {
  margin-bottom: 5px;
  padding-left: 0.9rem;
}

.content-block .nested-list li::before {
  font-size: 0.8rem;
  top: 0.2rem;
}

/* ---------- Заголовки секций ---------- */

.section-heading-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 760px;
  margin: 0 auto 26px;
  padding: 0;
  text-align: center;
}

.section-heading-block h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}

.section-heading-block h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Секция «Вопросы» ---------- */

#questions {
  text-align: center;
}

#questions .work-grid {
  justify-content: center;
}

#questions .work-card {
  text-align: left;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

.work-card {
  min-height: 100%;
  margin-bottom: 0;
}

.work-card-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.work-card-toggle h3 {
  margin: 0;
}

.toggle-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.work-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.work-card.open .work-card-content {
  max-height: 1000px;
  margin-top: 18px;
}

.work-card.open .toggle-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

/* ---------- Цитата ---------- */

.centered-quote-block {
  position: relative;
  max-width: 820px;
  margin: 36px auto 48px;
  text-align: center;
  padding: 48px 44px 44px;
  background: linear-gradient(135deg, #fefdf7 0%, #faf3e0 50%, #f5ead0 100%);
  border: 1px solid rgba(31, 46, 58, 0.15);
  color: var(--ink);
  overflow: hidden;
}

.centered-quote-block::before {
  content: '“';
  position: absolute;
  top: -12px;
  left: 26px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
}

.centered-quote-block p {
  position: relative;
  margin: 0;
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- Условия работы ---------- */

#conditions {
  margin-top: 48px;
}

.condition-block {
  max-width: 780px;
  margin: 0 auto;
}

.condition-block p {
  position: relative;
  margin: 0 0 16px;
  padding-left: 22px;
}

.condition-block p:last-child {
  margin-bottom: 0;
}

.condition-block p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.condition-block .condition-highlight {
  font-weight: 700;
  color: var(--accent-dark);
}

/* ---------- Мой опыт ---------- */

.practice-section {
  max-width: 860px;
  margin: 48px auto 0;
}

.practice-list-block {
  margin: 0;
}

/* ---------- Образование ---------- */

.education-section {
  margin-top: 48px;
  margin-bottom: 56px;
}

.education-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}

.education-card {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}

.education-card:nth-child(2) {
  border-top-color: var(--teal);
}

.education-card:nth-child(3) {
  border-top-color: #b3946a;
}

.edu-index {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.education-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- Отзыв ---------- */

.booking-testimonial {
  position: relative;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 44px 40px;
  background: linear-gradient(135deg, #fefdf7 0%, #faf3e0 50%, #f5ead0 100%);
  border: 1px solid rgba(31, 46, 58, 0.15);
  overflow: hidden;
}

.booking-testimonial::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 26px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
}

.booking-testimonial p {
  position: relative;
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.booking-testimonial p em {
  color: var(--ink);
}

/* ---------- Контакты ---------- */

.contact-block {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 20px;
  text-align: center;
  padding: 40px 28px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--cream);
  border: 0;
  overflow: hidden;
}

.contact-block-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-block .contact-block-title {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.contact-block .contact-block-text,
.contact-block .contact-block-subtext {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 39, 89, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.contact-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-link--whatsapp .contact-link-icon {
  background: #25d366;
  color: #fff;
}

.contact-link--telegram .contact-link-icon {
  background: #229ed9;
  color: #fff;
}

.contact-link--max .contact-link-icon {
  background: #fff;
  color: var(--accent);
}

/* ---------- Якоря под липкой шапкой ---------- */

#questions,
#conditions,
#practice,
#education,
#booking {
  scroll-margin-top: 96px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .page-shell {
    padding: 16px 16px 56px;
  }

  .top-nav {
    padding: 10px 14px;
    margin-bottom: 24px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .top-nav.open .nav-links {
    display: flex;
  }

  .top-nav.open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .top-nav.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .top-nav.open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links a {
    text-align: left;
    padding: 12px 14px;
  }

  .hero-block {
    padding: 32px 22px;
  }

  .hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .hero-text-block h1 {
    font-size: clamp(1.7rem, 5vw, 2.3rem);
  }

  .hero-photo {
    width: min(100%, 200px);
    margin: 0 auto;
  }

  .content-block {
    padding: 24px 20px;
  }

  .education-cards {
    grid-template-columns: 1fr;
  }

  .education-card {
    min-height: 0;
  }

  .condition-block,
  .practice-section {
    max-width: 100%;
  }

  .centered-quote-block {
    padding: 38px 24px;
  }

  .booking-testimonial {
    padding: 34px 22px;
  }
}

@media (max-width: 660px) {
  .page-shell {
    padding: 12px 12px 48px;
  }

  .hero-block {
    padding: 26px 18px;
  }

  .content-block {
    padding: 20px 16px;
  }

  .content-block h2 {
    font-size: 1.35rem;
  }

  .content-block p,
  .content-block li {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero-button {
    width: 100%;
    padding: 14px 20px;
  }

  .section-heading-block h2 {
    font-size: 1.45rem;
  }

  .centered-quote-block {
    padding: 32px 20px;
    margin: 28px auto 36px;
  }

  .contact-block {
    padding: 30px 18px;
  }

  .contact-block-subtext {
    font-size: 1.15rem;
  }
}
