/* rusobject.ru — A Vertical magazine · RIGHT spine · deal estimator · prefix ro- */
:root {
  --ro-ink: #1C1917;
  --ro-clay: #A65D3F;
  --ro-paper: #F5F0E8;
  --ro-stone: #44403C;
  --ro-mute: #78716C;
  --ro-line: rgba(28, 25, 23, 0.14);
  --ro-mist: #EDE6DA;
  --ro-deep: #0F0E0D;
  --ro-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ro-sans: "Outfit", system-ui, sans-serif;
  --ro-max: 1080px;
  --ro-spine: 48px;
  --ro-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ro-head: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ro-head) + 12px); }
body {
  margin: 0;
  font-family: var(--ro-sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ro-ink);
  background:
    linear-gradient(90deg, transparent calc(100% - var(--ro-spine) - 1px), var(--ro-line) calc(100% - var(--ro-spine) - 1px), var(--ro-line) calc(100% - var(--ro-spine)), transparent calc(100% - var(--ro-spine))),
    radial-gradient(ellipse 50% 40% at 8% 0%, rgba(166, 93, 63, 0.09), transparent 55%),
    linear-gradient(180deg, #faf6ef 0%, var(--ro-paper) 40%, var(--ro-mist) 100%);
  -webkit-font-smoothing: antialiased;
  padding-right: 0;
}
@media (min-width: 960px) {
  body { padding-right: var(--ro-spine); }
}
img { max-width: 100%; display: block; }
a { color: var(--ro-clay); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ro-ink); }
h1, h2, h3, h4 { font-family: var(--ro-serif); font-weight: 500; line-height: 1.2; color: var(--ro-deep); margin: 0 0 0.55em; }
p { margin: 0 0 1em; }

