:root {
  --color-bg: #3a0a12;
  --color-bg-deep: #24060b;
  --color-text: #ffffff;
  --color-muted: #ead7d7;
  --color-gray: #4a4545;
  --color-gray-soft: #3f3a3a;
  --color-red: #c81e2a;
  --color-red-hover: #e53440;
  --color-gold: #e8c9a8;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45), 0 4px 0 rgba(200, 30, 42, 0.35);
  --radius: 14px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(200, 30, 42, 0.22), transparent 60%),
    var(--color-bg);
}

.page--menu-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.has-dropcap > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.05em;
  float: left;
  line-height: 0.72;
  padding: 0.08em 0.12em 0 0;
  color: var(--color-red);
  font-weight: 600;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(36, 6, 11, 0.94);
  border-bottom: 1px solid rgba(200, 30, 42, 0.45);
  backdrop-filter: blur(10px);
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  position: relative;
}

.header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header__logo-img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-red);
}

.header__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.header__burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-red);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 11px;
}

.header__burger-line {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.header__link {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__link:hover,
.header__link--current {
  color: var(--color-gold);
}

.header__contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.header__phone,
.header__address {
  margin: 0;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.header__email {
  font-size: 14px;
  color: var(--color-gold);
  white-space: nowrap;
}

.banner {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 3px solid var(--color-red);
}

.banner__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner--home .banner__image {
  animation: kenburns 22s ease-in-out infinite alternate;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36, 6, 11, 0.15) 0%, rgba(36, 6, 11, 0.78) 100%);
}

.banner--home .banner__overlay::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 30, 42, 0.28), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(232, 201, 168, 0.16), transparent 38%);
  animation: drift 16s ease-in-out infinite alternate;
}

.banner--home .banner__overlay::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), var(--color-gold), transparent);
  animation: linegrow 1.8s ease both;
}

.banner__title {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto 64px;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.banner--home .banner__title {
  animation: titlein 1.5s ease both;
}

.section {
  padding: 88px 0;
}

.section--gray {
  background: var(--color-gray);
}

.section--deep {
  background: var(--color-bg-deep);
}

.section__inner {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: 0.03em;
}

.section__lead,
.section__text {
  color: var(--color-muted);
  max-width: 74ch;
}

.strengths__list {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 36px;
}

.strengths__item {
  flex: 1 1 0;
  padding: 28px 22px 32px;
  background: var(--color-bg-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
}

.strengths__item::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(160deg, #ff6a73, #c81e2a 42%, #e8c9a8 78%, #7a1018);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.strengths__item:nth-child(1) {
  margin-top: 48px;
}

.strengths__item:nth-child(2) {
  margin-top: 0;
}

.strengths__item:nth-child(3) {
  margin-top: 72px;
}

.strengths__item:nth-child(4) {
  margin-top: 24px;
}

.strengths__item-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0 0 12px;
}

.offer__grid,
.service-list,
.rooms__grid,
.bonus__grid,
.advantages__grid,
.contact__grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

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

.rooms__grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.offer__card,
.service-card,
.room-card {
  background: var(--color-bg-deep);
  border: 1px solid var(--color-red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.card__image,
.offer__card-image,
.service-card__image,
.room-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.card__body,
.offer__card-body,
.service-card__body,
.room-card__body {
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__title,
.offer__card-title,
.service-card__title,
.room-card__title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 0;
}

.card__price,
.service-card__price,
.room-card__price {
  color: var(--color-gold);
  font-weight: 600;
}

.card__text,
.offer__card-text {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--color-red);
  background: var(--color-red);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  margin-top: auto;
}

.btn:hover {
  background: var(--color-red-hover);
  color: #fff;
}

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

.advantages__item {
  background: var(--color-gray-soft);
  border-left: 4px solid var(--color-red);
  padding: 22px 22px 8px;
  border-radius: 0 12px 12px 0;
}

.advantages__number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.form {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.form--wide {
  max-width: 100%;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.95rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  border: 1px solid var(--color-red);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
}

.form__select option {
  background: #2a070c;
  color: #fff;
}

.btn:focus-visible,
.header__link:focus-visible,
.header__burger:focus-visible,
.form__input:focus-visible,
.form__select:focus-visible,
.form__textarea:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.form__input--invalid {
  border-color: #ffd0d3;
  box-shadow: 0 0 0 3px rgba(200, 30, 42, 0.25);
}

.form__status {
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0;
}

.form__status--success {
  background: #2f6a3a;
}

.form__status--error {
  background: #7a1d24;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq__item {
  border: 1px solid var(--color-red);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.faq__answer {
  display: none;
  padding: 0 18px 16px;
  color: var(--color-muted);
}

.faq__item--open .faq__answer {
  display: block;
}

.story__grid,
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.story__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.story__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--color-red);
  border-radius: 12px;
}

.goals {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.goals__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}

.goals__label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.goals__track {
  height: 18px;
  background: #2a2424;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-red);
}

.goals__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7a1018, var(--color-red), var(--color-gold));
  box-shadow: 0 0 12px rgba(200, 30, 42, 0.55);
}

