:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #16120f;
  --muted: #675f56;
  --line: #eadfcd;
  --yellow: #ffd21e;
  --yellow-strong: #ffc400;
  --yellow-soft: #fff1b8;
  --brown: #33231c;
  --green: #16854a;
  --shadow: 0 22px 70px rgba(51, 35, 28, 0.13);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(234, 223, 205, 0.72);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 190px;
  height: auto;
}

.header-search {
  position: relative;
  flex: 1 1 340px;
  max-width: 420px;
}

.header-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-search::after {
  content: "→";
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  pointer-events: none;
}

.header-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.header-search__results[hidden] {
  display: none;
}

.header-search__results .city-link {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.header-search__results .notice {
  border-radius: 12px;
  font-size: 13px;
}

.mobile-search-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-search-toggle span {
  position: relative;
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.mobile-search-toggle span::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(22, 18, 15, 0.2);
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(255, 196, 0, 0.28);
}

.button--vk {
  min-width: 54px;
  background: #2787f5;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(39, 135, 245, 0.22);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #1e1712;
}

.hero--inner {
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(22, 18, 15, 0.94) 0%, rgba(22, 18, 15, 0.72) 42%, rgba(22, 18, 15, 0.2) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 76px 0 110px;
  color: #ffffff;
}

.hero__content > :not(.hero__facts) {
  max-width: 680px;
}

.hero__facts {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 210, 30, 0.45);
  border-radius: 999px;
  background: rgba(255, 210, 30, 0.1);
  color: #ffe57a;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.fact {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.fact strong {
  display: block;
  color: #ffe16a;
  font-size: 24px;
  line-height: 1.1;
}

.fact span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  padding: 82px 0;
}

.section--white {
  background: var(--surface);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section__head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.section__head h2::after,
.content-block h2::after,
.panel h2::after,
.panel h3::after,
.card h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--yellow);
}

.section__head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

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

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(51, 35, 28, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.16;
}

.card h3::after {
  margin-top: 9px;
  margin-bottom: 2px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card--choice {
  overflow: hidden;
}

.card--choice img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin: -4px 0 18px;
  border-radius: 14px;
  background: #fffaf2;
}

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.city-search {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.content-block + .city-search,
.panel + .city-search {
  margin-top: 24px;
}

.city-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.city-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.city-link span {
  color: var(--yellow-strong);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.format-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 106px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(51, 35, 28, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.format-card--visual {
  grid-template-columns: 1fr auto;
  align-items: stretch;
  min-height: 320px;
  padding: 18px;
  overflow: hidden;
}

.format-card--visual img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #fffaf2;
}

.format-card--visual .format-card__body {
  align-self: end;
}

.format-card--visual .format-card__body strong {
  font-size: 24px;
  line-height: 1.02;
}

.format-card--visual .format-card__body small {
  margin-top: 8px;
  font-size: 14px;
}

.format-card--visual .format-card__arrow {
  align-self: end;
}

.format-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 196, 0, 0.72);
  box-shadow: 0 18px 42px rgba(51, 35, 28, 0.12);
}

.format-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  background: #ffdc4d;
  color: var(--ink);
}

.format-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.format-card__icon svg circle,
.format-card__icon svg path {
  vector-effect: non-scaling-stroke;
}

.format-card__body {
  display: grid;
  gap: 5px;
}

.format-card__body strong {
  font-size: 18px;
  line-height: 1.12;
}

.format-card__body small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.format-card__arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 210, 30, 0.22);
  color: var(--yellow-strong);
  font-weight: 900;
}

.card--format .format-card__icon {
  margin-bottom: 18px;
}

.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #fff2bd 0%, var(--bg) 100%);
}

.page-hero--compact {
  padding: 30px 0 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.content-flow {
  max-width: 980px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.panel + .panel,
.content-block + .content-block {
  margin-top: 18px;
}

.content-block h2,
.panel h2,
.panel h3 {
  margin: 0 0 12px;
  line-height: 1.12;
}

.content-block p,
.panel p,
.content-block li {
  color: var(--muted);
}

.content-block ul {
  padding-left: 20px;
}

.income-factor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.income-factor {
  display: inline-flex;
  max-width: 360px;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #eee9e2;
}

.factor-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: var(--brown);
}

.factor-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.income-factor strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

.income-factor span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.benefit-card {
  border: 1px solid rgba(58, 45, 38, 0.08);
  border-radius: 28px;
  background: #fffaf5;
  box-shadow: 0 18px 46px rgba(57, 44, 36, 0.08);
}

.benefit-card--visual {
  min-height: 330px;
  padding: 22px 24px 26px;
}

.benefit-card--visual img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: contain;
  margin-bottom: 16px;
}

.benefit-card h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 0.95;
}

.benefit-card p {
  margin: 0;
}

