/* ===== Thebenua — нежная палитра: коричневый / белый / оранжевый ===== */
:root {
  --bg:        #fdfaf6;   /* почти белый, тёплый */
  --surface:   #ffffff;
  --cream:     #f6ede2;   /* нежный бежевый */
  --cream-2:   #efe2d3;
  --brown:     #6b4a32;   /* мягкий коричневый текст */
  --brown-deep:#4a3221;
  --brown-soft:#9c7a5e;
  --orange:    #e08a3c;   /* мягкий оранжевый акцент */
  --orange-deep:#c8702a;
  --orange-soft:#f6c89a;
  --muted:     #9b8470;
  --line:      #ece0d2;
  --shadow:    0 18px 40px -20px rgba(107, 74, 50, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(107, 74, 50, 0.35);
  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1120px;
  --font:      'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--brown);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--brown-deep); line-height: 1.2; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.accent { color: var(--orange-deep); }

/* ===== Декоративные «orbs» на фоне ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb-1 { width: 480px; height: 480px; background: var(--orange-soft); top: -160px; right: -120px; }
.orb-2 { width: 420px; height: 420px; background: var(--cream-2); bottom: -140px; left: -120px; }
.orb-3 { width: 360px; height: 360px; background: #fbe0c4; top: 40%; left: 55%; opacity: 0.35; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff; box-shadow: 0 12px 24px -10px rgba(200, 112, 42, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(200, 112, 42, 0.7); }
.btn-ghost { background: var(--surface); color: var(--brown-deep); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== Шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 246, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brown-deep); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff; display: grid; place-items: center; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--brown-soft); transition: color .2s; }
.nav a:hover { color: var(--orange-deep); }
.header-cta { margin-left: 4px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--brown-deep); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 12px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 10px 0; font-weight: 600; color: var(--brown); }
.mobile-nav .btn { margin-top: 8px; }
.mobile-nav.open { display: flex; }

/* ===== Hero ===== */
.hero { padding: 84px 0 64px; }
.hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-deep); background: var(--cream); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(32px, 6vw, 56px); font-weight: 800; }
.hero-sub { font-size: clamp(16px, 2.4vw, 19px); color: var(--brown-soft); margin: 22px auto 0; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 24px; color: var(--brown-deep); }
.stat span { font-size: 13px; color: var(--muted); }

/* ===== Секции ===== */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-tag {
  display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { margin-top: 12px; }

/* Обо мне */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; text-align: center; box-shadow: var(--shadow);
}
.avatar {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 24px;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  color: #fff; display: grid; place-items: center; font-size: 38px; font-weight: 800;
}
.about-card h3 { font-size: 22px; }
.about-card .muted { margin: 6px 0 18px; font-size: 14px; }
.about-text h2 { font-size: clamp(24px, 4vw, 34px); margin: 8px 0 16px; }
.about-text p { margin-bottom: 14px; color: var(--brown-soft); }
.check-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--brown); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--cream); color: var(--orange-deep); font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}

/* Карточки специализации */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--cream);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--brown-soft); font-size: 15px; }
.card-accent {
  background: linear-gradient(135deg, #fff6ec, var(--cream));
  border-color: var(--orange-soft);
}

/* Проекты */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb { height: 170px; display: grid; place-items: center; font-size: 54px; }
.thumb-1 { background: linear-gradient(135deg, var(--cream), var(--orange-soft)); }
.thumb-2 { background: linear-gradient(135deg, var(--cream-2), #fbe0c4); }
.thumb-3 { background: linear-gradient(135deg, #f3e7d8, var(--orange-soft)); }
.project-body { padding: 22px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange-deep);
  background: var(--cream); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.project-body h3 { font-size: 19px; margin-bottom: 8px; }
.project-body p { color: var(--brown-soft); font-size: 15px; margin-bottom: 14px; }
.link-arrow { font-weight: 700; color: var(--orange-deep); transition: gap .2s; }
.link-arrow:hover { color: var(--orange); }

/* FAQ */
.faq { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--brown-deep); padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--orange-deep); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: var(--brown-soft); }

/* CTA */
.cta { padding: 40px 0 88px; }
.cta-inner {
  text-align: center; background: linear-gradient(135deg, #fff6ec, var(--cream-2));
  border: 1px solid var(--orange-soft); border-radius: 28px; padding: 56px 32px;
  box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(24px, 4vw, 34px); }
.cta-inner p { color: var(--brown-soft); margin: 12px 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner .muted { font-size: 14px; }

/* ===== Анимация появления ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 920px) {
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .cards, .projects { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
