:root {
  --cream:      #FAF7F2;
  --linen:      #EDE4D8;
  --sand:       #C4A882;
  --terracotta: #B8673E;
  --terracotta-hover: #9E5733;
  --sage:       #7A9066;
  --brown:      #2C2218;
  --text:       #3D2E22;
  --text-light: #7A6A5A;
  --white:      #FFFFFF;
  --border:     #DDD3C5;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Segoe UI', 'Arial', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm: 0 2px 8px rgba(44,34,24,.08);
  --shadow-md: 0 6px 24px rgba(44,34,24,.12);
  --shadow-lg: 0 16px 48px rgba(44,34,24,.16);

  --max-w: 1100px;
  --section-py: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

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

ul, ol { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background: var(--linen);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-align: center;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  padding: 15px 36px;
  box-shadow: 0 4px 16px rgba(183,103,62,.35);
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  box-shadow: 0 6px 20px rgba(183,103,62,.45);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
  padding: 13px 32px;
}

.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
}

.btn-lg {
  font-size: 17px;
  padding: 18px 44px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -.01em;
}

.header__logo span {
  color: var(--terracotta);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color .2s;
}

.header__nav a:hover { color: var(--terracotta); }

.header__cta {
  font-size: 14px !important;
  padding: 9px 22px !important;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: .3s;
}

.hero {
  padding: 72px 0 0;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--linen);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 24px;
}

.hero__pretitle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--terracotta);
}

.hero__desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.hero__trust-item strong {
  color: var(--brown);
  font-size: 18px;
  font-family: var(--font-serif);
}

.hero__image-wrap {
  position: relative;
}

.hero__image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px -20px 20px -20px;
  background: var(--linen);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.hero__badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  max-width: 200px;
}

.hero__badge-text {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.hero__badge-val {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
}

.for-whom__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.for-whom__card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}

.for-whom__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.for-whom__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.for-whom__card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--brown);
  margin-bottom: 10px;
}

.for-whom__card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.skill-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.skill-item__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  margin-top: 2px;
}

.skill-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.skills__image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.skills__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.format__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.format__card {
  text-align: center;
  padding: 32px 20px;
}

.format__card-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.format__card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--brown);
  margin-bottom: 8px;
}

.format__card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.program__list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.program__module {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s;
}

.program__module:hover {
  box-shadow: var(--shadow-sm);
}

.program__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}

.program__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--linen);
  color: var(--terracotta);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
}

.program__title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--brown);
}

.program__arrow {
  font-size: 18px;
  color: var(--sand);
  transition: transform .25s;
  flex-shrink: 0;
}

.program__module.open .program__arrow {
  transform: rotate(180deg);
}

.program__body {
  display: none;
  padding: 0 24px 20px 76px;
}

.program__module.open .program__body {
  display: block;
}

.program__body ul {
  list-style: disc;
  padding-left: 20px;
}

.program__body li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 6px;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--terracotta);
}

.result-card__num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--linen);
  line-height: 1;
  margin-bottom: 8px;
}

.result-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 8px;
}

.result-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.author__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: center;
}

.author__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}

.author__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.author__name {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--brown);
  margin-bottom: 16px;
}

.author__bio {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 28px;
}

.author__facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.author__fact strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 4px;
}

.author__fact span {
  font-size: 13px;
  color: var(--text-light);
}

.faq__list {
  margin-top: 48px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--white);
}

.faq__q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.4;
}

.faq__q:hover { color: var(--terracotta); }

.faq__icon {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--sand);
  transition: transform .25s;
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__a {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq__item.open .faq__a {
  display: block;
}

.lead-form {
  background: var(--brown);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.lead-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="20" fill="none" stroke="%23ffffff08" stroke-width="1"/></svg>') repeat;
  pointer-events: none;
}

.lead-form__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.lead-form .section-label {
  color: var(--sand);
}

.lead-form .section-title {
  color: var(--white);
}

.lead-form .section-sub {
  color: rgba(255,255,255,.65);
  margin: 0 auto 36px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}

.form-group input,
.form-group select {
  padding: 13px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .2s, background .2s;
}

.form-group input::placeholder { color: rgba(255,255,255,.35); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--sand);
  background: rgba(255,255,255,.12);
}

.form-group select {
  appearance: none;
}

.form-group select option {
  background: var(--brown);
  color: var(--white);
}

.form__note {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  margin-top: 4px;
}

.form__note a {
  color: var(--sand);
  text-decoration: underline;
}

.footer {
  background: var(--linen);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.footer__brand span { color: var(--terracotta); }

.footer__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__col-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--brown);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-light);
  transition: color .2s;
}

.footer__links a:hover { color: var(--terracotta); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer__legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__legal-links a {
  font-size: 12px;
  color: var(--text-light);
  transition: color .2s;
}

.footer__legal-links a:hover { color: var(--terracotta); }

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--brown);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(0);
  transition: transform .4s, opacity .4s;
}

.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
}

.cookie-banner__text a {
  color: var(--sand);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.cookie-btn-accept:hover { background: var(--terracotta-hover); }

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.success-card {
  max-width: 520px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: block;
}

.success-card h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--brown);
  margin-bottom: 16px;
}

.success-card p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.legal-page {
  padding: 80px 0;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--brown);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--brown);
  margin: 32px 0 12px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 6px;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__image-wrap { order: -1; }

  .hero__image-wrap::before { display: none; }

  .for-whom__grid,
  .results__grid {
    grid-template-columns: 1fr 1fr;
  }

  .format__cards {
    grid-template-columns: 1fr 1fr;
  }

  .skills__inner {
    grid-template-columns: 1fr;
  }

  .skills__image-wrap {
    aspect-ratio: 16/7;
  }

  .author__inner {
    grid-template-columns: 1fr;
  }

  .author__image-wrap {
    aspect-ratio: 4/3;
    max-width: 360px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root { --section-py: 56px; }

  .header__nav { display: none; }
  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 16px;
    z-index: 100;
  }

  .burger { display: flex; }

  .hero { padding: 48px 0 0; }
  .hero__badge { display: none; }

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

  .for-whom__grid,
  .results__grid,
  .format__cards {
    grid-template-columns: 1fr;
  }

  .skills__grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }

  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__actions { width: 100%; justify-content: flex-end; }

  .footer__bottom { flex-direction: column; }
}
