/* =========================================================
   Дом приёмов ASG — temporary one-page site
   ========================================================= */

:root {
  --beige: #eae5df;
  --dark: #532437;
  --white: #ffffff;
  --font-body: "Manrope", Arial, sans-serif;
  --font-display: "Cormorant", Georgia, serif;
  --content-max: 1360px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--beige);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
body * {
  min-width: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--beige);
  outline-offset: 4px;
}

::selection {
  background: var(--dark);
  color: var(--beige);
}

.page {
  overflow: hidden;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 700px;
  min-height: max(700px, 87svh);
  overflow: hidden;
  color: var(--beige);
  background: #2a1a20;
}

.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  filter: brightness(0.62) saturate(0.78) contrast(1.05);
  transform: scale(1.015);
}

.hero__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(27, 18, 22, 0.52) 0%,
      rgba(27, 18, 22, 0.3) 40%,
      rgba(27, 18, 22, 0.66) 100%
    ),
    radial-gradient(
      120% 95% at 50% 42%,
      rgba(27, 18, 22, 0) 30%,
      rgba(27, 18, 22, 0.38) 100%
    );
}

.hero__header,
.hero__content,
.hero__notice {
  position: relative;
  z-index: 1;
}

.hero__header {
  display: flex;
  justify-content: center;
  padding: 28px 24px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 165px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 52px;
  text-align: center;
}

.hero__copy {
  position: relative;
  top: clamp(0px, 4.9vh, 53px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  max-width: 1120px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, calc(2.22vw + 21px), 64px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.18);
}

