/* ===== PORTRAITA — ГЛАВНЫЕ СТИЛИ ===== */

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

:root {
  --cream: #faf7f2;
  --cream-dark: #f2ede4;
  --warm-white: #fffcf8;
  --charcoal: #2c2825;
  --charcoal-light: #4a4540;
  --stone: #7a7168;
  --stone-light: #a89f94;
  --terracotta: #b85c38;
  --terracotta-dark: #9c4a2a;
  --terracotta-light: #f0cfc0;
  --border: #e0d8cc;
  --shadow-soft: 0 4px 24px rgba(44, 40, 37, 0.08);
  --shadow-card: 0 2px 12px rgba(44, 40, 37, 0.06);
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', 'Arial', sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1100px;
  --section-pad: 88px 20px;
}

html {
  scroll-behavior: smooth;
}

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

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

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

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: normal; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: normal; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--charcoal-light); }

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 36px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--terracotta);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 34px;
  border: 2px solid var(--terracotta);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--terracotta); }
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--terracotta); }

.nav-cta { display: block; }

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

/* ===== HERO ===== */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
}

.hero-content {
  padding: 60px 40px 60px 20px;
  max-width: 560px;
  margin-left: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--stone);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--stone-light);
}

.hero h1 {
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--stone);
  margin-bottom: 36px;
  max-width: 440px;
}

/* Hero form */
.hero-form {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.hero-form .form-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus {
  border-color: var(--terracotta);
  background: #fff;
}
.form-input::placeholder { color: var(--stone-light); }

.form-note {
  font-size: 0.78rem;
  color: var(--stone-light);
  margin-top: 12px;
  line-height: 1.5;
}
.form-note a { color: var(--stone); font-size: inherit; }

.hero-image {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 30%);
}

/* ===== ABOUT ===== */
.section-about {
  padding: var(--section-pad);
  background: var(--warm-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.about-text p + p { margin-top: 16px; }

.features-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--charcoal-light);
  font-size: 0.95rem;
}
.features-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--terracotta-light);
  border: 2px solid var(--terracotta);
  position: relative;
}
.features-list li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b85c38'%3E%3Cpath d='M3 8l4 4 6-6' stroke='%23b85c38' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  border: none;
  background-color: transparent;
}

/* ===== FOR WHOM ===== */
.section-forwhom {
  padding: var(--section-pad);
  background: var(--cream-dark);
}
.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.forwhom-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.forwhom-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.forwhom-card p {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.6;
}
.card-icon {
  width: 40px;
  height: 40px;
  background: var(--terracotta-light);
  border-radius: 50%;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ===== RESULTS ===== */
.section-results {
  padding: var(--section-pad);
  background: var(--warm-white);
}
.results-intro {
  max-width: 600px;
  margin-bottom: 48px;
}
.results-intro h2 { margin-bottom: 16px; }
.results-intro p { color: var(--stone); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.result-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.result-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.result-card-body {
  padding: 20px 22px;
}
.result-card-body p {
  font-size: 0.9rem;
  color: var(--stone);
}
.result-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  background: var(--terracotta-light);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ===== PROGRAM ===== */
.section-program {
  padding: var(--section-pad);
  background: var(--cream-dark);
}
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.program-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.program-step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.program-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: bold;
  position: relative;
  z-index: 1;
}
.step-content h4 {
  margin-bottom: 6px;
  padding-top: 8px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--stone);
}

.program-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 84px;
}
.program-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* ===== WHAT YOU GET ===== */
.section-outcomes {
  padding: var(--section-pad);
  background: var(--charcoal);
}
.section-outcomes .section-label { color: var(--terracotta-light); }
.section-outcomes h2 { color: #fff; }
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.outcome-item {
  padding: 28px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.outcome-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--terracotta-light);
  line-height: 1;
  margin-bottom: 12px;
}
.outcome-item h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1rem;
}
.outcome-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.section-faq {
  padding: var(--section-pad);
  background: var(--warm-white);
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.faq-text p {
  color: var(--stone);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 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;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--terracotta); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--terracotta);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::before {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 0 20px 0;
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ===== LEAD FORM SECTION ===== */
.section-leadform {
  padding: var(--section-pad);
  background: var(--cream-dark);
}
.leadform-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.leadform-inner h2 { margin-bottom: 12px; }
.leadform-inner > p {
  color: var(--stone);
  margin-bottom: 36px;
}
.leadform-box {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.leadform-box .form-row { margin-bottom: 14px; }
.leadform-box .btn-primary { width: 100%; text-align: center; padding: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 48px 20px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 32px;
}
.footer-brand .logo {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 260px;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-links-group h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links-group a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links-group a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-legal {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.3);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0);
  transition: transform 0.35s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-text {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 700px;
}
.cookie-text a { color: rgba(255,255,255,0.6); font-size: inherit; }
.cookie-text a:hover { color: #fff; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-accept {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-accept:hover { background: var(--terracotta-dark); }
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cookie-decline:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.4); }

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--cream);
}
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--terracotta-light);
  border-radius: 50%;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg { width: 32px; height: 32px; color: var(--terracotta); }
.success-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}
.success-page p {
  color: var(--stone);
  max-width: 420px;
  margin: 0 auto 32px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 120px 20px 80px;
  min-height: 100vh;
}
.legal-inner {
  max-width: 740px;
  margin: 0 auto;
}
.legal-inner h1 { margin-bottom: 8px; }
.legal-date {
  font-size: 0.85rem;
  color: var(--stone-light);
  margin-bottom: 40px;
}
.legal-inner h2 {
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-inner p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 14px;
  line-height: 1.75;
}
.legal-inner ul {
  margin: 12px 0 14px 20px;
  color: var(--charcoal-light);
  font-size: 0.9rem;
  line-height: 1.75;
}
.legal-inner a { color: var(--terracotta); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root { --section-pad: 64px 20px; }

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

  .mobile-menu {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--cream);
    z-index: 99;
    padding: 32px 20px;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-size: 1.1rem;
    color: var(--charcoal);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    height: 280px;
    order: -1;
  }
  .hero-image::after {
    background: linear-gradient(to bottom, transparent 60%, var(--cream) 100%);
  }
  .hero-content {
    padding: 40px 20px;
    max-width: 100%;
    margin-left: 0;
  }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .forwhom-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .program-image { display: none; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 28px; }

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

@media (max-width: 600px) {
  :root { --section-pad: 52px 16px; }
  .hero-form { padding: 20px; }
  .leadform-box { padding: 24px; }
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-accept, .cookie-decline { width: 100%; text-align: center; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
