:root {
  --blue: #0f54db;
  --blue-2: #2f62e8;
  --tile: rgba(255, 255, 255, 0.17);
  --chip: #1459c8;
  --ink: #0d243b;
  --muted: #697585;
  --bg: #f6faff;
}

@media (min-width: 761px) {
  .header {
    width: min(1520px, calc(100% - 64px));
    height: 72px;
  }

  .logo {
    font-size: 29px;
  }

  .audience {
    font-size: 18px;
  }

  .desktop-nav {
    gap: 28px;
    font-size: 19px;
  }

  .desktop-search-link svg {
    width: 30px;
    height: 30px;
  }

  .login {
    min-width: 94px;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 19px;
  }

  .blue-zone {
    min-height: 486px;
    padding: 24px 0 46px;
  }

  .category-nav {
    width: min(1520px, calc(100% - 64px));
    gap: 16px;
    margin-bottom: 44px;
  }

  .category-nav a {
    gap: 9px;
    font-size: 16px;
  }

  .category-nav svg {
    width: 34px;
    height: 34px;
  }

  .hero-grid {
    grid-template-columns: 220px minmax(0, 1020px);
    width: min(1260px, calc(100% - 64px));
    gap: 24px;
  }

  .desktop-bot {
    min-height: 220px;
    transform: scale(.86);
    transform-origin: top center;
  }

  .feature-card {
    grid-template-columns: 40px 1fr 16px;
    gap: 14px;
    min-height: 76px;
    padding: 15px 16px;
    font-size: 19px;
  }

  .feature-card svg,
  .feature-card .editable-icon {
    width: 38px;
    height: 38px;
  }

  .feature-card b {
    font-size: 30px;
  }

  .search {
    height: 60px;
    margin-bottom: 14px;
  }

  .search input {
    font-size: 21px;
  }

  .search button svg {
    width: 36px;
    height: 36px;
  }

  .chips button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 18px;
  }

  .portal-news {
    width: min(1520px, calc(100% - 64px));
    padding: 72px 0 80px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h1,
  .services h2 {
    font-size: 38px;
  }

  .news-strip {
    grid-auto-columns: 214px;
    gap: 34px;
  }

  .news-card {
    grid-template-rows: 118px 1fr;
    width: 214px;
    min-height: 236px;
    padding: 18px 18px 16px;
  }

  .news-card svg,
  .news-card .editable-icon {
    width: 112px;
    height: 92px;
  }

  .news-card h2 {
    font-size: 19px;
    line-height: 1.38;
  }

  .services {
    padding: 72px max(32px, calc((100% - 1520px) / 2)) 72px;
  }

  .more-info {
    top: 82px;
    right: max(32px, calc((100% - 1520px) / 2));
    font-size: 20px;
  }

  .service-panel {
    gap: 34px;
    margin-top: 40px;
  }

  .service-item {
    gap: 15px;
    min-height: 214px;
    padding: 26px;
  }

  .service-item svg,
  .service-item .editable-icon {
    width: 44px;
    height: 44px;
  }

  .service-item strong {
    margin-top: 5px;
    font-size: 19px;
  }

  .service-item span {
    font-size: 19px;
    line-height: 1.36;
  }

  .payment-card {
    min-height: 214px;
  }

  .ruble {
    min-height: 122px;
    font-size: 72px;
  }

  .payment-card a {
    font-size: 19px;
  }

  .footer-links {
    padding: 72px max(32px, calc((100% - 1520px) / 2));
  }

  .footer-links a,
  .city-link {
    font-size: 21px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
}

body.is-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 26px;
  align-items: center;
  height: 124px;
  padding: 0 32px 0 36px;
  background: #fff;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.loader-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loader-logo,
.login-logo {
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.loader-logo span,
.login-logo span {
  color: #0067b4;
}

.loader-logo strong,
.login-logo strong {
  color: #ee315e;
}

.loader-screen h1 {
  margin: 38px 0 4px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.loader-screen p {
  margin: 0;
  color: #5f6e80;
  font-size: clamp(22px, 3vw, 32px);
}

.loader-dots {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.loader-dots span {
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 900ms infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.loader-dots span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.menu {
  display: grid;
  gap: 9px;
  width: 40px;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu span {
  display: block;
  width: 40px;
  height: 4px;
  background: #064bd3;
  border-radius: 999px;
}

.logo {
  justify-self: start;
  font-size: 41px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.logo span {
  color: #0067b4;
}

.logo strong {
  color: #ee315e;
  font-weight: 900;
}

.login {
  padding: 0;
  color: #064bd3;
  background: transparent;
  border: 0;
  font-size: 33px;
  line-height: 1;
}

.audience,
.desktop-nav,
.category-nav,
.desktop-bot {
  display: none;
}

.blue-zone {
  padding: 64px 128px 64px;
  background: linear-gradient(145deg, #1552e6 0%, #5175ec 100%);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.feature-card {
  display: grid;
  grid-template-columns: 58px 1fr 24px;
  gap: 26px;
  align-items: center;
  min-height: 112px;
  padding: 22px 30px;
  color: #fff;
  background: var(--tile);
  border-radius: 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.32;
}

.feature-card svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.editable-icon {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.feature-card .editable-icon {
  width: 58px;
  height: 58px;
}

.category-nav .editable-icon,
.service-item .editable-icon {
  width: 48px;
  height: 48px;
}

.news-card .editable-icon {
  width: 180px;
  height: 140px;
}

.feature-card b {
  justify-self: end;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
}

.search {
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  align-items: center;
  height: 104px;
  margin-bottom: 31px;
  padding: 0 24px;
  background: #fff;
  border-radius: 14px;
}

.bot {
  width: 68px;
  height: 68px;
  background:
    radial-gradient(circle at 50% 44%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 62% 43%, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 50% 50%, #2b86e8 0 31px, transparent 32px),
    linear-gradient(145deg, #dfeaff, #8bb8ff);
  border: 7px solid #eef4ff;
  border-radius: 50%;
  box-shadow: inset 0 -16px 18px rgba(14, 50, 91, 0.24);
}

.search input {
  min-width: 0;
  height: 100%;
  color: #627083;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 30px;
}

.search button {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.search button svg {
  width: 52px;
  height: 52px;
  fill: #94aae7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.chips button {
  min-height: 81px;
  padding: 0 24px;
  color: #fff;
  background: var(--chip);
  border: 0;
  border-radius: 38px;
  font-size: 31px;
  font-weight: 700;
}

.portal-news {
  padding: 132px 0 137px 32px;
  overflow: hidden;
  background: #fff;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 32px;
  margin-bottom: 68px;
}

.section-head h1,
.services h2 {
  margin: 0;
  font-size: 49px;
  line-height: 1.1;
  letter-spacing: 0;
}

.arrows {
  display: flex;
  gap: 28px;
}

.arrows button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #064bd3;
  background: #e8f0ff;
  border: 0;
  border-radius: 50%;
  font-size: 45px;
  line-height: 1;
}

.news-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 352px;
  gap: 64px;
  overflow-x: auto;
  padding-right: 32px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.news-strip::-webkit-scrollbar {
  display: none;
}

.news-card {
  display: grid;
  grid-template-rows: 215px 1fr;
  width: 352px;
  min-height: 392px;
  padding: 25px 32px 28px 16px;
  overflow: hidden;
  border-radius: 20px;
  scroll-snap-align: start;
}

.news-card.mint {
  background:
    radial-gradient(circle at 80% 14%, rgba(202, 255, 234, 0.65), transparent 42%),
    linear-gradient(145deg, #eaf4ff, #effff6);
}

.news-card.peach {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 223, 233, 0.8), transparent 44%),
    linear-gradient(145deg, #eef5ff, #fff2f5);
}

.news-card.violet {
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 226, 255, 0.85), transparent 45%),
    linear-gradient(145deg, #eef5ff, #f7f1ff);
}

.news-card svg {
  width: 180px;
  height: 140px;
  align-self: center;
  justify-self: center;
  fill: none;
  stroke: #050505;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.news-card .accent {
  fill: #8ce8c7;
  stroke: none;
}

.news-card.peach .accent {
  fill: #ffc38d;
}

.news-card.violet .accent,
.news-card .spark {
  stroke: #d7c3ff;
}

.news-card h2 {
  align-self: end;
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.48;
  letter-spacing: 0;
}

.services {
  padding: 72px 32px 120px;
  background: var(--bg);
}

.service-panel {
  display: grid;
  gap: 64px;
  margin-top: 68px;
}

.service-item {
  display: grid;
  gap: 24px;
  min-height: 312px;
  padding: 52px 56px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(39, 94, 166, 0.08);
}

.service-item svg {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: #4d82ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.service-item strong {
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.22;
}

.service-item span {
  color: #6b7888;
  font-size: 30px;
  line-height: 1.35;
}

.payment-card {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(39, 94, 166, 0.08);
}

.ruble {
  display: grid;
  min-height: 215px;
  place-items: center;
  color: #ffae4d;
  background: #eef4ff;
  font-size: 116px;
  font-weight: 400;
}

.payment-card a {
  display: grid;
  place-items: center;
  padding: 28px;
  color: #1154df;
  font-size: 34px;
  text-align: center;
}

.more-info {
  display: inline-block;
  margin-top: 44px;
  color: #1154df;
  font-size: 32px;
}

.footer-links {
  display: grid;
  gap: 34px;
  padding: 128px 32px 72px;
  background: #eef6fc;
}

.footer-links a {
  color: #657384;
  font-size: 34px;
}

/* Desktop portal layout */
@media (min-width: 761px) {
  .header {
    grid-template-columns: auto auto 1fr auto;
    width: min(1700px, calc(100% - 64px));
    height: 88px;
    padding: 0;
    margin: 0 auto;
  }

  .menu {
    display: none;
  }

  .logo {
    font-size: 33px;
  }

  .audience {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 0;
    color: #064bd3;
    background: transparent;
    border: 0;
    font-size: 21px;
  }

  .audience svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.8;
  }

  .desktop-nav {
    display: flex;
    gap: 33px;
    align-items: center;
    justify-content: flex-end;
    color: #064bd3;
    font-size: 22px;
  }

  .desktop-search-link {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
  }

  .desktop-search-link svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.2;
  }

  .login {
    min-width: 110px;
    height: 54px;
    padding: 0 22px;
    color: #064bd3;
    background: #eef3ff;
    border-radius: 14px;
    font-size: 22px;
  }

  .blue-zone {
    min-height: 574px;
    padding: 28px 0 56px;
    background: linear-gradient(145deg, #1852e8 0%, #5879ee 100%);
  }

  .category-nav {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    width: min(1700px, calc(100% - 64px));
    margin: 0 auto 62px;
  }

  .category-nav a {
    display: grid;
    gap: 12px;
    justify-items: center;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
  }

  .category-nav svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.56);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1090px);
    gap: 28px;
    width: min(1370px, calc(100% - 64px));
    margin: 0 auto;
  }

  .desktop-bot {
    position: relative;
    display: block;
    min-height: 260px;
  }

  .tree {
    position: absolute;
    left: 56px;
    top: 8px;
    width: 96px;
    height: 130px;
    background:
      radial-gradient(circle at 20% 20%, #9dd350 0 4px, transparent 5px),
      radial-gradient(circle at 60% 10%, #aee05f 0 4px, transparent 5px),
      radial-gradient(circle at 80% 36%, #86c846 0 4px, transparent 5px),
      radial-gradient(circle at 42% 52%, #b4e36a 0 4px, transparent 5px),
      linear-gradient(90deg, transparent 46px, #d8e9c1 47px 51px, transparent 52px);
  }

  .tree::before,
  .tree::after {
    position: absolute;
    left: 48px;
    width: 64px;
    height: 3px;
    content: "";
    background: #d8e9c1;
    transform-origin: left center;
  }

  .tree::before {
    top: 40px;
    transform: rotate(-28deg);
  }

  .tree::after {
    top: 65px;
    transform: rotate(23deg);
  }

  .bot-body {
    position: absolute;
    left: 78px;
    top: 94px;
    width: 92px;
    height: 126px;
    background:
      radial-gradient(circle at 42% 30%, #fff 0 3px, transparent 4px),
      radial-gradient(circle at 62% 30%, #fff 0 3px, transparent 4px),
      linear-gradient(165deg, #0d71d9, #85b6ff);
    border: 10px solid #cbd9e9;
    border-radius: 44px 44px 32px 32px;
    box-shadow: 0 14px 30px rgba(5, 25, 90, 0.26);
  }

  .bot-body::before,
  .bot-body::after {
    position: absolute;
    bottom: -18px;
    width: 22px;
    height: 44px;
    content: "";
    background: #dfe7f0;
    border-radius: 999px;
  }

  .bot-body::before {
    left: 4px;
    transform: rotate(-18deg);
  }

  .bot-body::after {
    right: 4px;
    transform: rotate(18deg);
  }

  .hero-tools {
    min-width: 0;
  }

  .feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
  }

  .feature-card {
    grid-template-columns: 46px 1fr 18px;
    gap: 17px;
    min-height: 86px;
    padding: 18px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1.26;
  }

  .feature-card svg {
    width: 43px;
    height: 43px;
    stroke-width: 3.2;
  }

  .feature-card b {
    font-size: 34px;
  }

  .search {
    grid-template-columns: 1fr 62px;
    height: 70px;
    margin-bottom: 16px;
    padding: 0 16px;
    border-radius: 8px;
  }

  .search .bot {
    display: none;
  }

  .search input {
    font-size: 24px;
  }

  .search button svg {
    width: 42px;
    height: 42px;
  }

  .chips {
    gap: 10px;
  }

  .chips button {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 26px;
    font-size: 21px;
  }

  .portal-news {
    width: min(1700px, calc(100% - 64px));
    padding: 92px 0 96px;
    margin: 0 auto;
    background: #fff;
  }

  .section-head {
    padding-right: 0;
    margin-bottom: 48px;
  }

  .section-head h1,
  .services h2 {
    font-size: 44px;
  }

  .arrows {
    gap: 24px;
  }

  .arrows button {
    width: 40px;
    height: 40px;
    font-size: 38px;
  }

  .news-strip {
    grid-auto-columns: 246px;
    gap: 43px;
    padding-right: 0;
  }

  .news-card {
    grid-template-rows: 142px 1fr;
    width: 246px;
    min-height: 272px;
    padding: 22px 22px 18px;
    border-radius: 14px;
  }

  .news-card svg {
    width: 132px;
    height: 108px;
  }

  .news-card h2 {
    font-size: 22px;
    line-height: 1.45;
  }

  .news-card:nth-child(7) {
    order: 1;
  }

  .news-card:nth-child(8) {
    order: 2;
  }

  .news-card:nth-child(9) {
    order: 3;
  }

  .news-card:nth-child(3) {
    order: 4;
  }

  .news-card:nth-child(4) {
    order: 5;
  }

  .news-card:nth-child(1) {
    order: 6;
  }

  .news-card:nth-child(2) {
    order: 7;
  }

  .news-card:nth-child(5) {
    order: 8;
  }

  .news-card:nth-child(6) {
    order: 9;
  }

  .services {
    position: relative;
    padding: 92px max(32px, calc((100% - 1700px) / 2)) 88px;
  }

  .more-info {
    position: absolute;
    top: 102px;
    right: max(32px, calc((100% - 1700px) / 2));
    margin: 0;
    font-size: 23px;
  }

  .service-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 43px;
    margin-top: 50px;
  }

  .service-item {
    gap: 20px;
    min-height: 246px;
    padding: 34px;
    border-radius: 14px;
  }

  .service-item svg {
    width: 52px;
    height: 52px;
  }

  .service-item strong {
    margin-top: 8px;
    font-size: 22px;
  }

  .service-item span {
    font-size: 22px;
    line-height: 1.42;
  }

  .payment-card {
    min-height: 246px;
    border-radius: 14px;
  }

  .ruble {
    min-height: 148px;
    font-size: 86px;
  }

  .payment-card a {
    padding: 20px;
    font-size: 22px;
  }

  .footer-links {
    grid-template-columns: 1fr 1.4fr 1fr auto;
    gap: 48px;
    padding: 86px max(32px, calc((100% - 1700px) / 2));
    align-items: start;
  }

  .footer-links div {
    display: grid;
    gap: 26px;
  }

  .footer-links a,
  .city-link {
    color: #657384;
    font-size: 24px;
  }

  .city-link {
    display: inline-grid;
    grid-template-columns: 28px auto;
    gap: 10px;
    align-items: center;
  }

  .city-link svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
  }

  .socials {
    display: flex !important;
    grid-auto-flow: column;
    gap: 14px !important;
  }

  .socials a {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #fff;
    background: #8491a0;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 900;
  }
}

.mobile-menu-screen,
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  overflow: auto;
  background: #fff;
}

.mobile-menu-screen.is-open,
.login-screen.is-open {
  display: block;
}

.overlay-header {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 26px;
  align-items: center;
  height: 126px;
  padding: 0 32px 0 40px;
  border-bottom: 1px solid #d7d7d7;
  background: #fff;
}

.close-x,
.login-close {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.close-x::before,
.close-x::after,
.login-close::before,
.login-close::after {
  position: absolute;
  top: 20px;
  left: 1px;
  width: 44px;
  height: 3px;
  content: "";
  background: #064bd3;
  border-radius: 999px;
}

.close-x::before,
.login-close::before {
  transform: rotate(45deg);
}

.close-x::after,
.login-close::after {
  transform: rotate(-45deg);
}

.citizen-row {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 0 38px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid #d7d7d7;
  font-size: 33px;
  text-align: left;
}

.citizen-row svg,
.search-link svg {
  fill: none;
  stroke: #064bd3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.menu-links {
  display: grid;
  gap: 42px;
  padding: 52px 40px;
}

.menu-links a {
  color: #064bd3;
  font-size: 34px;
  line-height: 1.12;
}

.search-link {
  display: inline-grid;
  grid-template-columns: 45px auto;
  gap: 20px;
  align-items: center;
}

.search-link svg {
  width: 45px;
  height: 45px;
  stroke-width: 3.5;
}

.login-screen {
  background: #dfeaff;
}

.login-card {
  position: relative;
  width: min(390px, calc(100% - 32px));
  min-height: auto;
  margin: 18px auto;
  padding: 22px 30px 20px;
  background: #fff;
  border-radius: 18px;
  text-align: center;
}

.login-card .login-logo {
  font-size: 34px;
}

.login-close {
  position: absolute;
  top: 24px;
  left: 24px;
}

.language {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  color: #064bd3;
  background: transparent;
  border: 0;
  font-size: 16px;
}

.language i {
  width: 26px;
  height: 26px;
  background:
    linear-gradient(#fff 0 33%, #315be8 33% 66%, #d61f36 66%),
    #fff;
  border: 3px solid #d7e1ff;
  border-radius: 50%;
}

.login-card h1 {
  margin: 20px 0 10px;
  font-size: 25px;
  line-height: 1.08;
}

.login-copy {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.35;
}

.fake-qr {
  display: grid;
  grid-template-columns: repeat(29, 1fr);
  gap: 0;
  width: 148px;
  height: 148px;
  margin: 0 auto 10px;
  padding: 0;
  background: #fff;
  border: 5px solid #fff;
}

.qr-cell {
  background: #fff;
}

.qr-cell.is-dark {
  background: #000;
}

.editable-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timer-line {
  margin: 0 0 10px;
  font-size: 15px;
}

.timer-line strong {
  margin-left: 10px;
}

.qr-help,
.other-login a {
  color: #064bd3;
}

.qr-help {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 15px;
}

.login-divider {
  height: 1px;
  margin-bottom: 12px;
  background: #ddd;
}

.other-login {
  margin: 0 0 12px;
  font-size: 15px;
}

.outline-login {
  display: block;
  width: min(310px, 100%);
  height: 40px;
  margin: 0 auto 10px;
  color: #064bd3;
  background: #fff;
  border: 2px solid #064bd3;
  border-radius: 12px;
  font-size: 16px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 16px 20px;
  color: #fff;
  background: #0d243b;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(7, 53, 117, 0.22);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 761px) and (max-width: 1200px) {
  .blue-zone {
    padding-right: 48px;
    padding-left: 48px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .news-strip {
    grid-template-columns: repeat(5, 320px);
    gap: 32px;
  }

  .news-card {
    width: 320px;
  }
}

@media (max-width: 760px) {
  .audience,
  .desktop-nav,
  .category-nav,
  .desktop-bot {
    display: none;
  }

  .header {
    height: 74px;
    grid-template-columns: 38px 1fr auto;
    gap: 14px;
    padding: 0 18px;
  }

  .menu,
  .menu span {
    width: 34px;
  }

  .logo {
    font-size: 26px;
  }

  .login {
    font-size: 21px;
  }

  .blue-zone {
    padding: 24px 18px 32px;
  }

  .hero-grid {
    display: block;
  }

  .feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .feature-card {
    grid-template-columns: 36px 1fr 18px;
    min-height: 72px;
    padding: 14px 16px;
    font-size: 19px;
    border-radius: 12px;
  }

  .feature-card:nth-child(1) {
    order: 2;
  }

  .feature-card:nth-child(2) {
    order: 1;
  }

  .feature-card:nth-child(3) {
    order: 3;
  }

  .feature-card svg {
    width: 36px;
    height: 36px;
  }

  .search {
    grid-template-columns: 46px 1fr 42px;
    height: 66px;
    margin-bottom: 18px;
    padding: 0 12px;
    border-radius: 10px;
  }

  .bot {
    width: 42px;
    height: 42px;
    border-width: 5px;
  }

  .search input {
    font-size: 19px;
  }

  .search button svg {
    width: 38px;
    height: 38px;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .chips button {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 17px;
    font-size: 18px;
  }

  .portal-news {
    padding: 48px 0 54px 18px;
  }

  .section-head h1,
  .services h2 {
    font-size: 34px;
  }

  .arrows {
    display: none;
  }

  .news-strip {
    grid-auto-columns: 238px;
    gap: 16px;
    overflow-x: auto;
    padding-right: 18px;
  }

  .news-card {
    width: 238px;
    min-height: 286px;
    grid-template-rows: 150px 1fr;
    padding: 18px;
  }

  .news-card h2 {
    font-size: 23px;
  }

  .services {
    padding: 42px 18px 56px;
  }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
    padding: 0;
  }

  .service-item {
    gap: 14px;
    min-height: auto;
    padding: 24px;
    border-radius: 20px;
  }

  .service-item svg {
    width: 44px;
    height: 44px;
  }

  .service-item strong {
    margin-top: 4px;
    font-size: 25px;
    line-height: 1.2;
  }

  .service-item span {
    font-size: 22px;
    line-height: 1.32;
  }

  .payment-card {
    min-height: 210px;
    border-radius: 20px;
  }

  .ruble {
    min-height: 112px;
    font-size: 76px;
  }

  .payment-card a {
    padding: 20px;
    font-size: 23px;
  }

  .more-info {
    margin-top: 28px;
    font-size: 23px;
  }

  .overlay-header {
    grid-template-columns: 38px 1fr auto;
    gap: 14px;
    height: 74px;
    padding: 0 18px;
  }

  .close-x,
  .login-close {
    width: 36px;
    height: 36px;
  }

  .close-x::before,
  .close-x::after,
  .login-close::before,
  .login-close::after {
    top: 16px;
    width: 36px;
  }

  .citizen-row {
    grid-template-columns: 1fr 22px;
    min-height: 64px;
    padding: 0 22px;
    font-size: 22px;
  }

  .citizen-row svg {
    width: 20px;
    height: 20px;
    justify-self: end;
  }

  .menu-links {
    gap: 24px;
    padding: 32px 24px;
  }

  .menu-links a {
    font-size: 23px;
  }

  .search-link {
    grid-template-columns: 36px auto;
    gap: 15px;
  }

  .search-link svg {
    width: 36px;
    height: 36px;
  }

  .login-card {
    width: min(100% - 32px, 430px);
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    padding: 42px 28px 30px;
  }

  .login-logo {
    display: block;
    overflow-wrap: anywhere;
    font-size: 42px;
  }

  .language {
    margin-top: 18px;
    font-size: 21px;
  }

  .language i {
    width: 38px;
    height: 38px;
  }

  .login-card h1 {
    margin: 28px 0 18px;
    font-size: 32px;
  }

  .login-copy {
    margin-bottom: 16px;
    font-size: 19px;
    line-height: 1.5;
  }

  .fake-qr {
    width: min(180px, 54vw);
    height: min(180px, 54vw);
    margin-bottom: 18px;
  }

  .timer-line,
  .qr-help,
  .other-login {
    font-size: 19px;
  }

  .timer-line {
    margin-bottom: 22px;
  }

  .timer-line strong {
    margin-left: 14px;
  }

  .qr-help {
    margin-bottom: 22px;
  }

  .login-divider {
    margin-bottom: 22px;
  }

  .other-login {
    margin-bottom: 22px;
  }

  .outline-login {
    height: 56px;
    border-width: 3px;
    font-size: 20px;
  }

  .footer-links {
    gap: 22px;
    padding: 64px 18px 42px;
  }

  .footer-links div {
    display: grid;
    gap: 22px;
  }

  .footer-links a,
  .city-link {
    font-size: 24px;
  }
}

@media (min-width: 761px) {
  .header {
    width: min(1520px, calc(100% - 64px));
    height: 72px;
  }

  .logo {
    font-size: 29px;
  }

  .audience {
    font-size: 18px;
  }

  .desktop-nav {
    gap: 28px;
    font-size: 19px;
  }

  .desktop-search-link svg {
    width: 30px;
    height: 30px;
  }

  .login {
    min-width: 94px;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 19px;
  }

  .blue-zone {
    min-height: 486px;
    padding: 24px 0 46px;
  }

  .category-nav {
    width: min(1520px, calc(100% - 64px));
    gap: 16px;
    margin-bottom: 44px;
  }

  .category-nav a {
    gap: 9px;
    font-size: 16px;
  }

  .category-nav svg {
    width: 34px;
    height: 34px;
  }

  .hero-grid {
    grid-template-columns: 220px minmax(0, 1020px);
    width: min(1260px, calc(100% - 64px));
    gap: 24px;
  }

  .desktop-bot {
    min-height: 220px;
    transform: scale(.86);
    transform-origin: top center;
  }

  .feature-card {
    grid-template-columns: 40px 1fr 16px;
    gap: 14px;
    min-height: 76px;
    padding: 15px 16px;
    font-size: 19px;
  }

  .feature-card svg,
  .feature-card .editable-icon {
    width: 38px;
    height: 38px;
  }

  .feature-card b {
    font-size: 30px;
  }

  .search {
    height: 60px;
    margin-bottom: 14px;
  }

  .search input {
    font-size: 21px;
  }

  .search button svg {
    width: 36px;
    height: 36px;
  }

  .chips button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 18px;
  }

  .portal-news {
    width: min(1520px, calc(100% - 64px));
    padding: 72px 0 80px;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h1,
  .services h2 {
    font-size: 38px;
  }

  .news-strip {
    grid-auto-columns: 214px;
    gap: 34px;
  }

  .news-card {
    grid-template-rows: 118px 1fr;
    width: 214px;
    min-height: 236px;
    padding: 18px 18px 16px;
  }

  .news-card svg,
  .news-card .editable-icon {
    width: 112px;
    height: 92px;
  }

  .news-card h2 {
    font-size: 19px;
    line-height: 1.38;
  }

  .services {
    padding: 72px max(32px, calc((100% - 1520px) / 2)) 72px;
  }

  .more-info {
    top: 82px;
    right: max(32px, calc((100% - 1520px) / 2));
    font-size: 20px;
  }

  .service-panel {
    gap: 34px;
    margin-top: 40px;
  }

  .service-item {
    gap: 15px;
    min-height: 214px;
    padding: 26px;
  }

  .service-item svg,
  .service-item .editable-icon {
    width: 44px;
    height: 44px;
  }

  .service-item strong {
    margin-top: 5px;
    font-size: 19px;
  }

  .service-item span {
    font-size: 19px;
    line-height: 1.36;
  }

  .payment-card {
    min-height: 214px;
  }

  .ruble {
    min-height: 122px;
    font-size: 72px;
  }

  .payment-card a {
    font-size: 19px;
  }

  .footer-links {
    padding: 72px max(32px, calc((100% - 1520px) / 2));
  }

  .footer-links a,
  .city-link {
    font-size: 21px;
  }
}
