/* The Риэлтор — Рилсы. Uses the theme's tokens when present, with fallbacks. */
.trr-page, .trr-feed, .trr-strip {
  --trr-bg: var(--bg-obsidian, #070a13);
  --trr-panel: var(--bg-panel, #0e1322);
  --trr-panel-2: var(--bg-panel-2, #121829);
  --trr-gold: var(--gold, #dcc5a1);
  --trr-gold-2: var(--gold-bright, #ecd9b6);
  --trr-text: var(--text, #eef1f6);
  --trr-soft: var(--text-soft, #b8bfce);
  --trr-muted: var(--text-muted, #7b8399);
  --trr-line: var(--line, rgba(223, 215, 205, .14));
  --trr-line-gold: var(--line-gold, rgba(220, 197, 161, .4));
  --trr-serif: var(--font-serif, 'Cormorant Garamond', 'Times New Roman', serif);
  --trr-sans: var(--font-sans, 'Manrope', system-ui, sans-serif);
  --trr-ease: var(--easing, cubic-bezier(.22, 1, .36, 1));
}

/* ---------- archive ---------- */
.trr-archive, .trr-single { padding: clamp(118px, 13vw, 160px) 0 clamp(48px, 8vw, 110px); color: var(--trr-text); font-family: var(--trr-sans); }
.trr-head { text-align: center; max-width: 720px; margin: 0 auto clamp(24px, 4vw, 44px); }
.trr-eyebrow { margin: 0 0 12px; color: var(--trr-gold); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; }
.trr-eyebrow a { color: inherit; text-decoration: none; }
.trr-h1 { margin: 0; font-family: var(--trr-serif); font-weight: 400; font-size: clamp(44px, 8vw, 84px); line-height: 1; letter-spacing: -.01em; }
.trr-h1--sm { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.trr-h2 { font-family: var(--trr-serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: clamp(40px, 6vw, 72px) 0 20px; }
.trr-intro { margin: 16px auto 0; color: var(--trr-soft); font-size: 16px; line-height: 1.6; max-width: 520px; }
.trr-empty { text-align: center; color: var(--trr-muted); }

.trr-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .trr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .trr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.trr-card__link { display: block; color: inherit; text-decoration: none; }
.trr-card__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--trr-panel); border: 1px solid var(--trr-line); transition: border-color .35s var(--trr-ease), transform .35s var(--trr-ease); }
.trr-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--trr-ease); }
.trr-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 15, .75)); pointer-events: none; }
.trr-card__link:hover .trr-card__media { border-color: var(--trr-line-gold); }
.trr-card__link:hover img { transform: scale(1.03); }
.trr-card__play { position: absolute; top: 10px; right: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 10, 19, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .12); }
.trr-card__play svg { width: 13px; height: 13px; fill: var(--trr-text); margin-left: 2px; }
.trr-card__stats { position: absolute; left: 10px; bottom: 9px; z-index: 1; font-size: 12px; font-weight: 600; display: flex; gap: 10px; }
.trr-card__stats span { display: inline-flex; align-items: center; gap: 4px; }
.trr-card__stats svg { width: 14px; height: 14px; fill: var(--trr-text); }
.trr-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--trr-soft); }

