/* CozyNorth — Основные стили */

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

:root {
  --green: #2E5E4E;
  --green-light: #3D7A65;
  --sand: #C4956A;
  --sand-light: #D9AA84;
  --cream: #FAF7F2;
  --cream-mid: #F0EBE3;
  --cream-dark: #E4DDD4;
  --text: #2C2C2C;
  --text-mid: #5A5450;
  --text-light: #8A837C;
  --white: #FFFFFF;
  --shadow: 0 2px 16px rgba(44,44,44,0.08);
  --shadow-lg: 0 8px 40px rgba(44,44,44,0.12);
  --radius: 12px;
  --radius-sm: 6px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-light);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Кнопки ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(46,94,78,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.btn-sand {
  background: var(--sand);
  color: var(--white);
}

.btn-sand:hover {
  background: var(--sand-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196,149,106,0.3);
}

/* ── Шапка ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.logo__text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo__text span {
  color: var(--green);
}

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

.nav a {
  font-size: 0.9rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--green);
}

.header__cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Герой ── */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}

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

.hero__badge {
  display: inline-block;
  background: var(--cream-mid);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid var(--cream-dark);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

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

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
}

.hero__image-wrap {
  position: relative;
}

.hero__image-wrap img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.hero__stats {
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.hero__stat-item {
  text-align: center;
}

.hero__stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  line-height: 1.2;
}

.hero__stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  display: block;
}

/* ── Секция ── */
.section {
  padding: 80px 0;
}

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

.section--dark {
  background: var(--green);
  color: var(--white);
}

.section__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}

.section--dark .section__tag {
  color: rgba(255,255,255,0.6);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section__sub {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section--dark .section__sub {
  color: rgba(255,255,255,0.75);
}

/* ── Для кого ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--cream-dark);
  transition: box-shadow 0.2s, transform 0.2s;
}

.audience-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.audience-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.audience-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.audience-card__text {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── О курсе ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about__check {
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about__list-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.about__list-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── Программа ── */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.program-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}

.program-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.program-item__header:hover {
  background: var(--cream);
}

.program-item__num {
  width: 32px;
  height: 32px;
  background: var(--cream-mid);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.program-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
}

.program-item__arrow {
  color: var(--text-light);
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.program-item.is-open .program-item__arrow {
  transform: rotate(180deg);
}

.program-item__body {
  display: none;
  padding: 0 24px 20px 72px;
}

.program-item.is-open .program-item__body {
  display: block;
}

.program-item__body p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Преподаватель ── */
.teacher-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

.teacher__photo {
  position: relative;
}

.teacher__photo img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.teacher__name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.teacher__role {
  font-size: 0.875rem;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 20px;
}

.teacher__bio {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

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

.teacher__fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-mid);
}

.teacher__fact::before {
  content: "—";
  color: var(--sand);
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Отзывы ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card__stars {
  color: var(--sand);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.review-card__city {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
  transition: background 0.2s;
}

.faq-item__question:hover {
  background: var(--cream);
}

.faq-item__q-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item__indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.faq-item.is-open .faq-item__indicator {
  background: var(--green);
  color: white;
  transform: rotate(45deg);
}

.faq-item__answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

/* ── Форма ── */
.form-section {
  background: var(--green);
  padding: 80px 0;
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.form-section__heading {
  color: var(--white);
}

.form-section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}

.form-section__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.form-section__perks {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-section__perks li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section__perks li::before {
  content: "✓";
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}

.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.lead-form__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,94,78,0.1);
  background: var(--white);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  margin-top: 8px;
  border-radius: var(--radius-sm);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

.form-note a {
  color: var(--text-light);
  text-decoration: underline;
}

/* ── Формат ── */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.format-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--white);
}

.format-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.format-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.format-card__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ── Футер ── */
.footer {
  background: #1E1E1B;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

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

.footer__brand .logo__text {
  color: var(--white);
}

.footer__brand .logo__text span {
  color: rgba(255,255,255,0.5);
}

.footer__desc {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 12px;
  color: rgba(255,255,255,0.45);
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.7;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: rgba(255,255,255,0.9);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 560px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: slideUp 0.3s ease;
}

.cookie-banner.is-hidden {
  display: none;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.55;
}

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

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner__accept {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.cookie-banner__close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  align-self: flex-start;
}

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

/* ── Адаптивность ── */
@media (max-width: 900px) {
  .hero__inner,
  .about-grid,
  .form-section__inner,
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .hero__image-wrap {
    order: -1;
  }

  .hero__stats {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 16px;
  }

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

  .teacher__photo img {
    max-width: 280px;
  }

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

@media (max-width: 600px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--cream-dark);
    gap: 16px;
    align-items: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header__inner {
    position: relative;
  }

  .section {
    padding: 56px 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .program-item__body {
    padding-left: 24px;
  }

  .lead-form {
    padding: 24px;
  }

  .cookie-banner {
    flex-direction: column;
  }

  .cookie-banner__actions {
    flex-direction: row;
    width: 100%;
  }
}

/* ── Страница успеха ── */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: white;
}

.success-page h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.success-page p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Юридические страницы ── */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.legal-page .updated {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 6px;
}
