/* ==========================================================================
   ui.css · 智慧树学习网 组件层（v2 设计系统）
   由 _design/build-css.js 从预览稿生成，请勿直接手改；改样式请改 base.css 后重跑脚本
   加载顺序：bootstrap -> style -> tokens -> legacy -> ui -> pages
   ========================================================================== */

/* ==========================================================================
   智慧树学习网 · 设计预览 v2（仅预览，不参与线上渲染）
   base.css：设计变量 / 基础排版 / 头部 / 页脚 / 按钮 / 通用组件
   ========================================================================== */



*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover {
  color: var(--brand-600);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--r-s);
}

::selection {
  background: var(--brand-200);
  color: var(--ink-900);
}

.u-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-skip {
  position: absolute;
  left: 50%;
  top: -60px;
  z-index: 200;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 0 0 var(--r-m) var(--r-m);
  background: var(--brand-700);
  color: #fff;
  font-weight: 600;
  transition: top .2s ease;
}

.u-skip:focus {
  top: 0;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* 布局                                                                        */
/* -------------------------------------------------------------------------- */

.u-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.u-band {
  padding: 34px 0;
}

.u-band--white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.u-band--tight {
  padding: 22px 0;
}

.u-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.u-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.u-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.u-clamp-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* 头部                                                                        */
/* -------------------------------------------------------------------------- */

.u-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.u-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}

.u-brand {
  flex: none;
  display: flex;
  align-items: center;
}

.u-brand img {
  height: 40px;
  width: auto;
}

.u-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.u-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 16px;
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease,
    transform .12s ease;
}

.u-nav__icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-400);
  transition: color .18s ease;
}

.u-nav__link:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.u-nav__link:hover .u-nav__icon {
  color: var(--brand-600);
}

.u-nav__link:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.u-nav__link.is-active {
  color: var(--brand-700);
  background: var(--brand-100);
  font-weight: 600;
}

.u-nav__link.is-active .u-nav__icon {
  color: var(--brand-700);
}

/* 非首页：「课程分类」入口默认呈 hover 高亮态 */
.u-nav__link.is-hoverstate {
  color: var(--brand-700);
  background: var(--brand-50);
}

.u-nav__link.is-hoverstate .u-nav__icon {
  color: var(--brand-600);
}

/* 初高中名师课：琥珀色强调胶囊 */
.u-nav__link--accent {
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 600;
}

.u-nav__link--accent .u-nav__icon {
  color: var(--amber-600);
}

.u-nav__link--accent:hover {
  color: var(--amber-700);
  background: var(--amber-100);
}

/* 联系本站：品牌渐变 CTA 胶囊（高度 32px，字体 16px） */
.u-nav__link--cta {
  height: 32px;
  padding: 0 16px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 6px 16px -9px rgba(6, 56, 42, .65);
}

.u-nav__link--cta .u-nav__icon {
  color: rgba(255, 255, 255, .92);
}

.u-nav__link--cta:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 9px 20px -9px rgba(6, 56, 42, .7);
  transform: translateY(-1px);
}

.u-nav__link--cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -8px rgba(6, 56, 42, .6);
}

.u-nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .55;
  transition: transform .18s ease;
}

.u-nav__item:hover .u-nav__caret,
.u-nav__item:focus-within .u-nav__caret {
  transform: rotate(180deg);
}

.u-nav__item {
  position: relative;
}

/* 大分类面板 */
.u-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 480px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-l);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.u-nav__item:hover .u-mega,
.u-nav__item:focus-within .u-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 透明桥接：补上按钮与面板之间 10px 间隙的 hover 命中区，
   避免鼠标下滑到面板途中离开导航项导致面板闪隐 */
.u-nav__item[data-mega]:hover::after,
.u-nav__item[data-mega]:focus-within::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.u-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 8px;
}

.u-mega__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-700);
}

.u-mega__item:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* 当前栏目：mega 与抽屉同步高亮 */
.u-mega__item.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.u-mega__item.is-active .u-mega__dot {
  background: var(--brand-500);
}

.u-mega__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
  flex: none;
}

.u-mega__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.u-mega__foot a {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-600);
}

.u-mega__foot a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* 头部搜索 */
.u-hsearch {
  margin-left: auto;
  flex: 0 1 260px;
  min-width: 150px;
}

