@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400..900&family=Rubik:wght@300;400;500;600;700&subset=latin,cyrillic");

:root {
  --font-sans: "Rubik", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --ink: #3f424f;
  --muted: #435e92;
  --line: #97b0ce;
  --inactive: #d6e6f1;
  --active: #ff8562;
  --active-dark: #435e92;
  --blue: #435e92;
  --heading: #13429d;
  --paper: #f9feff;
}


* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
}

h1,
h2,
h3 {
  color: var(--heading);
}

button,
input,
select,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button,
a {
  color: inherit;
}

.map-page {
  min-height: 100vh;
  padding: 78px clamp(18px, 4vw, 64px) 20px;
  overflow-x: hidden;
  overflow-y: visible;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  width: 100%;
  margin: 0;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(247, 253, 255, 0.96);
  border-bottom: 1px solid rgba(151, 176, 206, 0.22);
  box-shadow: 0 14px 28px rgba(67, 94, 146, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 139px;
  height: 24px;
  flex: 0 0 auto;
}

.brand > span:last-child {
  position: relative;
  display: block;
  padding-left: 16px;
}

.brand > span:last-child::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background: var(--active);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(255, 133, 98, 0.25);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.site-nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus {
  color: var(--active-dark);
  outline: none;
}

.site-socials {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 4px;
}

.social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: var(--active);
  border: 1px solid rgba(255, 133, 98, 0.28);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(255, 133, 98, 0.18);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.social-link:hover,
.social-link:focus {
  background: var(--active-dark);
  box-shadow: 0 14px 26px rgba(67, 94, 146, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.social-link svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social-link--max span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.travel-ticket {
  position: relative;
  display: block;
  width: clamp(118px, 9.5vw, 170px);
  text-decoration: none;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 200ms ease;
}

.map-travel-ticket {
  position: absolute;
  z-index: 3;
  left: 21.5%;
  bottom: 4.5%;
}

.travel-ticket img {
  display: block;
  width: 100%;
  height: auto;
}

.travel-ticket:hover,
.travel-ticket:focus {
  outline: none;
  transform: rotate(5deg);
}

.travel-ticket:focus-visible {
  border-radius: 4px;
  outline: 3px solid #1095bf;
  outline-offset: 4px;
}

.map-key {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.map-key--inline {
  justify-content: center;
  margin-top: 14px;
}

.map-key span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.key-dot {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--inactive);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.key-dot--active {
  background: var(--active);
  border-color: var(--active);
}

.map-stage {
  position: relative;
  display: grid;
  min-height: calc(100vh - 90px);
  place-items: center;
}

.map-heading {
  position: absolute;
  z-index: 2;
  top: clamp(42px, 8vh, 92px);
  left: 50%;
  width: min(680px, 94vw);
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--active-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
}

.map-heading > p:not(.eyebrow) {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.map-search {
  position: relative;
  z-index: 4;
  width: min(520px, 100%);
  margin: clamp(16px, 2vh, 26px) auto 0;
}

.map-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 48px;
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8 18.1a7.3 7.3 0 1 1 0-14.6 7.3 7.3 0 0 1 0 14.6Zm5.2-2.1 4.5 4.5' stroke='%23435e92' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 17px 50% / 20px 20px no-repeat,
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(151, 176, 206, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(67, 94, 146, 0.09);
  font: inherit;
  outline: none;
}

.map-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(67, 94, 146, 0.12), 0 16px 34px rgba(67, 94, 146, 0.1);
}

.search-results {
  display: grid;
  gap: 2px;
  max-height: min(360px, 46vh);
  margin-top: 8px;
  padding: 6px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(67, 94, 146, 0.16);
}

.search-results[hidden] {
  display: none;
}

.search-result {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 11px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus {
  background: rgba(151, 176, 206, 0.16);
  outline: none;
}

.search-result-type {
  grid-row: span 2;
  align-self: start;
  color: var(--active-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.search-result-meta,
.search-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-empty {
  padding: 12px;
}

.contest-intro {
  width: min(780px, 100%);
  margin: clamp(18px, 3vh, 32px) auto 0;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(151, 176, 206, 0.62);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(67, 94, 146, 0.06);
  text-align: center;
}

.contest-intro p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

.contest-intro p + p {
  margin-top: 12px;
}

.contest-intro a {
  color: var(--active-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.latest-videos {
  width: min(920px, 100%);
  margin: clamp(48px, 7vh, 82px) auto 0;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(151, 176, 206, 0.58);
  border-radius: 8px;
}

.latest-videos h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  text-align: center;
}

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

.latest-video-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(67, 94, 146, 0.08);
  text-decoration: none;
}

.latest-video-link:hover,
.latest-video-link:focus {
  border-color: var(--active);
  outline: none;
}

.latest-video-preview {
  position: relative;
  display: grid;
  aspect-ratio: 9 / 16;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28) 0 7%, transparent 8%),
    linear-gradient(145deg, var(--active), var(--blue));
}

.latest-video-body {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.latest-video-link strong {
  overflow-wrap: anywhere;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.15;
}

.latest-video-link span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.map-shell {
  position: relative;
  width: min(1300px, 100%);
  margin-top: clamp(150px, 19vh, 210px);
}

.russia-map {
  display: block;
  width: 100%;
  aspect-ratio: 512 / 282;
  max-height: 67vh;
  filter: drop-shadow(0 18px 22px rgba(67, 94, 146, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
}

.russia-map path,
.russia-map path:focus,
.russia-map path:focus-visible {
  outline: none;
}

.russia-map.is-ready {
  opacity: 1;
}

.map-tooltip {
  position: fixed;
  z-index: 5;
  display: none;
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  color: white;
  background: var(--blue);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(67, 94, 146, 0.22);
  pointer-events: none;
  transform: translate(14px, 14px);
}

.map-tooltip.visible {
  display: block;
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip strong {
  font-size: 13px;
}

.map-tooltip span {
  margin-top: 3px;
  color: var(--line);
  font-size: 12px;
}

.map-status {
  position: absolute;
  right: 1vw;
  bottom: 3vh;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.status-number {
  color: var(--active);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.active-regions {
  display: none;
}

.region-page {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 64px) 64px;
}

.region-main {
  width: min(1120px, 100%);
  margin: 80px auto 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--active-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.region-heading {
  margin-top: 30px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.region-heading h1 {
  max-width: 820px;
}

.region-summary {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 18px 0 0;
  color: var(--muted);
}

.region-video-count {
  color: var(--active);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.region-content {
  padding-top: 40px;
}

.region-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.abroad-intro {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.abroad-video-groups {
  display: grid;
  gap: 44px;
}

.region-year-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.region-placeholder {
  margin-top: 18px;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.video-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.video-preview {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28) 0 7%, transparent 8%),
    linear-gradient(145deg, var(--active), var(--blue));
}

.video-preview::before {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  content: "";
}

.video-play {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  place-items: center;
  color: var(--ink);
  background: white;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(67, 94, 146, 0.25);
  font-size: 15px;
}

.video-card--load-error .video-preview::after,
.video-card--load-error .latest-video-preview::after {
  position: relative;
  z-index: 2;
  padding: 0 14px;
  color: #ffffff;
  content: "Видео недоступно";
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.video-card--load-error .video-play {
  display: none;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--blue);
  object-fit: cover;
}

.video-card-body {
  padding: 18px;
}

.video-author {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 960px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .map-page {
    padding: 132px 14px 18px;
  }

  .topbar {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 2px;
    padding: 12px 14px;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    width: 116px;
    height: auto;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 10px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 8px;
  }

  .site-nav-link {
    min-height: 32px;
    font-size: 12px;
  }

  .site-socials {
    margin-left: auto;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link svg {
    width: 17px;
    height: 17px;
  }

  .social-link--max span {
    font-size: 9px;
  }

  .map-stage {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    align-content: start;
    padding-top: 132px;
    justify-items: center;
  }

  .map-heading {
    top: 34px;
  }

  .map-heading > p:not(.eyebrow) {
    max-width: 290px;
    font-size: 13px;
  }

  .map-key--inline {
    display: none;
  }

  .map-shell {
    width: 960px;
    margin-top: 0;
    transform: translateX(-17%);
  }

  .map-search,
  .contest-intro,
  .latest-videos,
  .active-regions {
    width: min(100%, calc(100vw - 28px));
    justify-self: center;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result-type {
    grid-row: auto;
  }

  .contest-intro {
    margin-top: 24px;
    padding: 18px;
    text-align: left;
  }

  .contest-intro p {
    font-size: 14px;
  }

  .latest-videos {
    margin-top: 38px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .latest-videos h2 {
    text-align: left;
  }

  .latest-videos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .russia-map {
    max-height: none;
  }

  .map-status {
    position: static;
    justify-self: start;
    margin-top: 8px;
  }

  .active-regions {
    display: block;
    width: 100%;
    margin-top: 30px;
  }

  .active-regions h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
  }

  .active-regions-list {
    border-top: 1px solid var(--line);
  }

  .active-region-link {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-decoration: none;
  }

  .active-region-link strong {
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    color: white;
    background: var(--active);
    border-radius: 50%;
    font-size: 12px;
  }

  .region-page {
    padding: 18px 14px 48px;
  }

  .region-main {
    margin-top: 54px;
  }

  .region-heading {
    margin-top: 24px;
  }

  .region-heading h1 {
    font-size: 36px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

}

.year-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: rgba(151, 176, 206, 0.18);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.year-tabs a {
  min-width: 74px;
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.year-tabs a.is-active {
  color: white;
  background: var(--active);
  box-shadow: 0 8px 18px rgba(255, 133, 98, 0.24);
}

.city-video-groups {
  display: grid;
  gap: 44px;
  margin-top: 34px;
}

.city-video-group h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.abroad-country-group {
  display: grid;
  gap: 30px;
}

.abroad-locality-group h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.abroad-locality-group.has-heading .video-grid {
  margin-top: 18px;
}

.abroad-locality-group:not(.has-heading) .video-grid {
  margin-top: 0;
}

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

.video-card {
  display: flex;
  flex-direction: column;
}

.video-preview {
  aspect-ratio: 9 / 16;
}

.video-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.video-author {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.2;
}

.video-nomination {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.show-more-videos {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 18px;
  color: var(--active-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.show-more-videos:hover,
.show-more-videos:focus {
  border-color: var(--active);
  outline: none;
}

.video-main {
  width: min(1180px, 100%);
  margin: 70px auto 0;
}

.video-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.video-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
  margin-top: 30px;
}

.video-view-frame {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 58px rgba(67, 94, 146, 0.16);
}

.video-view-player {
  display: block;
  width: 100%;
  max-height: calc(100vh - 190px);
  aspect-ratio: 9 / 16;
  background: #000000;
  object-fit: contain;
}

.video-view-error {
  position: absolute;
  inset: auto 18px 18px;
  margin: 0;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(67, 94, 146, 0.92);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.video-view-meta {
  padding-top: 4px;
}

.video-view-meta h1 {
  margin-top: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.video-details {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
}

.video-details div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.video-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-details dd {
  margin: 7px 0 0;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.2;
}

.admin-main {
  width: min(1040px, 100%);
  margin: 70px auto 0;
}

.admin-login {
  width: min(460px, 100%);
  margin: 0 auto;
}

.admin-login h1,
.admin-heading h1 {
  margin-top: 0;
}

.admin-login-form,
.admin-video-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.admin-video-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-login-form label,
.admin-video-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-login-form input,
.admin-video-form input,
.admin-video-form select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-video-form input[type="file"] {
  min-height: 44px;
  padding: 10px 12px;
  background: var(--paper);
}

.admin-login-form input:focus,
.admin-video-form input:focus,
.admin-video-form select:focus {
  border-color: var(--blue);
  outline: none;
}

.admin-checkbox {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  gap: 10px !important;
  color: var(--ink) !important;
}

.admin-checkbox input {
  min-height: 0;
}

.admin-submit,
.admin-secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.admin-submit {
  color: #ffffff;
  background: var(--active);
  border: 1px solid var(--active);
}

.admin-video-form .admin-submit,
.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-video-form .admin-submit {
  justify-self: start;
}

.admin-secondary {
  color: var(--active-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.admin-note,
.admin-empty,
.admin-feedback {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-feedback:empty {
  display: none;
}

.admin-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-incoming,
.admin-drafts,
.admin-videos {
  margin-top: 38px;
}

.admin-section-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.admin-drafts h2,
.admin-videos h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.admin-incoming-list,
.admin-drafts-list,
.admin-videos-list {
  display: grid;
  gap: 12px;
}

.admin-video-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 190px;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-video-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-video-filters input,
.admin-video-filters select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-video-filters input:focus,
.admin-video-filters select:focus {
  border-color: var(--blue);
  outline: none;
}

.admin-incoming-card,
.admin-draft-card,
.admin-video-row {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-incoming-card,
.admin-draft-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.admin-incoming-card {
  border-color: rgba(255, 133, 98, 0.36);
  background: rgba(255, 133, 98, 0.08);
}

.admin-incoming-card p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.admin-video-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.admin-incoming-card strong,
.admin-draft-card strong,
.admin-video-row strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 20px;
}

.admin-incoming-card span,
.admin-draft-card span,
.admin-video-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.admin-video-actions {
  display: flex;
  gap: 8px;
}

.admin-video-actions button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--active-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.admin-video-actions button:hover,
.admin-video-actions button:focus {
  border-color: var(--active);
  outline: none;
}

.content-page {
  min-height: 100vh;
  padding-top: 78px;
}

.content-main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.content-main h1 {
  max-width: 860px;
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.02;
}

.content-lead {
  max-width: 720px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
}

.content-card,
.archive-warning {
  max-width: 820px;
  margin: 22px 0;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(67, 94, 146, 0.06);
}

.content-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.content-card p,
.content-card li,
.content-note,
.archive-warning {
  font-size: 16px;
  line-height: 1.65;
}

.content-card ol {
  margin: 0;
  padding-left: 24px;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  position: relative;
  padding-left: 30px;
}

.rules-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  content: "✨";
}

.content-card li + li {
  margin-top: 10px;
}

.content-card a {
  color: var(--blue);
}

.content-note {
  max-width: 760px;
  color: var(--muted);
}

.content-note a {
  color: var(--blue);
}

.rules-main a {
  font-weight: 500;
  text-decoration: none;
}

.rules-main h1 + .content-card {
  margin-top: 34px;
}

.rules-main .content-card strong {
  font-weight: 500;
}

.archive-warning {
  color: var(--ink);
  background: rgba(255, 133, 98, 0.1);
  border-color: rgba(255, 133, 98, 0.42);
}

.archive-film-grid {
  display: grid;
  gap: 28px;
}

.archive-main--spaced h1 + .archive-film-grid {
  margin-top: 34px;
}

.archive-film-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(67, 94, 146, 0.08);
}

.archive-film-frame {
  min-height: 300px;
  background: var(--blue);
}

.archive-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.archive-film-unavailable {
  display: grid;
  min-height: 300px;
  padding: 32px;
  place-content: center;
  gap: 10px;
  color: #ffffff;
  text-align: center;
}

.archive-film-unavailable strong {
  font-family: var(--font-display);
  font-size: 25px;
}

.archive-film-unavailable span {
  max-width: 420px;
  color: var(--line);
  line-height: 1.5;
}

.archive-film-body {
  padding: clamp(22px, 3vw, 34px);
}

.archive-film-body h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

.archive-film-body p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.archive-regions-list {
  display: grid;
  gap: 34px;
}

.archive-region-year h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
}

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

.archive-region-links a {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.archive-region-links a:hover,
.archive-region-links a:focus {
  border-color: var(--active);
  outline: none;
}

.archive-region-links span {
  color: var(--muted);
  font-size: 13px;
}

.content-action {
  display: inline-flex;
  min-height: 46px;
  margin-top: 32px;
  padding: 0 20px;
  align-items: center;
  color: #ffffff;
  background: var(--active);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.wishes-main::before {
  display: block;
  width: 86px;
  height: 86px;
  margin-bottom: 28px;
  content: "★";
  color: #ffffff;
  background: linear-gradient(145deg, var(--active), var(--blue));
  border-radius: 50% 50% 46% 54%;
  box-shadow: 0 18px 38px rgba(67, 94, 146, 0.2);
  font-size: 42px;
  line-height: 86px;
  text-align: center;
}

@media (max-width: 1120px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    align-items: flex-start;
    width: 100%;
  }

  .topbar .brand,
  .topbar .brand > span:last-child {
    max-width: 100%;
    min-width: 0;
  }

  .site-nav {
    width: 100%;
    flex: 0 0 auto;
  }

  .site-socials {
    margin-left: 0;
  }

  .content-topbar {
    position: static;
  }

  .content-page {
    padding-top: 0;
  }

  .content-main {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin-right: 18px;
    margin-left: 18px;
    padding-top: 38px;
    padding-right: 0;
    padding-left: 0;
  }

  .content-main h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(34px, 11vw, 46px);
    overflow-wrap: anywhere;
  }

  .content-lead,
  .content-card,
  .archive-warning,
  .content-note {
    width: 100%;
    max-width: 100%;
  }

  .rules-main .content-card h2 {
    font-size: 18px;
  }

  .archive-film-card {
    grid-template-columns: 1fr;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    min-width: 0;
  }

  .archive-film-frame {
    min-height: 220px;
    min-width: 0;
  }

  .archive-film-body,
  .archive-film-unavailable {
    min-width: 0;
    max-width: 100%;
  }

  .archive-film-unavailable {
    padding: 20px;
  }

  .archive-film-body h2,
  .archive-film-unavailable strong,
  .archive-film-unavailable span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .archive-region-links {
    grid-template-columns: 1fr;
  }

  .travel-ticket {
    width: min(190px, 52vw);
    transform: rotate(-0.8deg);
  }

  .map-travel-ticket {
    position: relative;
    left: auto;
    bottom: auto;
    justify-self: center;
    margin: 18px auto 0;
  }

  .map-heading {
    right: 0;
    left: 0;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 0 14px;
    transform: none;
  }

  .map-heading h1,
  .map-heading p {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .year-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .year-tabs a {
    min-width: 0;
  }

  .city-video-groups {
    gap: 34px;
  }

  .city-video-group h2 {
    font-size: 25px;
  }

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

  .video-main {
    margin-top: 54px;
  }

  .video-view {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .video-view-player {
    max-height: 72vh;
  }

  .admin-main {
    margin-top: 54px;
  }

  .admin-heading {
    display: grid;
  }

  .admin-video-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .admin-incoming-card,
  .admin-video-row {
    grid-template-columns: 1fr;
  }

  .admin-draft-card {
    grid-template-columns: 1fr;
  }

  .admin-video-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-video-actions {
    flex-wrap: wrap;
  }

  .admin-section-heading {
    display: grid;
  }
}

/* Home page redesign: isolated from regional, archive and service pages. */
body[data-page="home"] {
  --home-blue: #435e92;
  --home-blue-soft: #97b0ce;
  --home-coral: #ff8562;
  --home-paper: #f9feff;
  --home-white: #ffffff;
  min-width: 320px;
  color: #3f424f;
  background: var(--home-paper);
  font-family: "Rubik", Arial, sans-serif;
}

body[data-page="home"].home-menu-open {
  overflow: hidden;
}

body[data-page="home"] .home-skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  color: var(--home-white);
  background: var(--home-blue);
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

body[data-page="home"] .home-skip-link:focus {
  outline: 3px solid rgba(255, 133, 98, 0.45);
  outline-offset: 2px;
  transform: translateY(0);
}

body[data-page="home"] .home-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 60px;
  background: rgba(247, 253, 255, 0.72);
  border-bottom: 1px solid rgba(151, 176, 206, 0.22);
  backdrop-filter: blur(12px);
}

body[data-page="home"] .home-header__inner {
  display: flex;
  width: min(1140px, calc(100% - 40px));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 0 auto;
}

body[data-page="home"] .home-logo,
body[data-page="home"] .home-drawer__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

body[data-page="home"] .home-logo img,
body[data-page="home"] .home-drawer__logo img {
  display: block;
  width: 139px;
  height: 24px;
}

body[data-page="home"] .home-desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 3vw, 54px);
  margin-left: auto;
}

body[data-page="home"] .home-nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0;
  color: var(--home-blue);
  background: transparent;
  border: 0;
  font: 400 16px/1.25 "Rubik", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

body[data-page="home"] .home-nav-link:hover,
body[data-page="home"] .home-nav-link:focus-visible,
body[data-page="home"] .home-nav-link[aria-expanded="true"] {
  color: var(--home-coral);
  outline: none;
}

body[data-page="home"] .home-nav-link:focus-visible,
body[data-page="home"] .home-telegram-button:focus-visible,
body[data-page="home"] .home-menu-button:focus-visible,
body[data-page="home"] .home-drawer button:focus-visible,
body[data-page="home"] .home-drawer a:focus-visible,
body[data-page="home"] .home-footer a:focus-visible {
  outline: 3px solid rgba(255, 133, 98, 0.42);
  outline-offset: 4px;
}

body[data-page="home"] .home-drawer[data-opened-with="pointer"] .home-drawer__close:focus {
  outline: none;
}

body[data-page="home"] .home-archive-menu {
  position: relative;
}

body[data-page="home"] .home-archive-trigger::after {
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

body[data-page="home"] .home-archive-trigger[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

body[data-page="home"] .home-archive-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  display: grid;
  width: 280px;
  padding: 8px;
  background: var(--home-white);
  border: 1px solid rgba(151, 176, 206, 0.58);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(67, 94, 146, 0.18);
  transform: translateX(-50%);
}

body[data-page="home"] .home-archive-dropdown a {
  padding: 11px 12px;
  color: var(--home-blue);
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

body[data-page="home"] .home-archive-dropdown a:hover,
body[data-page="home"] .home-archive-dropdown a:focus-visible {
  color: var(--home-blue);
  background: rgba(151, 176, 206, 0.16);
  outline: none;
}

body[data-page="home"] .home-telegram-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: var(--home-white);
  background: #2852a3;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

body[data-page="home"] .home-telegram-button:hover {
  background: #2852a3;
  filter: brightness(1.04);
  transform: scale(1.02);
}

body[data-page="home"] .home-telegram-button img {
  display: block;
  width: 24px;
  height: 24px;
}

body[data-page="home"] .home-menu-button,
body[data-page="home"] .home-drawer__close {
  display: none;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body[data-page="home"] .home-drawer-overlay {
  position: fixed;
  z-index: 190;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(25, 38, 64, 0.42);
  border: 0;
  cursor: pointer;
}

body[data-page="home"] .home-drawer {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 88vw);
  padding: 18px 20px 30px;
  overflow-y: auto;
  color: var(--home-blue);
  background: var(--home-paper);
  box-shadow: -18px 0 52px rgba(30, 47, 78, 0.2);
}

body[data-page="home"] .home-drawer__header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body[data-page="home"] .home-drawer__close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
}

body[data-page="home"] .home-drawer__close img {
  display: block;
  width: 24px;
  height: 24px;
}

body[data-page="home"] .home-drawer__nav {
  display: grid;
  gap: 0;
  margin-top: 48px;
}

body[data-page="home"] .home-drawer__nav > a,
body[data-page="home"] .home-drawer__archive-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  color: var(--home-blue);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(151, 176, 206, 0.36);
  font: 500 18px/1.3 "Rubik", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body[data-page="home"] .home-drawer__archive-trigger::after {
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

body[data-page="home"] .home-drawer__archive-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

body[data-page="home"] .home-drawer__archive {
  display: grid;
  padding: 8px 0 12px 18px;
  border-bottom: 1px solid rgba(151, 176, 206, 0.36);
}

body[data-page="home"] .home-drawer__archive a {
  padding: 10px 0;
  color: var(--home-blue);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

body[data-page="home"] .home-drawer__telegram {
  justify-content: flex-start !important;
  gap: 12px;
  margin-top: 22px;
  padding: 4px 18px !important;
  color: var(--home-white) !important;
  background: var(--home-blue) !important;
  border: 0 !important;
  border-radius: 7px;
}

body[data-page="home"] .home-drawer__telegram img {
  display: block;
  width: 24px;
  height: 24px;
}

body[data-page="home"] .home-main {
  min-height: 100vh;
  padding-top: 60px;
  overflow: hidden;
}

body[data-page="home"] .home-hero {
  position: relative;
  padding: 34px 20px 0;
}

body[data-page="home"] .home-title {
  position: relative;
  z-index: 4;
  width: clamp(270px, 29vw, 420px);
  margin: 0 auto -78px;
  margin-left: max(calc((100% - 1140px) / 2 + 84px), 7vw);
  line-height: 0;
}

body[data-page="home"] .home-title img {
  display: block;
  width: 100%;
  height: auto;
}

body[data-page="home"] .home-map-frame {
  position: relative;
  width: min(1140px, 100%);
  margin: 0 auto;
}

body[data-page="home"] .map-shell {
  position: relative;
  width: 100%;
  margin-top: 0;
  transform: none;
}

body[data-page="home"] .russia-map {
  width: 100%;
  max-height: none;
  aspect-ratio: 512 / 282;
  filter: none;
  transform: scale(0.9575);
  transform-origin: center;
}

body[data-page="home"] .map-travel-ticket {
  position: absolute;
  top: 3%;
  left: 56.9%;
  bottom: auto;
  width: 14.48%;
}

body[data-page="home"] .home-search {
  position: relative;
  z-index: 8;
  width: min(760px, 100%);
  margin: 14px auto 0;
}

body[data-page="home"] .map-search {
  width: 100%;
  margin: 0;
}

body[data-page="home"] .map-search input {
  height: 54px;
  padding-left: 52px;
  color: #3f424f;
  background-color: var(--home-white);
  border-color: rgba(151, 176, 206, 0.72);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(67, 94, 146, 0.08);
  font-family: "Rubik", Arial, sans-serif;
}

body[data-page="home"] .map-search input:focus {
  border-color: var(--home-blue);
  box-shadow: 0 0 0 3px rgba(67, 94, 146, 0.12), 0 12px 30px rgba(67, 94, 146, 0.1);
}

body[data-page="home"] .search-results {
  border-color: rgba(151, 176, 206, 0.72);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(67, 94, 146, 0.16);
}

body[data-page="home"] .search-result-type {
  color: var(--home-coral);
}

body[data-page="home"] .search-result:hover,
body[data-page="home"] .search-result:focus {
  background: rgba(151, 176, 206, 0.14);
}

body[data-page="home"] .latest-videos {
  width: min(1140px, 100%);
  margin: 82px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-page="home"] .latest-videos h2 {
  margin: 0 0 30px;
  color: var(--heading);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
}

body[data-page="home"] .latest-videos-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

body[data-page="home"] .latest-video-link {
  overflow: hidden;
  border-color: rgba(151, 176, 206, 0.62);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(67, 94, 146, 0.09);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body[data-page="home"] .latest-video-link:hover,
body[data-page="home"] .latest-video-link:focus-visible {
  border-color: var(--home-coral);
  box-shadow: 0 22px 46px rgba(67, 94, 146, 0.14);
  outline: none;
  transform: translateY(-3px);
}

body[data-page="home"] .latest-video-preview {
  aspect-ratio: 16 / 10;
}

body[data-page="home"] .latest-video-body {
  gap: 8px;
  padding: 20px;
}

body[data-page="home"] .latest-video-link strong {
  color: var(--home-blue);
  font-family: "Rubik", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

body[data-page="home"] .home-info-card {
  width: min(1160px, 100%);
  margin: 96px auto 60px;
  padding: 0;
  background: transparent;
}

body[data-page="home"] .home-info-card__body {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
  padding: 44px 60px;
  border: 1px solid var(--home-blue-soft);
  border-radius: 20px;
}

body[data-page="home"] .home-info-card h2 {
  order: -1;
  margin: 0 0 28px;
  color: var(--heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

body[data-page="home"] .home-info-card p {
  margin: 0;
  color: #3f424f;
  font-size: 16px;
  line-height: 1.75;
}

body[data-page="home"] .home-info-card p + p,
body[data-page="home"] .home-info-card h2 + p {
  margin-top: 18px;
}

body[data-page="home"] .home-info-card .home-info-card__lead {
  margin-top: 0;
}

body[data-page="home"] .home-info-card a {
  color: var(--home-blue);
  font-weight: 500;
  text-underline-offset: 3px;
}

body[data-page="home"] .home-footer {
  padding: 0 20px;
  color: var(--home-blue);
  background: #f7fdff url("footer-gradient.svg") center top / cover no-repeat;
}

body[data-page="home"] .home-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.45fr;
  grid-template-rows: auto auto auto auto;
  width: min(1140px, 100%);
  min-height: 360px;
  margin: 0 auto;
  padding: 58px 0 48px;
  border-top: 1px solid rgba(151, 176, 206, 0.22);
}

body[data-page="home"] .home-footer__brand {
  grid-column: 1;
  grid-row: 1 / 5;
  padding-top: 2px;
}

body[data-page="home"] .home-footer__brand img {
  display: block;
  width: 139px;
  height: 24px;
}

body[data-page="home"] .home-footer__contacts {
  display: contents;
}

body[data-page="home"] .home-footer__contacts h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

body[data-page="home"] .home-footer__contacts > a {
  color: var(--home-blue);
  font-size: 16px;
  line-height: 1.55;
  text-decoration: none;
}

body[data-page="home"] .home-footer__contacts > a:nth-of-type(1) {
  grid-column: 2;
  grid-row: 2;
}

body[data-page="home"] .home-footer__contacts > a:nth-of-type(2) {
  grid-column: 2;
  grid-row: 3;
}

body[data-page="home"] .home-footer__contacts .home-footer__rules {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

body[data-page="home"] .home-footer__contacts a:hover,
body[data-page="home"] .home-footer__rules:hover {
  color: var(--home-coral);
}

body[data-page="home"] .home-footer__socials {
  display: flex;
  grid-column: 2;
  grid-row: 4;
  gap: 12px;
  align-items: end;
  margin-top: 28px;
}

body[data-page="home"] .home-footer__socials a,
body[data-page="home"] .home-footer__socials img {
  display: block;
  width: 36px;
  height: 36px;
}

body[data-page="home"] .home-footer__socials a {
  border-radius: 7px;
  transition: transform 160ms ease;
}

body[data-page="home"] .home-footer__socials a:hover {
  transform: translateY(-2px);
}

body[data-page="home"] .home-footer__legal {
  grid-column: 3;
  grid-row: 3 / 5;
  align-self: end;
  margin: 0;
  color: var(--home-blue-soft);
  font-size: 12px;
  line-height: 1.45;
}

body[data-page="home"] .map-tooltip {
  z-index: 120;
  color: var(--home-white);
  background: var(--home-blue);
  border-radius: 7px;
}

@media (max-width: 1199px) {
  body[data-page="home"] .home-header__inner,
  body[data-page="home"] .home-map-frame,
  body[data-page="home"] .latest-videos,
  body[data-page="home"] .home-footer__inner {
    width: min(960px, calc(100% - 40px));
  }

  body[data-page="home"] .home-title {
    margin-left: max(calc((100% - 960px) / 2 + 54px), 6vw);
  }

  body[data-page="home"] .home-info-card {
    width: min(960px, calc(100% - 40px));
  }

  body[data-page="home"] .home-desktop-nav {
    gap: 22px;
  }

  body[data-page="home"] .home-nav-link {
    font-size: 14px;
  }

  body[data-page="home"] .map-travel-ticket {
    top: 2%;
    left: 66.56%;
    width: 13.01%;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .home-header {
    height: 64px;
  }

  body[data-page="home"] .home-header__inner {
    width: calc(100% - 32px);
  }

  body[data-page="home"] .home-desktop-nav {
    display: none;
  }

  body[data-page="home"] .home-menu-button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-left: auto;
    border-radius: 50%;
  }

  body[data-page="home"] .home-menu-button img {
    display: block;
    width: 32px;
    height: 32px;
  }

  body[data-page="home"] .home-main {
    padding-top: 64px;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  body[data-page="home"] .home-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-page="home"] .home-title {
    width: clamp(250px, 38vw, 340px);
    margin-bottom: -54px;
    margin-left: 6vw;
  }

  body[data-page="home"] .home-map-frame {
    width: 100%;
  }

  body[data-page="home"] .map-travel-ticket {
    top: 1.4%;
    left: 62.9%;
    width: 15.32%;
  }

  body[data-page="home"] .home-search {
    width: min(680px, 100%);
  }

  body[data-page="home"] .latest-videos {
    width: 100%;
    margin-top: 68px;
  }

  body[data-page="home"] .latest-videos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  body[data-page="home"] .home-info-card {
    width: 100%;
    margin-top: 78px;
  }

  body[data-page="home"] .home-info-card__body {
    min-height: 0;
    padding: 38px 42px;
  }

  body[data-page="home"] .home-footer__inner {
    width: calc(100% - 16px);
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    gap: 34px 52px;
  }

  body[data-page="home"] .home-footer__brand {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-page="home"] .home-footer__contacts {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  body[data-page="home"] .home-footer__contacts h2,
  body[data-page="home"] .home-footer__contacts > a:nth-of-type(1),
  body[data-page="home"] .home-footer__contacts > a:nth-of-type(2),
  body[data-page="home"] .home-footer__contacts .home-footer__rules {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-page="home"] .home-footer__rules {
    margin-top: 22px;
  }

  body[data-page="home"] .home-footer__socials {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
  }

  body[data-page="home"] .home-footer__legal {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

@media (max-width: 639px) {
  body[data-page="home"] .home-header__inner {
    width: calc(100% - 28px);
  }

  body[data-page="home"] .home-logo img,
  body[data-page="home"] .home-drawer__logo img {
    width: 124px;
    height: auto;
  }

  body[data-page="home"] .home-hero {
    padding: 26px 14px 0;
  }

  body[data-page="home"] .home-title {
    width: min(300px, 76vw);
    margin: 0 auto -18px;
  }

  body[data-page="home"] .home-map-frame {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: 0;
    left: 12.5%;
    bottom: auto;
    width: 13%;
  }

  body[data-page="home"] .home-search {
    width: 100%;
    margin-top: 36px;
  }

  body[data-page="home"] .map-search input {
    height: 52px;
    padding-right: 14px;
    padding-left: 46px;
    background-position-x: 14px;
    font-size: 14px;
  }

  body[data-page="home"] .search-result {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .search-result-type {
    grid-row: auto;
  }

  body[data-page="home"] .latest-videos {
    width: 100%;
    margin-top: 58px;
  }

  body[data-page="home"] .latest-videos h2 {
    margin-bottom: 22px;
    font-size: 34px;
  }

  body[data-page="home"] .latest-videos-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-page="home"] .latest-video-preview {
    aspect-ratio: 16 / 9;
  }

  body[data-page="home"] .home-info-card {
    width: 100%;
    margin: 64px auto 42px;
  }

  body[data-page="home"] .home-info-card__body {
    min-height: 0;
    padding: 28px 24px;
    border-radius: 16px;
  }

  body[data-page="home"] .home-info-card h2 {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.45;
  }

  body[data-page="home"] .home-info-card p {
    font-size: 14px;
    line-height: 1.65;
  }

  body[data-page="home"] .home-footer {
    padding: 0 20px;
  }

  body[data-page="home"] .home-footer__inner {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 34px;
    padding: 44px 0;
  }

  body[data-page="home"] .home-footer__brand,
  body[data-page="home"] .home-footer__contacts,
  body[data-page="home"] .home-footer__socials,
  body[data-page="home"] .home-footer__legal {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-page="home"] .home-footer__brand {
    padding: 0;
  }

  body[data-page="home"] .home-footer__contacts {
    display: grid;
    gap: 3px;
  }

  body[data-page="home"] .home-footer__contacts h2,
  body[data-page="home"] .home-footer__contacts > a:nth-of-type(1),
  body[data-page="home"] .home-footer__contacts > a:nth-of-type(2),
  body[data-page="home"] .home-footer__contacts .home-footer__rules {
    grid-column: 1;
    grid-row: auto;
  }

  body[data-page="home"] .home-footer__rules {
    margin-top: 20px;
  }

  body[data-page="home"] .home-footer__socials {
    margin: 0;
  }

  body[data-page="home"] .home-footer__legal {
    align-self: auto;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  body[data-page="home"] .home-map-frame {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  body[data-page="home"] .latest-videos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .latest-video-preview {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 360px) and (max-width: 479px) {
  body[data-page="home"] .home-title {
    width: min(280px, 78vw);
  }

  body[data-page="home"] .home-map-frame {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: 3.9%;
    left: 17%;
    width: 13.7%;
  }

  body[data-page="home"] .home-drawer {
    width: min(390px, 92vw);
  }
}

@media (max-width: 359px) {
  body[data-page="home"] .home-hero {
    padding-right: 10px;
    padding-left: 10px;
  }

  body[data-page="home"] .home-title {
    width: 250px;
  }

  body[data-page="home"] .home-map-frame {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: -8%;
    left: 19%;
    width: 12.7%;
  }

  body[data-page="home"] .home-info-card__body {
    padding: 24px 18px;
  }

  body[data-page="home"] .home-drawer {
    width: 94vw;
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Exact Penpot geometry for the home-page title. Its flow contribution is
   compensated so the map and travel ticket keep their current positions. */
body[data-page="home"] .home-title img {
  height: 100%;
}

@media (min-width: 1440px) {
  body[data-page="home"] .home-title {
    top: 65px;
    width: 513px;
    height: 134.09px;
    margin-bottom: calc(clamp(70.57px, 7.58vw, 109.78px) - 212.09px);
    margin-left: calc(50vw - 607.5px);
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  body[data-page="home"] .home-title {
    top: 65px;
    width: 513px;
    height: 134.09px;
    margin-bottom: calc(7.58vw - 212.09px);
    margin-left: calc(13.4375vw - 81px);
  }
}

@media (min-width: 1200px) and (max-width: 1279px) {
  body[data-page="home"] .home-title {
    top: 65px;
    width: calc(36.25vw + 49px);
    height: calc(8.8625vw + 20.65px);
    margin-bottom: calc(-1.2825vw - 98.65px);
    margin-left: calc(18.75vw - 149px);
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body[data-page="home"] .home-title {
    top: 65px;
    width: calc(41.4773vw - 13.727px);
    height: calc(11.1193vw - 6.431px);
    margin-bottom: calc(-3.5393vw - 71.569px);
    margin-left: calc(29.2614vw - 275.136px);
  }
}

@media (min-width: 981px) and (max-width: 1023px) {
  body[data-page="home"] .home-title {
    top: 65px;
    width: 411px;
    height: 107.43px;
    margin-bottom: calc(7.58vw - 185.43px);
    margin-left: calc(4.5455vw - 22.045px);
  }
}

@media (min-width: 960px) and (max-width: 980px) {
  body[data-page="home"] .home-title {
    top: 61px;
    width: 411px;
    height: 107.43px;
    margin-bottom: calc(7.58vw - 185.43px);
    margin-left: 22.5px;
  }
}

@media (min-width: 769px) and (max-width: 959px) {
  body[data-page="home"] .home-title {
    top: calc(15.625vw - 89px);
    width: calc(33.3333vw + 91px);
    height: calc(8.71354vw + 23.78px);
    margin-bottom: calc(clamp(65.35px, 9.93vw, 88.87px) - 8.71354vw - 77.78px);
    margin-left: calc(194.5px - 17.7083vw);
  }
}

@media (min-width: 640px) and (max-width: 768px) {
  body[data-page="home"] .home-title {
    top: calc(37px - 0.78125vw);
    width: 347px;
    height: 90.7px;
    margin-bottom: calc(clamp(65.35px, 9.93vw, 88.87px) - 144.7px);
    margin-left: calc(46.875vw - 301.5px);
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  body[data-page="home"] .home-title {
    top: -13px;
    width: 356px;
    height: 93.05px;
    margin-bottom: -32.63px;
    margin-left: 9.5px;
  }
}

@media (min-width: 360px) and (max-width: 479px) {
  body[data-page="home"] .home-title {
    top: -3px;
    width: 341px;
    height: 89.13px;
    margin-bottom: -33.94px;
    margin-left: calc(50vw - 181.5px);
  }
}

@media (max-width: 359px) {
  body[data-page="home"] .home-title {
    top: 21px;
    width: 290px;
    height: 75.8px;
    margin-bottom: -28.45px;
    margin-left: 22px;
  }
}

/* Desktop geometry from Penpot page "04 Desktop new". The frame compensates
   the existing map scale so the visible SVG bounds match the design exactly. */
@media (min-width: 1200px) and (max-width: 1279px) {
  body[data-page="home"] .home-map-frame {
    left: calc(56px - 4.375vw);
    width: calc(82.245431vw + 75.195822px);
    margin-top: calc(175.934726px - 0.943211vw);
  }

  body[data-page="home"] .russia-map {
    height: calc(44.386423vw + 50.130548px);
    aspect-ratio: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: calc(5.943211vw - 147.934726px);
    left: calc(61.122715vw - 145.902089px);
    width: calc(11.25vw + 24px);
    height: calc(5.425vw + 14.9px);
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  body[data-page="home"] .home-map-frame {
    width: calc(122.062663vw - 434.464752px);
    margin-top: calc(518.108825px - 27.758688vw);
  }

  body[data-page="home"] .russia-map {
    height: calc(67.232376vw - 242.29765px);
    aspect-ratio: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: calc(17.053688vw - 290.148825px);
    left: calc(39.156332vw + 135.267624px);
    width: 168px;
    height: 84.34px;
  }
}

@media (min-width: 1440px) {
  body[data-page="home"] .home-map-frame {
    width: clamp(1323.237598px, calc(23.933856vw + 978.590078px), 1438.120104px);
    margin-top: clamp(107.464125px, calc(151.300496px - 2.283415vw), 118.425718px);
  }

  body[data-page="home"] .russia-map {
    height: clamp(725.848564px, calc(13.05483vw + 537.859008px), 788.511749px);
    aspect-ratio: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: clamp(-44.575718px, calc(2.360748vw - 78.570496px), -33.244125px);
    left: clamp(699.118799px, calc(19.258594vw + 421.795039px), 791.560052px);
    width: 168px;
    height: 84.34px;
  }
}

/* Updated Penpot geometry for Home / Default / 1920 only. */
@media (min-width: 1920px) {
  body[data-page="home"] .home-map-frame {
    left: -16.5px;
    width: 1321.148825px;
    margin-top: 108.840104px;
  }

  body[data-page="home"] .russia-map {
    height: 723.759791px;
  }

  body[data-page="home"] .map-travel-ticket {
    top: -34.620104px;
    left: 749.574413px;
    width: 168px;
    height: 84.336px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body[data-page="home"] .map-travel-ticket {
    top: calc(167.91px - 5.909vw);
    width: calc(21.5909vw - 100.09px);
    height: calc(10.9432vw - 51.31px);
  }
}

@media (min-width: 1041px) and (max-width: 1199px) {
  body[data-page="home"] .map-travel-ticket {
    left: calc(1030.066px - 38.9205vw);
  }
}

@media (min-width: 1024px) and (max-width: 1040px) {
  body[data-page="home"] .map-travel-ticket {
    left: calc(11.0795vw + 510.066px);
  }
}

@media (min-width: 981px) and (max-width: 1023px) {
  body[data-page="home"] .map-travel-ticket {
    top: calc(185px - 7.58vw);
    left: calc(50vw + 111.5px);
    width: 121px;
    height: 60.74px;
  }
}

@media (min-width: 960px) and (max-width: 980px) {
  body[data-page="home"] .map-travel-ticket {
    top: calc(181px - 7.58vw);
    left: calc(50vw + 111.5px);
    width: 121px;
    height: 60.74px;
  }
}

@media (min-width: 769px) and (max-width: 959px) {
  body[data-page="home"] .map-travel-ticket {
    top: calc(18.75vw - 23px - clamp(65.35px, 9.93vw, 88.87px));
    left: calc(85.9375vw - 211.5px);
    width: calc(13.5417vw - 9px);
    height: calc(6.796875vw - 4.51px);
  }
}

@media (min-width: 640px) and (max-width: 768px) {
  body[data-page="home"] .map-travel-ticket {
    top: calc(127px - 0.78125vw - clamp(65.35px, 9.93vw, 88.87px));
    left: calc(46.875vw + 88.5px);
    width: 95px;
    height: 47.69px;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  body[data-page="home"] .map-travel-ticket {
    top: 43.58px;
    left: 68px;
    width: 107px;
    height: 53px;
  }
}

@media (min-width: 360px) and (max-width: 479px) {
  body[data-page="home"] .map-travel-ticket {
    top: 48.81px;
    left: calc(50vw - 102.5px);
    width: 66px;
    height: 33.13px;
  }
}

@media (max-width: 359px) {
  body[data-page="home"] .map-travel-ticket {
    top: 63.65px;
    left: 92.5px;
    width: 61px;
    height: 30.62px;
  }
}

body[data-page="home"] .map-travel-ticket img {
  height: 100%;
}

/* Exact Penpot geometry for page "05 Tablet". The map frame compensates
   the retained scale(0.9575), so the visible SVG bounds match the design. */
@media (min-width: 640px) and (max-width: 768px) {
  body[data-page="home"] {
    --tablet-title-left: calc(35.9375vw - 217px);
    --tablet-title-top: calc(-0.78125vw + 37px);
    --tablet-title-width: 308px;
    --tablet-title-height: 79px;
    --tablet-title-margin-bottom: calc(-4.825188vw + 37.20235px);
    --tablet-map-left: calc(7.710509vw - 73.373368px);
    --tablet-map-width: calc(78.328982vw + 158.746736px);
    --tablet-map-height: calc(43.244125vw + 84.5953px);
    --tablet-ticket-left: calc(33.695741vw + 169.373368px);
    --tablet-ticket-top: calc(7.950188vw - 82.20235px);
    --tablet-ticket-width: 95px;
    --tablet-ticket-height: 47.69px;
  }
}

@media (min-width: 769px) and (max-width: 959px) {
  body[data-page="home"] {
    --tablet-title-left: calc(3.645833vw + 31px);
    --tablet-title-top: calc(15.625vw - 89px);
    --tablet-title-width: calc(53.645833vw - 104px);
    --tablet-title-height: calc(14.807292vw - 34.72px);
    --tablet-title-margin-bottom: calc(2.833048vw - 21.612898px);
    --tablet-map-left: calc(2.67624vw - 34.710183px);
    --tablet-map-width: calc(94.64752vw + 33.420366px);
    --tablet-map-height: calc(52.219321vw + 15.665796px);
    --tablet-ticket-left: calc(72.32376vw - 127.289817px);
    --tablet-ticket-top: calc(5.797161vw - 65.667102px);
    --tablet-ticket-width: calc(13.541667vw - 9px);
    --tablet-ticket-height: calc(6.796875vw - 4.51px);
  }
}

@media (min-width: 960px) and (max-width: 980px) {
  body[data-page="home"] {
    --tablet-title-left: calc(-65vw + 688px);
    --tablet-title-top: 61px;
    --tablet-title-width: 411px;
    --tablet-title-height: 107.43px;
    --tablet-title-margin-bottom: calc(171.553525vw - 1641.329478px);
    --tablet-map-left: calc(117.885117vw - 1142.715405px);
    --tablet-map-width: calc(-135.770235vw + 2245.430809px);
    --tablet-map-height: calc(-73.10705vw + 1218.798956px);
    --tablet-ticket-left: calc(-22.885117vw + 786.715405px);
    --tablet-ticket-top: calc(-171.553525vw + 1636.899478px);
    --tablet-ticket-width: 121px;
    --tablet-ticket-height: 60.74px;
  }
}

@media (min-width: 981px) and (max-width: 1023px) {
  body[data-page="home"] {
    --tablet-title-left: calc(18.181818vw - 127.181818px);
    --tablet-title-top: 65px;
    --tablet-title-width: 411px;
    --tablet-title-height: 107.43px;
    --tablet-title-margin-bottom: calc(-10.805839vw + 149.792288px);
    --tablet-map-left: calc(-24.768573vw + 255.290767px);
    --tablet-map-width: calc(149.537147vw - 550.581533px);
    --tablet-map-height: calc(80.702587vw - 288.535485px);
    --tablet-ticket-left: calc(-13.86779vw + 698.345597px);
    --tablet-ticket-top: calc(10.805839vw - 150.222288px);
    --tablet-ticket-width: 121px;
    --tablet-ticket-height: 60.74px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  body[data-page="home"] {
    --tablet-title-left: calc(9.659091vw - 39.909091px);
    --tablet-title-top: 65px;
    --tablet-title-width: calc(41.477273vw - 13.727273px);
    --tablet-title-height: calc(11.119318vw - 6.431818px);
    --tablet-title-margin-bottom: calc(6.520279vw - 27.627166px);
    --tablet-map-left: calc(28.845983vw - 293.722288px);
    --tablet-map-width: calc(46.285307vw + 506.717304px);
    --tablet-map-height: calc(25.516259vw + 276.572514px);
    --tablet-ticket-left: calc(17.744926vw + 374.631379px);
    --tablet-ticket-top: calc(-21.048689vw + 175.968075px);
    --tablet-ticket-width: calc(21.590909vw - 100.090909px);
    --tablet-ticket-height: calc(10.943182vw - 51.318182px);
  }
}

@media (min-width: 640px) and (max-width: 1199px) {
  body[data-page="home"] .home-title {
    top: var(--tablet-title-top);
    left: var(--tablet-title-left);
    width: var(--tablet-title-width);
    height: var(--tablet-title-height);
    margin: 0 0 var(--tablet-title-margin-bottom);
  }

  body[data-page="home"] .home-map-frame {
    left: var(--tablet-map-left);
    width: var(--tablet-map-width);
    margin: 0;
  }

  body[data-page="home"] .russia-map {
    height: var(--tablet-map-height);
    aspect-ratio: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: var(--tablet-ticket-top);
    left: var(--tablet-ticket-left);
    width: var(--tablet-ticket-width);
    height: var(--tablet-ticket-height);
  }
}

/* Exact Penpot geometry for page "06 Mobile". */
@media (max-width: 359px) {
  body[data-page="home"] {
    --mobile-title-left: 18px;
    --mobile-title-top: 8px;
    --mobile-title-width: 279px;
    --mobile-title-height: 72px;
    --mobile-title-margin-bottom: 17.516971px;
    --mobile-map-left: -26.144909px;
    --mobile-map-width: 383.289817px;
    --mobile-map-height: 210.966057px;
    --mobile-ticket-left: 51.144909px;
    --mobile-ticket-top: 158.483029px;
    --mobile-ticket-width: 88px;
    --mobile-ticket-height: 44px;
  }
}

@media (min-width: 360px) and (max-width: 389px) {
  body[data-page="home"] {
    --mobile-title-left: calc(-18.333333vw + 85px);
    --mobile-title-top: -3px;
    --mobile-title-width: calc(206.666667vw - 465px);
    --mobile-title-height: calc(54.033333vw - 121.6px);
    --mobile-title-margin-bottom: calc(-50.7vw + 182.116971px);
    --mobile-map-left: calc(73.333333vw - 291.144909px);
    --mobile-map-width: 383.289817px;
    --mobile-map-height: 210.966057px;
    --mobile-ticket-left: calc(-60vw + 255.144909px);
    --mobile-ticket-top: 165.483029px;
    --mobile-ticket-width: 102px;
    --mobile-ticket-height: 51px;
  }
}

@media (min-width: 390px) and (max-width: 429px) {
  body[data-page="home"] {
    --mobile-title-left: calc(50vw - 181.5px);
    --mobile-title-top: -3px;
    --mobile-title-width: 341px;
    --mobile-title-height: 89.13px;
    --mobile-title-margin-bottom: calc(-23.554178vw + 76.248264px);
    --mobile-map-left: calc(-9.441906vw + 31.678525px);
    --mobile-map-width: calc(91.383812vw + 26.89295px);
    --mobile-map-height: calc(49.608355vw + 17.493473px);
    --mobile-ticket-left: calc(74.441906vw - 269.178525px);
    --mobile-ticket-top: calc(33.554178vw + 34.621736px);
    --mobile-ticket-width: 102px;
    --mobile-ticket-height: 51px;
  }
}

@media (min-width: 430px) and (max-width: 479px) {
  body[data-page="home"] {
    --mobile-title-left: calc(-48vw + 239.9px);
    --mobile-title-top: calc(-20vw + 83px);
    --mobile-title-width: calc(30vw + 212px);
    --mobile-title-height: calc(7.84vw + 55.418px);
    --mobile-title-margin-bottom: calc(-29.526684vw + 101.930042px);
    --mobile-map-left: calc(-24.151436vw + 94.929504px);
    --mobile-map-width: calc(148.302872vw - 217.859008px);
    --mobile-map-height: calc(79.373368vw - 110.496084px);
    --mobile-ticket-left: calc(2.151436vw + 41.670496px);
    --mobile-ticket-top: calc(49.686684vw - 34.748042px);
    --mobile-ticket-width: calc(10vw + 59px);
    --mobile-ticket-height: calc(4vw + 33.8px);
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  body[data-page="home"] {
    --mobile-title-left: calc(4.6875vw - 13px);
    --mobile-title-top: calc(33.125vw - 172px);
    --mobile-title-width: calc(-30vw + 500px);
    --mobile-title-height: calc(-8.78125vw + 135.2px);
    --mobile-title-margin-bottom: calc(33.824494vw - 202.155614px);
    --mobile-map-left: calc(0.60705vw - 23.911227px);
    --mobile-map-width: calc(103.785901vw - 4.177546px);
    --mobile-map-height: calc(56.788512vw - 2.088773px);
    --mobile-ticket-left: calc(208.14295vw - 947.088773px);
    --mobile-ticket-top: calc(-146.918244vw + 908.955614px);
    --mobile-ticket-width: calc(-7.5vw + 143px);
    --mobile-ticket-height: calc(-3.31875vw + 68.93px);
  }
}

@media (max-width: 639px) {
  body[data-page="home"] .home-title {
    top: var(--mobile-title-top);
    left: var(--mobile-title-left);
    width: var(--mobile-title-width);
    height: var(--mobile-title-height);
    margin: 0 0 var(--mobile-title-margin-bottom);
  }

  body[data-page="home"] .home-map-frame {
    left: var(--mobile-map-left);
    width: var(--mobile-map-width);
    margin: 0;
  }

  body[data-page="home"] .russia-map {
    height: var(--mobile-map-height);
    aspect-ratio: auto;
  }

  body[data-page="home"] .map-travel-ticket {
    top: var(--mobile-ticket-top);
    left: var(--mobile-ticket-left);
    width: var(--mobile-ticket-width);
    height: var(--mobile-ticket-height);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] *,
  body[data-page="home"] *::before,
  body[data-page="home"] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared translucent navigation used by every public page. */
body.has-shared-header {
  --home-blue: #435e92;
  --home-blue-soft: #97b0ce;
  --home-coral: #ff8562;
  --home-paper: #f9feff;
  --home-white: #ffffff;
}

body.has-shared-header.home-menu-open {
  overflow: hidden;
}

body.has-shared-header:not([data-page="home"]) .topbar {
  display: none;
}

body.has-shared-header .home-skip-link {
  position: fixed;
  z-index: 300;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  color: var(--home-white);
  background: var(--home-blue);
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

body.has-shared-header .home-skip-link:focus {
  outline: 3px solid rgba(255, 133, 98, 0.45);
  outline-offset: 2px;
  transform: translateY(0);
}

body.has-shared-header .home-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 60px;
  background: rgba(247, 253, 255, 0.72);
  border-bottom: 1px solid rgba(151, 176, 206, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.has-shared-header .home-header__inner {
  display: flex;
  width: min(1140px, calc(100% - 40px));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin: 0 auto;
}

body.has-shared-header .home-logo,
body.has-shared-header .home-drawer__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

body.has-shared-header .home-logo img,
body.has-shared-header .home-drawer__logo img {
  display: block;
  width: 139px;
  height: 24px;
}

body.has-shared-header .home-desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 3vw, 54px);
  margin-left: auto;
}

body.has-shared-header .home-nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0;
  color: var(--home-blue);
  background: transparent;
  border: 0;
  font: 400 16px/1.25 "Rubik", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

body.has-shared-header .home-nav-link:hover,
body.has-shared-header .home-nav-link:focus-visible,
body.has-shared-header .home-nav-link[aria-expanded="true"] {
  color: var(--home-coral);
  outline: none;
}

body.has-shared-header .home-nav-link:focus-visible,
body.has-shared-header .home-telegram-button:focus-visible,
body.has-shared-header .home-menu-button:focus-visible,
body.has-shared-header .home-drawer button:focus-visible,
body.has-shared-header .home-drawer a:focus-visible {
  outline: 3px solid rgba(255, 133, 98, 0.42);
  outline-offset: 4px;
}

body.has-shared-header .home-drawer[data-opened-with="pointer"] .home-drawer__close:focus {
  outline: none;
}

body.has-shared-header .home-archive-menu {
  position: relative;
}

body.has-shared-header .home-archive-trigger::after {
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

body.has-shared-header .home-archive-trigger[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

body.has-shared-header .home-archive-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  display: grid;
  width: 280px;
  padding: 8px;
  background: var(--home-white);
  border: 1px solid rgba(151, 176, 206, 0.58);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(67, 94, 146, 0.18);
  transform: translateX(-50%);
}

body.has-shared-header .home-archive-dropdown a {
  padding: 11px 12px;
  color: var(--home-blue);
  border-radius: 7px;
  font: 400 14px/1.35 "Rubik", Arial, sans-serif;
  text-decoration: none;
}

body.has-shared-header .home-archive-dropdown a:hover,
body.has-shared-header .home-archive-dropdown a:focus-visible {
  color: var(--home-blue);
  background: rgba(151, 176, 206, 0.16);
  outline: none;
}

body.has-shared-header .home-telegram-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  color: var(--home-white);
  background: #2852a3;
  border-radius: 9px;
  font: 400 14px/1.2 "Rubik", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

body.has-shared-header .home-telegram-button:hover {
  background: #2852a3;
  filter: brightness(1.04);
  transform: scale(1.02);
}

body.has-shared-header .home-telegram-button img {
  display: block;
  width: 24px;
  height: 24px;
}

body.has-shared-header .home-menu-button,
body.has-shared-header .home-drawer__close {
  display: none;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body.has-shared-header .home-drawer-overlay {
  position: fixed;
  z-index: 190;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(25, 38, 64, 0.42);
  border: 0;
  cursor: pointer;
}

body.has-shared-header .home-drawer {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 88vw);
  padding: 18px 20px 30px;
  overflow-y: auto;
  color: var(--home-blue);
  background: var(--home-paper);
  box-shadow: -18px 0 52px rgba(30, 47, 78, 0.2);
  font-family: "Rubik", Arial, sans-serif;
}

body.has-shared-header .home-drawer__header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.has-shared-header .home-drawer__close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
}

body.has-shared-header .home-drawer__close img {
  display: block;
  width: 24px;
  height: 24px;
}

body.has-shared-header .home-drawer__nav {
  display: grid;
  gap: 0;
  margin-top: 48px;
}

body.has-shared-header .home-drawer__nav > a,
body.has-shared-header .home-drawer__archive-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  color: var(--home-blue);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(151, 176, 206, 0.36);
  font: 500 18px/1.3 "Rubik", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body.has-shared-header .home-drawer__archive-trigger::after {
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

body.has-shared-header .home-drawer__archive-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

body.has-shared-header .home-drawer__archive {
  display: grid;
  padding: 8px 0 12px 18px;
  border-bottom: 1px solid rgba(151, 176, 206, 0.36);
}

body.has-shared-header .home-drawer__archive a {
  padding: 10px 0;
  color: var(--home-blue);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

body.has-shared-header .home-drawer__telegram {
  justify-content: flex-start !important;
  gap: 12px;
  margin-top: 22px;
  padding: 4px 18px !important;
  color: var(--home-white) !important;
  background: #2852a3 !important;
  border: 0 !important;
  border-radius: 9px;
}

body.has-shared-header .home-drawer__telegram img {
  display: block;
  width: 24px;
  height: 24px;
}

@media (max-width: 1199px) {
  body.has-shared-header .home-header__inner {
    width: min(960px, calc(100% - 40px));
  }

  body.has-shared-header .home-desktop-nav {
    gap: 22px;
  }

  body.has-shared-header .home-nav-link {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  body.has-shared-header .home-header {
    height: 64px;
  }

  body.has-shared-header .home-header__inner {
    width: calc(100% - 32px);
  }

  body.has-shared-header .home-desktop-nav {
    display: none;
  }

  body.has-shared-header .home-menu-button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-left: auto;
    border-radius: 50%;
  }

  body.has-shared-header .home-menu-button img {
    display: block;
    width: 32px;
    height: 32px;
  }

  body.has-shared-header:not([data-page="home"]) .content-page {
    padding-top: 64px;
  }
}

@media (max-width: 639px) {
  body.has-shared-header .home-header__inner {
    width: calc(100% - 28px);
  }

  body.has-shared-header .home-logo img,
  body.has-shared-header .home-drawer__logo img {
    width: 124px;
    height: auto;
  }
}

@media (min-width: 360px) and (max-width: 479px) {
  body.has-shared-header .home-drawer {
    width: min(390px, 92vw);
  }
}

@media (max-width: 359px) {
  body.has-shared-header .home-drawer {
    width: 94vw;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-shared-header .home-header *,
  body.has-shared-header .home-drawer *,
  body.has-shared-header .home-drawer-overlay {
    transition-duration: 0.01ms !important;
  }
}

/* Refined mobile drawer, inspired by the soft motion and inset panel from 21st.dev Drawer. */
body.has-shared-header .home-drawer-overlay {
  display: block;
  background: rgba(30, 47, 78, 0.28);
  opacity: 0;
  backdrop-filter: blur(0);
  pointer-events: none;
  transition: opacity 450ms cubic-bezier(0.32, 0.72, 0, 1),
    backdrop-filter 450ms cubic-bezier(0.32, 0.72, 0, 1);
}

body.has-shared-header .home-drawer-overlay.is-open {
  opacity: 1;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

body.has-shared-header .home-drawer {
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(400px, calc(100vw - 24px));
  padding: 18px 16px 22px;
  overscroll-behavior: contain;
  background: rgba(249, 254, 255, 0.97);
  border: 1px solid rgba(151, 176, 206, 0.38);
  border-radius: 24px;
  box-shadow: -18px 24px 64px rgba(30, 47, 78, 0.2);
  opacity: 0.98;
  transform: translateX(calc(100% + 28px));
  transition: transform 450ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 450ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 450ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

body.has-shared-header .home-drawer.is-open {
  opacity: 1;
  transform: translateX(0);
}

body.has-shared-header .home-drawer__header {
  min-height: 50px;
  padding: 0 2px 14px 10px;
  border-bottom: 1px solid rgba(151, 176, 206, 0.24);
}

body.has-shared-header .home-drawer__title {
  margin: 0;
  color: var(--home-blue);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

body.has-shared-header .home-drawer__close {
  width: 40px;
  height: 40px;
  background: rgba(151, 176, 206, 0.12);
  border: 1px solid rgba(151, 176, 206, 0.24);
  transition: background-color 180ms ease, transform 180ms ease;
}

body.has-shared-header .home-drawer__close:hover {
  background: rgba(151, 176, 206, 0.22);
  transform: rotate(3deg);
}

body.has-shared-header .home-drawer__close img {
  width: 20px;
  height: 20px;
}

body.has-shared-header .home-drawer__nav {
  gap: 6px;
  margin-top: 18px;
}

body.has-shared-header .home-drawer__nav > a,
body.has-shared-header .home-drawer__archive-trigger {
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(12px);
  transition: color 180ms ease, background-color 180ms ease,
    transform 320ms cubic-bezier(0.32, 0.72, 0, 1), opacity 260ms ease;
}

body.has-shared-header .home-drawer.is-open .home-drawer__nav > a,
body.has-shared-header .home-drawer.is-open .home-drawer__archive-trigger {
  opacity: 1;
  transform: translateX(0);
}

body.has-shared-header .home-drawer.is-open .home-drawer__nav > a:first-child {
  transition-delay: 70ms;
}

body.has-shared-header .home-drawer.is-open .home-drawer__archive-trigger {
  transition-delay: 105ms;
}

body.has-shared-header .home-drawer.is-open .home-drawer__telegram {
  transition-delay: 140ms;
}

body.has-shared-header .home-drawer__nav > a:not(.home-drawer__telegram):hover,
body.has-shared-header .home-drawer__nav > a:not(.home-drawer__telegram):focus-visible,
body.has-shared-header .home-drawer__archive-trigger:hover,
body.has-shared-header .home-drawer__archive-trigger:focus-visible,
body.has-shared-header .home-drawer__archive-trigger[aria-expanded="true"] {
  color: var(--home-blue);
  background: rgba(151, 176, 206, 0.14);
}

body.has-shared-header .home-drawer__archive-trigger::after {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-width: 1.5px;
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

body.has-shared-header .home-drawer__archive {
  display: grid;
  max-height: 0;
  gap: 2px;
  margin: -2px 0 0;
  padding: 0 8px;
  overflow: hidden;
  border-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: max-height 340ms cubic-bezier(0.32, 0.72, 0, 1),
    padding 340ms cubic-bezier(0.32, 0.72, 0, 1),
    opacity 220ms ease, transform 340ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 340ms;
}

body.has-shared-header .home-drawer__archive-trigger[aria-expanded="true"] + .home-drawer__archive {
  max-height: 220px;
  padding: 6px 8px 10px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

body.has-shared-header .home-drawer__archive a {
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 15px;
  transition: background-color 160ms ease, color 160ms ease;
}

body.has-shared-header .home-drawer__archive a:hover,
body.has-shared-header .home-drawer__archive a:focus-visible {
  color: var(--home-blue);
  background: rgba(151, 176, 206, 0.13);
}

body.has-shared-header .home-drawer__telegram {
  min-height: 52px;
  justify-content: center !important;
  margin-top: 16px;
  padding: 8px 16px !important;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(40, 82, 163, 0.16);
}

body.has-shared-header .home-drawer.is-open .home-drawer__telegram:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

@media (max-width: 479px) {
  body.has-shared-header .home-drawer {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 16px 14px 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-shared-header .home-drawer,
  body.has-shared-header .home-drawer *,
  body.has-shared-header .home-drawer-overlay {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* One shared footer on the home page and every public inner page. */
body.has-shared-header .home-footer {
  padding: 0 20px;
  color: var(--home-blue);
  background: #f7fdff url("footer-gradient.svg") center top / cover no-repeat;
  font-family: var(--font-sans);
}

body.has-shared-header:not([data-page="home"]) .region-page {
  padding-bottom: 0;
}

body.has-shared-header:not([data-page="home"]) .content-main {
  padding-bottom: 0;
}

body.has-shared-header:not([data-page="home"]) .home-footer {
  margin-top: 60px;
}

body.has-shared-header .home-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.45fr;
  grid-template-rows: auto auto auto auto;
  width: min(1140px, 100%);
  min-height: 360px;
  margin: 0 auto;
  padding: 58px 0 48px;
  border-top: 1px solid rgba(151, 176, 206, 0.22);
}

body.has-shared-header .home-footer__brand {
  grid-column: 1;
  grid-row: 1 / 5;
  padding-top: 2px;
}

body.has-shared-header .home-footer__brand img {
  display: block;
  width: 139px;
  height: 24px;
}

body.has-shared-header .home-footer__contacts {
  display: contents;
}

body.has-shared-header .home-footer__contacts h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

body.has-shared-header .home-footer__contacts > a {
  color: var(--home-blue);
  font-size: 16px;
  line-height: 1.55;
  text-decoration: none;
}

body.has-shared-header .home-footer__contacts > a:nth-of-type(1) {
  grid-column: 2;
  grid-row: 2;
}

body.has-shared-header .home-footer__contacts > a:nth-of-type(2) {
  grid-column: 2;
  grid-row: 3;
}

body.has-shared-header .home-footer__contacts .home-footer__rules {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

body.has-shared-header .home-footer__contacts a:hover,
body.has-shared-header .home-footer__rules:hover {
  color: var(--home-coral);
}

body.has-shared-header .home-footer a:focus-visible {
  outline: 3px solid rgba(255, 133, 98, 0.42);
  outline-offset: 4px;
}

body.has-shared-header .home-footer__socials {
  display: flex;
  grid-column: 2;
  grid-row: 4;
  gap: 12px;
  align-items: end;
  margin-top: 28px;
}

body.has-shared-header .home-footer__socials a,
body.has-shared-header .home-footer__socials img {
  display: block;
  width: 36px;
  height: 36px;
}

body.has-shared-header .home-footer__socials a {
  border-radius: 7px;
  transition: transform 160ms ease;
}

body.has-shared-header .home-footer__socials a:hover {
  transform: translateY(-2px);
}

body.has-shared-header .home-footer__legal {
  grid-column: 3;
  grid-row: 3 / 5;
  align-self: end;
  margin: 0;
  color: var(--home-blue-soft);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1199px) {
  body.has-shared-header .home-footer__inner {
    width: min(960px, calc(100% - 40px));
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  body.has-shared-header .home-footer__inner {
    width: calc(100% - 16px);
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    gap: 34px 52px;
  }

  body.has-shared-header .home-footer__brand {
    grid-column: 1;
    grid-row: 1;
  }

  body.has-shared-header .home-footer__contacts {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  body.has-shared-header .home-footer__contacts h2,
  body.has-shared-header .home-footer__contacts > a:nth-of-type(1),
  body.has-shared-header .home-footer__contacts > a:nth-of-type(2),
  body.has-shared-header .home-footer__contacts .home-footer__rules {
    grid-column: 1;
    grid-row: auto;
  }

  body.has-shared-header .home-footer__rules {
    margin-top: 22px;
  }

  body.has-shared-header .home-footer__socials {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
  }

  body.has-shared-header .home-footer__legal {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
}

@media (max-width: 639px) {
  body.has-shared-header:not([data-page="home"]) .home-footer {
    margin-top: 42px;
  }

  body.has-shared-header .home-footer {
    padding: 0 20px;
  }

  body.has-shared-header .home-footer__inner {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 34px;
    padding: 44px 0;
  }

  body.has-shared-header .home-footer__brand,
  body.has-shared-header .home-footer__contacts,
  body.has-shared-header .home-footer__socials,
  body.has-shared-header .home-footer__legal {
    grid-column: 1;
    grid-row: auto;
  }

  body.has-shared-header .home-footer__brand {
    padding: 0;
  }

  body.has-shared-header .home-footer__contacts {
    display: grid;
    gap: 3px;
  }

  body.has-shared-header .home-footer__contacts h2,
  body.has-shared-header .home-footer__contacts > a:nth-of-type(1),
  body.has-shared-header .home-footer__contacts > a:nth-of-type(2),
  body.has-shared-header .home-footer__contacts .home-footer__rules {
    grid-column: 1;
    grid-row: auto;
  }

  body.has-shared-header .home-footer__rules {
    margin-top: 20px;
  }

  body.has-shared-header .home-footer__socials {
    margin: 0;
  }

  body.has-shared-header .home-footer__legal {
    align-self: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-shared-header .home-footer * {
    transition-duration: 0.01ms !important;
  }
}