.hero__subtitle {
  max-width: 640px;
  margin: 30px 0 0;
  font-size: clamp(15px, calc(0.94vw + 12px), 18px);
  line-height: 1.35;
  color: rgba(234, 229, 223, 0.9);
  font-weight: 300;
  text-wrap: balance;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 46px;
  padding: 11px 28px;
  border-radius: 999px;
  background: var(--beige);
  color: var(--dark);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero__phone:hover,
.hero__phone:focus-visible {
  background: transparent;
  color: var(--beige);
  box-shadow: inset 0 0 0 1px var(--beige);
}

/* Notice panel */

.hero__notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(300px, 454px);
  align-items: center;
  gap: 20px;
  width: min(1520px, calc(100% - 48px));
  margin: 0 auto 40px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(18, 18, 20, 0.5);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.hero__notice-icon {
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__notice-icon svg {
  width: 100%;
  height: 100%;
}

.hero__notice-text {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 300;
}

.hero__notice-booking {
  text-align: left;
}

.hero__notice-label {
  margin: 0 0 8px;
  color: rgba(234, 229, 223, 0.92);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero__notice-phone {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 300;
}

.hero__notice-phone a {
  color: rgba(234, 229, 223, 0.95);
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hero__notice-phone a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* =========================================================
   New Year announcement
   ========================================================= */

.announcement {
  padding-top: clamp(80px, 9vw, 150px);
  overflow: hidden;
  background: var(--beige);
  text-align: center;
}

.announcement__content {
  width: min(1020px, calc(100% - 48px));
  margin: 0 auto;
}

.announcement__title {
  margin: 0;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: clamp(34px, calc(2.2vw + 25px), 64px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
}

.announcement__address {
  margin: 28px 0 0;
  color: rgba(83, 36, 55, 0.94);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.announcement__subtitle {
  margin: 26px 0 0;
  color: rgba(83, 36, 55, 0.9);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 300;
}

.announcement__media {
  position: relative;
  margin-top: 24px;
}

.announcement__media::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 130px;
  background: linear-gradient(
    180deg,
    rgba(234, 229, 223, 1) 0%,
    rgba(234, 229, 223, 0) 100%
  );
  pointer-events: none;
}

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

/* =========================================================
   Footer
   ========================================================= */

.footer {
  padding: 160px 0 42px;
  color: var(--beige);
  background: var(--dark);
}

.footer__inner {
  position: relative;
  width: min(var(--content-max), calc(100% - 48px));
  margin: 0 auto;
}

.footer__inner::before {
  content: "";
  position: absolute;
  top: -40px;
  bottom: 42px;
  left: 50%;
  z-index: 0;
  width: 1px;
  background: rgba(234, 229, 223, 0.18);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.footer__contacts {
  padding-right: 120px;
}

.footer__socials {
  padding-left: 120px;
}

.footer__title {
  margin: 0 0 44px;
  color: var(--beige);
  font-family: var(--font-display);
  font-size: clamp(36px, calc(1.8vw + 29px), 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.footer__contacts .footer__title {
  margin-bottom: 50px;
}

.footer__phone {
  display: inline-block;
  color: var(--beige);
  font-size: 26px;
  line-height: 1.3;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.footer__phone:hover {
  opacity: 0.76;
}

.footer__address {
  margin: 20px 0 0;
  color: rgba(234, 229, 223, 0.8);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 300;
}

.footer__socials-text {
  max-width: 560px;
  margin: 0;
  color: rgba(234, 229, 223, 0.94);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
}

.br-mobile,
.br-mobile-title,
.social-br-mobile {
  display: none;
}

.qr-list {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-top: 64px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.qr-item:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.qr-item:focus-visible {
  outline-color: var(--beige);
}

.qr-item__img {
  width: 160px;
  height: 160px;
}

.qr-item__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(234, 229, 223, 0.92);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 300;
  white-space: nowrap;
}

.qr-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.qr-item__icon svg {
  display: block;
}

.qr-item__icon--tg {
  background: #2aabee;
}

.qr-item__icon--tg svg {
  width: 11px;
  height: 10px;
  fill: #ffffff;
}

.qr-item__icon--max {
  background: linear-gradient(135deg, #6c9bff 0%, #2f5cff 100%);
}

.qr-item__icon--max svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 110px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
}

.footer__brand img {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.footer__brand--asg img {
  width: 122px;
  filter: none;
  opacity: 0.94;
}

.footer__divider {
  width: 1px;
  height: 58px;
  background: rgba(234, 229, 223, 0.28);
}

@media (min-width: 1400px) {
  .footer__title {
    white-space: nowrap;
  }

  .qr-list {
    gap: 230px;
    padding-left: 23px;
  }
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPhotoIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

.hero__bg img {
  animation: heroPhotoIn 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__title {
  animation: heroFadeUp 0.9s 0.12s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__subtitle {
  animation: heroFadeUp 0.9s 0.24s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__phone {
  animation: heroFadeUp 0.9s 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero__notice {
  animation: heroFadeUp 0.9s 0.44s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1199px) {
  .hero__notice {
    grid-template-columns: 30px minmax(0, 1fr) minmax(260px, 380px);
    gap: 22px;
    padding: 18px 22px;
  }

  .hero__notice-icon {
    width: 30px;
    height: 30px;
  }

  .footer__contacts {
    padding-right: 70px;
  }

  .footer__socials {
    padding-left: 70px;
  }

  .qr-list {
    gap: 48px;
  }

  .qr-item__img {
    width: 132px;
    height: 132px;
  }
}

@media (max-width: 900px) {
  .qr-list {
    gap: 24px;
  }

  .qr-item__img {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
  .hero {
    min-height: 700px;
    min-height: max(700px, 98svh);
  }

  .hero__header {
    padding: 22px 20px 0;
  }

  .logo img {
    width: 116px;
  }

  .hero__bg img {
    object-position: 43% center;
  }

  .hero__content {
    padding: 26px 22px 30px;
  }

  .hero__copy {
    top: clamp(0px, 9.5vh, 80px);
  }

  .hero__title {
    max-width: 350px;
    font-size: 24px;
    line-height: 1.3;
  }

  .br-desktop,
  .social-br-desktop {
    display: none;
  }

  .br-mobile,
  .br-mobile-title,
  .social-br-mobile {
    display: inline;
  }

  .hero__subtitle {
    max-width: 300px;
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.35;
  }

  .hero__phone {
    margin-top: 36px;
    padding: 10px 24px;
    font-size: 14px;
  }

  .hero__notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: calc(100% - 32px);
    margin-bottom: 20px;
    padding: 20px 18px 22px;
    border-radius: 12px;
    background: rgba(18, 18, 20, 0.55);
    text-align: center;
  }

  .hero__notice-icon {
    width: 28px;
    height: 28px;
  }

  .hero__notice-text {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero__notice-booking {
    text-align: center;
  }

  .hero__notice-label {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.025em;
  }

  .hero__notice-phone {
    font-size: 13px;
  }

  .announcement {
    padding-top: 80px;
    text-align: left;
  }

  .announcement__content {
    width: calc(100% - 28px);
  }

  .announcement__title {
    font-size: 39px;
    line-height: 1.08;
    text-wrap: pretty;
  }

  .announcement__address {
    margin-top: 16px;
    font-size: 15px;
  }

  .announcement__subtitle {
    margin-top: 12px;
    font-size: 14px;
  }

  .announcement__media {
    margin-top: 48px;
  }

  .announcement__media::before {
    height: 80px;
  }

  .footer {
    padding: 56px 0 20px;
  }

  .footer__inner {
    width: calc(100% - 28px);
  }

  .footer__inner::before {
    display: none;
  }

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

  .footer__contacts {
    padding-right: 0;
  }

  .footer__socials {
    margin-top: 24px;
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid rgba(234, 229, 223, 0.18);
    border-left: 0;
  }

  .footer__title,
  .footer__contacts .footer__title {
    margin-bottom: 24px;
    font-size: 36px;
  }

  .footer__socials .footer__title {
    margin-bottom: 4px;
  }

  .footer__phone {
    font-size: 22px;
  }

  .footer__address {
    margin-top: 8px;
    font-size: 13px;
  }

  .footer__socials-text {
    max-width: 320px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .qr-list {
    display: grid;
    gap: 51px;
    margin-top: 37px;
    padding-left: 8px;
  }

  .qr-item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .qr-item__img {
    width: 106px;
    height: 106px;
    flex: 0 0 106px;
  }

  .qr-item__label {
    justify-content: flex-start;
    margin-top: 0;
    font-size: 14px;
  }

  .footer__bottom {
    gap: 16px;
    margin-top: 106px;
    padding-left: 27px;
  }

  .footer__brand img {
    width: 170px;
  }

  .footer__brand--asg img {
    width: 97px;
  }

  .footer__divider {
    height: 48px;
  }
}

/* =========================================================
   Small phones
   ========================================================= */

@media (max-width: 359px) {
  .announcement__title,
  .footer__title {
    font-size: 32px;
  }

  .qr-item__img {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
