/* ===== RiverHub — тёмная тема, один акцент ===== */
:root {
  --dark:    #0a0b0f;
  --card:    #121419;
  --surface: #171a21;
  --blue:    #e11d48;
  --cyan:    #f43f5e;
  --white:   #eceef2;
  --gray:    #8b93a1;
  --green:   #34d399;
  --red:     #e11d48;
  --neutral: #c9cedb;
  --gold:    #e11d48;
  --panel:        rgba(18, 20, 25, .82);
  --panel-strong: rgba(23, 26, 33, .96);
  --line:     rgba(255, 255, 255, .09);
  --line-hot: rgba(225, 29, 72, .30);
  --shadow-neon: 0 20px 60px rgba(0, 0, 0, .55);
  --shadow-hot:  0 20px 60px rgba(0, 0, 0, .55);
}

body {
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(225, 29, 72, .10), transparent 62%),
    radial-gradient(760px 460px at 12% 4%, rgba(99, 102, 241, .07), transparent 60%),
    var(--dark);
}

/* ── первый экран ── */
.hero {
  background-image:
    linear-gradient(180deg, rgba(10, 11, 15, .88) 0%, rgba(10, 11, 15, .96) 58%, var(--dark) 100%),
    url('/felt-hero.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero--short { min-height: auto; padding: 116px 24px 54px; }
.hero::before {
  background: radial-gradient(ellipse 55% 46% at 50% 34%, rgba(225, 29, 72, .12) 0%, transparent 72%);
}

.badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--neutral);
}
.chip-row { display: flex; gap: 12px; justify-content: center; margin-top: 10px; font-size: 15px; opacity: .32; }

/* ── единая шкала типографики ── */
.hero h1,
.hero.hero--short h1,
.hero:not(.hero--short) h1 {
  font-size: clamp(26px, 2.8vw, 34px) !important;
  line-height: 1.18;
  letter-spacing: -.03em;
}
h2, .download-cta h2, #screenshots h2 {
  font-size: clamp(21px, 2vw, 25px) !important;
  line-height: 1.26;
  letter-spacing: -.02em;
}
h3, .catalog-card-top h3 { font-size: 18px !important; line-height: 1.35; }
.hero > p.hero-desc, .hero-desc { font-size: 18px !important; line-height: 1.62; }
article p, section p, .catalog-card p:not(.fit), .faq-item .faq-body { font-size: 16px !important; line-height: 1.68; }
.compare-table td, .compare-table th { font-size: 15px; }
.app-why span { font-size: 15px; }
.catalog-card dd { font-size: 15px; }
.faq-item summary { font-size: 17px; }

.section-label {
  color: var(--gray);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ── карточка рума ── */
.catalog-grid { gap: 16px; }
.catalog-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
}
.catalog-logo {
  position: relative;
  width: 96px; height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}
.catalog-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.catalog-logo .rank { display: none; }

.catalog-card-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.catalog-card-top h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }
.catalog-card-top .suit { display: none; }
.catalog-card-top .pos {
  font-size: 12px; font-weight: 700; color: var(--gray);
  letter-spacing: .08em; font-variant-numeric: tabular-nums;
}

.catalog-card .fit {
  display: inline-block !important;
  width: fit-content;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--neutral);
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  -webkit-line-clamp: none;
  overflow: visible;
}
.catalog-card p:not(.fit) {
  min-height: 0 !important;
  margin-bottom: 18px !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  font-size: .94rem;
  line-height: 1.66;
  color: var(--gray);
}

.catalog-card dl { gap: 8px; margin: auto 0 16px; }
.catalog-card dl > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.catalog-card dt { color: var(--gray); font-size: .64rem; letter-spacing: .1em; }
.catalog-card dd { color: var(--white); font-size: .84rem; }

.catalog-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px;
  border: 1px solid rgba(225, 29, 72, .45);
  border-radius: 12px;
  background: rgba(225, 29, 72, .12);
  color: #ff8098 !important;
  font-weight: 700; font-size: .94rem;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.catalog-card-cta:hover { background: var(--blue); border-color: var(--blue); color: #fff !important; }

/* ── FAQ-аккордеон ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.faq-item[open] { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .045); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px;
  cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 600; color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--gray);
  border-bottom: 2px solid var(--gray);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .22s ease, border-color .22s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--blue); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--gray); font-size: .95rem; line-height: 1.7; }
.faq-item .faq-body p { margin: 0; }

/* ── блок приложения ── */
.s-download {
  background-image:
    linear-gradient(180deg, rgba(10, 11, 15, .93), rgba(10, 11, 15, .97)),
    url('/felt-app.jpg');
  background-size: cover;
  background-position: center;
}
.app-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 24px 0 28px;
  text-align: left;
}
.app-why > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}
.app-why b { display: block; margin-bottom: 7px; color: var(--white); font-size: 15px; }
.app-why span { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── таблица ── */
.compare-table a { color: #ff8098; }
.compare-table th { color: var(--gray); letter-spacing: .08em; }

@media (max-width: 720px) {
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-logo { width: 84px; height: 84px; }
}

/* ── скрин приложения на первом экране ── */
.hero-shot {
  margin: 26px auto 28px;
  max-width: 760px;
  padding: 0;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(0, 0, 0, .4);
}
.hero-shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
}
@media (max-width: 720px) { .hero-shot { margin-top: 24px; } }

/* скрин приложения в блоке «Приложение» */
.app-screen { margin: 6px auto 26px; max-width: 820px; width: 100%; flex: 1 1 100%; }
.app-screen img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .6);
}

/* плитки румов на странице приложения */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 22px 0 20px;
}
.room-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.room-chip img { width: 46px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.room-chip b { display: block; font-size: 15px; color: var(--white); }
.room-chip span { font-size: 13px; color: var(--gray); }
.hero .app-screen {
  margin: 26px auto 24px;
  width: 100%;
  max-width: 780px;
  flex: 0 0 auto;
  align-self: center;
}
.hero-stats .stat-num { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.2; }
article ol, section ol { margin: 0 0 16px 20px; color: var(--gray); }
section ol li { margin-bottom: 7px; }

/* первый экран по ширине контента страницы */
.hero h1, .hero.hero--short h1 { max-width: 1120px !important; }
.hero > p, .hero-desc { max-width: 980px !important; }
.hero .cta-group, .hero .hero-stats { max-width: 1120px; margin-left: auto; margin-right: auto; }
.hero .app-screen { max-width: 900px !important; }

/* заголовки переносятся по смыслу, а не как попало */
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
.hero h1 { max-width: 1000px !important; margin-left: auto; margin-right: auto; }

/* примечание под кнопками скачивания */
.dl-note { margin-top: 16px !important; font-size: 13.5px !important; color: var(--gray); opacity: .85; }
.app-why b { font-size: 15px; }
