:root {
  --blue-700: #001489;
  --blue-800: #001160;
  --blue-900: #061442;
  --blue-950: #050f31;
  --cyan-400: #14c4ef;
  --cyan-500: #11b9e4;
  --orange-500: #ff6a00;
  --orange-600: #f05b00;
  --text-strong: #08205f;
  --text-base: #506070;
  --line: #dfe5ee;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --shadow: 0 18px 40px rgba(3, 17, 70, 0.08);
  --shell: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-base);
  background: var(--surface);
}

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

button,
input {
  font: inherit;
}

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

.shell {
  width: min(var(--shell), calc(100% - 20px));
  margin: 0 auto;
}

.brand-sprite {
  position: absolute;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--orange-500);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  background: var(--blue-800);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
}

.topbar__inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 0;
  text-align: center;
}

.site-header {
  background: var(--blue-700);
  color: var(--surface);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 68px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand__logo {
  display: block;
  width: 196px;
  height: 24px;
}

.brand--footer .brand__logo {
  width: 148px;
  height: 18px;
}

.search {
  min-width: 0;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.search__frame {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  padding: 0 14px 0 18px;
  background: var(--surface);
  border-radius: 3px;
  transform: skewX(-14deg);
}

.search__frame > * {
  transform: skewX(14deg);
}

.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: var(--text-base);
  background: transparent;
  outline: none;
}

.search__input::placeholder {
  color: #66758c;
}

.search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
}

.search__button svg,
.header-action svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-header__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--surface);
}

.header-action:hover,
.header-action:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.site-nav {
  background: var(--blue-800);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.site-nav__list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.site-nav__list::-webkit-scrollbar {
  display: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 47px;
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav__link--active,
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--surface);
  border-bottom-color: var(--cyan-400);
  outline: none;
}

.hero {
  background: var(--cyan-400);
  padding: 28px 0 122px;
}

.hero__title {
  margin: 0;
  color: var(--surface);
  font-size: clamp(30px, 3.3vw, 40px);
  line-height: 1;
}

.hero__subtitle {
  margin: 10px 0 0;
  max-width: 560px;
  color: rgba(8, 32, 95, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.catalog {
  margin-top: -92px;
  padding: 0 0 40px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-card {
  position: relative;
  background: var(--surface);
  min-width: 0;
}

.product-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 10px 4px 12px;
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.product-card__badge::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 1px 100%, 0 100%);
}

.product-card__badge--sale {
  background: var(--orange-500);
}

.product-card__badge--new {
  background: var(--cyan-500);
}

.product-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.product-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  padding: 8px 8px 0;
  background: var(--surface);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 180ms ease;
}

.product-card:hover .product-card__image,
.product-card:focus-within .product-card__image {
  transform: scale(1.015);
}

.product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 16px 16px 18px;
}

.product-card__description {
  margin: 0;
  color: #6b778b;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title {
  margin: 0;
  color: var(--text-strong);
  min-height: 40px;
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__subtitle {
  margin: 2px 0 0;
  color: #6b778b;
  min-height: 36px;
  font-size: 13.5px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__stock {
  display: inline-flex;
  align-self: flex-start;
  margin: 6px 0 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e6f8fd;
  color: #048db8;
  font-size: 11px;
  font-weight: 700;
}

.product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.product-card__price {
  display: inline-flex;
  align-items: flex-start;
  margin: 0;
}

.product-card__price--sale {
  color: var(--orange-500);
}

.product-card__price--regular {
  color: var(--blue-700);
}

.product-card__price-whole {
  font-size: clamp(34px, 2.7vw, 46px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: 0.03em;
}

.product-card__price-fraction {
  margin-top: 4px;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 800;
  line-height: 1;
}

.product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--cyan-500);
  color: var(--surface);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0, 20, 137, 0.08) inset;
}

.product-card__action:hover,
.product-card__action:focus-visible {
  background: var(--blue-700);
  outline: none;
}

.countdown-banner {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: var(--cyan-400);
  color: var(--surface);
}

.countdown-banner__copy h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
}

.countdown-banner__copy p {
  margin: 10px 0 0;
  color: rgba(8, 32, 95, 0.88);
  font-size: 15px;
  font-weight: 700;
}

.countdown-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue-700);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.countdown-banner__timer-wrap {
  justify-self: end;
}

.countdown-banner__timer {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 8px;
}

.countdown-slot {
  display: flex;
  min-width: 70px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 10px;
  border-radius: 10px;
  background: rgba(0, 20, 137, 0.88);
}

.countdown-slot__value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.countdown-slot__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.countdown-banner__note {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(8, 32, 95, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
}

.pagination__button,
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.pagination__button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue-700);
  cursor: pointer;
}

.pagination__button:hover,
.pagination__button:focus-visible {
  border-color: var(--blue-700);
  outline: none;
}

.pagination__button--active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: var(--surface);
}

.pagination__ellipsis {
  color: #7b889d;
}

.footer {
  margin-top: 28px;
}

.footer__utility {
  background: var(--blue-700);
  color: var(--surface);
}

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

.footer__utility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 11px;
}

.footer__utility-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer__utility-links a:hover,
.footer__utility-links a:focus-visible {
  color: var(--surface);
  outline: none;
}

.footer__main {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-950));
  color: var(--surface);
}

.footer__main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 1fr));
  gap: 40px;
  padding: 40px 0 30px;
}

.footer__newsletter h2,
.footer__column h3 {
  margin: 0;
}

.footer__newsletter h2 {
  color: var(--orange-500);
  font-size: 20px;
  line-height: 1.1;
}

.footer__newsletter p {
  margin: 12px 0 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12.5px;
  line-height: 1.5;
}

.footer__newsletter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 700;
}

.footer__newsletter-note {
  font-size: 11px;
  font-weight: 700;
}

.footer__column h3 {
  font-size: 13.5px;
}

.footer__column ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer__column li + li {
  margin-top: 9px;
}

.footer__column a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12.5px;
}

.footer__column a:hover,
.footer__column a:focus-visible,
.footer__newsletter-button:hover,
.footer__newsletter-button:focus-visible {
  color: var(--surface);
  outline: none;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.payments__label {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.payments__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--surface);
  font-size: 10px;
  font-weight: 700;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.footer__socials a:hover,
.footer__socials a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

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

@media (max-width: 900px) {
  .topbar__inner,
  .footer__utility-inner,
  .footer__main-inner,
  .footer__bottom,
  .countdown-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__inner {
    gap: 8px;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr auto;
  }

  .countdown-banner__timer-wrap {
    justify-self: start;
  }

  .footer__utility-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(var(--shell), calc(100% - 16px));
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .site-header__actions {
    gap: 2px;
  }

  .search {
    grid-column: 1 / -1;
    order: 4;
  }

  .catalog {
    margin-top: -68px;
  }

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

  .countdown-banner {
    padding: 22px 18px;
  }

  .countdown-banner__timer {
    width: 100%;
  }

  .countdown-slot {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .topbar {
    display: none;
  }

  .site-nav__list {
    gap: 18px;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 94px;
  }

  .product-card__content {
    padding: 12px;
  }

  .product-card__title {
    font-size: 14px;
  }

  .product-card__subtitle {
    font-size: 12px;
  }

  .product-card__price-whole {
    font-size: 32px;
  }

  .product-card__price-fraction {
    font-size: 16px;
  }
}
