/* Шаблон «Ривьера»: солнечное средиземноморье — морская синева, песок, терракота. Фото в арках, волны, бегущая строка,
   вращающийся значок «Рекомендую». Анимации — только transform / opacity / filter; без JS и при «уменьшить движение»
   всё видно сразу и ничего не движется. */
body.t-riviera { --rv-sea: #0E4C6E; --rv-sea-d: #0A3550; --rv-deep: #072638; --rv-sky: #BFE3F2; --rv-sand: #F6EEE2; --rv-sand-d: #EBDDC8;
  --rv-terra: #D9734E; --rv-terra-d: #BF5A37; --rv-ink: #12324A; --rv-text: #4A5D6B; --rv-mute: #7D8B95; --rv-line: rgba(18, 50, 74, .12);
  --rv-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif; --rv-sans: "Onest", "Inter", system-ui, sans-serif;
  background: var(--rv-sand); color: var(--rv-ink); font-family: var(--rv-sans); font-size: 15.5px; overflow-x: hidden; }
.t-riviera .top, .t-riviera .hero { display: none; }
.t-riviera .items { padding: 0; }
.t-riviera .items > .wrap { max-width: none; padding: 0; }
.t-riviera h1, .t-riviera h2, .t-riviera h3 { color: inherit; }
.t-riviera .ou-lang { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 30; }
.t-riviera .ic { flex: none; }

/* --- Появление при прокрутке (только когда анимации включены) --- */
.mo-on .t-riviera .rv-r { opacity: 0; transform: translateY(34px) scale(.975); transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms), transform 1.1s cubic-bezier(.2, .7, .2, 1) var(--rv-d, 0ms); }
.mo-on .t-riviera .rv-r.in { opacity: 1; transform: none; }
.mo-on .t-riviera .rv-hero .rv-r { transform: translateY(26px); filter: blur(6px); transition-property: opacity, transform, filter; }
.mo-on .t-riviera .rv-hero .rv-r.in { filter: none; transform: none; }

/* --- Обложка --- */
.rv-hero { position: relative; min-height: min(100svh, 980px); min-height: max(640px, min(100svh, 980px)); display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate; padding: 120px 0 170px; }
.rv-hph { position: absolute; inset: -60px 0; z-index: -3; transform: translate3d(0, var(--px, 0px), 0); }
.rv-kb { position: absolute; inset: 0; background: radial-gradient(900px 600px at 70% 20%, #F9D7A8, transparent 60%), linear-gradient(160deg, #6FB7D6, #0E4C6E) center / cover no-repeat; }
.rv-kb[style] { background-size: cover; background-position: center; }
.rv-sun { position: absolute; z-index: -2; top: -6%; right: 6%; width: min(46vw, 620px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 228, 180, .85) 0%, rgba(255, 196, 128, .38) 28%, rgba(255, 170, 110, .12) 52%, transparent 70%); mix-blend-mode: screen; }
.rv-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 30, 46, .55) 0%, rgba(5, 30, 46, .08) 30%, rgba(5, 30, 46, .1) 50%, rgba(5, 30, 46, .62) 100%),
  linear-gradient(90deg, rgba(5, 30, 46, .5) 0%, rgba(5, 30, 46, 0) 65%); }