.ro-frame { width: min(100% - 2rem, var(--ro-max)); margin-inline: auto; }
.ro-skip { position: absolute; left: -999px; top: 0; background: var(--ro-clay); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.ro-skip:focus { left: 0.5rem; top: 0.5rem; }

/* RIGHT editorial spine — unique vs LEFT spines */
.ro-spine {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: var(--ro-spine);
  height: 100vh;
  z-index: 50;
  background: var(--ro-ink);
  color: var(--ro-paper);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.ro-spine a { color: var(--ro-paper); text-decoration: none; opacity: 0.7; }
.ro-spine a:hover, .ro-spine a.is-on { opacity: 1; color: var(--ro-clay); }
.ro-spine__mark { color: var(--ro-clay); font-family: var(--ro-serif); letter-spacing: 0.08em; text-transform: none; font-size: 0.85rem; writing-mode: horizontal-tb; }
@media (min-width: 960px) { .ro-spine { display: flex; flex-direction: column; } }

.ro-mast {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(245, 240, 232, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ro-ease), box-shadow 0.3s var(--ro-ease);
}
.ro-mast.is-live { border-color: var(--ro-line); box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06); }
.ro-mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; min-height: var(--ro-head); }
.ro-brand { font-family: var(--ro-serif); font-size: 1.45rem; color: var(--ro-deep); text-decoration: none; letter-spacing: -0.02em; }
.ro-brand em { font-style: italic; color: var(--ro-clay); font-weight: 400; }
.ro-nav { display: none; gap: 1.15rem; align-items: center; }
.ro-nav a { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ro-ink); text-decoration: none; }
.ro-nav a:hover { color: var(--ro-clay); }
.ro-mast__phone { font-weight: 600; font-size: 0.9rem; color: var(--ro-ink); text-decoration: none; white-space: nowrap; }
.ro-tog { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.4rem; cursor: pointer; }
.ro-tog span { display: block; width: 22px; height: 2px; background: var(--ro-deep); transition: transform 0.25s var(--ro-ease), opacity 0.2s; }
.ro-tog[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ro-tog[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ro-tog[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ro-sheet {
  display: none; position: fixed; inset: var(--ro-head) 0 0;
  background: var(--ro-paper); padding: 1.5rem; z-index: 39;
  flex-direction: column; gap: 1rem; border-top: 1px solid var(--ro-line);
}
.ro-sheet.is-open { display: flex; }
.ro-sheet a { font-family: var(--ro-serif); font-size: 1.4rem; color: var(--ro-deep); text-decoration: none; }
@media (min-width: 900px) { .ro-nav { display: flex; } .ro-tog { display: none; } }

/* Magazine cover */
.ro-cover {
  position: relative;
  min-height: min(100vh, 880px);
  padding: 2.2rem 0 3.5rem;
  overflow: hidden;
}
.ro-cover__rule {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ro-mute); border-bottom: 2px solid var(--ro-ink); padding-bottom: 0.75rem; margin-bottom: 1.75rem;
}
.ro-cover__brand {
  font-family: var(--ro-serif);
  font-size: clamp(3rem, 10vw, 6.4rem);
  line-height: 0.9;
  margin: 0 0 1rem;
  color: var(--ro-deep);
  letter-spacing: -0.03em;
  animation: ro-rise 0.9s var(--ro-ease) both;
}
.ro-cover__brand em { font-style: italic; color: var(--ro-clay); }
.ro-cover h1 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  max-width: 34ch;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: ro-rise 0.9s 0.08s var(--ro-ease) both;
}
.ro-cover__lede {
  max-width: 52ch;
  color: var(--ro-stone);
  font-size: 1.08rem;
  animation: ro-rise 0.9s 0.14s var(--ro-ease) both;
}
.ro-cover__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.ro-cover__folio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-top: 1px solid var(--ro-line);
  padding-top: 1.5rem;
}
@media (min-width: 760px) {
  .ro-cover__folio { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
.ro-cover__col strong {
  display: block;
  font-family: var(--ro-serif);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--ro-deep);
}
.ro-cover__col { font-size: 0.95rem; color: var(--ro-stone); }
.ro-cover__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px dashed var(--ro-line);
  border-bottom: 1px dashed var(--ro-line);
}
.ro-cover__meta dt { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ro-mute); }
.ro-cover__meta dd { margin: 0.2rem 0 0; font-weight: 600; font-size: 0.95rem; }
@keyframes ro-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.ro-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.35rem;
  background: var(--ro-ink); color: var(--ro-paper);
  font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em;
  text-decoration: none; border: 2px solid var(--ro-ink);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ro-btn:hover { background: var(--ro-clay); border-color: var(--ro-clay); color: #fff; transform: translateY(-1px); }
.ro-btn--ghost { background: transparent; color: var(--ro-ink); }
.ro-btn--ghost:hover { background: var(--ro-ink); color: var(--ro-paper); }
.ro-btn--clay { background: var(--ro-clay); border-color: var(--ro-clay); color: #fff; }

.ro-sec { padding: 3.5rem 0; }
.ro-sec--mist { background: rgba(237, 230, 218, 0.55); }
.ro-sec--ink { background: var(--ro-ink); color: var(--ro-paper); }
.ro-sec--ink h2, .ro-sec--ink h3 { color: var(--ro-paper); }
.ro-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ro-clay); font-weight: 700; margin-bottom: 0.5rem;
}
.ro-title { font-size: clamp(1.7rem, 3.5vw, 2.45rem); max-width: 22ch; }
.ro-deck { max-width: 58ch; color: var(--ro-stone); margin-bottom: 1.75rem; }
.ro-sec--ink .ro-deck { color: rgba(245, 240, 232, 0.72); }
.ro-sec--ink .ro-eyebrow { color: #d4a08a; }

.ro-in { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ro-ease), transform 0.55s var(--ro-ease); }
.ro-in.is-in { opacity: 1; transform: none; }

