:root {
  --page-background: #f3f3f3;
  --surface-background: #ffffff;
  --primary-color: #292d91;
  --primary-dark: #161a69;
  --accent-color: #1684ef;
  --text-color: #171717;
  --muted-color: #656565;
  --border-color: #dfe3eb;
  --container-width: 1232px;
  --content-width: 920px;
  --radius: 11px;
  --shadow: 0 9px 18px rgb(14 25 64 / 18%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

p,
h1,
h2,
h3,
figure {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 56px), var(--container-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

body > header {
  position: relative;
  z-index: 10;
  background: var(--surface-background);
  border-bottom: 1px solid var(--border-color);
}

body > header > section {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.logo {
  width: 82px;
  height: auto;
}

body > header form {
  position: relative;
  max-width: 720px;
}

body > header form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body > header input {
  width: 100%;
  height: 42px;
  padding: 0 62px 0 22px;
  border: 1px solid #d5e3f1;
  border-radius: 999px;
  outline: 0;
  color: var(--text-color);
  font: inherit;
  background: #fff;
}

body > header input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(41 45 145 / 12%);
}

body > header form a {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 80px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-color);
  font-size: 25px;
  line-height: 1;
}

body > header section nav {
  display: flex;
  gap: 9px;
  white-space: nowrap;
}

body > header section nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--primary-color);
  border-radius: 999px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
}

body > header section nav a:last-child {
  color: #fff;
  background: var(--primary-color);
}

body > header > nav {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 27px;
  overflow-x: auto;
  scrollbar-width: none;
  color: var(--primary-color);
  font-size: 16px;
}

body > header > nav::-webkit-scrollbar {
  display: none;
}

body > header > nav a {
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 455px;
  margin-top: 20px;
  padding: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #7d1cb8;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(28 8 76 / 8%) 0%,
    rgb(21 11 61 / 14%) 48%,
    rgb(26 19 94 / 20%) 100%
  );
}

.hero > header {
  position: relative;
  z-index: 1;
  width: min(72%, 780px);
  margin: 0;
  padding: 28px 30px 25px;
  border-radius: 12px;
  color: rgb(255 255 255 / 97%);
  background-color: #08093f58;
  box-shadow: 0 14px 40px rgba(11, 7, 54, 0.318);
  text-align: center;
}

.hero h1 {
  margin-bottom: 15px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.hero p {
  margin-bottom: 20px;
  color: #fffcfc;
  font-size: 15px;
  line-height: 1.44;
}

.hero > header a,
.notice > a,
.responsible > a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
}

.notice,
.responsible {
  margin-top: 40px;
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px 31px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary-color);
}

.notice > div {
  text-align: center;
}

.notice small,
.notice strong,
.notice p {
  display: block;
}

.notice small {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
}

.notice strong {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.15;
}

.notice p {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.notice > a {
  color: var(--primary-color);
  background: #fff;
}

.showcase,
.news {
  padding: 38px 0 18px;
  background: var(--page-background);
}

.showcase > header,
.news > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.showcase h2,
.news h2 {
  margin-bottom: 3px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.showcase header p {
  margin: 0;
  font-size: 16px;
}

.showcase header nav,
.news header nav {
  display: flex;
  gap: 10px;
}

.showcase header nav a,
.news header nav a {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgb(40 42 58 / 15%);
  color: var(--primary-color);
  font-size: 40px;
  line-height: 1;
}

.showcase header nav a:first-child,
.news header nav a:first-child {
  color: #aaa;
  background: #eee;
}

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.track > * {
  min-width: 0;
  scroll-snap-align: start;
}

.showcase .track > * {
  height: 260px;
}

.showcase .track figure {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #173881;
  box-shadow: var(--shadow);
}

.showcase .track figure::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 83%));
}

.showcase .track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase .track figcaption {
  position: absolute;
  z-index: 2;
  left: 11px;
  right: 11px;
  bottom: 10px;
  color: #fff;
  line-height: 1.25;
}

.showcase .track figcaption strong,
.showcase .track figcaption b {
  display: block;
}

.showcase .track figcaption strong {
  font-size: 15px;
}

.showcase .track figcaption b {
  font-size: 14px;
}

.showcase .track sup {
  font-size: 9px;
}

.price,
.badge {
  position: absolute;
  z-index: 3;
  font-weight: 700;
}

.price {
  top: 10px;
  right: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--primary-color);
  background: #fff;
  font-size: 14px;
}

.badge {
  left: 11px;
  bottom: 50px;
  padding: 3px 7px;
  border-radius: 5px;
  color: #fff;
  background: #ff5d2d;
  font-size: 12px;
}

.responsible {
  grid-template-columns: auto 1fr auto;
  min-height: 100px;
  margin-top: 22px;
  padding: 15px 31px;
}

.responsible > span {
  font-size: 38px;
}

.responsible strong,
.responsible p {
  display: block;
  text-align: center;
}

