:root {
  --bg: #15110d;
  --bg2: #1d1813;
  --cream: #f2eadc;
  --cream2: #c9bfae;
  --mute: #9a8f7f;
  --gold: #c8a46a;
  --gold2: #e2c48f;
  --line: rgba(242, 234, 220, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}
html[lang="ar"] { --serif: "Noto Naskh Arabic", "Cormorant Garamond", serif; --sans: "Noto Naskh Arabic", "Manrope", sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--cream); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--gold2); }
html[lang="ar"] em { font-style: normal; }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- Шторы на загрузке ---------- */
.drape { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: flex; }
.drape__panel {
  flex: 1; height: 100%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), transparent 18%, transparent 80%, rgba(0,0,0,.35)),
    repeating-linear-gradient(90deg, #3a2e22 0, #5b4835 22px, #8a7055 38px, #5b4835 54px, #3a2e22 76px);
  box-shadow: inset 0 0 120px rgba(0,0,0,.5);
}
.drape__panel--l { transform-origin: left center; }
.drape__panel--r { transform-origin: right center; }
.drape__mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 500 clamp(28px, 6vw, 64px)/1 var(--serif); letter-spacing: .4em; text-indent: .4em; color: var(--gold2);
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.drape.is-done { display: none; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 18px var(--pad);
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(21, 17, 13, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav__logo { font: 600 20px/1 var(--serif); letter-spacing: .28em; display: flex; align-items: baseline; gap: 8px; direction: ltr; }
.nav__logo span, .foot__logo span { font: italic 400 15px/1 "Cormorant Garamond", serif; letter-spacing: .04em; color: var(--gold2); }
.nav__links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 14px; color: var(--cream2); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a:hover { color: var(--cream); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button { font: 600 11px/1 var(--sans); letter-spacing: .08em; padding: 7px 10px; border-radius: 99px; color: var(--mute); transition: .3s; }
.lang button.is-on { background: var(--cream); color: var(--bg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px;
  border-radius: 99px; font: 600 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: linear-gradient(120deg, var(--gold), var(--gold2) 50%, var(--gold)); background-size: 200% 100%; color: #1b140c; box-shadow: 0 10px 30px -10px rgba(200,164,106,.6); }
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(242,234,220,.35); color: var(--cream); }
.btn--ghost:hover { background: rgba(242,234,220,.08); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn--sm svg { width: 17px; height: 17px; }
.btn--wide { width: 100%; justify-content: center; }

.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.h2 { font: 400 clamp(40px, 6.4vw, 92px)/.98 var(--serif); letter-spacing: -.01em; }
html[lang="ar"] .h2 { line-height: 1.35; font-size: clamp(34px, 5vw, 70px); }
.muted { color: var(--cream2); max-width: 46ch; }
.split .line { overflow: hidden; padding-bottom: .06em; }

/* ---------- Первый экран ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video--tall { display: none; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(21,17,13,.86) 0%, rgba(21,17,13,.55) 40%, rgba(21,17,13,.1) 75%),
  linear-gradient(0deg, rgba(21,17,13,.9) 0%, transparent 35%); }
html[dir="rtl"] .hero__shade { transform: scaleX(-1); }
.hero__inner { position: relative; z-index: 2; padding: 0 var(--pad) clamp(90px, 13vh, 130px); max-width: 1180px; }
.hero__title { font: 400 clamp(46px, min(7.4vw, 12.5vh), 116px)/.95 var(--serif); letter-spacing: -.015em; margin-bottom: 28px; }
html[lang="ar"] .hero__title { line-height: 1.3; font-size: clamp(40px, 6.6vw, 96px); }
.hero__lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--cream2); max-width: 52ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.hero__foot b { color: var(--cream2); font-weight: 600; margin-inline-start: 6px; }
.scroll-hint::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--mute); vertical-align: middle; margin-inline-start: 12px; animation: hint 2.4s var(--ease) infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- Цифры ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 44px var(--pad); display: flex; flex-direction: column; gap: 10px; border-inline-end: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact b { font: 400 clamp(44px, 5vw, 72px)/1 var(--serif); color: var(--cream); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .fact b { text-align: right; }
.fact > span { font-size: 14px; color: var(--mute); }
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 22px 0; direction: ltr; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee__track span { font: italic 400 clamp(26px, 3vw, 40px)/1 var(--serif); color: var(--cream2); padding-right: .4em; white-space: nowrap; }
html[lang="ar"] .marquee__track span { font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Свет: интерактив ---------- */
.light { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(90px, 14vw, 180px) var(--pad); }
.light__text .muted { margin: 26px 0 30px; }
.light__modes { display: flex; gap: 10px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-size: 14px; color: var(--cream2); transition: .3s; }
.chip.is-on { border-color: var(--gold); color: var(--bg); background: var(--gold); }
.light__stage { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #000; --k: 0; touch-action: pan-y; }
.light__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(calc(1.12 - var(--k) * var(--dim, .35))) saturate(calc(1.05 - var(--k) * .3)); }
.light__sun { position: absolute; inset: 0; background: radial-gradient(60% 50% at 55% 30%, rgba(255,214,150,.55), transparent 70%); mix-blend-mode: screen; opacity: calc(1 - var(--k) * 1.1); pointer-events: none; }
.light__curtain {
  position: absolute; top: 0; bottom: 0; width: 50%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(240,232,218,.78) 0, rgba(255,252,246,.92) 14px, rgba(222,212,196,.8) 30px);
  transition: background .5s;
}
.light__stage.is-blackout .light__curtain { background: repeating-linear-gradient(90deg, #2b241d 0, #4a3e31 16px, #2f281f 34px); }
.light__stage.is-blackout { --dim: .98; }
.light__curtain--l { left: 0; transform: translateX(calc(-100% + var(--k) * 100%)); }
.light__curtain--r { right: 0; transform: translateX(calc(100% - var(--k) * 100%)); }
.light__temp { position: absolute; top: 18px; inset-inline-start: 18px; background: rgba(21,17,13,.6); backdrop-filter: blur(8px); border-radius: 99px; padding: 8px 14px; font-size: 13px; color: var(--cream2); }
.light__temp b { color: var(--cream); font-weight: 600; margin-inline-start: 4px; }
.light__range { position: absolute; left: 24px; right: 24px; bottom: 24px; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: rgba(242,234,220,.35); direction: ltr; }
.light__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold2); box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: grab; }
.light__range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--gold2); cursor: grab; }

/* ---------- Работы ---------- */
.work { padding-top: clamp(40px, 6vw, 80px); }
.work__head { padding: 0 var(--pad); display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 30px; margin-bottom: 56px; }
.work__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.work__pin { overflow: hidden; }
.work__track { display: flex; gap: 22px; padding: 0 var(--pad); width: max-content; align-items: center; height: min(78vh, 760px); }
.card { position: relative; height: 100%; flex: none; border-radius: 18px; overflow: hidden; }
.card { aspect-ratio: 4 / 3; height: 82%; }
.card--tall { aspect-ratio: 3 / 4; height: 100%; }
.card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.02); }
.card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(10,8,6,.85), transparent); display: flex; flex-direction: column; gap: 2px; }
.card figcaption b { font: 500 26px/1.1 var(--serif); }
.card figcaption span { font-size: 13px; color: var(--cream2); }

