:root {
  --home-bg: #F8F7FC;
  --home-surface: #FFFFFF;
  --home-surface-soft: #F5F2FF;
  --home-primary: #5A35D6;
  --home-primary-hover: #4727B8;
  --home-primary-soft: #ECE6FF;
  --home-text: #241B57;
  --home-text-muted: #655E82;
  --home-border: #E7E2F3;
  --home-radius-sm: 12px;
  --home-radius-md: 18px;
  --home-radius-lg: 24px;
  --home-radius-xl: 32px;
  --home-radius-pill: 999px;
  --home-shadow-card: 0 8px 24px rgba(53, 34, 123, 0.08);
  --home-shadow-hover: 0 14px 30px rgba(53, 34, 123, 0.12);
}

body.home {
  background: var(--home-bg);
}

body.home .site-header {
  padding: 18px 0 16px;
}

body.home .site-header .header-inner {
  width: min(100% - 48px, 1380px);
  max-width: none;
  min-height: 88px;
  padding: 12px 16px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(53, 34, 123, .055);
}

body.home .site-header .brand-mark {
  width: 82px;
  height: 70px;
  overflow: hidden;
  color: transparent;
  background: url("../images/home-icons/site-mark-book.svg") center / contain no-repeat;
}

body.home .site-footer .brand-mark {
  overflow: hidden;
  color: transparent;
  background: url("../images/home-icons/site-mark-book.svg") center / contain no-repeat;
}

body.home .site-header .brand-title {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #151071;
  font-size: 31px;
  line-height: 1.05;
}

body.home .site-header .brand-subtitle {
  max-width: 322px;
  font-size: 14px;
  line-height: 1.3;
}

body.home .site-header .main-nav {
  gap: 34px;
}

body.home .site-header .desktop-search {
  width: min(390px, 27vw);
  height: 52px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: #fff;
}

body.home .site-header .desktop-search input {
  height: 50px;
}

body.home .site-header .desktop-search-submit {
  border-radius: 14px;
  background: var(--home-primary);
  color: #fff;
}

@media (min-width: 901px) {
  body.home .site-header .main-nav,
  body.home .site-header .desktop-search,
  body.home .site-header .access-link,
  body.home .site-header .font-controls {
    display: flex !important;
  }

  body.home .site-header .search-toggle,
  body.home .site-header .menu-toggle,
  body.home .site-header .site-search,
  body.home .site-header .mobile-menu {
    display: none !important;
  }

  body.home .site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
  }
}

.cbs-home-page {
  background: var(--home-bg);
  color: var(--home-text);
  overflow-x: clip;
  padding-top: 10px;
}

.cbs-home-page *,
.cbs-home-page *::before,
.cbs-home-page *::after {
  box-sizing: border-box;
}

.cbs-home-container {
  width: min(100% - 48px, 1400px);
  margin-inline: auto;
}

.cbs-home-section {
  margin-block: 32px;
}

.cbs-home-container > .cbs-home-section:first-child {
  margin-top: 8px;
}

.cbs-home-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: var(--home-surface);
  box-shadow: 0 18px 42px rgba(53, 34, 123, .075);
}

.cbs-home-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cbs-home-grid-auto {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cbs-home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.cbs-home-section-head h2 {
  margin: 0;
  color: var(--home-text);
  font-size: 32px;
  line-height: 1.08;
}

.cbs-home-section-head p {
  margin: 8px 0 0;
  color: var(--home-text-muted);
  font-size: 16px;
}

.cbs-home-link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #150b72;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.cbs-home-link-more::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background: currentColor;
  -webkit-mask: url("../images/zlatcbs-icon-pack/arrow-right.svg") center / contain no-repeat;
  mask: url("../images/zlatcbs-icon-pack/arrow-right.svg") center / contain no-repeat;
}

