/* =============================================
   BODYON — Онлайн-курсы лепки из глины
   Версия: 1.0
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables (Earth / Clay Palette) --- */
:root {
  --bg:           hsl(40, 33%, 96%);   /* creamy white */
  --fg:           hsl(24, 20%, 20%);   /* dark warm brown */
  --card:         hsl(35, 25%, 94%);   /* soft clay */
  --card-border:  hsl(35, 25%, 85%);   /* warm border */
  --primary:      hsl(15, 40%, 50%);   /* terracotta */
  --primary-fg:   hsl(40, 33%, 96%);   /* creamy on primary */
  --secondary:    hsl(120, 15%, 65%);  /* muted sage */
  --muted:        hsl(35, 25%, 90%);   /* sand */
  --muted-fg:     hsl(24, 15%, 45%);   /* medium warm brown */
  --border:       hsl(35, 25%, 85%);
  --radius-sm:    0.5rem;
  --radius-md:    1rem;
  --radius-lg:    2rem;
  --serif:        'Lora', Georgia, serif;
  --sans:         'Inter', system-ui, sans-serif;
  --shadow:       0 4px 24px hsla(24, 20%, 20%, 0.08);
  --shadow-lg:    0 8px 40px hsla(24, 20%, 20%, 0.14);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--fg);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--muted-fg); }

/* --- Layout utilities --- */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 6rem; }

.section--card {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--muted { background-color: hsla(120, 15%, 65%, 0.1); }

.section--primary {
  background-color: var(--primary);
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
}

.section--primary p { color: hsla(40, 33%, 96%, 0.8); }

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 4rem; }
}

/* --- Fade-in on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ======================
   NAVBAR
   ====================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsla(40, 33%, 96%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.navbar__nav {
  display: flex;
  gap: 2rem;
}

.navbar__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.navbar__nav a:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 14px hsla(15, 40%, 50%, 0.25);
}

.btn--primary:hover {
  background-color: hsl(15, 40%, 44%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px hsla(15, 40%, 50%, 0.3);
}

.btn--outline {
  background-color: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}

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

.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }

.btn--on-primary {
  background-color: var(--primary-fg);
  color: var(--primary);
}

.btn--on-primary:hover { background-color: hsl(40, 33%, 90%); }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

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

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }

  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

/* ======================
   HERO
   ====================== */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background-color: hsla(120, 15%, 65%, 0.2);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__heading { margin-bottom: 1.5rem; }

.hero__heading em {
  color: var(--primary);
  font-style: italic;
  font-family: var(--serif);
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero__image-wrap:hover img { transform: scale(1.04); }

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(24,20%,10%,0.45) 0%, transparent 60%);
}

.hero__quote {
  position: absolute;
  bottom: -1.5rem;
  left: -2rem;
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 20rem;
  z-index: 2;
}

.hero__quote p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.5;
}

.hero__quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  font-style: normal;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__image-wrap { aspect-ratio: 4/3; }
  .hero__quote { left: 0; bottom: -1rem; }
  .hero { padding-bottom: 4rem; }
}

/* ======================
   FOR WHOM
   ====================== */
.for-whom__header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.for-whom__header h2 { margin-bottom: 1rem; }

.for-whom__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s;
}

.for-whom__card:hover { border-color: hsla(15, 40%, 50%, 0.4); }

.for-whom__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: hsla(15, 40%, 50%, 0.1);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.for-whom__card h3 { margin-bottom: 0.75rem; color: var(--fg); }

/* ======================
   FORMAT
   ====================== */
.format__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

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

.format__list { margin-top: 1rem; }