.trr-pager { margin-top: 28px; text-align: center; }
.trr-cta-block { margin-top: clamp(40px, 6vw, 80px); text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.trr-cta-block p { width: 100%; margin: 0 0 6px; font-family: var(--trr-serif); font-size: clamp(24px, 3vw, 32px); }

.trr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 14px/1 var(--trr-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.trr-btn--gold { background: linear-gradient(180deg, var(--trr-gold-2), var(--trr-gold)); color: #0a0e1a; }
.trr-btn--gold:hover { background: var(--trr-gold-2); }
.trr-btn--ghost { background: transparent; color: var(--trr-text); border-color: var(--trr-line-gold); }
.trr-btn--ghost:hover { border-color: var(--trr-gold); }

/* ---------- single page ---------- */
.trr-single__wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .trr-single__wrap { grid-template-columns: minmax(280px, 380px) 1fr; gap: 56px; } }
.trr-single__player video { width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; display: block; border: 1px solid var(--trr-line); }
.trr-single__text { color: var(--trr-soft); line-height: 1.7; margin-top: 16px; }
.trr-single__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trr-single__comments h2 { font-family: var(--trr-serif); font-weight: 400; font-size: 28px; margin: 36px 0 12px; }
.trr-single__comments ul { list-style: none; padding: 0; margin: 0; }
.trr-single__comments li { padding: 12px 0; border-top: 1px solid var(--trr-line); color: var(--trr-soft); }
.trr-single__comments b { color: var(--trr-text); margin-right: 6px; }

/* ---------- full-screen feed ---------- */
body.trr-feed-open { overflow: hidden; }
body.trr-feed-open .contact-rail-home, body.trr-feed-open .contact-rail, body.trr-feed-open .cal-booking-fab, body.trr-feed-open .cookie-banner { display: none !important; }
.trr-feed[hidden] { display: none; }
.trr-feed { position: fixed; inset: 0; z-index: 100000; background: #000; color: #fff; font-family: var(--trr-sans); -webkit-tap-highlight-color: transparent; }
.trr-feed__bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(40px) brightness(.35) saturate(1.1); transform: scale(1.1); transition: background-image .4s; display: none; }
.trr-feed__track { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.trr-feed__track::-webkit-scrollbar { display: none; }
.trr-slide { position: relative; height: 100%; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.trr-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.trr-frame video, .trr-frame .trr-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trr-frame .trr-poster { transition: opacity .25s; }
.trr-frame.is-playing .trr-poster { opacity: 0; }
.trr-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, transparent 18%, transparent 58%, rgba(0,0,0,.72) 100%); }
.trr-tap { position: absolute; inset: 0; z-index: 1; }

.trr-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.trr-top > * { pointer-events: auto; }
.trr-top__title { font-family: var(--trr-serif); font-size: 22px; letter-spacing: .01em; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.trr-top__title small { font-family: var(--trr-sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--trr-gold); margin-left: 8px; vertical-align: middle; }
.trr-iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(10,14,26,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.trr-iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.trr-sound { position: absolute; z-index: 3; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 56px)); transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(10,14,26,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .3s; }
.trr-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.trr-feed.is-muted .trr-slide.is-active .trr-sound { opacity: 1; }
.trr-paused { position: absolute; z-index: 3; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(10,14,26,.5); display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.trr-paused svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.trr-frame.is-paused .trr-paused { opacity: 1; }
.trr-feed.is-muted .trr-frame.is-paused .trr-paused { opacity: 0; }

.trr-meta { position: absolute; z-index: 4; left: 0; right: 76px; bottom: 0; padding: 0 16px max(18px, calc(env(safe-area-inset-bottom) + 12px)); }
.trr-meta__author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.trr-meta__author img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--trr-line-gold); background: #0a0e1a; }
.trr-meta__title { margin: 0 0 6px; font-family: var(--trr-sans); letter-spacing: 0; text-transform: none; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.trr-meta__desc { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trr-meta__desc.is-open { -webkit-line-clamp: unset; }
.trr-meta__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: linear-gradient(180deg, var(--trr-gold-2), var(--trr-gold)); color: #0a0e1a; font: 700 13px/1 var(--trr-sans); cursor: pointer; text-decoration: none; }
.trr-meta__cta svg { width: 16px; height: 16px; fill: currentColor; }

.trr-actions { position: absolute; z-index: 4; right: 8px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.trr-act { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; font: 600 12px/1 var(--trr-sans); text-decoration: none; }
.trr-act__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,14,26,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); transition: transform .2s var(--trr-ease), background .2s; }
.trr-act:active .trr-act__ico { transform: scale(.9); }
.trr-act svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.trr-act.is-liked svg { fill: #ff4d6d; stroke: #ff4d6d; }
.trr-act.is-liked .trr-act__ico { animation: trr-pop .35s var(--trr-ease); }
.trr-act--cta .trr-act__ico { background: linear-gradient(180deg, var(--trr-gold-2), var(--trr-gold)); border-color: transparent; }
.trr-act--cta svg { stroke: #0a0e1a; }
@keyframes trr-pop { 50% { transform: scale(1.18); } }

.trr-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.15); }
.trr-progress i { display: block; height: 100%; width: 0; background: var(--trr-gold); }
.trr-burst { position: absolute; z-index: 5; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; animation: trr-burst .7s var(--trr-ease) forwards; }
.trr-burst svg { width: 100%; height: 100%; fill: #ff4d6d; filter: drop-shadow(0 4px 16px rgba(0,0,0,.35)); }
@keyframes trr-burst { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1) translateY(-40px); opacity: 0; } }

.trr-nav { display: none; }

/* desktop: 9:16 column in the middle, actions beside it */
@media (min-width: 768px) {
  .trr-feed__bg { display: block; }
  .trr-frame { width: auto; height: calc(100dvh - 40px); aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); overflow: visible; }
  .trr-frame > video, .trr-frame > .trr-poster { border-radius: 18px; }
  .trr-frame::after { border-radius: 18px; }
  .trr-meta { right: 0; }
  .trr-actions { right: auto; left: calc(100% + 18px); bottom: 8px; }
  .trr-act { color: var(--trr-soft); }
  .trr-progress { left: 12px; right: 12px; bottom: 6px; border-radius: 2px; overflow: hidden; }
  .trr-top { padding: 18px 24px 0; justify-content: flex-start; gap: 14px; }
  .trr-top [data-a="mute"] { margin-left: auto; }
  .trr-sound { top: 18px; }

  .trr-nav { display: flex; flex-direction: column; gap: 10px; position: absolute; z-index: 6; right: 24px; top: 50%; transform: translateY(-50%); }
}

/* bottom sheets: comments + contact */
.trr-sheet { position: absolute; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.trr-sheet.is-open { visibility: visible; }
.trr-sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.trr-sheet.is-open .trr-sheet__scrim { opacity: 1; }
.trr-sheet__panel { position: relative; width: 100%; max-width: 520px; max-height: 72dvh; display: flex; flex-direction: column; background: var(--trr-panel); color: var(--trr-text); border: 1px solid var(--trr-line); border-bottom: 0; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .38s var(--trr-ease); padding-bottom: env(safe-area-inset-bottom); }
.trr-sheet.is-open .trr-sheet__panel { transform: none; }
.trr-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: 8px auto 0; }
.trr-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 12px; border-bottom: 1px solid var(--trr-line); }
.trr-sheet__head h3 { margin: 0; font: 700 15px/1.2 var(--trr-sans); }
.trr-sheet__head .trr-iconbtn { width: 34px; height: 34px; background: transparent; }
.trr-clist { list-style: none; margin: 0; padding: 6px 16px; overflow-y: auto; flex: 1; min-height: 120px; }
.trr-clist li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; }
.trr-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--trr-panel-2); color: var(--trr-gold); font-weight: 700; font-size: 14px; border: 1px solid var(--trr-line); }
.trr-clist b { font-size: 13px; color: var(--trr-soft); font-weight: 600; }
.trr-clist b em { font-style: normal; color: var(--trr-gold); font-size: 11px; margin-left: 6px; }
.trr-clist time { font-size: 11px; color: var(--trr-muted); margin-left: 6px; }
.trr-clist p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-line; word-break: break-word; }
.trr-clist .trr-cempty { display: block; text-align: center; color: var(--trr-muted); padding: 28px 0; font-size: 14px; }
.trr-cform { border-top: 1px solid var(--trr-line); padding: 10px 12px 12px; display: grid; gap: 8px; }
.trr-cform input, .trr-cform textarea { width: 100%; box-sizing: border-box; background: var(--trr-panel-2); color: var(--trr-text); border: 1px solid var(--trr-line); border-radius: 12px; padding: 10px 12px; font: 400 15px/1.35 var(--trr-sans); resize: none; outline: none; }
.trr-cform input:focus, .trr-cform textarea:focus { border-color: var(--trr-line-gold); }
.trr-cform__row { display: flex; gap: 8px; align-items: flex-end; }
.trr-cform__row textarea { flex: 1; }
.trr-cform__send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--trr-gold-2), var(--trr-gold)); display: grid; place-items: center; cursor: pointer; }
.trr-cform__send svg { width: 20px; height: 20px; fill: #0a0e1a; }
.trr-cform__note { margin: 0; font-size: 11px; color: var(--trr-muted); }
.trr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.trr-contact { padding: 16px; display: grid; gap: 10px; }
.trr-contact p { margin: 0 0 4px; color: var(--trr-soft); font-size: 14px; line-height: 1.5; }
.trr-contact .trr-btn { width: 100%; min-height: 50px; font-size: 15px; }

.trr-toast { position: absolute; z-index: 30; left: 50%; top: max(70px, calc(env(safe-area-inset-top) + 60px)); transform: translate(-50%, -10px); background: rgba(14,19,34,.92); border: 1px solid var(--trr-line-gold); color: var(--trr-text); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.trr-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.trr-contact .trr-btn svg, .trr-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

@media (min-width: 768px) {
  /* comments/contact: side panel to the right on desktop */
  .trr-sheet { justify-content: flex-end; align-items: stretch; }
  .trr-sheet__panel { max-width: 400px; max-height: none; height: 100%; border-radius: 0; border: 0; border-left: 1px solid var(--trr-line); transform: translateX(100%); }
  .trr-sheet__grip { display: none; }
  .trr-sheet[data-sheet="contact"] { align-items: center; justify-content: center; }
  .trr-sheet[data-sheet="contact"] .trr-sheet__panel { height: auto; border: 1px solid var(--trr-line); border-radius: 20px; transform: translateY(16px); opacity: 0; transition: transform .3s var(--trr-ease), opacity .3s; }
  .trr-sheet[data-sheet="contact"].is-open .trr-sheet__panel { opacity: 1; transform: none; }
}

/* ---------- homepage strip ---------- */
.trr-strip[hidden] { display: none !important; }
.trr-strip__wrap { position: relative; }
.trr-strip__track { list-style: none; margin: 0; padding: 4px 0 6px; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y pinch-zoom; scroll-snap-type: x mandatory; scroll-padding-inline: 0; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trr-strip__track::-webkit-scrollbar { display: none; }
.trr-strip__track > .trr-card { flex: 0 0 calc((100% - 12px) / 2.3); scroll-snap-align: start; min-width: 0; }
@media (min-width: 640px) { .trr-strip__track { gap: 16px; } .trr-strip__track > .trr-card { flex-basis: calc((100% - 3 * 16px) / 3.4); } }
@media (min-width: 1024px) { .trr-strip__track { gap: 20px; } .trr-strip__track > .trr-card { flex-basis: calc((100% - 4 * 20px) / 5); } }
.trr-strip__arrow { display: none; position: absolute; z-index: 2; top: calc(50% - 40px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trr-line-gold); background: rgba(10, 14, 26, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--trr-text); cursor: pointer; place-items: center; padding: 0; transition: opacity .25s, border-color .25s; }
.trr-strip__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trr-strip__arrow--prev { left: 8px; } .trr-strip__arrow--prev svg { transform: rotate(180deg); }
.trr-strip__arrow--next { right: 8px; }
.trr-strip__arrow:hover { border-color: var(--trr-gold); }
.trr-strip__arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 640px) { .trr-strip__arrow { display: grid; } }
@media (hover: hover) { .trr-strip:not(.trr-strip--static) .trr-strip__track { cursor: grab; } }
.trr-strip--drag .trr-strip__track { scroll-snap-type: none; cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.trr-strip--static .trr-strip__arrow { display: none; }
.trr-strip--static .trr-strip__track { justify-content: center; }
.trr-strip__more { margin-top: clamp(22px, 3vw, 34px); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .trr-sheet__panel, .trr-card__media img { transition: none; }
  .trr-burst, .trr-act.is-liked .trr-act__ico { animation: none; }
}