.timeline {
  margin-top: 36px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.timeline__track {
  display: flex;
  gap: 0;
  min-width: 860px;
  position: relative;
}

.timeline__track::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold));
}

.timeline__item {
  flex: 1;
  padding: 0 12px;
  position: relative;
}

.timeline__year {
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin: 0 0 28px;
  position: relative;
}

.timeline__year::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-red);
  border: 2px solid #fff;
  display: block;
  margin-bottom: 10px;
}

.timeline__text {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.checks {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--color-muted);
}

.checks li {
  margin-bottom: 8px;
}

.bonus__grid {
  grid-template-columns: repeat(4, 1fr);
}

.bonus__item {
  background: var(--color-gray-soft);
  border: 1px solid var(--color-red);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
}

.bonus__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.contact__list {
  list-style: none;
  background: var(--color-gray);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--color-red);
}

.contact__list p,
.contact__list a {
  margin: 0 0 10px;
}

.legal {
  padding: 72px 0 96px;
}

.legal__content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--color-muted);
}

.legal__content h1 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.footer {
  background: var(--color-bg-deep);
  border-top: 2px solid var(--color-red);
  padding: 48px 0 28px;
}

.footer__inner {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 120px 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.footer__logo-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-red);
}

.footer__menu {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer__link {
  color: #fff;
}

.footer__contacts p,
.footer__phone {
  margin: 0 0 8px;
  color: #fff;
}

.footer__messengers {
  display: flex;
  gap: 16px;
  margin: 12px 0;
}

.footer__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .header__inner {
    white-space: normal;
  }

  .header__burger {
    display: block;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #1c0509;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--color-red);
  }

  .header__nav--open,
  .header__toggle:checked ~ .header__nav {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

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

  .service-list {
    grid-template-columns: 1fr;
  }

  .strengths__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .strengths__item:nth-child(n) {
    margin-top: 0;
  }

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

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

@media (max-width: 760px) {
  .banner {
    min-height: 46vh;
  }

  .section {
    padding: 64px 0;
  }

  .strengths__list,
  .offer__grid,
  .service-list,
  .rooms__grid,
  .advantages__grid,
  .story__grid,
  .story__photos,
  .contact__grid,
  .form__row,
  .bonus__grid,
  .footer__top,
  .goals__item {
    grid-template-columns: 1fr;
  }

  .strengths__list {
    display: grid;
  }

  .banner__title {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner--home .banner__image,
  .banner--home .banner__overlay::before,
  .banner--home .banner__title,
  .banner--home .banner__overlay::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@keyframes kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-2%, -1%, 0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(4%, -3%, 0);
  }
}

@keyframes titlein {
  from {
    opacity: 0;
    transform: translateY(28px);
    letter-spacing: 0.18em;
  }
  to {
    opacity: 1;
    transform: none;
    letter-spacing: 0.04em;
  }
}

@keyframes linegrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
