:root {
  --gold: #cfb48a;
  --gold-light: #f7e1a7;
  --footer: #0a0e0f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1180px;
  margin: 0;
  background: var(--footer);
}

body {
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
}

a {
  color: inherit;
}

img {
  display: block;
}

.site-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: minmax(620px, 1fr) auto;
  overflow: hidden;
  background: var(--footer);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background-image: url("assets/hero-cosmonaut.jpg");
  background-position: center right;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(1, 12, 16, 0.28) 0%,
      rgba(1, 12, 16, 0.06) 41%,
      rgba(1, 12, 16, 0) 64%
    ),
    linear-gradient(0deg, rgba(3, 12, 14, 0.1), transparent 28%);
}

.hero__astronaut-mobile {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(720px, 51vw);
  height: 100%;
  min-height: 620px;
  padding: 20px 0 0 clamp(38px, 4.3vw, 76px);
  flex-direction: column;
  align-items: flex-start;
}

.hero__logo {
  width: min(660px, 46vw);
  margin: 0;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

.services {
  position: absolute;
  top: 52%;
  left: clamp(38px, 4.3vw, 76px);
  display: grid;
  width: min(508px, 75vw);
  transform: translateY(-50%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 2.5vw, 48px);
  row-gap: 18px;
}

.service {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 15px;
}

.service__icon {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  object-fit: contain;
}

.service p {
  margin: 0;
  color: var(--gold-light);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.23;
  text-transform: uppercase;
}

.booking-button {
  width: min(590px, 44vw);
  margin-top: auto;
  margin-left: clamp(-76px, -4.3vw, -38px);
  transform-origin: left bottom;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.booking-button img {
  width: 100%;
  height: auto;
}

.booking-button:hover,
.booking-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

.booking-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -8px;
}

.footer {
  position: relative;
  z-index: 2;
  height: 260px;
  background: var(--footer);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.footer__inner {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px clamp(38px, 4.3vw, 76px) 12px;
  flex-direction: column;
  gap: 10px;
}

.footer__main {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: clamp(26px, 3.5vw, 64px);
}

.footer__legal {
  display: flex;
  width: 100%;
  padding-top: 11px;
  border-top: 1px solid rgba(207, 180, 138, 0.22);
  color: rgba(247, 225, 167, 0.52);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer__legal span {
  white-space: nowrap;
}

.footer__legal a {
  color: inherit;
  text-decoration-color: rgba(247, 225, 167, 0.34);
  text-underline-offset: 4px;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--gold-light);
}

.footer__qr-column {
  display: flex;
  align-items: center;
}

.contacts {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 16px;
}

.contacts__qr {
  width: 112px;
  height: 112px;
  padding: 7px;
  flex: 0 0 112px;
  background: #ffffff;
  object-fit: contain;
}

.contacts__badge {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  object-fit: contain;
}

.contacts__text {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contacts__address {
  color: var(--gold);
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.contacts__address:hover,
.contacts__address:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contacts__phone {
  color: var(--gold-light);
  font-size: clamp(27px, 2vw, 34px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.contacts__phone:hover,
.contacts__phone:focus-visible {
  color: #ffffff;
}

.footer__offer {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 1.65vw, 28px);
  font-weight: 500;
  line-height: 1.28;
  text-transform: uppercase;
}

.footer__offer strong {
  display: inline;
  color: var(--gold);
  font-weight: 800;
}

.footer__offer span {
  display: inline;
  margin-top: 0;
  color: #ffffff;
  font-weight: 500;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 82px;
  left: 24px;
  z-index: 20;
  display: flex;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(207, 180, 138, 0.72);
  border-radius: 8px;
  background: rgba(10, 14, 15, 0.97);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.cookie-banner button {
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #0a0e0f;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner button:hover,
.cookie-banner button:focus-visible {
  background: var(--gold-light);
}

.privacy-page {
  min-height: 100vh;
  padding: 46px 24px 90px;
  background:
    radial-gradient(circle at 80% 5%, rgba(0, 78, 96, 0.22), transparent 28%),
    #0a0e0f;
}

.privacy-document {
  width: min(100%, 980px);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.privacy-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.privacy-back:hover,
.privacy-back:focus-visible {
  color: var(--gold-light);
}

.privacy-document h1 {
  max-width: 850px;
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.privacy-document h2 {
  margin: 42px 0 14px;
  color: var(--gold);
  font-size: 25px;
  line-height: 1.25;
}

.privacy-document p {
  margin: 0 0 14px;
}

.privacy-document ul {
  margin: 0 0 18px;
  padding-left: 24px;
}

.privacy-document li {
  margin-bottom: 7px;
}

.privacy-meta {
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.035);
}

.privacy-meta p:last-child {
  margin-bottom: 0;
}

.privacy-requisites {
  margin: 0;
  border-top: 1px solid rgba(207, 180, 138, 0.24);
}

.privacy-requisites div {
  display: grid;
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 180, 138, 0.14);
  grid-template-columns: 170px 1fr;
  gap: 20px;
}

.privacy-requisites dt {
  color: var(--gold);
  font-weight: 700;
}

.privacy-requisites dd {
  margin: 0;
}

@media (min-width: 1750px) {
  .site-shell {
    grid-template-rows: minmax(720px, 1fr) auto;
  }

  .hero,
  .hero__content {
    min-height: 720px;
  }

  .footer {
    height: 280px;
  }

  .hero__content {
    width: 820px;
  }

  .hero__logo {
    width: 740px;
  }

  .booking-button {
    width: 654px;
  }

  .service__icon {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }
}

@media (max-width: 1350px) {
  .service p {
    font-size: 20px;
  }
}

@media (max-width: 950px) {
  .service p {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    min-width: 0;
  }

  .site-shell {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .hero {
    height: 680px;
    min-height: 680px;
    background-image: url("assets/mobile-space-background.jpg");
    background-position: center top;
    background-size: cover;
  }

  .hero__shade {
    display: none;
  }

  .hero__astronaut-mobile {
    position: absolute;
    right: clamp(-230px, -45vw, -140px);
    bottom: 0;
    z-index: 1;
    display: block;
    width: min(110vw, 480px);
    max-width: none;
    height: auto;
    pointer-events: none;
  }

  .hero__content {
    width: 100%;
    height: 680px;
    min-height: 680px;
    padding: 20px 0 0;
  }

  .hero__logo {
    width: 100%;
    margin: 0;
    padding: 0 12px;
  }

  .services {
    top: 225px;
    left: 20px;
    z-index: 2;
    width: min(72vw, 320px);
    transform: none;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 10px;
  }

  .service {
    min-height: 68px;
    gap: 12px;
  }

  .service:nth-child(2) {
    order: 3;
  }

  .service:nth-child(3) {
    order: 2;
  }

  .service__icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .service p {
    font-size: 16px;
    line-height: 1.2;
  }

  .booking-button {
    position: absolute;
    bottom: -8px;
    left: -16px;
    z-index: 3;
    width: min(92vw, 575px);
    margin: 0;
  }

  .footer {
    height: auto;
    min-height: 0;
  }

  .footer__inner {
    height: auto;
    padding: 32px 24px 36px;
    gap: 26px;
  }

  .footer__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .footer__legal {
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .footer__legal span {
    white-space: normal;
  }

  .footer__qr-column {
    display: none;
  }

  .contacts {
    width: 100%;
    height: auto;
  }

  .contacts__qr {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
  }

  .contacts__badge {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .contacts__address {
    font-size: 14px;
    white-space: normal;
  }

  .contacts__phone {
    font-size: 20px;
  }

  .footer__offer {
    font-size: 18px;
  }

  .cookie-banner {
    right: 14px;
    bottom: 180px;
    left: 14px;
    width: auto;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner button {
    width: 100%;
  }

  .privacy-page {
    padding: 28px 18px 210px;
  }

  .privacy-document {
    font-size: 14px;
    line-height: 1.62;
  }

  .privacy-document h1 {
    font-size: 31px;
  }

  .privacy-document h2 {
    margin-top: 34px;
    font-size: 21px;
  }

  .privacy-requisites div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (min-width: 550px) and (max-width: 767px) {
  .hero,
  .hero__content {
    height: calc(40.8vw + 520px);
    min-height: calc(40.8vw + 520px);
  }

  .services {
    top: calc(40.8vw + 40px);
  }
}

@media (max-width: 420px) {
  .hero {
    height: 585px;
    min-height: 585px;
  }

  .hero__content {
    height: 585px;
    min-height: 585px;
    padding: 40px 0 0;
  }

  .services {
    top: 205px;
  }

  .hero__astronaut-mobile {
    right: clamp(-230px, -39vw, -140px);
    bottom: 0;
    width: min(98vw, 480px);
  }

  .service {
    min-height: 52px;
    gap: 12px;
  }

  .service__icon {
    width: 47px;
    height: 47px;
    flex-basis: 62px;
  }

  .service p {
    font-size: 14px;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-button {
    transition: none;
  }
}
