:root {
  --plaster: #f5e6df; --plaster-2: #efd8ce; --white: #fffdfb; --blue: #2b44b8; --blue-d: #1f3290;
  --saffron: #d99a2b; --cedar: #3a2418; --muted: #6e5a50; --line: #e6cfc4;
  --display: "Gilda Display", Georgia, serif; --body: "Karla", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font: 17px/1.65 var(--body); color: var(--cedar); background: var(--plaster); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 26px; }
.muted { color: var(--muted); margin-top: 12px; max-width: 54ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff; font: 600 16px var(--body); border: 0; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.btn:hover { background: var(--blue-d); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { background: #3d7a52; }

.header { position: sticky; top: 0; z-index: 30; background: var(--plaster); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 30px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 25px; line-height: 1.05; }
.logo svg { width: 30px; height: 37px; }
.logo small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-color: var(--blue); }
.burger { display: none; }

/* Arched frames: the memorable shape of the riad */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--plaster-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero { padding: 48px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: end; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); max-width: 14ch; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 34px; max-width: 48ch; }
.arch--hero { aspect-ratio: 4 / 5.2; border: 10px solid var(--white); box-shadow: 0 40px 60px -40px rgba(58, 36, 24, 0.5); animation: open 1.1s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes open { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.bar { display: grid; grid-template-columns: 1fr 1fr 0.7fr auto; gap: 8px; align-items: end; background: var(--white); border-radius: 22px; padding: 14px; box-shadow: 0 20px 40px -26px rgba(58, 36, 24, 0.45); }
.bar label, .form label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.bar input, .bar select { border: 0; background: var(--plaster); }
input, select { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; font: 16px var(--body); color: var(--cedar); background: var(--white); min-width: 0; }
input:focus, select:focus { outline: none; box-shadow: 0 0 0 3px rgba(43, 68, 184, 0.25); }
.hint { margin-top: 14px; font-size: 15px; color: var(--muted); }

.perks { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--blue); color: #fff; border-radius: 22px; padding: 8px; }
.perks li { padding: 20px 22px; }
.perks li + li { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.perks b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.perks span { font-size: 15px; color: #cfd6f6; }

.section { padding: clamp(72px, 9vw, 112px) 0; }
.rooms { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.rooms__intro .arch { margin-top: 34px; aspect-ratio: 4 / 4.6; max-width: 420px; }
.rooms__list { display: grid; gap: 16px; }
.room { background: var(--white); border-radius: 18px; padding: 26px 28px; }
.room__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.room__price { font-family: var(--display); font-size: 28px; color: var(--blue); }
.room__price small { font-family: var(--body); font-size: 14px; color: var(--muted); }
.room > p { color: var(--muted); margin-top: 6px; }
.room__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.room__facts li { font-size: 14px; font-weight: 600; background: var(--plaster); padding: 4px 12px; border-radius: 999px; }
.rooms__note { margin-top: 8px; color: var(--muted); }
.rooms__note a { color: var(--blue); font-weight: 600; border-bottom: 1px solid currentColor; }

.stay { background: var(--white); padding: clamp(72px, 9vw, 112px) 0; }
.stay__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.stay .arch { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.stay p { color: var(--muted); margin-top: 8px; }
.stay__card { background: var(--plaster); border-radius: 999px 999px 18px 18px; padding: 110px 30px 34px; text-align: center; }
.stay__card ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.stay__card li { background: var(--white); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600; }

.arrive { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; align-items: center; background: var(--white); border-radius: 18px; padding: 18px 22px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 54px; height: 54px; border-radius: 50%; background: var(--saffron); color: var(--white); font-family: var(--display); font-size: 26px; display: grid; place-items: center; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); }

.reviews { background: var(--cedar); color: var(--plaster); padding: clamp(72px, 9vw, 104px) 0; }
.reviews__grid { display: grid; grid-template-columns: 0.7fr 1fr 1fr; gap: 48px; align-items: start; }
.score__num { font-family: var(--display); font-size: 92px; line-height: 1; color: var(--saffron); }
.score p:last-child { color: #d9c3b8; margin-top: 10px; }
.reviews blockquote { font-family: var(--display); font-size: 22px; line-height: 1.45; }
.reviews cite { display: block; margin-top: 16px; font-family: var(--body); font-style: normal; font-size: 15px; color: #d9c3b8; }

.book__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.contact { margin-top: 24px; line-height: 2; font-weight: 600; color: var(--blue); }
.contact a { border-bottom: 1px solid currentColor; }
.form { background: var(--white); border-radius: 24px; padding: 32px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; border-top: 1px dashed var(--line); color: var(--muted); }
.total b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--cedar); }

.footer { border-top: 1px solid var(--line); padding: 30px 0 96px; color: var(--muted); font-size: 15px; }
.footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer b { color: var(--cedar); font-family: var(--display); font-weight: 400; font-size: 20px; }

@media (max-width: 960px) {
  .hero__grid, .rooms, .arrive, .book__grid { grid-template-columns: 1fr; gap: 44px; }
  .arch--hero { max-width: 460px; aspect-ratio: 4 / 4.4; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks li:nth-child(3) { border-left: 0; }
  .perks li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .stay__grid { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--plaster); padding: 4px 20px 16px; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity 0.2s; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .header .btn--sm { margin-left: auto; }
  .burger { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; }
  .burger span { width: 22px; height: 2px; background: var(--cedar); }
}
@media (max-width: 600px) {
  .header .btn--sm { display: none; }
  .burger { margin-left: auto; }
  .bar { grid-template-columns: 1fr 1fr; }
  .bar .btn { grid-column: 1 / -1; }
  .perks { grid-template-columns: 1fr; }
  .perks li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .stay__grid, .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .arch--hero { animation: none; } html { scroll-behavior: auto; } }
.pos-low { object-position: center 80%; }