/* ---------- Услуги ---------- */
.services { padding: clamp(110px, 14vw, 190px) var(--pad); }
.services__head { margin-bottom: 60px; }
.svc { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.svc__item { display: grid; grid-template-columns: 50px 1fr; text-align: start; width: 100%; padding: 26px 0; border-top: 1px solid var(--line); row-gap: 0; transition: padding .5s var(--ease); }
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__n { font: 500 13px/2.6 var(--sans); color: var(--mute); }
.svc__name { font: 400 clamp(28px, 3.2vw, 46px)/1.1 var(--serif); color: var(--cream2); transition: color .4s; }
.svc__desc { grid-column: 2; font-size: 15px; color: var(--mute); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s, margin .5s; }
.svc__item.is-on .svc__name, .svc__item:hover .svc__name { color: var(--cream); }
.svc__item.is-on .svc__desc { max-height: 80px; opacity: 1; margin-top: 10px; }
.svc__item.is-on .svc__n { color: var(--gold); }
.svc__view { position: sticky; top: 110px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; }
.svc__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Как работаем ---------- */
.process { padding: 0 var(--pad) clamp(110px, 14vw, 190px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 64px 0 70px; border-top: 1px solid var(--line); }
.step { padding: 30px 26px 10px 0; border-inline-end: 1px solid var(--line); padding-inline-start: 0; }
.step + .step { padding-inline-start: 26px; }
.step:last-child { border: 0; }
.step__n { font: 400 54px/1 var(--serif); color: var(--gold); display: block; margin-bottom: 26px; }
.step h3 { font: 500 25px/1.15 var(--serif); margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--mute); }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reel { position: relative; aspect-ratio: 9 / 14; border-radius: 18px; overflow: hidden; background: var(--bg2); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 16px; bottom: 14px; right: 16px; font-size: 13px; color: var(--cream); text-shadow: 0 1px 10px rgba(0,0,0,.7); }

/* ---------- О нас ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding: 0 var(--pad) clamp(110px, 14vw, 190px); }
.about__photo { aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; }
.about__photo img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 50%; }
.about__quote { font: 400 clamp(28px, 3.3vw, 48px)/1.2 var(--serif); margin-bottom: 28px; }
html[lang="ar"] .about__quote { line-height: 1.6; font-size: clamp(24px, 2.6vw, 38px); }
.about__sign { color: var(--cream2); margin-bottom: 36px; }
.about__sign b { color: var(--gold2); font-weight: 500; }
.about__list { list-style: none; display: grid; gap: 12px; }
.about__list li { display: flex; gap: 14px; align-items: center; color: var(--cream2); }
.about__list li::before { content: ""; width: 26px; height: 1px; background: var(--gold); flex: none; }

/* ---------- Вопросы ---------- */
.faq { padding: 0 var(--pad) clamp(110px, 14vw, 190px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font: 500 clamp(20px, 1.8vw, 26px)/1.25 var(--serif); }
html[dir="rtl"] .faq summary { padding: 24px 0 24px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 20px; font: 300 30px/1 var(--sans); color: var(--gold); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--cream2); padding: 0 0 26px; max-width: 60ch; }

/* ---------- Заявка ---------- */
.contact { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad); overflow: hidden; }
.contact__bg { position: absolute; inset: -10% 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.8); }
.contact__box { position: relative; width: min(560px, 100%); background: rgba(21,17,13,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 52px); }
.contact__box .h2 { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: 30px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--mute); }
.form input, .form select {
  font: 400 16px/1.2 var(--sans); color: var(--cream); background: rgba(242,234,220,.06); border: 1px solid var(--line);
  border-radius: 14px; height: 52px; padding: 0 16px; outline: none; transition: border-color .3s, background .3s; -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
html[dir="rtl"] .form select { background-position: 22px 23px, 17px 23px; }
.form select option { background: var(--bg2); }
.form input:focus, .form select:focus { border-color: var(--gold); background: rgba(242,234,220,.1); }
.form .btn { margin-top: 8px; }
.form__note { font-size: 13px; color: var(--mute); text-align: center; }
.contact__alt { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--cream2); direction: ltr; }
.contact__alt a:hover { color: var(--gold2); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px var(--pad) calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot__logo { font: 600 17px/1 var(--serif); letter-spacing: .26em; color: var(--cream); display: flex; gap: 8px; align-items: baseline; direction: ltr; }

.fab { position: fixed; z-index: 40; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1b140c; box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); transform: scale(0); transition: transform .5s var(--ease); }
.fab.is-on { transform: scale(1); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Телефон и планшет ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__right { margin-inline-start: auto; }
  .facts__row { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-inline-end: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .light, .svc, .about, .faq { grid-template-columns: 1fr; }
  .work__head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-inline-end: 0; }
  .step:nth-child(3) { padding-inline-start: 0; }
  .svc__view { display: none; }
  .svc__desc { max-height: 80px; opacity: 1; margin-top: 8px; }
  .svc__name { color: var(--cream); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav { padding: 14px 18px; gap: 10px; }
  .nav__logo { font-size: 16px; letter-spacing: .22em; }
  .nav__logo span { display: none; }
  .nav .btn--sm span { display: none; }
  .nav .btn--sm { width: 40px; padding: 0; justify-content: center; }
  .lang button { padding: 7px 8px; }
  .hero__video--wide { object-position: 40% 50%; }
  .hero__shade { background: linear-gradient(0deg, rgba(21,17,13,.95) 0%, rgba(21,17,13,.6) 45%, rgba(21,17,13,.15) 80%); }
  html[dir="rtl"] .hero__shade { transform: none; }
  .hero__inner { padding-bottom: 86px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .fact { padding: 28px 18px; }
  .work__track { height: 62vh; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .step__n { font-size: 40px; margin-bottom: 12px; }
  .reels { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .reel { scroll-snap-align: center; }
  .light__stage { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .drape { display: none; }
  .marquee__track, .scroll-hint::after { animation: none; }
}
