/* Riva24 landing */
:root {
  --ink: #182A3F;
  --muted: #4B5A6B;
  --muted-2: #6B7685;
  --blue: #1E6FD0;
  --blue-dark: #1A5DB0;
  --blue-deep: #164F96;
  --sky: #DDEBFB;
  --bg-soft: #F2F7FD;
  --sun: #F5B63C;
  --sun-light: #FFC857;
  --sun-dark: #E9A52A;
  --sun-pale: #FDF0CC;
  --mint: #E9F4E2;
  --mint-2: #EEF6E4;
  --peach: #FDF0D8;
  --cream: #FDF6E8;
  --r-block: clamp(28px, 4vw, 52px);
  --r-card: 30px;
  --pad-block: clamp(30px, 5vw, 60px) clamp(22px, 4vw, 60px);
  --serif: 'Lora', Georgia, serif;
  --sans: 'Onest', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 28px; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
::selection { background: var(--sky); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { display: block; max-width: 100%; }
input, button { font: inherit; }

.page { padding: 10px 10px 40px; }
/* Hero на всю ширину, остальные секции ограничены контейнером (ширина как у подвала) */
.page > section:not(.hero) { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; }

/* Typography */
.eyebrow { display: block; font-weight: 500; font-size: 15px; color: var(--blue-deep); margin-bottom: 16px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.012em; margin: 0; max-width: 20ch; }
.h2--wide { max-width: 24ch; font-size: clamp(26px, 3.2vw, 44px); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -0.008em; margin: 0; }
.lead { font-size: 16px; line-height: 28px; margin: 16px 0 0; max-width: 46ch; color: var(--muted); }
.text-sm { font-size: 15px; line-height: 26px; margin: 10px 0 0; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 28px; font-size: 16px; font-weight: 500; line-height: 20px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s, color .2s; }
.btn--primary { background: var(--sun); color: var(--ink); font-weight: 600; box-shadow: 0 6px 18px rgba(245,182,60,.38); }
.btn--primary:hover { background: var(--sun-light); color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(245,182,60,.45); }
.btn--primary:active { background: var(--sun-dark); transform: translateY(0); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--sky); color: var(--ink); }
.btn--glass { background: rgba(14,34,64,.38); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn--glass:hover { background: rgba(14,34,64,.55); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 13px 20px; font-size: 15px; }

.input { width: 100%; background: #fff; border: 0; border-radius: 999px; padding: 15px 22px; font-size: 16px; color: var(--ink); }
.input--soft { background: var(--bg-soft); }

.badge-zero { background: var(--sun); border-radius: 999px; padding: 2px 12px; font-weight: 700; }

/* Blocks */
.block { background: var(--bg-soft); border-radius: var(--r-block); margin-top: 10px; padding: var(--pad-block); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px clamp(28px, 4vw, 64px); align-items: center; }
.grid-cards { display: grid; gap: 10px; margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.card { border-radius: var(--r-card); padding: 26px 28px; background: #fff; }
.grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-cards--3 { grid-template-columns: minmax(0, 1fr); } }
.bg-sky { background: var(--sky); } .bg-mint { background: var(--mint); } .bg-mint-2 { background: var(--mint-2); }
.bg-peach { background: var(--peach); } .bg-cream { background: var(--cream); }

/* Header */
.header { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px clamp(16px, 3vw, 32px) 0; margin-bottom: -76px; }
.logo { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 16px 6px 6px; font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 22px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); box-shadow: 0 4px 16px rgba(20,23,28,.10); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--sans); font-size: 13px; font-weight: 700; color: #3A3320; }
.logo__num { color: var(--blue); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 4px 16px rgba(20,23,28,.10); }
.nav a { border-radius: 999px; padding: 4px 14px; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; transition: background .2s; }
.nav a:hover { background: var(--sun-pale); color: var(--ink); }
.nav a:active { background: var(--sun); }
.header__cta { margin-left: auto; padding: 9px 10px 9px 18px; font-size: 14px; }
.header__cta-arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-size: 12px; }

/* Hero */
.hero { position: relative; border-radius: var(--r-block); overflow: hidden; min-height: clamp(540px, 80vh, 760px); display: grid; align-items: end; isolation: isolate; background: #1B3F6B; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: 0; }
.hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,34,64,.72) 0%, rgba(14,34,64,.5) 38%, rgba(14,34,64,0) 72%); }
.hero__body { position: relative; z-index: 2; padding: clamp(130px, 14vw, 170px) clamp(22px, 4vw, 60px) clamp(28px, 4vw, 52px); color: #fff; display: grid; gap: 26px; }
.hero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 16px; max-width: 19ch; }
.hero__title em { font-style: italic; font-weight: 500; }
.hero__text { font-size: clamp(16px, 1.4vw, 20px); line-height: 32px; max-width: 48ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.hero__pill { display: flex; align-items: center; gap: 10px; width: fit-content; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 14px; line-height: 20px; font-weight: 500; box-shadow: 0 4px 16px rgba(20,23,28,.12); }
.hero__pill .badge-zero { padding: 4px 10px; }

/* Transfer */
.transfer__form { display: grid; gap: 10px; width: 100%; max-width: 460px; justify-self: center; }

/* Stats */
.stats { --min: 210px; margin-top: 10px; }
.stat__num { display: block; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -0.012em; }
.stat__num--blue { color: var(--blue); }
.stat__text { display: block; font-size: 15px; line-height: 24px; margin-top: 6px; color: var(--muted); }

/* How it works */
.steps { display: grid; gap: 8px; margin-top: 24px; max-width: 430px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: baseline; background: #fff; border-radius: 22px; padding: 14px 18px; font-size: 15px; line-height: 24px; }
.steps__n { font-weight: 500; font-size: 13px; color: var(--blue); }

.chess { margin: 0; background: #fff; border-radius: var(--r-card); padding: clamp(18px, 2.5vw, 28px); }
.chess__top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 16px; }
.chess__live { display: inline-flex; align-items: center; gap: 7px; }
.chess__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: riva-pulse 1.6s ease-in-out infinite; }
.chess__grid { display: grid; grid-template-columns: minmax(0, 106px) minmax(0, 1fr); gap: 0 12px; }
.chess__rooms { display: grid; grid-template-rows: repeat(5, 1fr); font-size: 13px; line-height: 1.2; color: var(--muted); }
.chess__rooms span { display: flex; align-items: center; }
.chess__board { position: relative; height: 200px; border-radius: 16px; background: #fff; background-image: repeating-linear-gradient(to right, rgba(20,23,28,.09) 0 1px, transparent 1px 14.2857%), repeating-linear-gradient(to bottom, rgba(20,23,28,.09) 0 1px, transparent 1px 20%); }
.chess__booking { position: absolute; height: 20%; padding: 4px 3px; opacity: 0; transition: opacity .45s ease; }
.chess__booking.is-on { opacity: 1; }
.chess__booking::before { content: ''; display: block; height: 100%; border-radius: 9px; background: var(--blue); }
.chess__booking--sun::before { background: var(--sun); }
.chess__days { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--muted-2); padding-top: 8px; }
.toast { margin-top: 18px; background: #fff; border-radius: 24px; padding: 15px 19px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 10px 26px rgba(20,23,28,.10); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.toast.is-on { opacity: 1; transform: none; }
.toast__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: #3A3320; display: grid; place-items: center; font-size: 14px; flex: none; }
.toast__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.toast__text { display: block; font-size: 13px; line-height: 22px; color: var(--muted); }

/* Features */
.feature__icon { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin-bottom: 16px; font-size: 24px; color: var(--blue); box-shadow: 0 2px 8px rgba(20,23,28,.06); }

/* Examples */
.examples { --min: 280px; }
.example { display: grid; gap: 14px; background: #fff; border-radius: var(--r-card); padding: 12px 12px 20px; transition: box-shadow .2s; }
.example:hover { box-shadow: 0 14px 32px rgba(20,23,28,.10); }
.example__shot { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--sky); }
.example__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.example__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; text-decoration: none; color: var(--ink); }
.example__name { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 26px; }
.example__open { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--blue); }
.example__arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-size: 13px; }

