/* Royal Experience Tourism — palette taken from the logo (lagoon teal + dune gold) */
:root {
  --gulf: #0c3533;
  --gulf-2: #11423f;
  --gulf-3: #082624;
  --lagoon: #1eb5a5;
  --lagoon-ink: #0f7d72;
  --gold: #c4974a;
  --gold-soft: #e2c48f;
  --pearl: #f1f4f1;
  --sand: #ead9bc;
  --ink: #14201f;
  --muted: #5b6a68;
  --line: rgba(20, 32, 31, .12);
  --line-light: rgba(241, 244, 241, .16);

  --display: "Marcellus", "Times New Roman", serif;
  --body: "Manrope", system-ui, sans-serif;
  --arabic: "Reem Kufi", sans-serif;

  --r: 18px;
  --wrap: 1240px;
  --nav-h: 76px;
  --star: polygon(50% 0%, 64.64% 14.64%, 85.36% 14.64%, 85.36% 35.36%, 100% 50%, 85.36% 64.64%, 85.36% 85.36%, 64.64% 85.36%, 50% 100%, 35.36% 85.36%, 14.64% 85.36%, 14.64% 64.64%, 0% 50%, 14.64% 35.36%, 14.64% 14.64%, 35.36% 14.64%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: #fbfcfb; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gulf); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ar { font-family: var(--arabic); letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.5em; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--gulf); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--teal { background: var(--lagoon-ink); color: #fff; }
.btn--teal:hover { background: var(--gulf-2); }
.btn--ghost { background: transparent; color: var(--pearl); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--line { background: transparent; color: var(--gulf); border-color: var(--line); }
.btn--line:hover { border-color: var(--gulf); }
.link { background: none; border: 0; padding: 0; color: var(--lagoon-ink); font-weight: 700; font-size: .92rem; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.link:hover { color: var(--gold); }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .9em; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--lagoon-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); clip-path: var(--star); }
.eyebrow--light { color: var(--lagoon); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--gold-soft); }
.eyebrow .ar { font-size: 1.05rem; text-transform: none; color: var(--gold); font-weight: 500; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--pearl); transition: background .3s, box-shadow .3s; }
.nav.is-solid, .nav.menu-open { background: rgba(12, 53, 51, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-light); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__name { font-family: var(--display); font-size: 1.12rem; line-height: 1; letter-spacing: .02em; }
.brand__name small { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--lagoon); margin-top: 5px; font-weight: 700; }
.menu { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu > li > a, .dd__btn { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: none; border: 0; text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .88; border-radius: 8px; }
.menu > li > a:hover, .dd__btn:hover, .menu > li > a[aria-current="page"], .dd.is-current > .dd__btn { opacity: 1; color: var(--gold-soft); }
.dd__btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dd__menu { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 10px; background: var(--pearl); color: var(--ink); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.dd__menu a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .93rem; font-weight: 500; }
.dd__menu a:hover, .dd__menu a[aria-current="page"] { background: #fff; color: var(--lagoon-ink); }
@media (hover: hover) and (min-width: 1081px) {
  .dd:hover .dd__menu { opacity: 1; visibility: visible; transform: none; }
}
.dd.is-open .dd__menu { opacity: 1; visibility: visible; transform: none; }
.dd.is-open .dd__btn::after { transform: translateY(1px) rotate(225deg); }
.nav__cta { padding: .7em 1.25em; flex: none; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; margin-left: auto; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--pearl); transition: transform .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu__book { display: none; }

/* ---------- home hero ---------- */
.hero { position: relative; background: radial-gradient(120% 90% at 85% 30%, #155651 0%, var(--gulf) 55%, var(--gulf-3) 100%); color: var(--pearl); padding: 128px 0 70px; overflow: hidden; isolation: isolate; }
.pattern { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23e2c48f' stroke-width='1'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Cpath d='M0 32h15M49 32h15M32 0v15M32 49v15'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 70%); mask-image: linear-gradient(100deg, #000 0%, transparent 70%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(74vh, 720px); }
.hero__title { font-size: clamp(3.2rem, 8vw, 7rem); line-height: .96; }
.hero__title em { font-style: normal; color: var(--gold); display: block; }
.hero__lede { max-width: 32em; margin-top: 26px; font-size: 1.1rem; color: rgba(241, 244, 241, .8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.khatam { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin-inline: auto; }
.khatam__window { position: absolute; inset: 9%; clip-path: var(--star); background: var(--gulf-2); }
.khatam__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14); transition: opacity 1.4s ease, transform 7s ease-out; }
.khatam__window img.is-on { opacity: 1; transform: scale(1.04); }
.khatam__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 90s linear infinite; }
.khatam__lines rect, .khatam__lines ellipse { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.khatam__lines rect { stroke: var(--gold); }
.khatam__lines ellipse { stroke: var(--lagoon); opacity: .85; }
.hero__caption { text-align: center; margin-top: 6px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 244, 241, .55); min-height: 1.3em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inner page banner ---------- */
.banner { position: relative; min-height: min(62vh, 560px); display: flex; align-items: flex-end; color: var(--pearl); background: var(--gulf); overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 60px) 0 56px; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 38, 36, .6) 0%, rgba(8, 38, 36, .25) 40%, rgba(8, 38, 36, .9) 100%); }
.banner--plain { min-height: 0; padding-top: calc(var(--nav-h) + 80px); background: radial-gradient(120% 120% at 85% 0%, #155651 0%, var(--gulf) 60%, var(--gulf-3) 100%); }
.banner--plain::before { display: none; }
.banner h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 14em; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--deep { background: var(--gulf); color: var(--pearl); overflow: hidden; isolation: isolate; }
.section--pearl { background: var(--pearl); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 44px; }
.head__note { max-width: 28em; color: var(--muted); font-size: .98rem; }

/* services list (home, company) */
.specialist { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.specialist__lead { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; margin-bottom: 26px; color: var(--gulf); }
.services-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.services-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 500; }
.services-list li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--lagoon); clip-path: var(--star); }

/* tile grid (destinations, tours) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--gulf); color: var(--pearl); display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(8, 38, 36, .93)); }
.tile:hover img { transform: scale(1.05); }
.tile__body { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tile h3 { font-size: 2rem; }
.tile p { font-size: .93rem; color: rgba(241, 244, 241, .82); }
.tile__more { margin-top: 6px; font-size: .85rem; font-weight: 700; color: var(--gold-soft); }
.tile__more::after { content: " →"; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo .tile { aspect-ratio: 16 / 10; }
.duo .tile h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* article pages */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { max-width: 46em; }
.prose > * + * { margin-top: 1.15em; }
.prose .lead { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.45; color: var(--gulf); }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.6em; }
.defs { list-style: none; padding: 0; margin-top: 1.6em !important; border-top: 1px solid var(--line); }
.defs li { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.defs b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--lagoon-ink); line-height: 1.3; }
.defs p { color: var(--muted); }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--gold); clip-path: var(--star); transform: translateY(-1px); }
.figure { border-radius: var(--r); overflow: hidden; margin: 2em 0 0 !important; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.aside { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.aside__card { background: var(--gulf); color: var(--pearl); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.aside__card h3 { font-size: 1.6rem; }
.aside__card p { color: rgba(241, 244, 241, .72); font-size: .95rem; }
.aside__card a:not(.btn) { text-decoration: none; font-weight: 600; }
.aside__card a:not(.btn):hover { color: var(--gold-soft); }
.aside__nav { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: #fff; }
.aside__nav h4 { margin: 0 0 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.aside__nav a { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .95rem; }
.aside__nav a:first-of-type { border-top: 0; }
.aside__nav a:hover, .aside__nav a[aria-current="page"] { color: var(--lagoon-ink); }
.aside__nav a::after { content: "→"; color: var(--gold); }

/* collection pages (tours, emirates) */
.items { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); }
.item { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.item:nth-child(even) .item__media { order: 2; }
.item__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gulf); }
.item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.item:hover .item__media img { transform: scale(1.03); }
.item__body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.item__body h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.item__body p { color: var(--muted); }
.item__count { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

/* to-do */
.todo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.todo__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.todo__card h2 { font-size: 1.9rem; margin-bottom: 14px; }
.todo__card p { color: var(--muted); }
.todo__card--wide { grid-column: 1 / -1; }
.todo__card .defs { margin-top: 0 !important; }
.todo__card .defs li { grid-template-columns: 11em 1fr; }

/* reviews */
.gscore { display: flex; align-items: center; gap: 14px; }
.gscore > b { font-family: var(--display); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--gulf); }
.gscore > span { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.review { margin: 0; background: #fff; border-radius: var(--r); padding: 28px 28px 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.review blockquote { margin: 0; font-size: .98rem; }
.review blockquote::before { content: "★★★★★"; display: block; color: var(--gold); letter-spacing: 2px; font-size: .85rem; margin-bottom: 12px; }
.review--lead { grid-column: span 2; background: var(--gulf); color: var(--pearl); border-color: var(--gulf); justify-content: space-between; }
.review--lead blockquote { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.62rem); line-height: 1.45; }
.review--lead small { color: rgba(241, 244, 241, .6) !important; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.review--lead figcaption { border-color: var(--line-light); }
.review figcaption > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.review figcaption b { font-weight: 600; font-size: .93rem; }
.review figcaption small { font-size: .78rem; color: var(--muted); }
.avatar { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--gulf); background: var(--sand); clip-path: var(--star); }
.translate { flex: none; white-space: nowrap; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .78rem; font-weight: 600; color: var(--lagoon-ink); }
.translate:hover { border-color: var(--lagoon-ink); }

/* newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; background: var(--sand); border-radius: calc(var(--r) + 6px); padding: clamp(28px, 5vw, 56px); }
.newsletter h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 180px; min-width: 0; }

/* booking */
.plan .pattern { -webkit-mask-image: linear-gradient(260deg, #000 0%, transparent 60%); mask-image: linear-gradient(260deg, #000 0%, transparent 60%); }
.plan__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.plan__intro > p { margin-top: 20px; color: rgba(241, 244, 241, .75); max-width: 30em; }
.contact { list-style: none; padding: 0; margin: 36px 0 0; }
.contact li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-light); font-size: .95rem; }
.contact span { color: rgba(241, 244, 241, .5); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding-top: .2em; }
.contact a { text-decoration: none; word-break: break-word; display: block; }
.contact a:hover { color: var(--gold-soft); }
.form { background: var(--pearl); color: var(--ink); border-radius: calc(var(--r) + 6px); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form h3 { grid-column: 1 / -1; font-size: 1.8rem; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; color: var(--gulf); }
.opt { font-weight: 500; color: var(--muted); }
input, textarea { width: 100%; font: inherit; font-size: .95rem; padding: .8em .95em; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--lagoon); outline-offset: 0; border-color: transparent; }
[aria-invalid="true"] { border-color: #b3412e; }
.form__error { grid-column: 1 / -1; color: #9d3a29; font-size: .9rem; font-weight: 600; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.form__status[data-state="ok"] { background: #e2f3ee; color: #0f5e54; }
.form__status[data-state="error"] { background: #f8e5e1; color: #8f3424; }
.form__status[data-state="sending"] { background: #eef1ef; color: var(--muted); }
.newsletter .form__status { flex-basis: 100%; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .6; cursor: progress; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }

/* contact page */
.contact-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.cbox h3 { font-size: 1.35rem; margin-bottom: 4px; }
.cbox a { text-decoration: none; font-weight: 600; color: var(--lagoon-ink); }
.cbox a:hover { color: var(--gold); }

/* footer */
.footer { background: var(--gulf-3); color: rgba(241, 244, 241, .72); padding: 72px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__brand img { width: 140px; height: auto; margin-bottom: 16px; }
.footer h4 { font-family: var(--body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer a { display: block; text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--pearl); }
.footer address { font-style: normal; display: flex; flex-direction: column; gap: 2px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; padding: 0; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: .82rem; }
.footer__base .ar { color: var(--gold); font-size: .95rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .menu > li > a, .dd__btn { padding: 10px 8px; font-size: .88rem; }
  .nav__inner { gap: 16px; }
}
@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .menu { position: fixed; inset: var(--nav-h) 0 auto; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; background: var(--gulf); border-bottom: 1px solid var(--line-light); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .menu > li { border-bottom: 1px solid var(--line-light); }
  .menu > li > a, .dd__btn { width: 100%; justify-content: space-between; padding: 15px 0; font-size: 1.05rem; }
  .dd__menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; color: var(--pearl); box-shadow: none; padding: 0 0 12px 12px; min-width: 0; }
  .dd.is-open .dd__menu { display: flex; }
  .dd__menu a:hover, .dd__menu a[aria-current="page"] { background: rgba(255, 255, 255, .06); color: var(--gold-soft); }
  .menu > li.menu__book { display: block; padding-top: 18px; border: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews .review:last-child { grid-column: span 2; }
  .hero { padding-top: 104px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .khatam { width: min(100%, 460px); }
  .specialist, .plan__grid, .newsletter { grid-template-columns: 1fr; }
  .item, .duo { grid-template-columns: 1fr; }
  .item:nth-child(even) .item__media { order: 0; }
  .todo, .contact-page { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .reviews { grid-template-columns: 1fr; gap: 16px; }
  .review--lead, .reviews .review:last-child { grid-column: auto; }
  .review { padding: 24px 22px 20px; }
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 4.2; }
  .services-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .contact li, .defs li, .todo__card .defs li { grid-template-columns: 1fr; gap: 4px; }
  .head { margin-bottom: 32px; }
  .brand__name { font-size: 1rem; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.banner .eyebrow { color: var(--gold-soft); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.banner h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }

/* long emails/links must wrap on small phones */
.aside__card a, .cbox a, .footer address a, .footer address span, .contact a { overflow-wrap: anywhere; }
@media (max-width: 1080px) { .article { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {
  .brand__name { font-size: .92rem; }
  .brand img { width: 34px; height: auto; }
  .nav__inner { gap: 10px; }
}

/* language switcher */
.lang { position: relative; flex: none; }
.lang .lang__btn { gap: 8px; padding: 7px 12px; border: 1px solid var(--line-light); border-radius: 999px; opacity: 1; font-size: .85rem; font-weight: 600; }
.lang .lang__btn:hover { border-color: var(--gold); }
.flag { display: inline-block; flex: none; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang .lang__menu { left: auto; right: 0; min-width: 190px; }
.lang .lang__menu a { display: flex; align-items: center; gap: 12px; }
.lang .lang__menu a[aria-current] { font-weight: 700; color: var(--lagoon-ink); background: #fff; }
@media (max-width: 1080px) {
  .lang { margin-left: auto; }
  .nav__toggle { margin-left: 4px; }
  .lang .lang__btn { width: auto; padding: 7px 11px; font-size: .85rem; justify-content: center; }
  .lang .dd__menu { position: absolute; top: calc(100% + 8px); display: flex; opacity: 0; visibility: hidden; transform: translateY(6px); background: var(--pearl); color: var(--ink); padding: 10px; border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); }
  .lang.is-open .dd__menu { opacity: 1; visibility: visible; transform: none; }
  .lang .dd__menu a { padding: 11px 12px; font-size: 1rem; }
  .lang .dd__menu a:hover { background: #fff; color: var(--lagoon-ink); }
}
@media (max-width: 400px) {
  .lang .lang__btn > span:not(.flag), .lang .lang__btn::after { display: none; }
  .lang .lang__btn { padding: 8px 9px; }
}

/* long words (e.g. Russian) must never push headings wider than the screen */
h1, h2, h3, .tile h3, .item__body h2, .todo__card h2 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.todo__card, .tile, .item__body, .cbox, .service, .review { min-width: 0; }
@media (max-width: 900px) { .todo, .contact-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: minmax(0, 1fr); } .todo__card { padding: 24px 20px; } .todo__card h2 { font-size: 1.6rem; } }

/* Marcellus has no Cyrillic: Russian pages use Prata, a matching classical display face */
html[lang="ru"] { --display: "Prata", "Marcellus", Georgia, serif; }
.menu > li > a, .dd__btn, .nav__cta { white-space: nowrap; }
.hero__grid > * { min-width: 0; }
html[lang="ru"] .hero__title { font-size: clamp(2.3rem, 10.5vw, 6.4rem); }
.tile__body { min-width: 0; max-width: 100%; }
@media (max-width: 620px) { .tile h3 { font-size: clamp(1.45rem, 7.4vw, 2rem); } }
