/* =============================================
   KERVANIX — Онлайн-курсы рисования маркерами
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0e0d0b;
  --bg-surface: #16140d;
  --bg-card: #1e1b11;
  --accent: #c8952c;
  --accent-dark: #a07420;
  --accent-rust: #b84d2a;
  --text: #f0ebe0;
  --text-muted: #8a8070;
  --text-dim: #5a5445;
  --border: #2a2618;
  --border-light: #3a3628;
  --radius: 4px;
  --radius-lg: 10px;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--text);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.accent-text { color: var(--accent); }
.muted { color: var(--text-muted); }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s;
}
.site-header.scrolled {
  background: rgba(14, 13, 11, 0.96);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.btn-nav {
  background: var(--accent);
  color: #0e0d0b !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
}
.btn-nav:hover {
  background: var(--accent-dark);
  color: #0e0d0b !important;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #0e0d0b;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #0e0d0b;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200, 149, 44, 0.3);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #0e0d0b;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14,13,11,0.98) 0%,
    rgba(14,13,11,0.85) 50%,
    rgba(14,13,11,0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-tag {
  display: inline-block;
  background: rgba(200, 149, 44, 0.12);
  border: 1px solid rgba(200, 149, 44, 0.3);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 120px;
}
section {
  padding: 96px 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin-bottom: 56px;
}
.for-whom {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-top: 48px;
}
.for-whom-item {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.for-whom-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.for-whom-item:hover::before {
  transform: scaleX(1);
}
.for-whom-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1;
}
.for-whom-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.for-whom-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.program-list {
  display: grid;
  gap: 2px;
  margin-top: 48px;
}
.program-item {
  background: var(--bg-card);
  padding: 28px 32px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  cursor: pointer;
  transition: background 0.2s;
}
.program-item:hover {
  background: #252011;
}
.program-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1;
  padding-top: 4px;
}
.program-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.program-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.format-card {
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.format-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.format-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200, 149, 44, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
}
.format-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: 10px;
}
.format-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.gallery-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/10;
}
.gallery-caption {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}
.objections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.objection-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.objection-card:hover {
  border-color: var(--border-light);
}
.objection-q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.objection-q::before {
  content: '—';
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
}
.objection-a {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  padding-left: 20px;
}
.faq-list {
  margin-top: 48px;
  display: grid;
  gap: 4px;
  max-width: 800px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 22px 28px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  transition: background 0.2s;
  user-select: none;
}
.faq-question:hover {
  background: #252011;
}
.faq-toggle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 0.875rem;
  color: var(--accent);
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #0e0d0b;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  background: var(--bg-card);
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 28px 22px;
}
.lead-section {
  background: linear-gradient(135deg, #16140d 0%, #0e0d0b 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.lead-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,44,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.lead-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lead-text h2 {
  margin-bottom: 20px;
}
.lead-text p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.75;
}
.lead-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
}
.lead-benefits li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.lead-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.lead-form-wrap h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}
.lead-form-wrap p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 149, 44, 0.12);
}
.form-field input::placeholder {
  color: var(--text-dim);
}
.form-field select {
  cursor: pointer;
  color: var(--text-dim);
}
.form-field select.filled {
  color: var(--text);
}
.form-submit {
  margin-top: 8px;
  width: 100%;
}
.form-legal {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}
.form-legal a {
  color: var(--text-dim);
  text-decoration: underline;
}
.form-error {
  font-size: 0.8125rem;
  color: #e06060;
  margin-top: 6px;
  display: none;
}
.form-field.has-error .form-error {
  display: block;
}
.form-field.has-error input {
  border-color: #e06060;
}
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--text);
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-company {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: right;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #1e1b11;
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-width: 260px;
}
.cookie-text a {
  color: var(--accent);
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.legal-page {
  padding-top: 100px;
}
.legal-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}
.legal-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}
.legal-header .back-link:hover {
  color: var(--text);
}
.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}
.legal-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.legal-content {
  padding: 56px 0 96px;
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  color: var(--text);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.legal-content ul li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.legal-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}
.legal-info-block p {
  margin: 0;
  font-size: 0.875rem;
}
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.success-inner {
  text-align: center;
  max-width: 520px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(200, 149, 44, 0.1);
  border: 1px solid rgba(200, 149, 44, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2rem;
}
.success-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}
.success-inner p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 36px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14,13,11,0.98);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 200;
  }
  .nav-links.open a {
    font-size: 1.25rem;
    color: var(--text);
  }
  .close-nav {
    position: fixed;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
  }
  .nav-links.open ~ .close-nav,
  .close-nav.visible {
    display: block;
  }
  .lead-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:first-child {
    grid-column: span 2;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero-stats {
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item:first-child {
    grid-column: span 1;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-copyright {
    text-align: left;
  }
  .lead-form-wrap {
    padding: 28px 20px;
  }
  .program-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .program-num {
    font-size: 1.5rem;
  }
  .for-whom-grid {
    grid-template-columns: 1fr;
  }
  .objections-grid {
    grid-template-columns: 1fr;
  }
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 380px) {
  .format-grid {
    grid-template-columns: 1fr;
  }
}