/* Deal estimator */
.ro-est {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 860px) {
  .ro-est { grid-template-columns: 1.15fr 0.85fr; }
}
.ro-est__card {
  background: #fff;
  border: 1px solid var(--ro-line);
  padding: 1.35rem;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.06);
}
.ro-est__row { margin-bottom: 1.15rem; }
.ro-est__label {
  display: block;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ro-mute); font-weight: 700; margin-bottom: 0.55rem;
}
.ro-est__opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ro-est__opt {
  border: 1px solid var(--ro-line);
  background: var(--ro-paper);
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem; font-weight: 550;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.ro-est__opt:hover { border-color: var(--ro-clay); }
.ro-est__opt.is-on { background: var(--ro-ink); color: var(--ro-paper); border-color: var(--ro-ink); }
.ro-est__out {
  background: var(--ro-ink);
  color: var(--ro-paper);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  min-height: 280px;
  position: relative;
}
.ro-est__out::before {
  content: "";
  position: absolute; top: 12px; right: 12px;
  width: 54px; height: 54px;
  border: 2px solid rgba(166, 93, 63, 0.45);
  border-radius: 50%;
  animation: ro-stamp 4s ease-in-out infinite alternate;
}
@keyframes ro-stamp {
  from { transform: rotate(-8deg) scale(0.96); opacity: 0.5; }
  to { transform: rotate(6deg) scale(1); opacity: 1; }
}
.ro-est__stamp { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d4a08a; margin: 0; }
.ro-est__verdict { font-family: var(--ro-serif); font-size: 1.45rem; margin: 0; color: #fff; }
.ro-est__text, .ro-est__method, .ro-est__dims { margin: 0; color: rgba(245, 240, 232, 0.78); font-size: 0.95rem; }
.ro-est__price { font-family: var(--ro-serif); font-size: 1.8rem; color: #fff; margin: 0.4rem 0; }
.ro-est__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ro-est__tags span {
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(245, 240, 232, 0.28); padding: 0.25rem 0.5rem;
}
.ro-est__hint { font-size: 0.8rem; color: rgba(245, 240, 232, 0.55); margin: 0; }

/* Services as folio cuts */
.ro-cuts { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ro-line); }
.ro-cut {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ro-line);
}
.ro-cut__mark {
  font-family: var(--ro-serif);
  font-size: 1.8rem;
  color: var(--ro-clay);
  line-height: 1;
  min-width: 2rem;
}
.ro-cut h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.ro-cut p { margin: 0; color: var(--ro-stone); font-size: 0.96rem; }
.ro-cut__price { font-weight: 700; white-space: nowrap; font-size: 0.95rem; }
@media (max-width: 640px) {
  .ro-cut { grid-template-columns: auto 1fr; }
  .ro-cut__price { grid-column: 2; }
}

/* Longread magazine */
.ro-journal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 880px) {
  .ro-journal { grid-template-columns: 200px 1fr; gap: 2.5rem; }
}
.ro-toc {
  position: sticky; top: calc(var(--ro-head) + 16px);
  align-self: start;
  font-size: 0.85rem;
}
.ro-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: ro-toc; }
.ro-toc li { counter-increment: ro-toc; margin-bottom: 0.55rem; }
.ro-toc a {
  color: var(--ro-stone); text-decoration: none;
  display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.35rem;
}
.ro-toc a::before { content: counter(ro-toc, decimal-leading-zero); color: var(--ro-clay); font-weight: 700; font-size: 0.75rem; }
.ro-toc a:hover { color: var(--ro-ink); }
.ro-prose { font-family: var(--ro-serif); font-size: 1.12rem; line-height: 1.75; max-width: 68ch; }
.ro-prose h3 { font-size: 1.45rem; margin-top: 2rem; scroll-margin-top: calc(var(--ro-head) + 16px); }
.ro-drop {
  float: left;
  font-size: 3.6rem; line-height: 0.8;
  padding: 0.15rem 0.55rem 0 0;
  color: var(--ro-clay);
  font-weight: 500;
}
.ro-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.85rem 0 0.85rem 1.15rem;
  border-left: 3px solid var(--ro-clay);
  font-style: italic;
  color: var(--ro-stone);
}
.ro-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .ro-cols { grid-template-columns: 1fr 1fr; }
  .ro-cols p {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border-top: 2px solid var(--ro-clay);
    margin: 0;
    font-size: 1rem;
  }
}