.cbs-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 15px 24px;
  border: 1px solid var(--home-primary);
  border-radius: var(--home-radius-sm);
  color: var(--home-primary);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.cbs-home-button img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.cbs-home-button--primary {
  background: var(--home-primary);
  color: #fff;
  box-shadow: 0 12px 22px rgba(90, 53, 214, .22);
}

.cbs-home-button--primary img {
  filter: brightness(0) invert(1);
}

.cbs-home-button--secondary {
  background: rgba(255, 255, 255, .86);
}

.cbs-home-button:hover {
  transform: translateY(-1px);
  border-color: var(--home-primary-hover);
  color: var(--home-primary-hover);
  box-shadow: var(--home-shadow-hover);
}

.cbs-home-button--primary:hover {
  background: var(--home-primary-hover);
  color: #fff;
}

.cbs-home-page a:focus-visible,
.cbs-home-page button:focus-visible,
.cbs-home-page input:focus-visible {
  outline: 3px solid rgba(90, 53, 214, .32);
  outline-offset: 3px;
}

.cbs-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(560px, .94fr) minmax(420px, 1.06fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-xl);
  background:
    radial-gradient(circle at 96% 16%, rgba(255, 255, 255, .32), transparent 32%),
    linear-gradient(90deg, rgba(255,255,255,.995) 0%, rgba(255,255,255,.94) 35%, rgba(255,255,255,.22) 60%, rgba(255,255,255,.02) 100%),
    url("../images/ref-hero-zlatoust-library.webp") right 47% / cover no-repeat;
  box-shadow: 0 22px 54px rgba(53, 34, 123, .1);
}

.cbs-home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 46px 54px;
}

.cbs-home-eyebrow {
  margin: 0 0 14px;
  color: #140c78;
  font-size: 18px;
  font-weight: 900;
}

.cbs-home-hero h1 {
  max-width: 610px;
  margin: 0;
  color: #160d73;
  font-size: 66px;
  line-height: .98;
  letter-spacing: 0;
}

.cbs-home-hero p:not(.cbs-home-eyebrow) {
  max-width: 440px;
  margin: 20px 0 0;
  color: #211b3e;
  font-size: 20px;
  line-height: 1.45;
}

.cbs-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cbs-home-actions .cbs-home-button {
  flex: 0 0 auto;
  padding-inline: 18px;
}

.cbs-home-hero__image {
  min-height: 100%;
}

.cbs-home-news-list,
.cbs-home-event-list {
  display: grid;
  gap: 14px;
}

.cbs-home-news-item,
.cbs-home-event-item {
  margin: 0;
}

.cbs-home-news-item a,
.cbs-home-event-item a {
  display: grid;
  align-items: center;
  min-height: 104px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--home-radius-md);
  color: var(--home-text);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cbs-home-news-item a {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
}

.cbs-home-event-item a {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
}

.cbs-home-news-item a:hover,
.cbs-home-event-item a:hover {
  transform: translateY(-1px);
  border-color: var(--home-border);
  background: var(--home-surface-soft);
}

.cbs-home-news-thumb {
  display: block;
  width: 100%;
  height: 92px;
  border-radius: var(--home-radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #F4F7FB, #fff);
}

.cbs-home-news-thumb--empty {
  position: relative;
  border: 1px solid var(--home-border);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 86%, rgba(116, 151, 176, .12), transparent 32%),
    linear-gradient(135deg, #F7FAFF 0%, #FFFFFF 62%, #F8F4FF 100%);
}

.cbs-home-news-thumb--empty::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: #6E64B8;
  opacity: .58;
  -webkit-mask: url("../images/home-icons/news.svg") center / contain no-repeat;
  mask: url("../images/home-icons/news.svg") center / contain no-repeat;
}

.cbs-home-news-thumb--empty::after {
  content: "";
  position: absolute;
  inset: auto -24px -42px auto;
  width: 110px;
  height: 82px;
  border-radius: 50%;
  background: rgba(98, 128, 160, .08);
}

.cbs-home-news-copy,
.cbs-home-event-copy {
  min-width: 0;
}