.u-hsearch__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 4px 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f1f4ef;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.u-hsearch__field:focus-within {
  background: #fff;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(27, 147, 100, .12);
}

.u-hsearch__field svg {
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  flex: none;
}

.u-hsearch__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink-800);
  outline: none;
}

.u-hsearch__input::placeholder {
  color: var(--ink-400);
}

.u-hsearch__btn {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--brand-700);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.u-hsearch__btn:hover {
  background: var(--brand-800);
}

.u-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

/* 头部操作区：与导航胶囊、搜索框统一高度（字体 16px / 高度 32px） */
.u-header__actions .u-btn--sm {
  height: 32px;
  min-height: 0;
  padding: 0 16px;
  font-size: 16px;
}

.u-iconbtn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-600);
  cursor: pointer;
}

.u-iconbtn:hover {
  background: var(--bg);
  color: var(--ink-900);
}

.u-iconbtn svg {
  width: 18px;
  height: 18px;
}

.u-header__actions .u-iconbtn {
  display: none;
  width: 38px;
  height: 38px;
}

/* 头部：观看历史入口（始终可见，与导航胶囊保持 38px 高度） */
.u-histbtn {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink-600);
  transition: background .18s ease, color .18s ease;
}

.u-histbtn:hover,
.u-histbtn:focus-visible {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-histbtn svg {
  width: 19px;
  height: 19px;
}

body[data-page="history"] .u-histbtn {
  background: var(--brand-100);
  color: var(--brand-700);
}

.u-histbtn__dot {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-500);
}

/* 头部：我的收藏入口（沿用观看记录入口规格） */
.u-favbtn__count {
  position: absolute;
  right: 2px;
  top: 2px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 1.5px solid var(--surface);
  border-radius: 999px;
  background: var(--brand-500);
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  color: #fff;
}

body[data-page="fav"] .u-favbtn {
  background: var(--brand-100);
  color: var(--brand-700);
}

@media (max-width: 719px) {
  .u-histbtn {
    width: 36px;
    height: 36px;
  }

  .u-histbtn svg {
    width: 18px;
    height: 18px;
  }
}

.u-burger {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.u-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 2.5px auto;
  border-radius: 2px;
  background: var(--ink-700);
}

/* 移动端抽屉 */
.u-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  width: min(340px, 88vw);
  padding: 18px 20px 28px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--sh-l);
  transform: translateX(102%);
  transition: transform .24s ease;
  overflow-y: auto;
}

.u-drawer.is-open {
  transform: translateX(0);
}

.u-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.u-drawer__title {
  font-size: 16px;
}

.u-drawer__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink-600);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.u-drawer__search {
  margin-bottom: 6px;
}

.u-drawer__search .u-hsearch__field {
  height: 38px;
}

.u-drawer__search .u-hsearch__btn {
  height: 30px;
  font-size: 14px;
}

.u-drawer__label {
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-400);
}
.u-drawer__cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.u-drawer__cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-700);
}

.u-drawer__cat:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-drawer__cat.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

.u-drawer__cat.is-active .u-mega__dot {
  background: var(--brand-500);
}

.u-drawer__links {
  display: grid;
  gap: 2px;
}

.u-drawer__links a,
.u-drawer__links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 14px;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.u-mask {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(9, 20, 14, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}

.u-mask.is-open {
  opacity: 1;
  visibility: visible;
}

/* -------------------------------------------------------------------------- */
/* 按钮 / 标签                                                                 */
/* -------------------------------------------------------------------------- */

.u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
    transform .12s ease, box-shadow .18s ease;
}

.u-btn:active {
  transform: translateY(1px);
}

.u-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.u-btn--primary {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(13, 92, 63, .8);
}

.u-btn--primary:hover {
  background: var(--brand-800);
  color: #fff;
}

.u-btn--outline {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-800);
}

.u-btn--outline:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-btn--ghost {
  background: transparent;
  color: var(--ink-600);
}

.u-btn--ghost:hover {
  background: var(--bg);
  color: var(--ink-900);
}

