@font-face {
  font-family: "GothamPro";
  src: url("../../assets/fonts/gotham/GothamPro-Light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "GothamPro";
  src: url("../../assets/fonts/gotham/GothamPro-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GothamPro";
  src: url("../../assets/fonts/gotham/GothamPro-Medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "GothamPro";
  src: url("../../assets/fonts/gotham/GothamPro-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --accent: #e60000;
  --background: #000;
  --footer: #171717;
  --muted: #747474;
  --text: #fff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "GothamPro", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  height: 130px;
  align-items: center;
  background: #000;
}

.site-header__logo {
  position: absolute;
  top: 35px;
  left: 72.5px;
}

.site-header__logo img {
  display: block;
  width: 125px;
  height: auto;
}

.site-header__actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: flex-start;
  gap: 165px;
}

.site-header__account img {
  display: block;
  width: 38px;
  height: auto;
  margin-top: 4.5px;
}

.menu-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-content: center;
  gap: 6px;
  border: 0;
  border-radius: 50%;
  background: #0b0b0b;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.site-menu {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  display: flex;
  width: min(360px, 88vw);
  height: 100dvh;
  flex-direction: column;
  gap: 26px;
  padding: 110px 42px;
  background: rgb(15 15 15 / 98%);
  box-shadow: -20px 0 50px rgb(0 0 0 / 45%);
  font-size: 24px;
}

.site-menu[hidden] {
  display: none;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a[aria-current="page"] {
  color: var(--accent);
}

.page-heading {
  display: grid;
  height: 150px;
  place-content: start center;
  gap: 27px;
  background: #000;
  text-align: center;
  text-transform: uppercase;
}

.page-heading__line {
  width: 2px;
  height: 40px;
  margin: 0 auto;
  background: var(--accent);
}

.page-heading h1 {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.cases-grid {
  display: grid;
  min-height: 588px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 277px 311px;
}

.case-card {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}

.case-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.case-card__content {
  display: grid;
  place-items: center;
  gap: 12px;
  opacity: 0;
  text-align: center;
  transition: opacity 180ms ease;
}

.case-card__eyebrow {
  font-size: 16px;
  text-transform: uppercase;
}
.case-card strong {
  font-size: 30px;
  font-weight: 500;
}

.case-card__button {
  display: grid;
  min-width: 128px;
  min-height: 48px;
  place-items: center;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-card:hover::before,
.case-card:focus-visible::before,
.case-card:hover .case-card__content,
.case-card:focus-visible .case-card__content {
  opacity: 1;
}

.case-card--metro {
  background-image: url("/images/metro-promo.png");
}
.case-card--lemana {
  background-image: url("/images/lemana-promo.png");
}
.case-card--tekta {
  background-image: url("/images/tild6139-3933-4932-b763-643038373631__photo.jpg");
}
.case-card--pomsticks {
  background-image: url("/images/tild3364-3938-4130-b532-616165613334__photo.jpg");
}
.case-card--moskvich {
  background-image: url("/images/case_moskvich.png");
}
.case-card--pringles {
  background-image: url("/images/tild6635-3063-4566-b234-356461353966__photo.jpg");
}
.case-card--autoradio {
  background-image: url("/images/tild3761-6531-4539-b638-393430633662__photo.jpg");
}
.case-card--lottery {
  background-image: url("/images/case_lotery.png");
}
.case-card--metro,
.case-card--lemana {
  background-position: center bottom 13%;
}
.case-card--lottery strong {
  font-size: 26px;
}

.contacts {
  position: relative;
  display: grid;
  height: 760px;
  grid-template-columns: minmax(360px, 1fr) minmax(500px, 1fr);
  grid-template-rows: 140px 1fr;
  overflow: hidden;
  background: #000 url("/images/tild3732-6465-4261-a562-623538346163__-2.png")
    calc(50% - 830px) 65px / 1744px auto no-repeat;
}

.contacts h2 {
  z-index: 1;
  grid-column: 1 / -1;
  margin: 65px 0 0 max(0px, calc(50% - 700px));
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 70px;
  line-height: 1;
  text-transform: uppercase;
}

.contacts__plane {
  position: absolute;
  z-index: 1;
  top: 320px;
  left: calc(50% - 450px);
  width: 254px;
}

.contacts__plane--small-left {
  top: 375px;
  left: calc(50% - 730px);
  width: 50px;
}

.contacts__plane--small-center {
  top: 520px;
  left: calc(50% - 610px);
  width: 103px;
}

.contacts-card {
  z-index: 2;
  display: grid;
  width: min(735px, calc(100% - 80px));
  min-height: 350px;
  align-content: center;
  align-self: center;
  gap: 30px;
  margin: -20px auto 0;
  padding: 48px 90px;
  border: 7px solid #3b3b3b;
  background: #000;
  font-style: normal;
}

.contacts-card a,
.contacts-card p {
  display: grid;
  align-items: center;
  grid-template-columns: 42px 1fr;
  gap: 46px;
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}

.contacts-card img {
  max-width: 37px;
  max-height: 37px;
  justify-self: center;
}
.contacts-card a:hover,
.contacts-card a:focus-visible {
  color: var(--accent);
}

.site-footer {
  position: relative;
  display: grid;
  height: 119px;
  align-items: start;
  padding: 17px 40px 0;
  background: var(--footer);
}

.site-footer img {
  display: block;
  width: 70px;
}
.site-footer p {
  position: absolute;
  top: 27.90625px;
  left: calc(50% - 208.1640625px);
  display: block;
  width: 416.328125px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}
@media (max-width: 959px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, min(42vw, 360px));
  }
  .case-card::before,
  .case-card__content {
    opacity: 1;
  }
  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .site-header {
    height: 68px;
  }
  .site-header__logo {
    top: 25px;
    left: 47.5px;
  }
  .site-header__logo img {
    width: 60px;
  }
  .site-header__actions {
    right: 15px;
  }
  .site-header__account img {
    width: 38px;
  }
  .menu-button {
    width: 48px;
    height: 48px;
  }
  .page-heading {
    height: 110px;
    gap: 18px;
  }
  .page-heading__line {
    height: 40px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .cases-grid {
    display: block;
    min-height: 0;
  }
  .case-card {
    height: 292.5px;
  }
  .case-card strong {
    font-size: 30px;
  }
  .case-card__content {
    position: absolute;
    inset: 0;
    display: block;
  }
  .case-card__eyebrow,
  .case-card strong,
  .case-card__button {
    position: absolute;
    left: 20px;
    width: calc(100% - 40px);
    text-align: center;
  }
  .case-card__eyebrow {
    top: 57.703125px;
    font-size: 16px;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .case-card strong {
    top: 99.296875px;
    font-size: 30px;
    line-height: 1.55;
  }
  .case-card--lottery strong {
    font-size: 26px;
  }
  .case-card__button {
    top: 185.796875px;
    left: calc(50% - 62.5px);
    width: 125px;
    min-width: 0;
    min-height: 0;
    height: 45px;
  }
  .contacts {
    display: grid;
    height: 340px;
    grid-template-rows: 90px 1fr;
    background-position: calc(50% - 141.5px) -105px;
    background-size: 975px auto;
  }
  .contacts h2 {
    margin: 30px 0 0;
    font-size: 20px;
    text-align: center;
  }
  .contacts-card {
    position: absolute;
    top: 141px;
    left: calc(50% - 139px);
    width: 279px;
    height: 176px;
    min-height: 0;
    gap: 13px;
    margin: 0;
    padding: 22px 30px;
    border-width: 5px;
  }
  .contacts-card a,
  .contacts-card p {
    grid-template-columns: 24px 1fr;
    gap: 24px;
    font-size: 12px;
  }
  .contacts-card img {
    max-width: 24px;
    max-height: 24px;
  }
  .contacts__plane {
    top: 65px;
    left: calc(50% + 10px);
    width: 87px;
  }
  .contacts__plane--small-left {
    top: 115px;
    left: calc(50% - 95px);
    width: 23px;
  }
  .contacts__plane--small-center {
    top: 134px;
    left: calc(50% - 45px);
    width: 35px;
  }
  .site-footer {
    display: flex;
    height: 259px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 57px 20px 0;
  }
  .site-footer img {
    width: 70px;
  }
  .site-footer p {
    position: static;
    display: block;
    width: 335px;
    font-size: 15px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .case-card::before,
  .case-card__content {
    transition: none;
  }
}