.cbs-home-news-copy h3,
.cbs-home-event-copy h3,
.cbs-home-service-item h3,
.cbs-home-mini-link h3,
.cbs-home-novelty-item h3 {
  margin: 0;
  color: #120967;
  font-size: 17px;
  line-height: 1.25;
}

.cbs-home-news-copy time,
.cbs-home-event-copy small,
.cbs-home-novelty-item small {
  display: block;
  margin-top: 8px;
  color: var(--home-text-muted);
  font-size: 14px;
  line-height: 1.3;
}

.cbs-home-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px;
  min-height: 78px;
  border-radius: var(--home-radius-sm);
  background: var(--home-primary);
  color: #fff;
  text-align: center;
}

.cbs-home-date-badge strong {
  font-size: 28px;
  line-height: 1;
}

.cbs-home-date-badge small {
  margin-top: 5px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cbs-home-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--home-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cbs-home-empty {
  display: grid;
  align-content: center;
  position: relative;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--home-radius-md);
  background: linear-gradient(135deg, #F7FAFF 0%, #FFFFFF 58%, #F7F3FF 100%);
  color: var(--home-text-muted);
}

.cbs-home-empty--events::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 150px;
  height: 150px;
  background: #6c8db6;
  opacity: .055;
  -webkit-mask: url("../images/home-icons/events.svg") center / contain no-repeat;
  mask: url("../images/home-icons/events.svg") center / contain no-repeat;
}

.cbs-home-empty img {
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 18px;
  opacity: .72;
  object-fit: cover;
}

.cbs-home-empty h3 {
  margin: 0 0 8px;
  color: var(--home-text);
  font-size: 22px;
}

.cbs-home-empty p {
  margin: 0 0 20px;
}

.cbs-home-kids-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
}

.cbs-home-kids-image,
.cbs-home-library-photo {
  min-height: 300px;
  border-radius: var(--home-radius-md);
  background: url("../images/ref-youth-reading.webp") center / cover no-repeat, var(--home-surface-soft);
}

.cbs-home-kids-card {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, .95), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fbf8ff 52%, #f5f0ff 100%);
}

.cbs-home-library-photo {
  min-height: 170px;
  background-image: url("../images/ref-hero-zlatoust-library.webp");
}

.cbs-home-kids-layout p {
  margin: 0 0 18px;
  color: var(--home-text-muted);
  font-size: 17px;
  line-height: 1.55;
}

.cbs-home-quick-list,
.cbs-home-meta-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cbs-home-quick-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  color: #150b72;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.cbs-home-quick-list a::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex: 0 0 auto;
  background: var(--home-primary);
  -webkit-mask: url("../images/home-icons/children.svg") center / contain no-repeat;
  mask: url("../images/home-icons/children.svg") center / contain no-repeat;
}

.cbs-home-quick-list a::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("../images/zlatcbs-icon-pack/arrow-right.svg") center / contain no-repeat;
  mask: url("../images/zlatcbs-icon-pack/arrow-right.svg") center / contain no-repeat;
}

.cbs-home-library-visuals {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  margin-bottom: 18px;
}

.cbs-home-map {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  border-radius: var(--home-radius-md);
  background: url("../images/generated/home/home-libraries-map.webp") center / cover no-repeat, var(--home-surface-soft);
}

.cbs-home-map span {
  display: none;
}

.cbs-home-map span:nth-child(1) { left: 24%; top: 34%; }
.cbs-home-map span:nth-child(2) { left: 56%; top: 22%; }
.cbs-home-map span:nth-child(3) { left: 72%; top: 54%; }
.cbs-home-map span:nth-child(4) { left: 38%; top: 66%; }
.cbs-home-map span:nth-child(5) { left: 82%; top: 28%; }

.cbs-home-meta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--home-text);
  font-weight: 800;
}

.cbs-home-meta-list img {
  width: 20px;
  height: 20px;
}

