:root{
  /* ===== Brand colors ===== */
  --brand-main: #171719;
  --brand-secondary: #4f4f4f;
  --brand-tertiary: #959595;
  --surface: #ffffff;
  --bg: #ffffff;
  --text: #26282a;
  --muted: #6b7480;

  --link: #4f4f4f;
  --link-hover: #e0552f;

  --btn-bg: #4f4f4f;
  --btn-text: #ffffff;
  --btn-border: #171719;

  --border: #dfe4ec;
  --shadow: 0 18px 55px rgba(23, 23, 25, .14);

  --radius: 16px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
  min-height:100vh;
}

/* ===== Topbar ===== */
.topbar{
  background: var(--brand-main);
  padding: 12px 24px;
  display:flex;
  align-items:center;
}
.topbar__link{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#ffffff;
}
.topbar__logo{ display:block; }
.topbar__title{
  line-height:1.2;
  font-size:25px;
  font-weight:600;
  letter-spacing:.2px;
}

/* Центровка карточки под шапкой */
.page{
  min-height: calc(100vh - 64px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}

.wrap{ width:min(980px, 100%); }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.content{
  padding: 18px 18px 20px 18px;
}

.hello{
  margin: 10px 0 4px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing:.2px;
}
.question{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}

@media (max-width: 700px){
  .grid{ grid-template-columns: 1fr; }
  .hello{ font-size: 20px; }
  .content{ padding: 16px 14px 18px 14px; }
  .page{ padding: 16px; }
}

/* ===== Buttons ===== */
.btn{
  appearance:none;
  border:1px solid var(--btn-border);
  background:#fff;
  border-radius: 0;
  padding: 14px 14px;
  cursor:pointer;
  text-align:left;
  display:flex;
  gap:12px;
  align-items:flex-start;
  min-height:66px;
  width:100%;
  transition: transform .06s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover{
  background: #f9fafd;
  box-shadow: 0 14px 28px rgba(23,23,25,.10);
  transform: translateY(-1px);
}

.btn:focus-visible{
  outline: 2px solid rgba(23,23,25,.55);
  outline-offset: 2px;
}

.btnPrimary{
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-border);
}
.btnPrimary:hover{
  background: #3f3f3f;
}
.btnPrimary:focus-visible{
  outline: 2px solid rgba(224,85,47,.75);
  outline-offset: 2px;
}

.btnIcon{
  width:40px;height:40px;
  border-radius: 0;
  background: rgba(79,79,79,.10);
  display:grid;
  place-items:center;
  font-weight: 900;
  color: var(--brand-secondary);
  flex: 0 0 auto;
}
.btnPrimary .btnIcon{
  background: rgba(255,255,255,.12);
  color: #fff;
}

.btnText h3{
  margin:0;
  font-size: 14px;
  letter-spacing:.2px;
}
.btnText p{
  margin: 6px 0 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.btnPrimary .btnText p{
  color: rgba(255,255,255,.82);
}

/* ===== Stepbar ===== */
.stepbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.crumb{
  font-size: 12.5px;
  color: var(--muted);
}

/* link-как-кнопка */
.link{
  font-size: 12.5px;
  color: var(--link);
  cursor:pointer;
  user-select:none;
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
}
.link:hover{
  color: var(--link-hover);
  border-color: rgba(224,85,47,.35);
  background: rgba(224,85,47,.06);
}
.link:focus-visible{
  outline: 2px solid rgba(224,85,47,.75);
  outline-offset: 2px;
}

.hidden{ display:none !important; }
/* ===== Подсветка кнопок подкатегорий (STEP 2) ===== */

#view-cat .btnPrimary:hover,
#view-cat .btnPrimary:focus-visible {
  background: #e0552f;
  border-color: #e0552f;
}

/* иконка внутри кнопки */
#view-cat .btnPrimary:hover .btnIcon,
#view-cat .btnPrimary:focus-visible .btnIcon {
  background: rgba(255,255,255,.2);
  color: #ffffff;
}

/* текст */
#view-cat .btnPrimary:hover .btnText h3,
#view-cat .btnPrimary:hover .btnText p {
  color: #ffffff;
}
