/* =============================================
   CALLIRA — Онлайн-курсы каллиграфии
   Основные стили
   ============================================= */

/* --- Шрифты --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS переменные --- */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EDE5;
  --bg-dark: #1E1713;
  --text: #1A1510;
  --text-muted: #7A6E64;
  --text-light: #B0A496;
  --primary: #3D2B1F;
  --primary-hover: #2A1D14;
  --accent: #C4956A;
  --accent-light: #E8D5BC;
  --border: #D9D0C5;
  --border-light: #EDE8E1;
  --white: #FFFFFF;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
  --shadow: 0 4px 16px rgba(61, 43, 31, 0.10);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.14);

  --max-w: 1160px;
  --section-gap: 100px;
}

/* --- Сброс --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* --- Типографика --- */
.serif { font-family: var(--font-serif); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.15rem; }

p { color: var(--text); }

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Кнопки --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}
.btn-light:hover {
  background: var(--bg-alt);
}

/* --- Шапка / Навигация --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent);
}

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

.nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--primary);
}

.header-cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a:last-child { border-bottom: none; }

/* --- Герой --- */
.hero {
  padding: 80px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

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

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 20px;
  font-style: italic;
}

.hero-title strong {
  font-style: normal;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16/10;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.hero-badge-icon {
  font-size: 1.4rem;
}

.hero-badge-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--primary);
}
.hero-badge-text span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* --- Секции --- */
section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* --- Для кого --- */
.for-whom {
  background: var(--bg-alt);
}

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

.for-whom-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.for-whom-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.for-whom-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.for-whom-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.for-whom-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Формат --- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.format-item {
  display: flex;
  gap: 16px;
}

.format-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.format-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.format-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Программа --- */
.curriculum {
  background: var(--bg-alt);
}

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

.curriculum-modules {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.module {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  cursor: pointer;
}

.module:last-child {
  border-bottom: 1px solid var(--border);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.module-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
}

.module-num {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.module-arrow {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform 0.2s;
}
.module.open .module-arrow {
  transform: rotate(90deg);
}

.module-body {
  display: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 12px;
  line-height: 1.7;
}
.module.open .module-body {
  display: block;
}

.curriculum-side {
  position: sticky;
  top: 100px;
}

.curriculum-side img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  width: 100%;
}

.curriculum-stat-row {
  display: flex;
  gap: 32px;
}

.curriculum-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.curriculum-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Результаты --- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.result-item {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.2s;
}
.result-item:hover {
  box-shadow: var(--shadow);
}

.result-marker {
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.result-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.result-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Преподаватель --- */
.instructor {
  background: var(--bg-dark);
  color: var(--white);
}

.instructor .section-label { color: var(--accent); }
.instructor .section-title { color: var(--white); }

.instructor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.instructor-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.instructor-text h2 {
  color: var(--white);
}

.instructor-bio {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 32px;
}

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

.instructor-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.fact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* --- Примеры работ --- */
.examples {
  background: var(--bg-alt);
}

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

.example-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.example-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.example-caption {
  padding: 16px 18px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Инструменты --- */
.tools-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tools-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.tools-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.tools-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tools-item h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}
.tools-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Отзывы --- */
.testimonials {
  background: var(--bg);
}

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

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

.testimonial-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-author-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--primary);
}
.testimonial-author-meta {
  font-size: 0.78rem;
  color: var(--text-light);
}

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

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.faq-question-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s;
}
.faq-item.open .faq-toggle {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 20px;
}
.faq-item.open .faq-answer {
  display: block;
}

/* --- Форма --- */
.lead-form {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0;
}

.lead-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.lead-form-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.lead-form-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 500;
}

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

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

.form-input,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B0A496' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  font-size: 0.9rem;
}

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

.form-privacy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error {
  font-size: 0.78rem;
  color: #C0392B;
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }

.form-input.invalid { border-color: #C0392B; }

/* --- CTA-полоса --- */
.cta-band {
  background: var(--accent-light);
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--primary);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* --- Футер --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal-info {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

/* --- Cookie баннер --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

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

.cookie-text {
  font-size: 0.83rem;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-btn {
  padding: 9px 20px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: none;
  transition: all 0.2s;
}

.cookie-accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-accept:hover { background: #b07d52; }

.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}
.cookie-decline:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

/* --- Страница успеха --- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.success-card {
  text-align: center;
  max-width: 480px;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

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

.success-card h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* --- Юридические страницы --- */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 80px;
}

.legal-hero {
  background: var(--bg-dark);
  padding: 64px 0;
  margin-bottom: 64px;
}

.legal-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.legal-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 24px 0 8px;
}

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

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

.legal-content ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-content .company-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
  .for-whom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .curriculum-side {
    position: static;
    display: flex;
    gap: 32px;
    align-items: flex-start;
  }

  .curriculum-side img {
    width: 280px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .curriculum-stat-row {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-badge {
    bottom: -14px;
    left: 14px;
  }

  .format-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lead-form-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }

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

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

  .for-whom-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-copy { text-align: left; }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .form-card { padding: 24px 20px; }

  .lead-form { padding: 56px 0; }

  .curriculum-side {
    flex-direction: column;
  }
  .curriculum-side img {
    width: 100%;
  }
}