.format__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.format__check {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: hsla(15, 40%, 50%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 0.1rem;
}

.format__item h3 { margin-bottom: 0.3rem; font-size: 1rem; color: var(--fg); }

.format__item p { font-size: 0.875rem; }

/* ======================
   WHAT YOU NEED
   ====================== */
.needs__header {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.needs__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.needs__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsla(120, 15%, 65%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 1rem;
}

.needs__card h3 { margin-bottom: 0.5rem; font-size: 1rem; color: var(--fg); }

.needs__card p { font-size: 0.875rem; }

/* ======================
   BENEFITS
   ====================== */
.benefits__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefits__img-1 {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  margin-top: 2rem;
}

.benefits__img-2 {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.benefits__img-1 img,
.benefits__img-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits__quote-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.benefits__quote-box p {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted-fg);
}

.benefits__list {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.benefits__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

.benefits__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ======================
   FAQ
   ====================== */
.faq__header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq__header p { margin-top: 0.75rem; }

.faq__list { max-width: 46rem; margin-inline: auto; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s;
}

.faq__question:hover { color: var(--primary); }

.faq__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

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

.faq__answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--muted-fg);
  line-height: 1.7;
  font-size: 0.9375rem;
}

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

/* ======================
   LEAD FORM / CTA
   ====================== */
.cta__decor-1,
.cta__decor-2 {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}

.cta__decor-1 {
  width: 600px;
  height: 600px;
  background: hsla(40, 33%, 96%, 0.06);
  top: -30%;
  right: -10%;
}

.cta__decor-2 {
  width: 400px;
  height: 400px;
  background: hsla(24, 20%, 10%, 0.12);
  bottom: -20%;
  left: -5%;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta__heading {
  color: var(--primary-fg);
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta__perks { margin-top: 2rem; }

.cta__perk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.cta__perk-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--primary-fg);
  flex-shrink: 0;
}

.cta__perk span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsla(40, 33%, 96%, 0.9);
}

.form-card {
  background: var(--primary-fg);
  border-radius: 1.5rem;
  padding: 2.25rem;
  box-shadow: 0 20px 60px hsla(24,20%,10%,0.25);
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.form-card .form-subtitle {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(15, 40%, 50%, 0.15);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-error {
  display: none;
  font-size: 0.8rem;
  color: hsl(0, 60%, 50%);
  margin-top: 0.3rem;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: hsl(0, 60%, 50%);
}

.form-group.has-error .form-error { display: block; }

.form-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.form-consent {
  font-size: 0.775rem;
  color: var(--muted-fg);
  margin-top: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.form-consent a {
  color: var(--primary);
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success__icon {
  width: 4rem;
  height: 4rem;
  background: hsla(15, 40%, 50%, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.form-success h3 { margin-bottom: 0.75rem; color: var(--fg); }

.form-success p { font-size: 0.9375rem; }

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

/* ======================
   FOOTER
   ====================== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-block: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  display: block;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 18rem;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer__col p,
.footer__col a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  display: block;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--fg); }

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsla(35, 25%, 85%, 0.5);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-fg);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ======================
   COOKIE BANNER
   ====================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--fg);
  color: var(--primary-fg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 24px hsla(24,20%,10%,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p {
  font-size: 0.875rem;
  color: hsla(40, 33%, 96%, 0.85);
  flex: 1;
}

.cookie-banner a { color: var(--primary-fg); text-decoration: underline; }

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 0.6rem 1.5rem;
  background: var(--primary-fg);
  color: var(--fg);
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s;
}

.cookie-banner__btn:hover { background: hsl(40, 33%, 90%); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ======================
   LEGAL PAGES
   ====================== */
.legal-main {
  padding-top: 8rem;
  padding-bottom: 5rem;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.legal-main h1 { margin-bottom: 0.5rem; }

.legal-date {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 2.5rem;
  display: block;
}

.legal-body h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-weight: 600;
}

.legal-body p { margin-bottom: 1rem; line-height: 1.75; }

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ul li {
  margin-bottom: 0.4rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ======================
   SUCCESS PAGE
   ====================== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  background: hsla(15, 40%, 50%, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.success-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.success-page p { max-width: 26rem; margin-inline: auto; margin-bottom: 2rem; }

/* ======================
   SVG ICONS (inline)
   ====================== */
svg { display: inline-block; }

/* ======================
   SECTION HEADINGS
   ====================== */
.section-heading {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ======================
   NOT FOUND (minimal)
   ====================== */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}