.ro-stamps { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.ro-stamp {
  border: 1px dashed rgba(245, 240, 232, 0.35);
  padding: 0.65rem 1rem;
  font-family: var(--ro-serif);
  font-size: 1.05rem;
}

.ro-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .ro-cases { grid-template-columns: repeat(3, 1fr); } }
.ro-case {
  background: #fff;
  border: 1px solid var(--ro-line);
  padding: 1.25rem;
  border-top: 3px solid var(--ro-clay);
}
.ro-case__tag { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ro-mute); margin: 0 0 0.5rem; }
.ro-case h3 { font-size: 1.15rem; }
.ro-case p { color: var(--ro-stone); font-size: 0.94rem; }
.ro-case__meta { font-size: 0.8rem; color: var(--ro-mute); margin: 0; }

.ro-reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) { .ro-reviews { grid-template-columns: repeat(3, 1fr); } }
.ro-rev {
  padding: 1.25rem;
  background: #fff;
  border-left: 3px solid var(--ro-ink);
}
.ro-rev__who { font-weight: 700; margin: 0.75rem 0 0; }
.ro-rev__city { color: var(--ro-mute); font-size: 0.85rem; margin: 0; }

.ro-faq details {
  border-bottom: 1px solid var(--ro-line);
  padding: 0.9rem 0;
}
.ro-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.ro-faq summary::-webkit-details-marker { display: none; }
.ro-faq summary::after { content: "+"; color: var(--ro-clay); font-family: var(--ro-serif); font-size: 1.3rem; }
.ro-faq details[open] summary::after { content: "–"; }
.ro-faq p { margin: 0.75rem 0 0; color: var(--ro-stone); }

.ro-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) { .ro-lead { grid-template-columns: 0.85fr 1.15fr; } }
.ro-aside {
  background: var(--ro-ink);
  color: var(--ro-paper);
  padding: 1.5rem;
}
.ro-aside h3 { color: #fff; font-size: 1.35rem; }
.ro-aside__r { display: grid; gap: 0.15rem; margin-bottom: 0.85rem; }
.ro-aside__r small { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 240, 232, 0.5); }
.ro-aside a { color: #fff; }
.ro-form {
  background: #fff;
  border: 1px solid var(--ro-line);
  padding: 1.5rem;
}
.ro-flds { display: grid; gap: 0.85rem; margin-bottom: 0.85rem; }
.ro-flds-2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .ro-flds-2 { grid-template-columns: 1fr 1fr; } }
.ro-fld label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.3rem; }
.ro-fld input, .ro-fld select, .ro-fld textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ro-line);
  background: var(--ro-paper);
  font: inherit;
}
.ro-ok { display: none; color: var(--ro-clay); font-weight: 600; }
.ro-ok.is-show { display: block; }
.ro-tiny { font-size: 0.78rem; color: var(--ro-mute); }

.ro-legal {
  background: var(--ro-deep);
  color: rgba(245, 240, 232, 0.72);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.ro-legal__g {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 760px) { .ro-legal__g { grid-template-columns: 1.4fr 1fr 1fr; } }
.ro-legal__b { font-family: var(--ro-serif); font-size: 1.5rem; color: #fff; margin: 0 0 0.5rem; }
.ro-legal__b em { color: var(--ro-clay); font-style: italic; }
.ro-legal nav { display: flex; flex-direction: column; gap: 0.35rem; }
.ro-legal a { color: rgba(245, 240, 232, 0.85); text-decoration: none; }
.ro-legal a:hover { color: #fff; }
.ro-legal__bot {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  padding-top: 1rem;
  font-size: 0.78rem;
}
