:root {
  --cassia-bg: #ebe9e1;
  --cassia-text: #e43d12;
  --cassia-card: rgba(255, 255, 255, 0.52);
  --cassia-border: rgba(228, 61, 18, 0.55);
  --contacts-card-height: 430px;
}

body {
  background: radial-gradient(circle at top right, rgba(228, 61, 18, 0.06), transparent 45%), var(--cassia-bg);
}

.header,
.contacts,
.footer {
  position: relative;
  z-index: 3;
}

.nav {
  z-index: 990;
}

.header {
  backdrop-filter: blur(4px);
}

.header__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.header__nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px 16px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.header__link {
  white-space: nowrap;
  font-size: clamp(14px, 1.05vw, 32px);
  line-height: 1;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.header__messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.header__contacts .header__message,
.header__messengers .header__message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--cassia-border);
  background: transparent !important;
  line-height: 0;
}

.header__contacts .header__message span,
.header__messengers .header__message span {
  display: none !important;
}

.header__contacts .header__message i,
.header__messengers .header__message i {
  width: 16px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__message--max,
.contacts__message--max {
  background: transparent !important;
  border-color: var(--cassia-border) !important;
}

.header__message--max i {
  width: 17px !important;
  font-size: 0;
  line-height: 0;
}

.header__message--max i img {
  width: 17px;
  height: 17px;
  display: block;
}

.contacts__message--max i {
  width: 18px !important;
  font-size: 0;
  line-height: 0;
}

.contacts__message--max i img {
  width: 18px;
  height: 18px;
  display: block;
}

.header__content {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

.header__phone {
  white-space: nowrap;
}

.header__link[href*="box.uno-event.ru"] {
  display: none !important;
}

.primary {
  padding-top: 10px !important;
  margin-top: 0 !important;
}

.primary__main {
  margin-top: 0 !important;
}

.primary__header {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
}

.primary__text {
  font-size: clamp(16px, 1.25vw, 26px) !important;
  line-height: 1.18 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.primary__media {
  margin-top: 0 !important;
}

.primary__media .primary__button {
  position: absolute !important;
  left: 0;
  right: 0;
  top: -10px !important;
  margin: 0 !important;
  z-index: 30;
}

.header__phone {
  border-radius: 999px;
  border: 1px solid var(--cassia-border);
  background: rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
}

.header__message {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.header__message:hover {
  opacity: 1;
}

.primary__lead {
  display: none !important;
}

.contacts {
  margin-top: 24px;
  padding-bottom: 40px;
}

.contacts__primary {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  grid-template-areas:
    "phone address"
    "messages .";
  align-items: start;
  gap: 10px 22px;
  max-width: 1220px;
  margin: 0 auto;
}

.contacts__phone {
  grid-area: phone;
  justify-self: center;
  text-align: center;
  font-size: clamp(50px, 3.9vw, 86px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.contacts__messages {
  grid-area: messages;
  justify-self: center;
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 0;
  width: auto;
}

.contacts__message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--cassia-border);
  background: transparent !important;
  padding: 0;
  text-decoration: none;
}

.contacts__message i {
  width: 18px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contacts__message span {
  display: none !important;
}

.contacts__address {
  grid-area: address;
  justify-self: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  margin-left: 0;
  align-self: start;
}

.contacts__address span {
  font-size: clamp(42px, 3.45vw, 70px);
  line-height: 0.98;
  white-space: nowrap;
}

.contacts__row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.contacts__form,
.contacts__map {
  height: var(--contacts-card-height);
  min-height: var(--contacts-card-height);
  max-height: var(--contacts-card-height);
  background: var(--cassia-card);
  border: 1px solid var(--cassia-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.contacts__form {
  padding: 32px 42px 24px;
  background: transparent !important;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.contacts__title {
  margin-bottom: 20px;
  font-size: 2.5rem;
  line-height: 2.5rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-variation-settings: "wght" 700;
}

.contact__inner {
  min-height: 0;
}

.local-booking {
  display: grid;
  gap: 8px;
}

.local-booking__field {
  display: grid;
  gap: 6px;
}

.local-booking__field label {
  color: var(--cassia-text);
  opacity: 0.62;
  font-size: 1.55rem;
  line-height: 1.55rem;
  padding-left: 0;
}

.local-booking__field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(228, 61, 18, 0.95);
  border-radius: 0;
  padding: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.25rem;
  line-height: 1;
  background: transparent;
  color: var(--cassia-text);
  outline: none;
  font-family: var(--font-primary);
}

.local-booking__field input::placeholder {
  color: rgba(228, 61, 18, 0.45);
}

.local-booking__submit {
  margin-top: 6px;
  border: 1px solid rgba(228, 61, 18, 0.9);
  border-radius: 40px;
  background: transparent;
  color: var(--cassia-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  min-height: 64px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: var(--font-secondary);
  font-variation-settings: "wght" 700;
  width: 100%;
}

.local-booking__agreement {
  margin-top: -2px;
}

.local-booking__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.3;
  color: rgba(228, 61, 18, 0.62);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.local-booking__checkbox a {
  color: inherit;
  text-decoration: inherit;
  cursor: pointer;
}

.local-booking__checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #1f7ae0;
  margin: 0;
}

.contacts__map iframe,
.contacts__map .local-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}

.local-map-constructor,
.local-map-constructor > ymaps,
.local-map-constructor [class*="ymaps"] {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}

.contacts__map {
  position: relative;
}

.local-map-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(235, 233, 225, 0.94);
  color: var(--cassia-text);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.local-map-open:hover {
  color: var(--orange);
}

.price-mobile-cards {
  display: none;
}

.local-map-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.local-map-preview__media,
.local-map-preview__media picture,
.local-map-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.local-map-preview__media img {
  object-fit: cover;
}

.local-map-preview__overlay {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(235, 233, 225, 0.92);
  color: var(--cassia-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.local-map-preview__overlay strong {
  font-size: 18px;
  line-height: 1.1;
}

.local-map-preview__eyebrow {
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.local-map-preview__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cassia-text);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.footer {
  margin-top: 30px;
  padding: 22px 0 32px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.footer__text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.footer__contacts-inline {
  display: none !important;
}

.footer__contacts-inline a {
  color: inherit;
  text-decoration: none;
}

.footer__contacts-inline a:hover {
  text-decoration: underline;
}

@media (min-width: 1240px) {
  .header__nav {
    display: flex;
  }
}

@media (max-width: 1439px) {
  .header__main {
    gap: 10px;
  }

  .header__nav {
    gap: 8px 12px;
  }

  .contacts__primary {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .contacts__row {
    grid-template-columns: 1fr;
  }

  .contacts__form,
  .contacts__map,
  .contacts__map iframe,
  .contacts__map .local-map {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }
}

@media (max-width: 999px) {
  .header__contacts,
  .header__messengers {
    display: none;
  }

  .header__nav {
    display: none !important;
  }

  .primary {
    padding-top: 8px !important;
  }

  .contacts {
    padding-bottom: 20px;
  }

  .contacts__phone { font-size: clamp(36px, 11vw, 72px); }

  .contacts__messages,
  .contacts__address {
    width: 100%;
  }

  .contacts__address span {
    font-size: clamp(32px, 8vw, 54px);
  }

  .contacts__form {
    padding: 30px 24px;
    border-radius: 18px;
  }

  .contacts__map {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    border-radius: 18px;
    overflow: hidden;
  }

  .contacts__title {
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 2rem;
  }

  .contact__inner {
    min-height: 0;
  }

  .local-booking {
    gap: 14px;
  }

  .local-booking__field label {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }

  .local-booking__field input {
    font-size: 16px;
    padding-bottom: 8px;
  }

  .local-booking__submit {
    min-height: 58px;
    font-size: 18px;
    line-height: 18px;
  }

  .local-booking__checkbox {
    font-size: 14px;
    gap: 6px;
  }

  .local-booking__checkbox input {
    width: 16px;
    height: 16px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    justify-items: center;
    flex-direction: column;
  }

  .footer__text,
  .footer__contacts-inline {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .services__header {
    margin-bottom: 8px;
    color: rgba(228, 61, 18, 0.76);
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .header {
    padding: 14px 0;
  }

  .header__main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .header__logo {
    width: min(170px, 100%);
  }

  .header__content {
    grid-column: auto;
  }

  .header__phone {
    display: none;
  }

  .nav {
    width: min(320px, 92vw);
  }

  .nav__menu a {
    height: auto;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.1;
    text-align: left;
  }

  .nav__contacts {
    padding: 18px;
  }

  .nav__phone {
    font-size: 18px;
    line-height: 1.1;
  }

  .price-header {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 14px;
    text-align: left;
  }

  .table-wrapper {
    display: none;
  }

  .price-mobile-cards {
    display: grid;
    gap: 14px;
  }

  .price-mobile-cards__card {
    overflow: hidden;
    border: 1px solid rgba(228, 61, 18, 0.18);
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(228, 61, 18, 0.08), transparent 45%),
      rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  }

  .price-mobile-cards__day {
    padding: 14px 16px;
    background: rgba(228, 61, 18, 0.9);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .price-mobile-cards__rows {
    display: grid;
  }

  .price-mobile-cards__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid rgba(228, 61, 18, 0.12);
  }

  .price-mobile-cards__cap {
    color: rgba(27, 24, 21, 0.72);
    font-size: 14px;
    line-height: 1.2;
  }

  .price-mobile-cards__value {
    color: var(--cassia-text);
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
  }

  .services-calendar__header {
    font-size: 24px;
    line-height: 1.05;
  }

  .contacts {
    margin-top: 12px;
  }

  .contacts__primary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "phone"
      "messages"
      "address";
    gap: 14px;
    justify-items: stretch;
  }

  .contacts__phone {
    justify-self: start;
    text-align: left;
    font-size: clamp(30px, 9vw, 44px);
    line-height: 0.98;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contacts__messages {
    justify-self: start;
    justify-content: flex-start;
    gap: 8px;
  }

  .contacts__message {
    width: 42px;
    height: 42px;
  }

  .contacts__address {
    justify-self: stretch;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

  .contacts__address i {
    width: 24px;
    flex: 0 0 24px;
    margin-top: 3px;
  }

  .contacts__address span {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .contacts__row {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contacts__form,
  .contacts__map {
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 18px;
  }

  .contacts__form {
    padding: 22px 18px 18px;
  }

  .contacts__title {
    margin-bottom: 16px;
    font-size: clamp(28px, 10vw, 42px);
    line-height: 0.98;
  }

  .local-booking {
    gap: 12px;
  }

  .local-booking__field {
    gap: 4px;
  }

  .local-booking__field label {
    font-size: 14px;
    line-height: 1.2;
  }

  .local-booking__field input {
    font-size: 16px;
    line-height: 1.3;
    padding-bottom: 10px;
  }

  .local-booking__submit {
    min-height: 52px;
    font-size: 16px;
    line-height: 1;
  }

  .local-booking__checkbox {
    font-size: 12px;
    line-height: 1.3;
    align-items: flex-start;
  }

  .contacts__map#map,
  #map.contacts__map,
  #map.contacts__map > *,
  #map.contacts__map .local-map-constructor,
  #map.contacts__map ymaps,
  #map.contacts__map [class*="ymaps"],
  .contacts__map iframe,
  .contacts__map .local-map,
  .local-map-preview {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }

  .local-map-preview__overlay {
    inset: auto 10px 10px 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .local-map-preview__overlay strong {
    font-size: 16px;
  }

  .local-map-preview__button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .local-map-open {
    right: 10px;
    bottom: 10px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .primary__text {
    font-size: 14px !important;
    line-height: 1.24 !important;
  }

  .price-header {
    font-size: 28px;
  }

  .services-calendar__header {
    font-size: 20px;
  }

  .contacts__phone {
    font-size: 28px;
  }

  .contacts__address span {
    font-size: 18px;
  }
}
