/* FabricNest — основные стили */

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --sand: #e8dcc8;
  --terracotta: #c4704a;
  --terracotta-dark: #a85a37;
  --terracotta-light: #d98a67;
  --sage: #7a9e87;
  --sage-dark: #5f7f6c;
  --bark: #3d2b1f;
  --bark-light: #6b4c3b;
  --text-main: #2e1f14;
  --text-muted: #7a6555;
  --text-light: #a8937f;
  --border: #ddd0bc;
  --shadow: rgba(61, 43, 31, 0.1);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--bark);
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section--dark {
  background: var(--bark);
  color: var(--cream);
}

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196, 112, 74, 0.3);
}

.btn--primary:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(196, 112, 74, 0.4);
}

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

.btn--outline:hover {
  background: var(--terracotta);
  color: #fff;
}

.btn--lg {
  padding: 18px 44px;
  font-size: 1.1rem;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--bark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.header-cta {
  font-size: 0.95rem;
}

/* ── Hero ── */
.hero {
  background: var(--cream);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.hero-eyebrow {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--bark-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(61, 43, 31, 0.18);
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ── Benefits ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.benefit-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.benefit-card:hover {
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateY(-2px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Program ── */
.program-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.program-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.program-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

.program-item-body h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--bark);
}

.program-item-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Results ── */
.results-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.results-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.results-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.results-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.result-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  margin-top: 2px;
}

.results-list li span {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bark-light);
}

/* ── For Whom ── */
.whom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.whom-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.whom-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.whom-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--cream);
}

.whom-card p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.55;
}

/* ── Process Steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 0 0 36px 0;
  position: relative;
}

.step-dot {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: var(--cream);
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta);
  z-index: 1;
  position: relative;
}

.step-body h3 {
  margin-bottom: 6px;
  padding-top: 14px;
}

.step-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Materials ── */
.materials-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.materials-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

.materials-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.materials-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--bark-light);
}

.materials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.materials-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.materials-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-list {
  max-width: 740px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm-white);
}

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

.faq-question:hover {
  background: var(--cream);
}

.faq-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  transition: transform var(--transition);
  font-size: 1.1rem;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

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

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

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

/* ── Lead Form ── */
.form-section {
  background: linear-gradient(135deg, var(--bark) 0%, var(--bark-light) 100%);
  color: var(--cream);
}

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

.form-wrap h2 {
  color: var(--cream);
  margin-bottom: 12px;
}

.form-subtitle {
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.lead-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.85);
}

.form-group input,
.form-group select {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: rgba(245, 240, 232, 0.4);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--terracotta-light);
  background: rgba(255,255,255,0.12);
}

.form-group select option {
  background: var(--bark);
  color: var(--cream);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.form-consent a {
  color: rgba(245, 240, 232, 0.8);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--terracotta);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-body);
  box-shadow: 0 2px 12px rgba(196, 112, 74, 0.4);
}

.form-submit:hover {
  background: var(--terracotta-light);
  transform: translateY(-1px);
}

/* ── Footer ── */
.site-footer {
  background: var(--bark);
  color: rgba(245, 240, 232, 0.65);
  padding: 48px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.45);
  margin-bottom: 14px;
}

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

.footer-col ul li a {
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-company {
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.78rem;
  text-align: right;
}

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bark);
  color: var(--cream);
  padding: 20px 24px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.55;
  min-width: 200px;
}

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

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

.cookie-accept {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-body);
}

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

.cookie-decline {
  background: transparent;
  color: rgba(245,240,232,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: var(--font-body);
}

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

/* ── Section heading alignment ── */
.section-heading {
  text-align: center;
}

.section-heading .section-label {
  display: block;
  text-align: center;
}

/* ── Legal pages ── */
.legal-page {
  padding: 60px 0 80px;
}

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

.legal-content h2:first-of-type {
  border-top: none;
  margin-top: 32px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--bark-light);
  line-height: 1.75;
  margin-bottom: 10px;
}

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

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

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--terracotta);
}

/* ── Success page ── */
.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.success-card {
  text-align: center;
  max-width: 520px;
  padding: 56px 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px var(--shadow);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  color: #fff;
}

.success-card h1 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

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

.success-card .btn {
  margin-top: 28px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 36px;
  }

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

  .hero-note {
    text-align: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .program-list {
    grid-template-columns: 1fr;
  }

  .results-wrap,
  .materials-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

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

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

  .container {
    padding: 0 16px;
  }

  .hero-image img {
    height: 260px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer-copy {
    text-align: left;
  }

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

  .btn--lg {
    padding: 15px 28px;
    font-size: 1rem;
  }
}