/* Pricing */
.pricing__head { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: space-between; align-items: flex-end; }
.period { display: flex; gap: 6px; background: #fff; border-radius: 999px; padding: 5px; }
.period button { font-size: 15px; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; white-space: nowrap; background: transparent; color: var(--ink); }
.period button.is-active { background: var(--blue); color: #fff; }
.pricing__zero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 16px; line-height: 26px; }
.plans { --min: 240px; }
.plan { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-card); padding: 26px; }
.plan--featured { background: var(--sky); color: var(--blue-deep); }
.plan__name { display: flex; align-items: center; gap: 8px; height: 26px; font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 26px; color: var(--ink); }
.plan__tag { font-family: var(--sans); font-weight: 500; font-size: 12px; background: var(--blue); color: #fff; border-radius: 999px; padding: 2px 10px; line-height: 18px; }
.plan__price { display: block; font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: -0.012em; margin-top: 10px; color: var(--ink); }
.plan__note { display: block; font-size: 14px; color: var(--muted-2); }
.plan--featured .plan__note { color: var(--blue-deep); }
.plan__list { display: grid; gap: 6px; margin: 18px 0 22px; padding: 0; list-style: none; font-size: 15px; line-height: 24px; color: var(--muted); }
.plan--featured .plan__list { color: var(--blue-deep); }
.plan .btn { margin-top: auto; }

/* Team */
.team { --gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.team__photo { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--sky); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.person__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.person__name { display: block; font-weight: 600; font-size: 16px; line-height: 22px; }
.person__role { display: block; font-size: 14px; line-height: 22px; color: var(--muted-2); }

/* FAQ */
.faq { align-items: start; }
.faq__title { font-size: clamp(24px, 2.8vw, 38px); max-width: 18ch; }
.faq__list { display: grid; gap: 8px; }
.faq details { background: #fff; border-radius: 24px; padding: 18px 22px; }
.faq summary { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 26px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }

/* Signup */
.signup { align-items: start; }
.signup__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.signup__row .input { flex: 1; min-width: 220px; width: auto; }
.signup__alt { font-size: 14px; line-height: 24px; margin: 14px 0 0; color: var(--blue-deep); }
.demo { background: #fff; border-radius: var(--r-card); padding: clamp(24px, 3vw, 34px); }
.demo .h3 { font-size: 22px; line-height: 30px; }
.demo__form { display: grid; gap: 8px; margin-top: 20px; }
.demo__legal { font-size: 13px; line-height: 22px; margin: 12px 0 0; color: var(--muted-2); }

/* Footer (единая разметка main/blocks/footer.blade.php, те же классы, что в landing/main.scss) */
.footer { --footer-bg: #1f4a5a; --footer-accent: #7fd6e0; margin: 0; width: 100%; background: var(--footer-bg); border-radius: 0; padding: clamp(36px, 6vw, 60px) 0 28px; font-size: 15px; color: rgba(255,255,255,.72); }
.footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px clamp(24px, 4vw, 48px); max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; text-decoration: none; }
.footer__mark { width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.footer__brand-name { font-family: var(--serif); font-weight: 600; font-size: 19px; color: #fff; margin: 0; }
.footer__brand-name .logo__num { color: var(--footer-accent); }
.footer__desc { font-size: 14px; line-height: 1.65; margin: 0; max-width: 290px; }
.footer__heading { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer__link { font-size: 14.5px; line-height: 22px; color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.footer__link:hover { color: #fff; }
.footer__link--main { font-size: 18px; font-weight: 600; color: #fff; }
.footer__org { font-size: 13px; line-height: 20px; color: rgba(255,255,255,.5); }

.footer__bottom { max-width: 1320px; margin: clamp(28px, 5vw, 52px) auto 0; padding: 22px 24px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: rgba(255,255,255,.5); }

/* Страница статьи / документа (main/landing-layout) */
.doc { max-width: 1320px; margin: 0 auto; padding-top: 74px; } /* шапка лежит поверх страницы, как над hero */
.doc__crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 22px clamp(8px, 2vw, 24px) 14px; list-style: none; font-size: 14px; line-height: 22px; color: var(--muted-2); }
.doc__crumbs li + li::before { content: "/"; margin-right: 10px; color: #B9C4D0; }
.doc__crumbs a { color: var(--blue); text-decoration: none; }
.doc__crumbs a:hover { text-decoration: underline; }
.doc__crumbs [aria-current] { color: var(--muted); }
.doc__card { background: var(--bg-soft); border-radius: var(--r-block); padding: var(--pad-block); }
.doc__inner { max-width: 840px; margin: 0 auto; }
.doc__title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: balance; }
.doc__date { display: inline-block; margin-bottom: 30px; padding: 3px 14px; border-radius: 999px; background: #fff; font-size: 14px; line-height: 24px; color: var(--muted-2); }
.doc__body { font-size: 17px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.doc__body > :first-child { margin-top: 0; }
.doc__body p { margin: 0 0 1.1em; }
.doc__body h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.01em; margin: 1.9em 0 .6em; }
.doc__body h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.3; margin: 1.6em 0 .5em; }
.doc__body ul, .doc__body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.doc__body li { margin-bottom: .45em; }
.doc__body li::marker { color: var(--sun-dark); }
.doc__body a { color: var(--blue); text-underline-offset: 3px; }
.doc__body a:hover { color: var(--blue-dark); }
.doc__body strong { font-weight: 600; }
.doc__body .intro-quote { margin: 0 0 1.8em; padding: 20px 24px; background: #fff; border-left: 4px solid var(--sun); border-radius: 20px; font-size: 16.5px; line-height: 1.7; }
.doc__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sky); color: var(--muted); }
.doc__body figure { margin: 1.4em 0 1.8em; }
.doc__body figure.table { overflow-x: auto; background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px #E3ECF7 inset; }
.doc__body table { overflow-wrap: normal; word-break: normal; width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc__body th { min-width: 110px; padding: 13px 16px; background: var(--sky); text-align: left; font-weight: 600; vertical-align: bottom; }
.doc__body td { padding: 13px 16px; border-top: 1px solid #E6EDF6; vertical-align: top; }
.doc__body img { height: auto; margin: 1.2em 0; border-radius: 22px; }
.doc__body hr { margin: 2em 0; border: 0; border-top: 1px solid #DCE6F2; }
.doc__gallery { margin-top: 2.4em; }
.doc__gallery-title { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 14px; }
.doc__gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.doc__gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* Демо-сайт: макет окна браузера со ссылкой на hotel.riva24.ru */
.demosite__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px 16px; margin-top: 30px; }
.demosite__item { display: flex; flex-direction: column; gap: 16px; }
.demosite__caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 6px; }
.demosite__meta { margin: 4px 0 0; }
.demosite__open { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding-top: 2px; font-size: 15px; font-weight: 500; color: var(--blue); text-decoration: none; }
.demosite__open:hover { color: var(--blue-dark); }
.browser { display: block; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(24,42,63,.16); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.browser:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(24,42,63,.22); }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #F4F7FB; border-bottom: 1px solid #E6EDF6; }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #D5DEE9; }
.browser__url { flex: 1; min-width: 0; padding: 4px 14px; border-radius: 999px; background: #fff; font-size: 13px; line-height: 20px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__img { display: block; width: 100%; height: auto; }

/* Список статей */
.alist__lead { max-width: 60ch; margin: 0 0 32px; font-size: 17px; line-height: 28px; color: var(--muted); }
.alist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.acard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: #fff; color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(24,42,63,.12); }
.acard__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.acard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.acard__date { font-size: 13px; line-height: 20px; color: var(--muted-2); }
.acard__title { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -0.008em; margin: 0; }
.acard__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 15px; line-height: 24px; color: var(--muted); }
.acard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 500; color: var(--blue); }
.acard:hover .acard__more { color: var(--blue-dark); }
.alist__pages { margin-top: 28px; }
.alist__pages .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alist__pages .pagination__item { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 40px; justify-content: center; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; text-decoration: none; }
.alist__pages a.pagination__item:hover { background: var(--sun-pale); }
.alist__pages .pagination__item--active { background: var(--sun); font-weight: 600; }
.alist__pages .pagination .icon { width: 14px; height: 14px; }
.alist__pages .pagination .icon-left { transform: rotate(180deg); }

@keyframes riva-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .2 } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chess__dot { animation: none; } }

/* ---- Дополнения для боевой страницы ---- */
.h2--signup { max-width: 22ch; }
.lead--wide { max-width: 60ch; }
.lead--deep { color: var(--blue-deep); }
.eyebrow--blue { color: var(--blue); margin-bottom: 14px; }
.demo__text { max-width: 44ch; }
.demo__success { padding: 12px 0; }
.demo__success .h3 { margin-bottom: 4px; }
[hidden] { display: none !important; }
.btn:disabled { opacity: .6; cursor: default; }

/* Сообщения форм */
.form-msg { border-radius: 16px; padding: 10px 16px; font-size: 14px; line-height: 22px; background: #fff; }
.form-msg--ok { color: #1f6b3a; background: #E4F4E8; }
.form-msg--error { color: #9b2c2c; background: #FBE6E6; }
.form-legal { font-size: 13px; line-height: 22px; margin: 12px 0 0; color: var(--muted-2); }
.form-legal a { color: inherit; }
.signup__row .form-msg { flex-basis: 100%; }

/* Flash */
.flash { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10000; width: min(92%, 500px); padding: 14px 44px 14px 20px; border-radius: 20px; font-size: 15px; box-shadow: 0 10px 26px rgba(20,23,28,.16); }
.flash--error { background: #FBE6E6; color: #9b2c2c; }
.flash--success { background: #E4F4E8; color: #1f6b3a; }
.flash button { position: absolute; top: 8px; right: 14px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; }

/* Шапка: правая часть, выпадающие меню */
.header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__right .header__cta { margin-left: 0; }
.dropdown { position: relative; }
.dropdown__toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 999px; padding: 4px 14px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s; }
.dropdown__toggle:hover { background: var(--sun-pale); }
.dropdown--lang .dropdown__toggle { background: #fff; padding: 9px 14px; box-shadow: 0 4px 16px rgba(20,23,28,.10); }
.dropdown--lang .dropdown__toggle:hover { background: var(--sun-pale); }
.dropdown__toggle .ph-duotone { font-size: 12px; transition: transform .2s; }
.dropdown.is-open .dropdown__toggle .ph-duotone { transform: rotate(180deg); }
.dropdown__menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 20px; box-shadow: 0 12px 30px rgba(20,23,28,.16); }
.dropdown__menu--right { left: auto; right: 0; }
.dropdown.is-open .dropdown__menu { display: block; }
.dropdown__menu a { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 14px; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.dropdown__menu a:hover, .dropdown__menu .is-active a { background: var(--sun-pale); color: var(--ink); }
.nav a { display: inline-flex; align-items: center; }
.header { row-gap: 8px; }

/* Тарифы из БД */
.period button.is-active { background: var(--blue); color: #fff; }
.period-short { display: none; }
@media (max-width: 560px) { .period-full { display: none; } .period-short { display: inline; } .period button { padding: 10px 12px; } }
.plan__desc { margin: 6px 0 0; font-size: 14px; line-height: 22px; color: var(--muted-2); }
.plan--featured .plan__desc { color: var(--blue-deep); }
.pricing-card-new__price-old { display: none; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted-2); }
.old-price-text { text-decoration: line-through; }
.old-price-sale-badge { background: var(--sun); color: var(--ink); border-radius: 999px; padding: 0 8px; font-weight: 600; font-size: 12px; }
.plan__savings { margin-top: 8px; font-size: 13px; line-height: 20px; background: var(--sun-pale); border-radius: 14px; padding: 6px 12px; color: var(--ink); }
.plan__features { margin-bottom: 22px; }
.plan__group { margin: 16px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.plan__group--limit { color: var(--muted-2); }
.plan__features .plan__list { margin: 6px 0 0; }
.plan__list li { position: relative; padding-left: 22px; }
.plan__list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.plan__list li.is-off { color: var(--muted-2); }
.plan__list li.is-off::before { content: '✗'; color: var(--muted-2); }
.plan__list--limits li::before { content: '•'; }
.plan .btn { margin-top: auto; }

/* Модалки регистрации и демо */
.modal { z-index: 9999; display: none; position: fixed; inset: 0; background: rgba(14,34,64,.55); justify-content: center; align-items: center; padding: 16px; }
.modal-content { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 32px; padding: 32px 28px 28px; box-shadow: 0 20px 60px rgba(14,34,64,.35); }
.modal-content h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0 0 6px; text-align: center; }
.modal-subtitle { color: var(--muted); font-size: 15px; line-height: 24px; margin: 0 0 22px; text-align: center; }
.modal-close, .demo-modal-close { position: absolute; top: 12px; right: 18px; font-size: 28px; line-height: 1; color: var(--muted-2); cursor: pointer; }
.modal-close:hover, .demo-modal-close:hover { color: var(--ink); }
.social-auth-buttons { display: grid; gap: 10px; margin-bottom: 4px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 20px; text-decoration: none; transition: background .2s; }
.social-btn--vk { background: #0077FF; color: #fff; }
.social-btn--vk:hover { background: #0066DD; color: #fff; }
.social-btn--yandex { background: var(--bg-soft); color: var(--ink); }
.social-btn--yandex:hover { background: var(--sky); color: var(--ink); }
.yandex-icon { width: 24px; height: 24px; border-radius: 50%; background: #FC3F1D; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; margin: 18px 0; color: var(--muted-2); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(20,23,28,.1); }
.auth-divider span { padding: 0 14px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-control { display: block; width: 100%; border: 0; border-radius: 999px; background: var(--bg-soft); padding: 14px 20px; font-size: 16px; color: var(--ink); }
.modal .flex { display: flex; }
.modal .btn-primary { flex: 1; background: var(--sun); color: var(--ink); font-weight: 600; box-shadow: 0 6px 18px rgba(245,182,60,.38); }
.modal .btn-primary:hover { background: var(--sun-light); }

@media (max-width: 720px) {
  .header__right { width: 100%; margin-left: 0; justify-content: space-between; }
}

/* Уведомление о cookie */
.cookies { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9000; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; max-width: 980px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 16px 20px 16px 26px; box-shadow: 0 12px 36px rgba(20,23,28,.22); }
.cookies__text { margin: 0; flex: 1; min-width: 240px; font-size: 14px; line-height: 22px; color: var(--muted); }
.cookies__actions { display: flex; gap: 8px; }

/* Перенос сайта: две равные колонки, форма по центру правой */
#transfer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { #transfer { grid-template-columns: minmax(0, 1fr); } }