/* 收藏按钮：已收藏态（内容页 / 播放页共用） */
.u-btn.is-faved {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-btn.is-faved:hover {
  border-color: var(--brand-400);
  background: var(--brand-100);
  color: var(--brand-800);
}

.u-btn.is-faved svg {
  fill: currentColor;
}

.u-btn--sm {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
}

.u-btn--lg {
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
}

.u-btn--block {
  width: 100%;
}

.u-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 500;
}

.u-tag--amber {
  background: var(--amber-100);
  border-color: #f2dfbe;
  color: var(--amber-700);
}

.u-tag--gray {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink-500);
}

.u-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-600);
}

.u-chip strong {
  font-family: var(--font-num);
  color: var(--ink-900);
}

/* -------------------------------------------------------------------------- */
/* 区块标题                                                                    */
/* -------------------------------------------------------------------------- */

.u-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.u-section-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: -.02em;
}

.u-section-head__title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--brand-600);
}

.u-section-head__sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-500);
}

.u-section-head__side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* 居中标题的区块头（首页课程分类） */
.u-section-head--center {
  position: relative;
  justify-content: center;
}

.u-section-head--center .u-section-head__main {
  text-align: center;
}

.u-section-head--center .u-section-head__title {
  justify-content: center;
}

.u-section-head--center .u-section-head__side {
  position: absolute;
  right: 0;
  bottom: 0;
}

.u-more {
  font-size: 13.5px;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.u-more:hover {
  color: var(--brand-700);
}

.u-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.u-tabs button {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 13px;
  color: var(--ink-600);
  cursor: pointer;
}

.u-tabs button:hover {
  color: var(--brand-700);
}

.u-tabs button.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* 页脚                                                                        */
/* -------------------------------------------------------------------------- */

.u-footer {
  background: #0c1712;
  color: #a9b7af;
  padding: 52px 0 0;
}

.u-footer a {
  color: #a9b7af;
}

.u-footer a:hover {
  color: #fff;
}

.u-footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
}

.u-footer__brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.u-footer__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-600);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.u-footer__desc {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.85;
  color: #829189;
}

.u-footer__title {
  margin-bottom: 12px;
  color: #e8efeb;
  font-size: 13.5px;
  font-weight: 600;
}

.u-footer__list li + li {
  margin-top: 8px;
}

/* 页脚课程分类最多显示 8 个栏目 */
.u-footer__list li:nth-child(n+9) {
  display: none;
}

.u-footer__list a,
.u-footer__list button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: #a9b7af;
  cursor: pointer;
}

.u-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px;
  color: #77857d;
}

/* 版权与备案信息固定 12.5px，避免被 style.css 的全局 p { font-size: 1.05rem } 放大 */
.u-footer__bottom p {
  font-size: 12.5px;
  line-height: 1.7;
}

.u-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-600);
  box-shadow: var(--sh-m);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.u-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.u-top svg {
  width: 18px;
  height: 18px;
}

/* 响应式                                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .u-hsearch {
    flex-basis: 210px;
  }

  /* 窄屏导航只保留文字，节省横向空间 */
  .u-nav__icon {
    display: none;
  }

  .u-nav__link {
    padding: 0 10px;
  }

  .u-nav__link--cta {
    padding: 0 13px;
  }
}

@media (max-width: 1023px) {
  .u-container {
    padding: 0 20px;
  }

  .u-nav,
  .u-header .u-hsearch {
    display: none;
  }

  .u-header__actions .u-iconbtn {
    display: grid;
  }

  .u-header__actions .u-btn--outline {
    display: none;
  }

  .u-burger {
    display: block;
    order: -1;
  }

  .u-header__inner {
    gap: 12px;
  }

  .u-brand {
    margin-right: auto;
  }

  .u-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .u-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 719px) {
  body {
    font-size: 14.5px;
  }

  .u-container {
    padding: 0 16px;
  }

  .u-band {
    padding: 36px 0;
  }

  .u-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .u-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .u-section-head--center .u-section-head__side {
    position: static;
    justify-content: center;
  }

  .u-section-head__title {
    font-size: 19px;
  }

  .u-section-head__side {
    width: 100%;
    justify-content: space-between;
  }

  .u-footer {
    padding-top: 36px;
  }

  .u-footer__main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 26px;
  }

  .u-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .u-top {
    right: 14px;
    bottom: 18px;
  }

  .u-preview-flag {
    left: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
