/* ============================================================
   Rugknit — Styles
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FAF7F2;
  --bg-card: #F4EDE4;
  --bg-dark: #2C1A0E;
  --primary: #8B4513;
  --primary-hover: #7A3C10;
  --accent: #C4703A;
  --text: #2C1A0E;
  --text-muted: #6B5040;
  --border: #E8DDD0;
  --white: #FFFFFF;
  --cream: #FDF9F5;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
  --shadow-md: 0 4px 24px rgba(44, 26, 14, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}

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

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

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */

.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);
}

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

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

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

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  color: var(--white) !important;
  text-decoration: none !important;
}

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: var(--bg);
}

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

.mobile-nav a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 72px 0 80px;
  background: var(--bg);
  overflow: hidden;
}

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

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F4EDE4;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: #F4EDE4;
  color: var(--text);
  text-decoration: none;
}

.hero-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

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

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

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
}

.hero-image-badge strong {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.hero-image-badge span {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--white);
}

.section-dark .text-muted {
  color: rgba(255,255,255,0.65);
}

.section-tinted {
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   FOR WHOM
   ============================================================ */

.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.for-whom-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.for-whom-card:hover {
  box-shadow: var(--shadow);
  border-color: #D4C4B4;
}

.for-whom-icon {
  width: 44px;
  height: 44px;
  background: #F4EDE4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.for-whom-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.for-whom-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   WHAT YOU LEARN
   ============================================================ */

.learn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.learn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
}

.learn-check {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.learn-check::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

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

/* ============================================================
   FORMAT
   ============================================================ */

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

.format-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.format-icon {
  width: 56px;
  height: 56px;
  background: rgba(196, 112, 58, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
}

.format-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.format-card p {
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.55;
}

/* ============================================================
   PROGRAM
   ============================================================ */

.program-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.program-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.program-item:last-child {
  border-bottom: none;
}

.program-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Playfair Display', serif;
}

.program-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.program-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   LEAD FORM
   ============================================================ */

.form-section {
  background: linear-gradient(135deg, #8B4513 0%, #C4703A 100%);
  padding: 80px 0;
}

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

.form-intro h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.form-intro p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 24px;
}

.form-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

.form-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.form-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: #C0B0A0;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.form-note a {
  color: var(--primary);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

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

.faq-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s, background 0.2s;
}

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

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

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   RESULT GRID
   ============================================================ */

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-dark);
  padding: 56px 0 32px;
}

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

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

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 300px;
}

.footer-requisites {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
  text-decoration: none;
}

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

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
}

.cookie-banner a {
  color: var(--accent);
}

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

.btn-cookie-accept {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie-decline:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.success-card h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.success-card p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-header {
  background: var(--bg-card);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

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

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .hero-title {
    font-size: 36px;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .learn-image {
    order: -1;
  }

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

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

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

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 28px;
  }

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

  .hero-title {
    font-size: 30px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-image-badge {
    display: none;
  }

  .form-intro h2 {
    font-size: 28px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}