.rv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px clamp(20px, 4vw, 56px); z-index: 2; }
.rv-brand { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; font-size: 16px; letter-spacing: .01em; }
.rv-brand img { max-height: 44px; max-width: 190px; padding: 7px 12px; border-radius: 14px; background: rgba(255, 255, 255, .92); }
.rv-brand i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: italic 500 21px var(--rv-serif); background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex: none; }
.rv-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.rv-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 99px; color: #fff !important; font-weight: 600; font-size: 14px; white-space: nowrap;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .38); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s; }
.rv-chip:hover { background: rgba(255, 255, 255, .26); }
.rv-hin { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.rv-eyebrow { display: inline-block; font: 600 12px var(--rv-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--rv-terra); }
.rv-hero .rv-eyebrow { color: #FFE0BD; }
.rv-hero h1 { font: 600 clamp(46px, 6.6vw, 104px) / .98 var(--rv-serif); letter-spacing: -.02em; margin: 18px 0 0; max-width: 15ch; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 2px 40px rgba(5, 30, 46, .35); }
.rv-hero h1 em, .rv-h2 h2 em, .rv-big em { font-style: italic; font-weight: 500; }
.rv-hero h1 em { color: #FFE3C4; }
.rv-intro { max-width: 560px; margin: 22px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .92); white-space: pre-line; text-shadow: 0 1px 16px rgba(5, 30, 46, .4); }
.dl.rv-dl { margin-top: 22px; display: inline-flex; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; border-radius: 99px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13.5px; }
.dl.rv-dl .dl-ic, .dl.rv-dl .dl-left { color: #FFD9AE; }
.dl.rv-dl .dl-left { border-left-color: rgba(255, 255, 255, .35); }
.dl.rv-dl.expired { background: rgba(5, 30, 46, .45); }
.rv-hstats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.rv-hstats div { padding: 12px 18px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.rv-hstats span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.rv-hstats b { display: block; font: 600 24px var(--rv-serif); margin-top: 3px; white-space: nowrap; }
.rv-down { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, .85) !important; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.rv-down i { width: 1px; height: 44px; background: linear-gradient(rgba(255, 255, 255, .9), transparent); transform-origin: top; }

/* Волны: каждая полоса — повторяющаяся плитка 1440 px, едет на одну плитку и повторяется без шва */
.rv-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 130px; z-index: 1; pointer-events: none; overflow: hidden; }
.rv-w { position: absolute; left: 0; bottom: 0; width: calc(100% + 1440px); background-repeat: repeat-x; background-position: 0 100%; background-size: 1440px 100%; }
.rv-w.w1 { height: 130px; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C360 110 360 30 720 70 S1080 30 1440 70 V120 H0Z' fill='%23BFE3F2'/%3E%3C/svg%3E"); }
.rv-w.w2 { height: 104px; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C240 20 480 20 720 60 S1200 100 1440 60 V120 H0Z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.rv-w.w3 { height: 78px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 64 C360 24 360 104 720 64 S1080 104 1440 64 V120 H0Z' fill='%23F6EEE2'/%3E%3C/svg%3E"); }

/* --- Бегущая строка направлений --- */
.rv-marquee { overflow: hidden; padding: 18px 0 24px; border-bottom: 1px solid var(--rv-line); }
.rv-mq { display: flex; width: max-content; }
.rv-mq-set { display: flex; align-items: center; flex: none; }
.rv-mq span { font: italic 500 clamp(26px, 3.2vw, 44px) / 1.1 var(--rv-serif); color: var(--rv-sea); padding: 0 26px; white-space: nowrap; }
.rv-mq i { font-style: normal; color: var(--rv-terra); font-size: 22px; }

/* --- Варианты --- */
.rv-list { max-width: 1240px; margin: 0 auto; padding: 90px clamp(20px, 4vw, 56px) 40px; }
.rv-h2 { text-align: center; margin-bottom: 70px; }
.rv-h2 h2 { font: 600 clamp(40px, 5vw, 68px) / 1.02 var(--rv-serif); margin: 14px 0 0; letter-spacing: -.02em; color: var(--rv-sea); }
.rv-h2 p { margin: 14px 0 0; color: var(--rv-text); font-size: 16px; }
.rv-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; position: relative; scroll-margin-top: 20px; }
.rv-card[hidden] { display: none; }
.rv-card.flip .rv-media { order: 2; }
.rv-media { position: relative; padding: 0 0 0 0; }
.rv-arch { position: relative; aspect-ratio: 4 / 5; border-radius: 50% 50% 28px 28px / 40% 40% 28px 28px; overflow: hidden; background: var(--rv-sand-d);
  box-shadow: 0 40px 80px -40px rgba(10, 53, 80, .55); isolation: isolate; }
.rv-media::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1.5px solid rgba(217, 115, 78, .55); border-radius: 50% 50% 32px 32px / 40% 40% 32px 32px; pointer-events: none; }
.rv-card.flip .rv-media::before { inset: -16px -16px 16px 16px; }
.rv-arch .gallery { position: absolute; inset: 0; background: var(--rv-sand-d); }
.rv-arch .gallery .slide { overflow: hidden; }
.rv-arch .gallery .slide img { transform-origin: 60% 40%; }
.rv-arch .gallery .empty-ph { background: radial-gradient(420px 320px at 60% 25%, rgba(255, 214, 160, .7), transparent 65%), linear-gradient(170deg, var(--rv-sky), var(--rv-sea)); }
.rv-arch .gallery .empty-ph svg { color: rgba(255, 255, 255, .7); width: 56px; height: 56px; }
.rv-arch .gallery .count { top: auto; bottom: 16px; right: auto; left: 50%; transform: translateX(-50%); background: rgba(7, 38, 56, .55); backdrop-filter: blur(8px); }
.rv-arch .gallery .dots { bottom: 46px; }
.rv-arch .gallery .nav { background: rgba(255, 255, 255, .9); color: var(--rv-sea); }
.rv-num { position: absolute; left: -10px; bottom: -34px; font: italic 500 clamp(80px, 9vw, 130px) / 1 var(--rv-serif); color: var(--rv-terra); opacity: .9; pointer-events: none;
  text-shadow: 0 10px 30px rgba(246, 238, 226, .9); }
.rv-card.flip .rv-num { left: auto; right: -6px; }
.rv-badge { position: absolute; top: 5%; left: -26px; width: 124px; height: 124px; border-radius: 50%; background: var(--rv-terra); color: #fff;
  box-shadow: 0 18px 40px -14px rgba(191, 90, 55, .75); display: grid; place-items: center; z-index: 3; }
.rv-card.flip .rv-badge { left: auto; right: -26px; }
.rv-card.flip .rv-sale { left: auto; right: -14px; }
.rv-badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-badge text { font: 600 11.5px var(--rv-sans); letter-spacing: .22em; fill: #fff; }
.rv-badge b { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--rv-terra); display: grid; place-items: center; }
.rv-badge b .ic { width: 20px; height: 20px; }
.rv-sale { position: absolute; top: 7%; left: -14px; z-index: 3; padding: 10px 16px; border-radius: 99px; background: var(--rv-terra); color: #fff; font: 600 18px var(--rv-serif);
  box-shadow: 0 14px 30px -12px rgba(191, 90, 55, .7); }

.rv-body { position: relative; z-index: 2; margin-left: -70px; padding: 44px 46px 38px; background: #fff; border-radius: 30px;
  box-shadow: 0 30px 70px -35px rgba(10, 53, 80, .35), 0 1px 0 rgba(255, 255, 255, .9) inset; min-width: 0; }
.rv-card.flip .rv-body { margin-left: 0; margin-right: -70px; }
.rv-card.rec .rv-body { box-shadow: 0 30px 70px -35px rgba(10, 53, 80, .35), 0 0 0 1.5px rgba(217, 115, 78, .45); }
.rv-k { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rv-terra); }
.rv-k i { flex: 0 0 34px; height: 1px; background: currentColor; opacity: .5; }
.rv-k span:last-of-type { color: var(--rv-mute); }
.rv-off { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: rgba(217, 115, 78, .12); color: var(--rv-terra-d); letter-spacing: .04em; }
.rv-body h3 { font: 600 clamp(28px, 3vw, 42px) / 1.06 var(--rv-serif); margin: 14px 0 10px; letter-spacing: -.015em; color: var(--rv-ink); overflow-wrap: anywhere; }
.rv-place { display: flex; gap: 7px; align-items: flex-start; color: var(--rv-text); font-size: 14.5px; }
.rv-place .ic { color: var(--rv-terra); margin-top: 2px; }
.rv-stars { font-style: normal; color: #E39A3B; letter-spacing: 1px; }
.rv-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.rv-tags span { height: 28px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-weight: 600; font-size: 12px;
  color: color-mix(in srgb, var(--tag) 75%, #12324A); background: color-mix(in srgb, var(--tag) 13%, #fff); border: 1px solid color-mix(in srgb, var(--tag) 30%, transparent); }
.t-riviera .vars-box { margin: 18px 0 0; }
.t-riviera .var { background: var(--rv-sand); border-color: transparent; border-radius: 16px; }
.t-riviera .var b { color: var(--rv-ink); } .t-riviera .var span { color: var(--rv-mute); } .t-riviera .var i { color: var(--rv-terra); }
.t-riviera .var.on { background: #fff; border-color: var(--rv-sea); box-shadow: 0 0 0 3px rgba(14, 76, 110, .12); }
.rv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rv-line); }
.rv-facts > div { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.4; color: var(--rv-ink); min-width: 0; }
.rv-facts .ic { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(191, 227, 242, .55); color: var(--rv-sea); margin-top: -6px; }
.rv-facts span { overflow-wrap: anywhere; }
.rv-note { margin: 24px 0 0; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 22px; background: var(--rv-sand); }
.rv-note em { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--rv-sea); color: #fff; font: italic 500 18px var(--rv-serif); }
.rv-note em img { width: 100%; height: 100%; object-fit: cover; }
.rv-note p { margin: 0; font: italic 500 17px / 1.5 var(--rv-serif); color: var(--rv-ink); white-space: pre-line; min-width: 0; }
.rv-note cite { display: block; margin-top: 6px; font: normal 600 12px var(--rv-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rv-terra); }
.t-riviera .ou-tr-line, .t-riviera .ou-tr-full { margin-top: 14px; color: var(--rv-text); }
.rv-more { margin-top: 16px; font-size: 14px; }
.rv-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rv-sea); }
.rv-more summary::-webkit-details-marker { display: none; }
.rv-more summary i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(14, 76, 110, .08); transition: transform .3s; }
.rv-more[open] summary i { transform: rotate(90deg); }
.rv-more .desc, .rv-flight { color: var(--rv-text); font-size: 14px; line-height: 1.6; margin-top: 10px; white-space: pre-line; }
.rv-flight { padding: 12px 14px; border-radius: 14px; background: var(--rv-sand); font-variant-numeric: tabular-nums; }
.rv-body .pflag { margin: 18px 0 0; }
.rv-price { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.rv-pcard { padding: 16px 24px 15px; border-radius: 22px; background: linear-gradient(135deg, #E5875F, var(--rv-terra) 45%, var(--rv-terra-d)); color: #fff; min-width: 0;
  box-shadow: 0 18px 36px -18px rgba(191, 90, 55, .8); position: relative; overflow: hidden; }
.rv-pcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 190, .55), transparent 70%); }
.rv-pcard s { display: block; font-size: 13.5px; opacity: .75; }
.rv-pcard b { display: block; font: 600 clamp(28px, 2.8vw, 36px) / 1.05 var(--rv-serif); letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.rv-pcard small { display: block; font-size: 12.5px; margin-top: 4px; opacity: .88; }
.react.rv-react { margin: 0; flex: none; gap: 8px; }
.react.rv-react button { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--rv-sand); border-color: transparent; color: var(--rv-sea); }
.react.rv-react button span { display: none; }
.react.rv-react .r-like[aria-pressed="true"] { color: #fff; background: var(--rv-terra); }
.react.rv-react .r-dis[aria-pressed="true"] { background: var(--rv-sea); color: #fff; }
.t-riviera .opt-pill { background: var(--rv-sand); border-color: transparent; color: var(--rv-ink); }
.t-riviera .opt-pill .ic, .t-riviera .opt-pill b { color: var(--rv-terra); }
.rv-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rv-btns .rv-btn { flex: 1 1 auto; min-width: min(100%, max-content); }
.rv-btn { position: relative; overflow: hidden; height: 56px; padding: 0 28px; border: 0; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px var(--rv-sans); letter-spacing: .01em; background: var(--rv-sea); color: #fff !important; cursor: pointer; white-space: nowrap;
  box-shadow: 0 16px 32px -16px rgba(14, 76, 110, .9); transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, background .3s; }
.rv-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 200, .55) 50%, transparent 70%); transform: translateX(-120%); }
.rv-btn:hover { background: #12597F; box-shadow: 0 20px 40px -16px rgba(14, 76, 110, .95); }
.rv-btn:hover::after { transform: translateX(120%); transition: transform .9s ease; }
.rv-btn.alt { background: #fff; color: var(--rv-sea) !important; box-shadow: inset 0 0 0 1.5px rgba(14, 76, 110, .3); }
.rv-btn.alt:hover { background: var(--rv-sand); }
.rv-btn.sun { background: linear-gradient(135deg, #F3B26A, var(--rv-terra)); color: #fff !important; box-shadow: 0 18px 36px -16px rgba(217, 115, 78, .9); }
.rv-btn.ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.rv-btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.rv-btn .ic { width: 17px; height: 17px; }
.rv-body .dl-note { background: rgba(217, 115, 78, .08); border-color: rgba(217, 115, 78, .35); }
.rv-body .links { font-size: 13px; margin-top: 18px; }
.rv-body .links a { color: var(--rv-sea) !important; }
.rv-sep { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 96px auto; max-width: 420px; color: var(--rv-terra); font-size: 22px; }
.rv-sep i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 115, 78, .5), transparent); }

/* --- Финал: морская синева, менеджер в арке --- */
.rv-end { position: relative; margin-top: 110px; background: radial-gradient(900px 500px at 85% 10%, rgba(255, 200, 140, .25), transparent 60%), linear-gradient(180deg, var(--rv-sea), var(--rv-deep));
  color: #fff; padding: 120px clamp(20px, 4vw, 56px) 80px; overflow: hidden; }
.rv-div { position: absolute; left: 0; width: 100%; height: 90px; display: block; }
.rv-div.up { top: -1px; transform: rotate(180deg); }
.rv-end-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 60px; align-items: center; }
.rv-end-ph { aspect-ratio: 4 / 5; border-radius: 50% 50% 26px 26px / 40% 40% 26px 26px; overflow: hidden; background: linear-gradient(170deg, #F3B26A, var(--rv-terra));
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 40px 70px -30px rgba(0, 0, 0, .6); display: grid; place-items: center; }
.rv-end-ph img { width: 100%; height: 100%; object-fit: cover; }
.rv-end-ph span { font: italic 500 110px var(--rv-serif); color: #fff; }
.rv-end .rv-eyebrow { color: #FFD3A6; }
.rv-big { font: 600 clamp(38px, 4.6vw, 64px) / 1.02 var(--rv-serif); letter-spacing: -.02em; margin-top: 14px; }
.rv-end p { margin: 16px 0 0; color: rgba(255, 255, 255, .8); font-size: 17px; line-height: 1.6; max-width: 520px; }
.rv-end .rv-btns { margin-top: 30px; }
.rv-end .rv-btns .rv-btn { flex: 0 1 auto; }
.rv-foot { margin: 0; padding: 0 20px 44px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .55); background: var(--rv-deep); }
.rv-list + .rv-foot { background: none; color: var(--rv-mute); padding-top: 30px; }
.t-riviera .combo { max-width: 1100px; margin: 40px auto; }
.t-riviera .foot { background: #061E2D; color: rgba(255, 255, 255, .75); }
.t-riviera .foot h3 { color: #fff; font-family: var(--rv-serif); }
.t-riviera .mbar { background: rgba(246, 238, 226, .94); border-top-color: var(--rv-line); }
.t-riviera .mbar .call { background: var(--rv-sea); }
.t-riviera .modal .box { color: #12152B; }

/* --- Движение: только если человек не просил его уменьшить --- */
@media (prefers-reduced-motion: no-preference) {
  .rv-kb { animation: rv-kb 28s ease-in-out infinite alternate; }
  .rv-sun { animation: rv-sun 9s ease-in-out infinite alternate; }
  .rv-w.w1 { animation: rv-wave 26s linear infinite; }
  .rv-w.w2 { animation: rv-wave 17s linear infinite reverse; }
  .rv-w.w3 { animation: rv-wave 38s linear infinite; }
  .rv-mq { animation: rv-mq 46s linear infinite; }
  .rv-marquee:hover .rv-mq { animation-play-state: paused; }
  .rv-arch .gallery .slide img { animation: rv-kbi 20s ease-in-out infinite alternate; }
  .rv-badge > svg { animation: rv-spin 22s linear infinite; }
  .rv-down i { animation: rv-drop 2.4s cubic-bezier(.6, 0, .3, 1) infinite; }
  .rv-end-ph img { animation: rv-kbi 24s ease-in-out infinite alternate; }
}
@keyframes rv-kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
@keyframes rv-kbi { from { transform: scale(1.02); } to { transform: scale(1.14) translate3d(-2%, 1%, 0); } }
@keyframes rv-sun { from { transform: scale(.94); opacity: .8; } to { transform: scale(1.08); opacity: 1; } }
@keyframes rv-wave { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-1440px, 0, 0); } }
@keyframes rv-mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes rv-spin { to { transform: rotate(360deg); } }
@keyframes rv-drop { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* --- Телефон --- */
@media (max-width: 900px) {
  body.t-riviera { font-size: 15px; }
  .t-riviera .ou-lang { top: 74px; left: auto; right: 16px; transform: none; }
  .rv-hero { min-height: max(600px, min(100svh, 820px)); padding: 110px 0 150px; }
  .rv-top { padding: 16px 16px; }
  .rv-brand img { max-height: 38px; max-width: 150px; }
  .rv-chip { width: 42px; padding: 0; justify-content: center; }
  .rv-chip span { display: none; }
  .rv-hin { padding: 0 20px; }
  .rv-hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .rv-intro { font-size: 15.5px; margin-top: 16px; }
  .rv-hstats { gap: 8px; margin-top: 20px; }
  .rv-hstats div { padding: 10px 14px; border-radius: 16px; flex: 1 1 0; }
  .rv-hstats b { font-size: 19px; }
  .rv-down { display: none; }
  .rv-sun { width: 90vw; top: -12%; right: -30%; }
  .rv-waves { height: 96px; }
  .rv-w.w1 { height: 96px; } .rv-w.w2 { height: 74px; } .rv-w.w3 { height: 54px; }
  .rv-marquee { padding: 12px 0 16px; }
  .rv-mq span { padding: 0 16px; }
  .rv-list { padding: 64px 0 20px; }
  .rv-h2 { margin-bottom: 44px; padding: 0 20px; }
  .rv-card { grid-template-columns: 1fr; }
  .rv-card.flip .rv-media { order: 0; }
  .rv-media { margin: 0 28px; }
  .rv-media::before, .rv-card.flip .rv-media::before { inset: -10px 10px 10px -10px; }
  .rv-arch { aspect-ratio: 4 / 4.4; border-radius: 50% 50% 22px 22px / 45.5% 45.5% 22px 22px; }
  .rv-media::before { border-radius: 50% 50% 26px 26px / 45.5% 45.5% 26px 26px; }
  .rv-num, .rv-card.flip .rv-num { left: -14px; right: auto; bottom: auto; top: 58%; font-size: 76px; }
  .rv-badge, .rv-card.flip .rv-badge { width: 96px; height: 96px; top: 2%; right: -16px; left: auto; }
  .rv-badge text { font-size: 10.5px; }
  .rv-badge b { width: 36px; height: 36px; }
  .rv-sale, .rv-card.flip .rv-sale { left: auto; right: -10px; }
  .rv-body, .rv-card.flip .rv-body { margin: -64px 12px 0; padding: 30px 20px 24px; border-radius: 26px; }
  .rv-body h3 { font-size: 29px; }
  .rv-facts { grid-template-columns: 1fr; gap: 12px; }
  .rv-note { padding: 16px; }
  .rv-note p { font-size: 16px; }
  .rv-price { flex-direction: column; align-items: stretch; }
  .rv-pcard b { font-size: 30px; }
  .react.rv-react { justify-content: flex-start; }
  .rv-btns .rv-btn { width: 100%; }
  .rv-sep { margin: 64px auto; max-width: 260px; }
  .rv-end { margin-top: 70px; padding: 100px 20px 60px; }
  .rv-div { height: 56px; }
  .rv-end-in { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .rv-end-ph { width: 190px; margin: 0 auto; }
  .rv-end p { margin-left: auto; margin-right: auto; }
  .rv-end .rv-btns .rv-btn { flex: 1 1 100%; }
  .t-riviera .foot { padding-bottom: 90px; }
}

/* --- Печать и PDF: без анимаций и волн, на белой бумаге --- */
@media print {
  body.t-riviera { background: #fff; }
  .mo-on .t-riviera .rv-r { opacity: 1 !important; transform: none !important; filter: none !important; }
  .rv-waves, .rv-marquee, .rv-sun, .rv-down, .rv-badge > svg, .rv-num, .rv-media::before, .rv-div, .rv-sep { display: none !important; }
  .rv-kb, .rv-arch .gallery .slide img, .rv-end-ph img { animation: none !important; transform: none !important; }
  .rv-hero { min-height: 0; padding: 90px 0 40px; }
  .rv-hph { inset: 0; transform: none; }
  .rv-list { padding-top: 30px; }
  .rv-h2 { margin-bottom: 30px; }
  .rv-card { break-inside: avoid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; margin-bottom: 30px; }
  .rv-card.flip .rv-media { order: 0; }
  .rv-body, .rv-card.flip .rv-body { margin: 0; box-shadow: none; border: 1px solid #e3d9ca; padding: 22px; }
  .rv-pcard { box-shadow: none; }
  .rv-end { margin-top: 30px; padding: 30px; background: #fff; color: var(--rv-ink); border-top: 2px solid var(--rv-sea); }
  .rv-end p, .rv-end .rv-eyebrow { color: var(--rv-text); }
  .rv-end .rv-btns { display: none; }
  .rv-end-in { grid-template-columns: 140px 1fr; gap: 24px; }
  .rv-foot { background: none; color: var(--rv-mute); }
}