.auto-cta {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  min-height: 360px;
  padding: 48px 54px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(36, 27, 24, 0.94) 0%, rgba(36, 27, 24, 0.82) 42%, rgba(36, 27, 24, 0.24) 100%),
    var(--auto-bg) center right / cover no-repeat,
    #403735;
  color: #fff;
}

.auto-cta__text {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auto-cta h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.auto-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.auto-cta .button {
  margin-top: 16px;
  min-width: 230px;
}

.cta-box {
  background: var(--ink);
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.76);
}

.floating-action {
  position: fixed;
  right: 24px;
  bottom: 132px;
  z-index: 30;
  display: grid;
  width: min(340px, calc(100vw - 32px));
  gap: 12px;
  pointer-events: none;
}

.floating-action__card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(33, 21, 15, 0.16);
  pointer-events: auto;
}

.floating-action__card h2,
.floating-action__card h3 {
  margin: 0 0 10px;
}

.floating-action__card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.floating-action__card--dark {
  background: rgba(21, 15, 12, 0.96);
  color: #fff;
}

.floating-action__card--dark p {
  color: rgba(255, 255, 255, 0.76);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  padding: 54px 0;
  background: linear-gradient(135deg, #24150f 0%, #392318 58%, #20120d 100%);
  color: rgba(255, 255, 255, 0.78);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: start;
  gap: 36px;
}

.footer__brand {
  max-width: 680px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.footer__logo img {
  width: 178px;
  height: auto;
}

.footer__brand p {
  margin: 20px 0 10px;
  max-width: 720px;
}

.footer__brand span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.footer__nav {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer a {
  color: #fff;
  text-decoration-color: rgba(255, 210, 30, 0.46);
  text-underline-offset: 4px;
}

.privacy-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(255, 210, 30, 0.42);
  border-radius: 22px;
  background: rgba(22, 18, 15, 0.96);
  color: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.privacy-notice[hidden] {
  display: none;
}

.privacy-notice__text {
  display: grid;
  gap: 5px;
}

.privacy-notice__text span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.5;
}

.privacy-notice a {
  color: #ffd21e;
}

.privacy-notice__button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #130f0b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.notice {
  padding: 14px 16px;
  border: 1px solid #ecd17a;
  border-radius: 14px;
  background: #fff7d1;
  color: #5c4811;
  font-size: 14px;
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 520px);
  }

  .topbar__inner {
    min-height: 66px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav {
    display: none;
  }

  .header-search {
    display: none;
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    padding-bottom: 12px;
  }

  .topbar--search-open .header-search {
    display: block;
  }

  .mobile-search-toggle {
    display: inline-flex;
  }

  .header-search__results {
    position: static;
    margin-top: 8px;
    max-height: 280px;
  }

  .logo img {
    width: 172px;
  }

  .hero {
    min-height: auto;
  }

  .hero--inner {
    min-height: auto;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(22, 18, 15, 0.94) 0%, rgba(22, 18, 15, 0.78) 58%, rgba(22, 18, 15, 0.34) 100%), var(--hero-image);
  }

  .hero__content {
    padding: 46px 0 54px;
  }

  .eyebrow {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.25;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.05;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .hero__facts,
  .grid,
  .city-list,
  .format-grid,
  .benefit-grid,
  .auto-cta {
    grid-template-columns: 1fr;
  }

  .content-flow {
    max-width: none;
  }

  .income-factor-grid {
    justify-content: stretch;
  }

  .income-factor {
    width: 100%;
    max-width: none;
  }

  .benefit-card--visual,
  .benefit-card--small {
    min-height: 0;
  }

  .auto-cta {
    min-height: 420px;
    padding: 26px 22px;
    align-content: end;
    background:
      linear-gradient(180deg, rgba(36, 27, 24, 0.28) 0%, rgba(36, 27, 24, 0.92) 64%, rgba(36, 27, 24, 0.96) 100%),
      var(--auto-bg) center top / cover no-repeat,
      #403735;
  }

  .auto-cta .button {
    width: 100%;
  }

  .format-card--visual {
    min-height: 280px;
  }

  .format-card--visual img {
    height: 150px;
  }

  .format-card--visual .format-card__body strong {
    font-size: 22px;
  }

  .hero__facts {
    margin-top: 26px;
  }

  .fact {
    min-height: 74px;
    padding: 14px 16px;
  }

  .fact strong {
    font-size: 22px;
  }

  .fact span {
    margin-top: 4px;
  }

  .section {
    padding: 56px 0;
  }

  .section__head,
  .footer__inner,
  .privacy-notice {
    display: block;
  }

  .footer__nav {
    margin-top: 26px;
  }

  .privacy-notice {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    border-radius: 18px;
  }

  .privacy-notice__button {
    width: 100%;
    margin-top: 14px;
  }

  .section__head p {
    margin-top: 12px;
  }

  .floating-action {
    position: static;
    width: 100%;
    margin-top: 18px;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .city-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Current header/footer markup overrides */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 190px;
  height: auto;
}

.topbar-search {
  position: relative;
  display: flex;
  flex: 1 1 360px;
  max-width: 520px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.topbar-search .button {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
  box-shadow: 0 10px 24px rgba(255, 196, 0, 0.22);
}

.topbar-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.topbar-search__results[hidden] {
  display: none;
}

.topbar-search__results .city-link {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
}

.topbar-search__results .notice {
  width: 100%;
}

.topbar-search__results.city-list {
  grid-template-columns: 1fr;
}

.content-flow {
  max-width: none;
}

.hero__facts--formats {
  max-width: 820px;
}

.fact--format {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 14px;
}

.fact--format img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  object-fit: contain;
  border-radius: 10px;
}

.fact--format span {
  margin-top: 0;
}

.fact--format small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.floating-action {
  bottom: 178px;
}

.footer__logo {
  width: 178px;
  height: auto;
  margin-bottom: 22px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.footer__inner > div:first-child p {
  max-width: 720px;
  margin: 0;
}

.footer__vk {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 700;
}

.footer__inner > div:last-child {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

@media (max-width: 860px) {
  .topbar__inner {
    min-height: 74px;
    flex-wrap: wrap;
  }

  .brand img {
    width: 172px;
  }

  .topbar-search {
    display: none;
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    margin-left: 0;
    flex-wrap: wrap;
    padding-bottom: 12px;
  }

  .topbar.is-search-open .topbar-search {
    display: flex;
  }

  .topbar-search input,
  .topbar-search .button {
    min-height: 48px;
  }

  .topbar-search input {
    flex: 1 1 calc(100% - 112px);
    min-width: 0;
  }

  .topbar-search .button {
    flex: 0 0 96px;
    padding: 0 14px;
  }

  .topbar-search__results {
    position: static;
    flex: 1 0 100%;
    margin-top: 8px;
    max-height: 280px;
  }

  .fact--format {
    min-height: 88px;
  }

  .fact--format img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .floating-action {
    bottom: auto;
  }

  .footer__inner > div:last-child {
    margin-top: 26px;
  }
}

.quick-answer {
  border-color: rgba(255, 204, 0, 0.42);
  background: linear-gradient(135deg, #fff 0%, #fff9df 100%);
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.answer-list li {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.answer-list strong,
.answer-list span {
  display: block;
}

.answer-list strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.answer-list span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.compare-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(150px, 0.8fr) minmax(260px, 1.4fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.compare-row strong {
  color: var(--ink);
  font-size: 18px;
}

.compare-row span {
  color: #8d6b00;
  font-weight: 700;
}

.compare-row p {
  margin: 0;
  color: var(--muted);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.pill-link:hover {
  border-color: #ffd21e;
  background: #fff8d8;
}

.lsi-grid,
.lsi-steps,
.term-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.lsi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lsi-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lsi-steps,
.term-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lsi-card,
.lsi-step,
.term-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.lsi-card strong,
.lsi-step strong,
.term-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.lsi-card p,
.term-card p,
.lsi-step span {
  display: block;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .answer-list {
    grid-template-columns: 1fr;
  }

  .answer-list li {
    min-height: auto;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lsi-grid,
  .lsi-grid--two,
  .lsi-steps,
  .term-grid {
    grid-template-columns: 1fr;
  }
}

/* VK links and support block */
.mobile-vk {
  display: none;
}

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.footer__brand-row .footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 178px;
  height: 58px;
  margin-bottom: 0;
  box-sizing: border-box;
  object-fit: contain;
}

.footer__vk-button {
  width: 178px;
  height: 58px;
  min-height: 58px;
  padding-inline: 22px;
  border-radius: 18px;
  box-sizing: border-box;
}

.not-found {
  min-height: 420px;
}

.section--vk {
  background: var(--cream);
}

.vk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(39, 135, 245, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 70px rgba(39, 135, 245, 0.12);
}

.vk-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 34px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2787f5;
  color: #ffffff;
  font-weight: 800;
}

.vk-panel h2 {
  margin: 0 0 10px;
}

.vk-panel p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .mobile-vk {
    display: inline-flex;
    order: 1;
    width: auto;
    min-width: 58px;
    min-height: 48px;
    padding: 0 16px;
    box-shadow: 0 10px 22px rgba(39, 135, 245, 0.2);
  }

  .mobile-search-toggle {
    order: 2;
    margin-left: -8px;
  }

  .footer__brand-row {
    justify-content: space-between;
    gap: 12px;
  }

  .footer__vk-button {
    width: 178px;
    min-width: 178px;
    padding-inline: 18px;
  }

  .vk-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .vk-panel .button {
    width: 100%;
  }
}
