/* =========================================
   BRENLOKI — Курсы вязания детского пледа
   ========================================= */

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

:root {
  --cream: #faf7f2;
  --warm-white: #fffcf8;
  --blush: #f5e6d8;
  --blush-mid: #eecfb3;
  --terracotta: #c97b50;
  --terracotta-dark: #a85e35;
  --brown: #5c3d2e;
  --brown-light: #7a5343;
  --text: #2e1f14;
  --text-mid: #5c4030;
  --text-light: #8a6a58;
  --border: #e8d5c0;
  --border-light: #f0e4d4;
  --shadow: rgba(92, 61, 46, 0.08);
  --shadow-md: rgba(92, 61, 46, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1100px;
  --font: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-dark); }

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

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--brown);
  color: #f5e8dc;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
#cookie-banner.hidden { display: none; }
#cookie-banner p { flex: 1; }
#cookie-banner a { color: var(--blush-mid); text-decoration: underline; }
.cookie-btn {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn:hover { background: var(--terracotta-dark); }

/* --- Header / Nav --- */
header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: -0.3px;
}
.logo span { color: var(--terracotta); }
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--terracotta); }
.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--terracotta-dark) !important; color: #fff !important; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #fdf5ee 0%, #faf0e6 60%, #f8e8d4 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-label {
  display: inline-block;
  background: var(--blush);
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--blush-mid);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--brown);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--terracotta);
}
.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-mid);
}
.hero-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-md);
}
.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 14px;
  color: var(--brown);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-badge span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201, 123, 80, 0.35);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 123, 80, 0.4);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}
.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
}
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* --- Section Base --- */
section { padding: 80px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* --- Benefits --- */
.benefits { background: var(--warm-white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--blush);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}
.benefit-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* --- What you'll learn --- */
.learn { background: var(--cream); }
.learn-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.learn-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow-md);
  position: sticky;
  top: 90px;
}
.learn-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.modules { display: flex; flex-direction: column; gap: 16px; }
.module-card {
  display: flex;
  gap: 18px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.module-card:hover {
  border-color: var(--blush-mid);
  box-shadow: 0 4px 16px var(--shadow);
}
.module-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.module-card h3 { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.module-card p { font-size: 14px; color: var(--text-light); line-height: 1.55; }

/* --- Format --- */
.format { background: var(--blush); }
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.format-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  box-shadow: 0 2px 12px var(--shadow);
}
.format-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blush);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.format-card h3 { font-size: 17px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.format-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* --- Who it's for --- */
.for-whom { background: var(--warm-white); }
.for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.for-card {
  border-left: 3px solid var(--terracotta);
  padding: 20px 20px 20px 24px;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.for-card h3 { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.for-card p { font-size: 14px; color: var(--text-light); line-height: 1.55; }

/* --- Process --- */
.process { background: var(--cream); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-circle {
  width: 56px;
  height: 56px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(201, 123, 80, 0.3);
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); line-height: 1.55; }

/* --- Lead Form Section --- */
.lead-form-section { background: var(--blush); }
.lead-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.lead-form-text .section-title { margin-bottom: 20px; }
.lead-form-text p { font-size: 16px; color: var(--text-mid); line-height: 1.7; margin-bottom: 28px; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-mid);
}
.trust-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.form-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 40px var(--shadow-md);
}
.form-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 6px;
}
.form-card .form-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(201, 123, 80, 0.1);
}
.form-group input::placeholder { color: #bda899; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}
.form-check label {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}
.form-check a { color: var(--terracotta); }
.form-submit { width: 100%; }
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
}

/* --- FAQ --- */
.faq { background: var(--warm-white); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
  transition: background 0.2s;
}
.faq-q:hover { background: var(--warm-white); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--terracotta);
  transition: transform 0.2s, background 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--terracotta);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* --- Result Block --- */
.result-block { background: var(--blush); padding: 80px 0; }
.result-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.result-text p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.result-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px var(--shadow-md);
}
.result-img img { width: 100%; height: 420px; object-fit: cover; }

@media (max-width: 900px) {
  .result-inner { grid-template-columns: 1fr; }
  .result-img img { height: 300px; }
}

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--brown) 0%, #7a4a2e 100%);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--warm-white);
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 17px;
  color: rgba(255, 235, 215, 0.82);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.btn-light {
  background: var(--cream);
  color: var(--terracotta-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  color: var(--terracotta-dark);
}

/* --- Footer --- */
footer {
  background: var(--brown);
  color: rgba(255, 235, 215, 0.75);
  padding: 52px 0 32px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 14px; }
.footer-brand p { color: rgba(255, 235, 215, 0.65); line-height: 1.65; font-size: 14px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 235, 215, 0.5);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255, 235, 215, 0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(255, 235, 215, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255, 235, 215, 0.45); font-size: 13px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 235, 215, 0.45); font-size: 13px; }
.footer-legal a:hover { color: rgba(255, 235, 215, 0.8); }
.company-info { margin-top: 10px; }
.company-info p { font-size: 12px; color: rgba(255, 235, 215, 0.4); line-height: 1.6; }

/* --- Legal Pages --- */
.legal-page { padding: 64px 0 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--brown); margin-bottom: 8px; }
.legal-page .legal-date { font-size: 14px; color: var(--text-light); margin-bottom: 40px; }
.legal-content { max-width: 740px; }
.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin: 32px 0 12px;
}
.legal-content p, .legal-content li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--terracotta); }

/* --- Success Page --- */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.success-card {
  max-width: 520px;
}
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(201, 123, 80, 0.35);
  font-size: 36px;
}
.success-card h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 16px;
}
.success-card p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}
.success-card .success-steps {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 32px;
}
.success-steps h3 { font-size: 15px; font-weight: 700; color: var(--brown); margin-bottom: 12px; }
.success-steps li { font-size: 14px; color: var(--text-mid); margin-bottom: 8px; padding-left: 4px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-wrap { order: -1; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-inner { grid-template-columns: 1fr; }
  .learn-img { position: static; }
  .format-grid { grid-template-columns: 1fr; }
  .for-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .lead-form-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--warm-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 30px var(--shadow);
    gap: 16px;
  }
  .burger { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 28px 22px; }
}