.cbs-home-libraries-card .cbs-home-button {
  margin-top: 20px;
}

.cbs-home-service-item,
.cbs-home-mini-link {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 118px;
  padding: 18px 16px;
  border: 1px solid #ECE8F5;
  border-radius: var(--home-radius-sm);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9)),
    linear-gradient(135deg, rgba(232, 241, 247, .5), rgba(248, 244, 255, .55));
  color: var(--home-text);
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cbs-home-service-item:hover,
.cbs-home-mini-link:hover {
  transform: translateY(-1px);
  border-color: #D8D0ED;
  box-shadow: 0 10px 24px rgba(53, 34, 123, .075);
}

.cbs-home-service-item img,
.cbs-home-mini-link img {
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  opacity: .9;
}

.cbs-home-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cbs-home-projects-card {
  position: relative;
  overflow: hidden;
}

.cbs-home-projects-card::after {
  content: "";
  display: block;
  height: 76px;
  margin-top: 20px;
  border-radius: var(--home-radius-md);
  background:
    linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,.26)),
    url("../images/ref-project-local-history.webp") center 62% / cover no-repeat;
  opacity: .82;
}

.cbs-home-novelty-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
}

.cbs-home-novelty-item a {
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr;
  color: var(--home-text);
  text-decoration: none;
}

.cbs-home-novelty-item h3 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cbs-home-novelty-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(145deg, #ece6ff, #fff);
  box-shadow: 0 18px 30px rgba(53, 34, 123, .16);
}

.cbs-home-novelty-thumb--empty {
  display: grid;
  place-items: center;
}

.cbs-home-novelty-thumb--empty img {
  width: 42px;
  height: 42px;
  opacity: .7;
}

