:root {
  --ink: #344054;
  --heading: #101828;
  --muted: #667085;
  --primary: #9F4147;
  --primary-dark: #7a3237;
  --accent: #D9686C;
  --surface: #F2F7F5;
  --mint: #E3F0EC;
  --peach: #F8E8E4;
  --lavender: #EEECF5;
  --line: #e5e7eb;
  --footer: #304945;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: #f6f8f7;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--heading); letter-spacing: -0.03em; }
:focus-visible { outline: 3px solid rgba(159, 65, 71, 0.42); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow--light { color: #b8d8d0; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(159, 65, 71, .18); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--secondary { background: #fff; border-color: #d9dde5; color: #475467; }
.btn--secondary:hover { border-color: rgba(159, 65, 71, .3); background: var(--peach); color: var(--primary); }
.btn--nav { padding: 8px 18px; min-height: 38px; margin-left: 4px; }
.btn--onlight { background: #fff; color: var(--footer); }
.btn--onlight:hover { background: var(--surface); }
.btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.site-header {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.site-header__bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 40px);
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--heading);
}
.site-header__bar nav { display: flex; align-items: center; gap: 4px; }
.site-header__bar nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #667085;
  text-decoration: none;
}
.site-header__bar nav a:not(.btn):hover { background: #f2f4f7; color: var(--heading); }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 52px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero h1 span { color: var(--primary); }
.lead { margin: 22px 0 0; max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__marks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__marks li { font-size: 12px; font-weight: 600; color: #667085; }
.hero__marks li::before { content: "✓ "; color: #4f8a7b; }

.hero__panel { display: flex; justify-content: center; }
.mock {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(28, 49, 45, .1);
  padding: 16px;
}
.mock__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 22px; }
.mock__label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.mock__title { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--heading); }
.mock__badge {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(159, 65, 71, .1); color: var(--primary);
  font-size: 12px; font-weight: 700;
}
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 8px; }
.mock__stats div { background: var(--surface); border-radius: 12px; padding: 12px; }
.mock__stats strong { display: block; font-size: 19px; color: var(--heading); }
.mock__stat--accent { color: var(--primary) !important; }
.mock__stats span { display: block; margin-top: 4px; font-size: 10px; color: #667085; }
.mock__table { margin: 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock__row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 14px; font-size: 12px; border-bottom: 1px solid #f2f4f7; }
.mock__row:last-child { border-bottom: 0; }
.mock__row--head { background: #f9fafb; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #98a2b3; }
.mock__row span:first-child { font-weight: 600; color: #475467; }
.mock__status { padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.mock__status--pending { background: #fffaeb; color: #b54708; }
.mock__status--done { background: #ecfdf3; color: #067647; }

.section { max-width: 1180px; margin: 0 auto; padding: 72px clamp(20px, 4vw, 40px); }
.section--soft { max-width: none; background: #edf2f0; }
.section--soft > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section--showcase { max-width: none; background: radial-gradient(60% 100% at 20% 0%, rgba(159, 65, 71, .05), transparent 60%), radial-gradient(55% 90% at 85% 15%, rgba(169, 205, 232, .18), transparent 65%), #fbfaf9; }
.section--showcase > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section__heading { max-width: 620px; margin-bottom: 40px; }
.section__heading h2 { font-size: clamp(26px, 3vw, 34px); }
.section__heading p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.section__heading--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__note { max-width: 620px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }

.quiz-mock {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(159, 65, 71, .22), 0 14px 34px rgba(28, 49, 45, .08);
  padding: 22px;
}
.quiz-mock__progress { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; margin: 2px 2px 22px; }
.quiz-mock__progress-bar { height: 100%; border-radius: 999px; background: var(--primary); }
.quiz-mock__question { margin: 0 2px 18px; font-size: 15px; font-weight: 600; color: var(--heading); line-height: 1.5; }
.quiz-mock__options { display: flex; flex-direction: column; gap: 10px; margin: 0 2px 22px; }
.quiz-mock__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: #475467;
}
.quiz-mock__option--selected { border-color: var(--primary); background: var(--peach); color: var(--primary); }
.quiz-mock__radio { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; flex-shrink: 0; }
.quiz-mock__radio--check { border-radius: 6px; }
.quiz-mock__option--selected .quiz-mock__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
}
.quiz-mock__option--selected .quiz-mock__radio--check::after { border-radius: 2px; }
.quiz-mock__nav { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px; }
.quiz-mock__nav-btn { padding: 10px 20px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.quiz-mock__nav-btn--ghost { background: #fff; border: 1px solid var(--line); color: #667085; }
.quiz-mock__nav-btn--primary { background: var(--primary); color: #fff; }

.tools-mock {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px -20px rgba(159, 65, 71, .22), 0 14px 34px rgba(28, 49, 45, .08);
  padding: 22px;
}
.tools-mock__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 20px; }
.tools-mock__filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px 18px; }
.tools-mock__chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: #667085; }
.tools-mock__chip--active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tools-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tools-mock__card { border-radius: 14px; padding: 14px; }
.tools-mock__card--peach { background: var(--peach); }
.tools-mock__card--mint { background: var(--mint); }
.tools-mock__card--lavender { background: var(--lavender); }
.tools-mock__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 16px -8px rgba(52, 64, 84, .35);
}
.tools-mock__icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tools-mock__card p { margin: 0; font-size: 11px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.tools-mock__tag { display: inline-block; margin-top: 8px; font-size: 9px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }

.showcase-caption { margin: 26px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.showcase__points {
  list-style: none;
  margin: 44px auto 0;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.showcase__points li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.showcase__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(159, 65, 71, .1);
}
.showcase__points li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 2px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}
.showcase__points strong { color: var(--heading); font-weight: 700; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; box-shadow: 0 8px 24px rgba(28, 49, 45, .04); }
.card--peach { background: var(--peach); }
.card--mint { background: var(--mint); }
.card--lavender { background: var(--lavender); }
.card__number { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 12px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 700; }
.card h3 { font-size: 17px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.steps { display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding-top: 18px; border-top: 1px solid #d0d5dd; }
.step__number { display: block; margin-bottom: 18px; color: var(--primary); font-size: 13px; font-weight: 700; }
.step h3 { font-size: 16px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact {
  border-radius: 22px;
  background: var(--footer);
  color: #fff;
  padding: 40px clamp(24px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.contact__copy { max-width: 560px; }
.contact__copy h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); }
.contact__copy p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.7; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 26px clamp(20px, 4vw, 40px);
  display: grid; gap: 16px;
  grid-template-columns: 1fr auto;
  align-items: end;
  font-size: 12px; color: #98a2b3;
}
.site-footer__inner strong { color: #475467; font-size: 13px; }
.site-footer__lines { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__lines a { text-decoration: none; }
.site-footer__lines a:hover { color: var(--primary); }
.copyright { margin: 0; }

.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 40px) 160px;
  text-align: center;
}
.not-found h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 16px; }
.not-found p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 28px; }

.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(28, 49, 45, .18);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__text { margin: 0; flex: 1 1 240px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.cookie-consent__actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero__panel { order: -1; }
  .cards, .steps, .showcase__points { grid-template-columns: 1fr; }
  .tools-mock__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header__bar nav a:not(.btn) { display: none; }
  .contact { flex-direction: column; align-items: flex-start; }
  .tools-mock__grid { grid-template-columns: 1fr; }
  .cookie-consent { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
