:root {
  --bg: #ffffff;
  --soft: #f6f3ee;
  --text: #1f1f1f;
  --muted: #686868;
  --accent: #8a5a2b;
  --accent-dark: #6f431b;
  --line: #e7e0d6;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(31, 31, 31, .08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 18px; font-size: 15px; color: #333; }
.menu a:hover, .menu a.active { color: var(--accent); }
.nav-cta { padding: 12px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; white-space: nowrap; }
.burger { display: none; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.hero { padding: 86px 0 64px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--accent-dark); font-weight: 700; font-size: 14px; margin-bottom: 22px; }
h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.04; margin: 0 0 24px; letter-spacing: -.045em; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 720px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--text); }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.hero-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-note { padding: 22px; display: grid; gap: 8px; }
.hero-note strong { font-size: 19px; }
.hero-note span { color: var(--muted); }
section { padding: 78px 0; }
.section-head { margin-bottom: 34px; max-width: 780px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.soft { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card, .work-card, .project-card, .review-card, .stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 28px rgba(31,31,31,.04); }
.card .num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #efe4d8; color: var(--accent-dark); font-weight: 900; margin-bottom: 16px; }
.card h3, .work-card h3, .project-card h3 { margin: 0 0 10px; font-size: 20px; }
.card p, .work-card p, .project-card p, .review-card p { margin: 0; color: var(--muted); }
.two-col { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.photo { border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.photo img { width: 100%; aspect-ratio: 14/9; object-fit: cover; }
.program { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: lessons; align-items: stretch; }
.lesson { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 430px; display: flex; flex-direction: column; }
.lesson:before { counter-increment: lessons; content: counter(lessons); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 900; margin-bottom: 20px; flex: 0 0 auto; }
.lesson h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.35; }
.lesson ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.homework { margin-top: auto; padding-top: 18px; font-weight: 800; color: var(--accent-dark); }
.image-block { margin-top: 34px; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.image-block img { width: 100%; height: auto; display: block; }
.price-box { display: grid; grid-template-columns: 1fr .75fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 34px; padding: 36px; box-shadow: var(--shadow); }
.price { font-size: 56px; line-height: 1; font-weight: 900; letter-spacing: -.045em; margin: 12px 0; }
.start-box { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 20px 0; }
.start-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.start-date { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.start-meta { color: var(--muted); line-height: 1.6; }
.list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.list li { color: var(--muted); }
.list li:before { content: "✓"; color: var(--accent-dark); font-weight: 900; margin-right: 9px; }
.works-grid, .projects-grid, .reviews, .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stats { grid-template-columns: repeat(4, 1fr); }
.stat strong { display: block; font-size: 36px; line-height: 1; margin-bottom: 10px; color: var(--accent-dark); }
.stat span { color: var(--muted); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--accent-dark); background: var(--soft); font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.works-action { margin-top: 24px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 800; color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.project-card { display: flex; flex-direction: column; min-height: 250px; }
.project-card .actions { margin-top: auto; padding-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.stream-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.progress { height: 10px; background: #efe4d8; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: 999px; }
.faq { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 12px 0 0; }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 34px; padding: 34px; box-shadow: var(--shadow); }
form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 800; font-size: 14px; display: grid; gap: 8px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; color: var(--text); background: #fbfaf8; outline: none; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); background: #fff; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 400; }
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.message { display: none; padding: 14px 16px; border-radius: 14px; background: #edf7ed; color: #255625; font-weight: 700; }
footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row a { text-decoration: underline; }
.footer-note { margin-top: 12px; font-size: 13px; color: var(--muted); max-width: 900px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1000; display: flex; gap: 18px; align-items: center; justify-content: space-between; background: #1f1f1f; color: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 45px rgba(0,0,0,.22); font-size: 14px; }
.cookie-text { line-height: 1.5; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-btn { border: 0; border-radius: 999px; padding: 10px 16px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; white-space: nowrap; }
.cookie-btn:hover { background: var(--accent-dark); }
@media (max-width: 960px) {
  .hero-grid, .two-col, .price-box { grid-template-columns: 1fr; }
  .cards, .program, .works-grid, .projects-grid, .reviews, .stats { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; flex-direction: column; align-items: flex-start; }
  .menu.open { display: flex; }
  .burger { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 52px; }
  section { padding: 54px 0; }
  .cards, .program, .form-grid, .works-grid, .projects-grid, .reviews, .stats { grid-template-columns: 1fr; }
  .lesson { min-height: auto; }
  .price { font-size: 42px; }
  .form-wrap, .price-box { padding: 24px; }
  .stream-card { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

/* Portfolio projects */
.portfolio-hero { padding-bottom: 54px; }
.portfolio-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.portfolio-summary strong { font-size: 28px; }
.portfolio-summary span { color: var(--muted); }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { min-height: 210px; }
.project-link {
  color: var(--accent-dark);
  text-decoration: underline;
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.page-btn:hover:not(:disabled), .page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}