@media (max-width: 1180px) {
  .cbs-home-grid-auto,
  .cbs-home-novelty-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cbs-home-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  .cbs-home-actions {
    gap: 8px;
  }

  .cbs-home-actions .cbs-home-button {
    padding-inline: 8px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .cbs-home-grid-2 {
    grid-template-columns: 1fr;
  }

  .cbs-home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.18) 100%),
      url("../images/ref-hero-zlatoust-library.webp") 64% bottom / cover no-repeat;
  }

  .cbs-home-hero__content {
    min-height: 560px;
    padding: 42px 34px;
    justify-content: flex-start;
  }

  .cbs-home-hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 900px) {
  body.home .site-header {
    padding: 10px 0 8px;
  }

  body.home .header-topline {
    display: none;
  }

  body.home .site-header .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(100% - 24px, 1280px);
    min-height: 70px;
    padding: 11px 12px;
    border-radius: 18px;
  }

  body.home .site-header .brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
  }

  body.home .site-header .brand-mark {
    flex: 0 0 50px;
    width: 50px;
    height: 44px;
  }

  body.home .site-header .brand > span:last-child {
    min-width: 0;
  }

  body.home .site-header .brand-title {
    display: block;
    max-width: 188px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    color: #151071;
    font-size: 19px;
    line-height: 1.08;
  }

  body.home .site-header .brand-subtitle {
    display: none;
  }

  body.home .site-header .main-nav,
  body.home .site-header .access-link,
  body.home .site-header .font-controls,
  body.home .site-header .desktop-search {
    display: none !important;
  }

  body.home .site-header .header-actions {
    display: flex;
    grid-column: 2;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
  }

  body.home .site-header .search-toggle,
  body.home .site-header .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
  }

  body.home .site-header .site-search {
    width: min(100% - 24px, 1280px);
    margin: 8px auto 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: #fff;
  }

  body.home .site-header .site-search.is-open {
    display: grid;
  }

  body.home .site-header .site-search input {
    min-width: 0;
    height: 44px;
  }

  body.home .site-header .site-search .button {
    min-height: 44px;
    padding-inline: 14px;
  }

  body.home .site-header .mobile-menu.is-open {
    width: min(100% - 24px, 1280px);
    margin: 8px auto 0;
    border-radius: 18px;
  }

  .cbs-home-container {
    width: min(100% - 24px, 1280px);
  }

  .cbs-home-section {
    margin-block: 20px;
  }

  .cbs-home-container > .cbs-home-section:first-child {
    margin-top: 8px;
  }

  .cbs-home-card {
    padding: 22px;
    border-radius: var(--home-radius-md);
  }

  .cbs-home-section-head {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .cbs-home-section-head h2 {
    font-size: 28px;
  }

  .cbs-home-link-more {
    max-width: 110px;
    white-space: normal;
    line-height: 1.2;
    justify-content: flex-end;
    text-align: right;
  }

  .cbs-home-hero {
    border-radius: var(--home-radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.93) 43%, rgba(255,255,255,.26) 100%),
      url("../images/ref-hero-zlatoust-library.webp") 62% bottom / cover no-repeat;
  }

  .cbs-home-hero__content {
    min-height: 560px;
    padding: 32px 24px;
  }

  .cbs-home-eyebrow {
    font-size: 17px;
  }

  .cbs-home-hero h1 {
    font-size: 40px;
    line-height: .98;
  }

  .cbs-home-hero p:not(.cbs-home-eyebrow) {
    font-size: 16px;
  }

  .cbs-home-actions,
  .cbs-home-button {
    width: 100%;
  }

  .cbs-home-news-events {
    display: flex;
    flex-direction: column;
  }

  .cbs-home-news-events .cbs-home-events-card {
    order: -1;
  }

  .cbs-home-news-item a,
  .cbs-home-event-item a,
  .cbs-home-kids-layout,
  .cbs-home-library-visuals {
    grid-template-columns: 1fr;
  }

  .cbs-home-news-thumb {
    height: 150px;
  }

  .cbs-home-event-item a {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .cbs-home-grid-auto {
    grid-template-columns: 1fr;
  }

  .cbs-home-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbs-home-service-item {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    min-height: 78px;
    text-align: left;
  }

  .cbs-home-service-item img {
    margin: 0;
  }

  .cbs-home-novelty-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .cbs-home-novelty-item a {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cbs-home-novelty-thumb {
    width: 100%;
    min-width: 0;
  }

  body.home .site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100% - 24px, 1280px);
    padding: 22px 18px;
  }

  body.home .site-footer .footer-brand-col,
  body.home .site-footer .footer-contact,
  body.home .site-footer .footer-nav,
  body.home .site-footer .footer-subscribe {
    min-width: 0;
  }

  body.home .site-footer .brand {
    align-items: center;
    max-width: 100%;
  }

  body.home .site-footer .brand > span:last-child {
    min-width: 0;
  }

  body.home .site-footer .brand-title {
    display: block;
    max-width: 230px;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.05;
  }

  body.home .site-footer .footer-contact {
    order: 2;
  }

  body.home .site-footer .footer-nav {
    order: 3;
  }

  body.home .site-footer .footer-subscribe {
    order: 4;
    width: 100%;
  }

  body.home .site-footer .footer-subscribe > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  body.home .site-footer .footer-legal {
    order: 5;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .cbs-home-hero h1 {
    font-size: 36px;
  }

  .cbs-home-card {
    padding: 18px;
  }
}

@media (max-width: 340px) {
  body.home .site-header .brand-title {
    max-width: 128px;
    font-size: 14px;
  }

  body.home .site-header .brand-mark {
    flex-basis: 36px;
    width: 36px;
    height: 32px;
  }

  body.home .site-header .search-toggle,
  body.home .site-header .menu-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .cbs-home-mini-grid,
  .cbs-home-novelty-list {
    grid-template-columns: 1fr;
  }

  .cbs-home-novelty-item a {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
  }

  .cbs-home-novelty-thumb {
    width: 82px;
  }

  body.home .site-footer .brand-title {
    max-width: 190px;
    font-size: 20px;
  }
}