.responsible strong {
  font-size: 24px;
  line-height: 1.1;
}

.responsible p {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}

.responsible > a {
  min-width: 152px;
  background: var(--accent-color);
}

.news {
  padding-bottom: 45px;
}

.news .track {
  grid-auto-columns: minmax(260px, 1fr);
}

.news li {
  min-height: 240px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.news figure {
  height: 142px;
  margin: 0;
  overflow: hidden;
}

.news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news h3 {
  margin: 0;
  padding: 17px 19px 20px;
  font-size: 20px;
  line-height: 1.05;
}

.seo-copy {
  max-width: var(--content-width);
  padding: 54px 0 72px;
}

.seo-copy section + section {
  margin-top: 46px;
}

.seo-copy h2 {
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.6px;
}

.seo-copy h3 {
  margin: 33px 0 14px;
  color: var(--primary-dark);
  font-size: 24px;
  line-height: 1.25;
}

.seo-copy p,
.seo-copy li {
  color: #2c2c2c;
  font-size: 17px;
}

.seo-copy p {
  margin-bottom: 17px;
}

.seo-copy ul {
  margin: 0 0 21px;
  padding-left: 24px;
}

.table-scroll {
  margin: 28px 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(18 30 82 / 10%);
}

th,
td {
  padding: 15px 18px;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  background: var(--primary-color);
}

footer {
  background: #fff;
}

footer > section:first-child {
  padding: 25px 20px 30px;
  color: #fff;
  background: var(--primary-color);
  text-align: center;
}

footer > section:first-child h2 {
  margin-bottom: 10px;
  font-size: 19px;
}

footer > section:first-child nav {
  display: flex;
  justify-content: center;
  gap: 14px;
}

footer > section:first-child a {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-color);
  background: #fff;
  font-size: 27px;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1.15fr 0.9fr;
  gap: 52px;
  padding: 48px 22px 30px;
}

.footer-grid nav {
  min-width: 0;
}

.footer-grid h3 {
  margin-bottom: 13px;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: #262626;
  font-size: 13px;
}

.footer-badges {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 44px;
  padding: 12px 22px 38px;
}

.footer-badges a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #202020;
  border-radius: 7px;
  color: #fff;
  background: #050505;
  text-align: center;
  line-height: 1.1;
}

.footer-badges a:first-child {
  justify-content: flex-start;
  border-color: transparent;
  color: var(--primary-color);
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.footer-badges p {
  margin: 0;
  color: var(--primary-color);
  font-size: 18px;
  text-align: center;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 21px 22px 28px;
  border-top: 1px solid var(--border-color);
  color: var(--muted-color);
  font-size: 12px;
}

.legal p {
  margin: 0;
}

@media (min-width: 1180px) {
  .showcase .track {
    grid-auto-columns: calc((100% - 80px) / 5);
  }

  .news .track {
    grid-auto-columns: calc((100% - 60px) / 4);
  }
}

@media (max-width: 1100px) {
  body > header > section {
    grid-template-columns: auto 1fr;
  }

  body > header section nav {
    display: none;
  }

  .hero > header {
    width: min(78%, 720px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container-width));
  }

  body > header > section {
    min-height: 58px;
    grid-template-columns: auto 1fr;
    gap: 13px;
  }

  .logo {
    width: 70px;
  }

  body > header input {
    height: 39px;
    padding-left: 16px;
    font-size: 14px;
  }

  body > header form a {
    width: 55px;
    height: 37px;
  }

  body > header > nav {
    gap: 20px;
    font-size: 14px;
  }

  .hero {
    min-height: 635px;
    margin-top: 14px;
    padding: 14px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgb(12 8 58 / 8%), rgb(16 9 54 / 30%));
  }

  .hero > header {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0;
    padding: 22px 20px;
    text-align: center;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 14px;
  }

  .notice,
  .responsible {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
    text-align: center;
  }

  .notice strong {
    font-size: 24px;
  }

  .notice p {
    font-size: 16px;
  }

  .notice > a,
  .responsible > a {
    justify-self: center;
  }

  .showcase,
  .news {
    padding-top: 33px;
  }

  .showcase h2,
  .news h2 {
    font-size: 24px;
  }

  .showcase header p {
    font-size: 14px;
  }

  .showcase header nav,
  .news header nav {
    display: none;
  }

  .track {
    grid-auto-columns: 78%;
    gap: 14px;
  }

  .showcase .track > * {
    height: 285px;
  }

  .responsible > span {
    display: none;
  }

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

  .seo-copy {
    padding-top: 40px;
  }

  .seo-copy p,
  .seo-copy li {
    font-size: 16px;
  }

  .footer-grid,
  .footer-badges {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 28px;
    padding-inline: 0;
  }

  .footer-badges {
    gap: 13px;
    padding-inline: 0;
  }

  .footer-badges a:first-child {
    justify-content: center;
    text-align: center;
  }

  .legal {
    flex-direction: column;
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
