/* ===========================
   Coreon — Стили сайта
   =========================== */

/* --- Сброс и базовые настройки --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-primary: #7a5c8c;
  --color-primary-light: #9b7ab5;
  --color-primary-dark: #5e4270;
  --color-accent: #d4a574;
  --color-accent-light: #e8c89a;
  --color-text: #2d2630;
  --color-text-muted: #6b5f72;
  --color-text-light: #9a8fa0;
  --color-border: #e8e0ec;
  --color-success: #5a8a6a;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(122, 92, 140, 0.08);
  --shadow-md: 0 4px 24px rgba(122, 92, 140, 0.12);
  --shadow-lg: 0 8px 40px rgba(122, 92, 140, 0.16);
  --transition: 0.25s ease;
  --max-width: 1160px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--color-primary-dark);
}

/* --- Типографика --- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: normal;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

/* --- Кнопки --- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(122, 92, 140, 0.28);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(122, 92, 140, 0.36);
}

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

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

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.btn-accent:hover {
  background-color: #c4935e;
  color: var(--color-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.4);
}

/* --- Шапка (header) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  background-color: var(--color-primary);
  color: white !important;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.nav-cta:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero секция --- */
.hero {
  padding-top: 100px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 60px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(212, 165, 116, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-title {
  margin-bottom: 24px;
  color: var(--color-text);
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.hero-note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 16px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: 32px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-badge-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-badge-text span {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* --- Секция "Что вы научитесь" --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Карточки навыков --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Как проходит обучение --- */
.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.steps-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(122, 92, 140, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
}

.step-content h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: bold;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

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

.audience-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-left: 4px solid var(--color-primary-light);
  transition: transform var(--transition);
}

.audience-card:hover {
  transform: translateX(4px);
}

.audience-card h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

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

.result-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.result-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.result-card-body {
  background: var(--color-surface);
  padding: 16px 18px;
}

.result-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- О бренде --- */
.brand-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.brand-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.brand-content .section-label {
  text-align: left;
}

.brand-content h2 {
  margin-bottom: 20px;
}

.brand-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.brand-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.brand-value {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(122, 92, 140, 0.1);
  color: var(--color-primary);
  font-weight: 500;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition);
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(122, 92, 140, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition), background var(--transition);
  font-style: normal;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Лид-форма --- */
.form-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 80px 0;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-wrapper h2 {
  color: white;
  margin-bottom: 12px;
}

.form-wrapper > p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  font-size: 1rem;
}

.lead-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: left;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 92, 140, 0.12);
}

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

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

.form-note {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 14px;
}

/* --- CTA блок --- */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

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

.footer-legal {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* --- Cookie-баннер --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
}

.cookie-banner.visible {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-accept {
  flex: 1;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}

.cookie-accept:hover {
  background: var(--color-primary-dark);
}

.cookie-decline {
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-decline:hover {
  border-color: var(--color-text-muted);
}

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

.success-inner {
  max-width: 520px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  line-height: 1;
}

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

.success-inner p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

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

.legal-content h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.legal-date {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-content li {
  margin-bottom: 6px;
}

/* --- Адаптивность --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
    gap: 40px;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image-wrapper img {
    aspect-ratio: 16/9;
  }

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

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

  .steps-layout,
  .brand-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
  }

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

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--color-text);
  }

  .nav-cta {
    display: block;
    text-align: center;
    padding: 14px 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .lead-form {
    padding: 28px 20px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
  }

  .section {
    padding: 56px 0;
  }
}
