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

:root {
  --primary: #A35E45;
  --primary-dark: #e3a28a;
  --primary-light: #df9d86;
  --secondary: #8B7E74;
  --accent: #C4956A;
  --accent-light: #D4B08C;
  --bg: #FAF7F2;
  --bg-alt: #F3F0EA;
  --bg-card: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-muted: #8E8E8E;
  --border: #E8E2D8;
  --shadow: 0 4px 24px rgba(91, 123, 111, 0.08);
  --shadow-hover: 0 8px 40px rgba(91, 123, 111, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --container: 1200px;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

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

ul { list-style: none; }

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

.section {
  padding: 100px 0;
}

.section__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section__header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__desc {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 4px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 123, 111, 0.3);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 16px;
}

.btn--messenger {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.btn--messenger:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

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

.header__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 1px;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--messenger {
  display: none;
}

.nav__close {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.header__messenger:hover {
  background: var(--primary);
}

.header__messenger img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.header__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

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

.hero__content {
  max-width: 560px;
}

.hero__subtitle {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(91, 123, 111, 0.14), rgba(196, 149, 106, 0.14));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
}

.hero__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(91, 123, 111, 0.12), transparent 60%);
  z-index: 0;
}

.hero__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Intro ===== */
.intro {
  background: var(--bg-alt);
}

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

.intro__desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
}

.intro__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Formats ===== */
.formats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.format-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.format-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.format-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(91, 123, 111, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.format-card:hover .format-card__icon {
  background: var(--primary);
  color: #fff;
}

.format-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.format-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
}

/* ===== Approach ===== */
.approach {
  background: var(--bg-alt);
}

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

.approach__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
}

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

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

.approach__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.approach__item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.approach__quote {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.approach__quote p {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
}

.approach__quote footer {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

/* ===== Help ===== */
.help {
  background: var(--bg-card);
}

.help__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.help__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.help__tagline {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 16px;
}

.help .btn,
.help__actions {
  margin-top: 8px;
}

.help__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Topics ===== */
.topics {
  background: var(--bg-alt);
}

.topics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.topic-card__icon {
  fill: var(--primary);
  font-size: 28px;
  display: block;
  margin-bottom: 14px;
}

.topic-card__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.topic-card__title {
  font-size: 16px;  
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* ===== Intensive ===== */
.intensive {
  background: var(--bg-card);
}

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

.intensive__content {
  max-width: 560px;
}

.intensive__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.intensive__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 28px;
}

.intensive__heading {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
}

.intensive__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intensive__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-light);
}

.intensive__list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.intensive__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin-top: 20px;
}

.intensive__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ===== FAQ ===== */
.faq {
  background: var(--bg);
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item:hover {
  border-color: var(--primary-light);
}

.faq__item[open] {
  box-shadow: var(--shadow);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 24px 20px;
}

.faq__answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ===== About / Timeline ===== */
.about {
  background: var(--bg-card);
}

.about__intro {
  max-width: 640px;
  margin-bottom: 56px;
}

.about__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.timeline {
  position: relative;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 44px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-card);
}

.timeline__year {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
}

/* ===== CTA ===== */
.cta {
  background: var(--bg-alt);
}

.cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.cta__desc {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 36px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__actions img:hover{
  transform: translateY(-4px);
}


/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

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

.footer__link {
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.footer__link:hover {
  color: #fff;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact {
  font-size: 14px;
  transition: var(--transition);
}

.footer__contact:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* ===== Nav overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__visual {
    display: flex;
    width: 100%;
  }

  .formats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro__stats {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .intensive__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intensive__content {
    margin: 0 auto;
  }

  .hero__actions,
  .help__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 32px 32px;
    z-index: 99;
    transition: right 0.35s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.06);
  }

  .header__nav.open {
    right: 0;
  }

  .nav__link {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after { display: none; }

  .nav__link--messenger {
    display: flex;
    color: var(--primary);
    font-weight: 600;
    border-bottom: none;
  }

  .nav__close {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
  }

  .header__burger {
    display: flex;
  }

  .header__messenger {
    display: none;
  }

  .formats__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .intro__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .stat__num {
    font-size: 32px;
  }

  .cta__title {
    font-size: 28px;
  }

  .cta__actions {
    flex-direction: column;
  }

  .btn--large {
    width: 100%;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .footer__links,
  .footer__contacts {
    align-items: center;
  }

  .timeline__item {
    padding-left: 28px;
  }

  .approach__quote p {
    font-size: 18px;
  }

  .section__header {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .hero__photo {
    max-width: 300px;
  }

  .intro__stats {
    gap: 8px;
  }

  .stat__num {
    font-size: 28px;
  }

  .format-card {
    padding: 28px 20px;
  }
}
