/* Компактный публичный сайт с полными превью экранов. */
:root {
  --paper: #f6f9fe;
  --ink: #19314d;
  --muted: #52647a;
  --line: #dbe4ef;
  --accent: #245ac7;
  --soft: #eaf0fb;
  --white: #fff;
  --button: #245ac7;
  --button-hover: #184aa9;
}
html[data-theme="dark"] {
  --paper: #111c2c;
  --ink: #eef4ff;
  --muted: #b6c6da;
  --line: #344860;
  --accent: #a2c5ff;
  --soft: #1c304a;
  --white: #19283c;
  --button: #386bd4;
  --button-hover: #4a7de5;
}
body {
  font-size: 13px;
}
.wrap {
  max-width: 1240px;
  padding: 0 32px;
}
.header {
  height: 72px;
  border-bottom: 1px solid var(--line);
}
.header .logo {
  width: 130px;
}
.nav {
  font-size: 12px;
}
.button {
  border-radius: 12px;
  min-height: 44px;
  font-size: 12px;
  padding: 10px 18px;
  /* Обновляет выравнивание и при закешированном базовом CSS. */
  line-height: 1.25;
  text-align: center;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.button:active {
  transform: translateY(1px);
}
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}
.hero-new {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  padding: 36px 0 48px;
}
.hero-new .hero-copy {
  max-width: 480px;
  margin: 0;
  text-align: left;
}
.hero-new h1 {
  max-width: 480px;
  font-size: calc(clamp(36px, 4vw, 54px) - 2px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 750;
  margin: 0 0 20px;
  overflow-wrap: normal;
}
.hero-new .hero-category {
  font-size: 11px;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 14px;
  max-width: none;
}
.hero-new .hero-copy > p:not(.hero-category):not(.note) {
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 22px;
}
.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
/* Разделяет основные действия и компактные ссылки на платформы. */
.hero-new .hero-buttons .button {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 11px;
}
.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.hero-new .hero-platforms .button {
  min-height: 32px;
  padding: 6px 10px;
  gap: 5px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.hero-platform-soon {
  font-size: 9px;
  font-weight: 400;
}
.hero-new .hero-platforms .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hero-new .note {
  font-size: 11px;
  max-width: none;
  margin: 15px 0 0;
}
.hero-product {
  margin-top: 0;
  position: relative;
  min-width: 0;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.product-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  padding: 2px 6px 14px;
  color: var(--muted);
}
.product-caption a {
  font-weight: 700;
}
.product-screen {
  margin: 0;
  min-width: 0;
}
.product-screen > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.product-screen picture {
  display: block;
}
.product-screen img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(58svh, 520px);
  object-fit: contain;
  display: block;
}
.product-screen figcaption {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  padding: 10px 8px 0;
}
.product-screen figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-product .product-screen figcaption {
  color: var(--muted);
}
.hero-product .product-screen > a {
  box-shadow: 0 20px 60px #24436612;
}
.hero-product::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 8%;
  right: 8%;
  height: 35px;
  border-radius: 50%;
  background: var(--line);
  filter: blur(35px);
  z-index: -1;
}
.link-playground {
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  margin: 0 0 56px;
}
.playground-copy h2,
.journey h2 {
  font-size: calc(clamp(26px, 2.7vw, 34px) - 2px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.playground-copy > p {
  color: var(--muted);
  max-width: 480px;
}
.playground-copy label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: 26px 0 9px;
}
.url-entry {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.url-entry input {
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #a6b9d2;
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 12px;
}
.url-entry .button {
  flex: 0 0 auto;
}
.example-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.example-chips span {
  font-size: 10px;
  color: var(--muted);
}
.example-chips button {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 7px 14px;
  min-height: 40px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 11px;
}
.example-chips button:hover {
  border-color: var(--accent);
}
.fine-print {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
#demo-status {
  font-size: 11px;
  min-height: 24px;
  color: var(--accent);
  margin-bottom: 0;
}
.link-result {
  min-height: 260px;
  border: 1px dashed #aebfd8;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  display: grid;
  align-content: center;
}
.empty-card {
  padding: 35px;
  text-align: center;
}
.empty-card > span {
  font-size: 38px;
  color: var(--accent);
}
.empty-card h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 14px 0;
}
.empty-card p {
  font-size: 12px;
  color: var(--muted);
}
.link-result.has-result {
  display: block;
  border: 1px solid var(--line);
  animation: card-in 0.35s ease-out;
}
.link-result > img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.result-body {
  padding: 18px;
}
.result-kind {
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.result-body label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.result-body input {
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  width: 100%;
  background: var(--white);
  color: var(--ink);
}
.result-body p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.result-address {
  overflow-wrap: anywhere;
}
.result-body .button {
  font-size: 11px;
  width: 100%;
}
.journey {
  padding: 0 0 56px;
}
.journey .section-intro {
  max-width: 760px;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.journey-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 20px;
}
.journey-steps h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.journey-steps p {
  font-size: 13px;
  color: var(--muted);
  max-width: 310px;
  margin: 0;
}
.product-stories {
  padding: 48px 0 12px;
  border-top: 1px solid var(--line);
}
.product-stories > .section-title {
  max-width: 720px;
  font-size: calc(clamp(28px, 3vw, 36px) - 2px);
  margin-bottom: 32px;
}
.product-story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.story-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.story-reverse .story-image {
  grid-column: 1;
  grid-row: 1;
}
.story-reverse .story-copy {
  grid-column: 2;
  grid-row: 1;
}
/* Нумерация связывает желания, карту, группу, планы и праздничные сценарии. */
.story-step {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-story {
  scroll-margin-top: 24px;
}
.story-copy h3 {
  font-size: calc(clamp(26px, 2.6vw, 32px) - 2px);
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin: 15px 0 22px;
}
.story-copy p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 18px;
}
.feature-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 28px;
  color: var(--accent);
  background: var(--soft);
}
.story-image {
  display: block;
  overflow: hidden;
  border-radius: 22px;
}
.story-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.text-link {
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.screen-tour {
  padding: 12px 0 56px;
}
.tour-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tour-tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 44px;
  padding: 8px 20px;
  cursor: pointer;
}
.tour-tabs button[aria-selected="true"] {
  background: var(--button);
  color: white;
  border-color: var(--button);
}
.screen-tour .section-title {
  font-size: calc(clamp(26px, 2.7vw, 32px) - 2px);
}
.screen-tour .section-intro {
  margin-bottom: 24px;
}
.screen-tour .product-screen img {
  max-height: min(46svh, 480px);
}
.screen-tour .product-screen > a {
  box-shadow: 0 20px 70px #29477712;
}
.guides-preview {
  padding-bottom: 56px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 15px;
}
.guide-card h3,
.guide-card h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 16px 0 8px;
  letter-spacing: -0.5px;
}
.guide-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
}
.guide-card > span {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-card:hover h3,
.guide-card:hover h2 {
  color: var(--accent);
}
.pricing {
  padding-top: 40px;
}
.close {
  background: var(--accent);
  color: white;
}
.close p {
  color: #e0eaff;
}
.close .button {
  color: var(--accent);
  background: white;
}
.footer-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
}
.footer-resources a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.brand-text {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.5px;
  flex-shrink: 0;
}
.brand-text span {
  font-weight: 450;
}
.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: auto;
  font-size: 12px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  padding: 26px 0;
}
.breadcrumbs a {
  text-decoration: underline;
}
.feature-hero {
  max-width: 900px;
  padding: 20px 0 32px;
}
.feature-hero h1 {
  font-size: calc(clamp(34px, 4vw, 48px) - 2px);
  line-height: 1.13;
  letter-spacing: -2.6px;
  margin: 0 0 24px;
  text-wrap: balance;
}
.feature-hero > p {
  max-width: 740px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 25px;
}
.feature-hero .article-byline {
  font-size: 11px;
  margin: 24px 0 0;
}
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  margin: 44px 0 56px;
  align-items: start;
}
.article-toc {
  position: sticky;
  top: 24px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-toc > p {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.article-toc a {
  color: var(--muted);
  line-height: 1.7;
}
.article-toc a:hover {
  color: var(--accent);
}
.article-content {
  max-width: 750px;
}
.article-content section {
  scroll-margin-top: 30px;
  margin-bottom: 44px;
}
.article-content h2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 0 0 20px;
}
.article-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 18px;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}
.related-links a {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 17px;
  border-radius: 10px;
  font-size: 12px;
}
.simple-footer {
  border-top: 1px solid var(--line);
  padding: 6px 0;
  display: flex;
  gap: 0 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.simple-footer a,
.simple-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.simple-footer button {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
}
.guide-index {
  margin: 0 0 60px;
}
.hero-new .hero-copy {
  animation: hero-in 0.65s ease-out;
}
.hero-product {
  animation: product-in 0.8s ease-out;
}
.faq details[open] > p {
  animation: card-in 0.2s ease-out;
}
input:focus-visible {
  outline: 3px solid #7da7ee;
  outline-offset: 3px;
}
a:hover {
  text-underline-offset: 5px;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes product-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes card-in {
  from {
    opacity: 0.35;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Невысокие окна ноутбуков сохраняют первый экран целиком. */
@media (min-width: 761px) and (max-height: 720px) {
  .hero-new {
    padding: 24px 0 32px;
  }
  .hero-new h1 {
    font-size: 40px;
    margin-bottom: 16px;
  }
  .hero-new .hero-copy > p:not(.hero-category):not(.note) {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero-new .note {
    font-size: 10px;
    margin-top: 12px;
  }
  .hero-product .product-screen img {
    max-height: 52svh;
  }
}
@media (max-width: 1000px) {
  .wrap {
    padding: 0 28px;
  }
  .hero-new {
    gap: 24px;
  }
  .hero-new h1 {
    font-size: 38px;
  }
  .link-playground {
    padding: 32px;
    gap: 28px;
  }
  .product-story {
    gap: 38px;
  }
  .journey-steps {
    gap: 25px;
  }
  .article-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 36px;
  }
  .public-nav {
    gap: 15px;
  }
  .product-caption {
    font-size: 10px;
  }
  .guide-grid {
    gap: 22px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }
  .header {
    height: 64px;
    gap: 12px;
  }
  .hero-new {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0 36px;
  }
  .hero-new h1 {
    font-size: calc(clamp(32px, 8vw, 42px) - 2px);
    letter-spacing: -1.9px;
  }
  .hero-new .hero-category {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .hero-new .hero-copy > p:not(.hero-category):not(.note) {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .hero-buttons {
    gap: 10px;
  }
  .hero-new .hero-buttons .button {
    max-width: none;
    width: 100%;
  }
  .hero-new .note {
    font-size: 10px;
  }
  .hero-product {
    margin-top: 0;
    padding: 8px;
    border-radius: 15px;
  }
  .product-caption {
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
    line-height: 1.5;
    padding: 2px 0 16px;
  }
  .product-caption > a {
    display: none;
  }
  .product-screen img {
    max-height: min(52svh, 420px);
  }
  .product-screen figcaption {
    font-size: 9px;
  }
  .product-screen > a {
    border-radius: 8px;
  }
  /* Мобильное превью занимает ширину карточки и сохраняет весь экран. */
  .hero-product .product-screen > a {
    width: 100%;
    max-width: 300px;
  }
  .hero-product .product-screen img {
    width: 100%;
    max-height: none;
  }
  .link-playground {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
    margin: 0 0 40px;
    border-radius: 20px;
  }
  .playground-copy h2,
  .journey h2 {
    font-size: 26px;
    letter-spacing: -1px;
  }
  .url-entry .button {
    width: 100%;
  }
  .url-entry input {
    font-size: 14px;
  }
  .link-result {
    min-height: 240px;
  }
  .journey {
    padding-bottom: 55px;
  }
  .journey-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .journey-steps article {
    position: relative;
    padding-left: 60px;
  }
  .journey-number {
    position: absolute;
    left: 0;
    top: 0;
  }
  .journey-steps h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }
  .journey-steps p {
    max-width: none;
  }
  .product-stories {
    padding-top: 45px;
  }
  .product-stories > .section-title {
    font-size: 26px;
    margin-bottom: 28px;
  }
  .product-story,
  .story-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 50px;
  }
  .story-reverse .story-copy,
  .story-reverse .story-image {
    grid-column: auto;
    grid-row: auto;
  }
  .story-copy h3 {
    font-size: 25px;
    margin: 12px 0;
  }
  .story-copy p {
    font-size: 13px;
  }
  .story-image {
    border-radius: 15px;
  }
  .screen-tour {
    padding: 5px 0 55px;
  }
  .screen-tour .section-title {
    font-size: 28px;
  }
  .tour-tabs {
    gap: 7px;
  }
  .tour-tabs button {
    flex: 1;
    padding: 9px 12px;
    font-size: 11px;
  }
  .guides-preview {
    padding-bottom: 55px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .guide-card img {
    aspect-ratio: 16/9;
  }
  .guide-card h3 {
    font-size: 20px;
    margin-top: 15px;
  }
  .guide-card p {
    margin-bottom: 12px;
  }
  .footer-resources {
    gap: 6px 23px;
    font-size: 11px;
  }
  .close {
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .close h2 {
    font-size: 30px;
  }
  .public-nav {
    display: none;
  }
  .header .logo {
    margin-right: auto;
  }
  .feature-hero {
    padding: 15px 0 35px;
  }
  .feature-hero h1 {
    font-size: 32px;
    letter-spacing: -1.5px;
  }
  .feature-hero > p {
    font-size: 15px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0 55px;
  }
  .article-toc {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }
  .article-content h2 {
    font-size: 24px;
  }
  .article-content p {
    font-size: 14px;
  }
  .related-links {
    gap: 8px;
  }
  .related-links a {
    font-size: 10px;
  }
  .simple-footer {
    gap: 0 14px;
  }
  .breadcrumbs {
    font-size: 10px;
    padding: 22px 0;
  }
  .actions {
    gap: 8px;
  }
  .header-control {
    width: 36px;
  }
  .footer-main {
    gap: 0 16px;
  }
  .hero-new .hero-product .product-screen figcaption {
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.mobile-site-menu {
  display: none;
}
.header {
  position: relative;
}
@media (max-width: 760px) {
  .header .logo {
    width: 112px;
  }
  .header .actions {
    gap: 6px;
  }
  .header .actions .header-control {
    width: 32px;
    height: 36px;
  }
  .header .actions .button {
    font-size: 10px;
    min-height: 38px;
    padding: 8px 12px;
  }
  .mobile-site-menu {
    display: block;
    position: absolute;
    top: 54px;
    left: 0;
    z-index: 8;
    font-size: 10px;
  }
  .mobile-site-menu summary {
    cursor: pointer;
    padding: 9px 0;
    min-height: 36px;
    color: var(--muted);
  }
  .mobile-site-menu nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 230px;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px #24436612;
  }
  .mobile-site-menu nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .hero-new {
    padding-top: 40px;
  }
}

/* Сведения и предупреждения настоящего импорта. */
.result-warnings {
  padding-left: 1.2rem;
  font-size: calc(0.875rem - 2px);
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.result-warnings li + li {
  margin-top: 0.5rem;
}
.result-body .result-facts {
  font-weight: 600;
  color: var(--ink);
}
.result-body p {
  overflow-wrap: anywhere;
}

/* Списки и справочные таблицы в публичных руководствах. */
.article-content {
  min-width: 0;
}
.article-content h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 30px 0 16px;
}
.article-list,
.article-links {
  padding-left: 1.4rem;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.article-list li + li,
.article-links li + li {
  margin-top: 10px;
}
.article-links a,
.article-table a,
.article-byline a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.article-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
}
.article-table caption {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  background: var(--soft);
}
.article-table th,
.article-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.article-table thead {
  background: var(--white);
}
.article-table tbody th {
  font-weight: 650;
  min-width: 145px;
}
.article-table td {
  color: var(--muted);
}
@media (max-width: 760px) {
  .article-content h3 {
    font-size: 18px;
  }
  .article-list,
  .article-links {
    font-size: 13px;
  }
}

/* Крупные фрагменты сохраняют читаемый масштаб настоящего интерфейса. */
.screen-tour .tour-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 2.4fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}
.tour-copy {
  min-width: 0;
}
.tour-eyebrow {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}
.tour-copy h3 {
  font-size: calc(clamp(23px, 2.1vw, 29px) - 2px);
  line-height: 1.2;
  margin: 16px 0;
  letter-spacing: -0.025em;
}
.tour-copy > p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
}
.tour-feature-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 5px;
}
.tour-copy .tour-hint {
  font-size: 10px;
  line-height: 1.6;
  margin: 28px 0 0;
}
.tour-preview {
  min-width: 0;
  margin: 0;
}
.tour-preview > a {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px #3d352c0b;
  cursor: zoom-in;
  background: var(--bg);
}
.tour-preview picture {
  display: block;
}
.tour-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}
.tour-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 3px 12px #3d352c12;
}
.tour-preview figcaption {
  padding: 12px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.tour-preview a:focus-visible {
  outline: 3px solid var(--button);
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .screen-tour .tour-layout {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 22px;
  }
  .tour-copy {
    max-width: 640px;
  }
  .tour-copy .tour-hint {
    display: none;
  }
  .tour-copy > p {
    margin-bottom: 12px;
  }
  .tour-copy h3 {
    margin: 10px 0;
  }
}
@media (max-width: 760px) {
  .screen-tour .tour-layout {
    padding: 18px;
    gap: 20px;
    border-radius: 18px;
  }
  .tour-copy h3 {
    font-size: 22px;
  }
  .tour-copy > p {
    font-size: 12px;
  }
  .tour-preview {
    max-width: 390px;
    width: 100%;
    margin-inline: auto;
  }
  .tour-preview > a {
    overflow: hidden;
  }
  .tour-preview img {
    width: 100%;
    height: auto;
  }
  .tour-expand {
    bottom: 10px;
    right: 10px;
  }
  .tour-preview figcaption {
    line-height: 1.5;
  }
}

@media (min-width: 1001px) {
  .screen-tour {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 32px;
    padding-bottom: 40px;
    align-items: end;
  }
  .screen-tour .section-intro {
    margin: 0;
  }
  .screen-tour .section-intro p {
    margin-bottom: 0;
    max-width: 610px;
  }
  .screen-tour .tour-tabs {
    margin: 0;
    align-self: center;
  }
  .screen-tour .tour-layout {
    grid-column: 1/-1;
  }
}

/* Единый масштаб контурных значков в публичном интерфейсе. */
.icon {
  stroke-width: 1.7;
  vertical-align: middle;
}
.feature-symbol {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: inset 0 1px 0 #ffffff55;
}
.feature-symbol .icon {
  width: 29px;
  height: 29px;
}
.product-story:nth-of-type(1) .feature-symbol {
  color: #526d59;
  background: color-mix(in srgb, #79977b 13%, var(--white));
}
.product-story:nth-of-type(2) .feature-symbol {
  color: var(--accent);
  background: var(--soft);
}
.product-story:nth-of-type(3) .feature-symbol {
  color: #9a6471;
  background: color-mix(in srgb, #c38c9a 13%, var(--white));
}
[data-theme="dark"] .product-story:nth-of-type(1) .feature-symbol {
  color: #b0cbb6;
}
[data-theme="dark"] .product-story:nth-of-type(3) .feature-symbol {
  color: #e3b5c0;
}
.empty-card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}
.empty-card-icon .icon {
  width: 30px;
  height: 30px;
}
.example-chips button,
.tour-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.example-chips .icon {
  width: 17px;
  height: 17px;
}
.tour-tabs .icon {
  width: 18px;
  height: 18px;
}
.tour-feature-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tour-feature-link .icon,
.text-link .icon {
  width: 18px;
  height: 18px;
}
.tour-expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tour-expand .icon {
  width: 16px;
  height: 16px;
}
.pricing-features .pricing-check {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: 0 0 17px;
  color: var(--accent);
}
.faq summary,
.pricing-terms summary,
.mobile-site-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker,
.pricing-terms summary::-webkit-details-marker,
.mobile-site-menu summary::-webkit-details-marker {
  display: none;
}
.pricing-terms summary::before {
  display: none;
}
.disclosure-icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.details[open] > summary .disclosure-icon,
details[open] > summary .disclosure-icon {
  transform: rotate(180deg);
}
.pricing-terms summary {
  justify-content: flex-start;
}
@media (max-width: 760px) {
  .tour-tabs button {
    gap: 5px;
    padding-inline: 9px;
  }
  .tour-tabs .icon {
    width: 16px;
    height: 16px;
  }
  .feature-symbol {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
  .feature-symbol .icon {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .disclosure-icon {
    transition: none;
  }
}

/* Список руководств начинается сразу после вводного текста, без экрана приложения. */
.feature-hero:has(+ .guide-index) {
  max-width: 940px;
  padding-bottom: 10px;
}
.guide-index {
  margin: 8px 0 56px;
}
.guide-index .guide-card {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* Обложки статей сохраняют исходную композицию без обрезки. */
.article-cover {
  margin: 0 0 32px;
}
.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Видеозапись помещается в статью без обрезки и автозапуска. */
.article-video {
  margin: 24px 0;
}
.article-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.article-video video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.article-video figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.article-video figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Подробности общего парсинга доступны без перегрузки первого экрана. */
.import-explainer {
  font-size: 11px;
  margin-top: 14px;
  color: var(--muted);
}
.import-explainer summary {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
}
.import-explainer summary::-webkit-details-marker {
  display: none;
}
.import-explainer p {
  font-size: 11px;
  line-height: 1.7;
  margin: 10px 0;
}
.import-explainer > a {
  display: inline-block;
  margin: 6px 0 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.result-optional {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* Страницы возможностей читаются как руководства: пример следует за объяснением. */
.feature-reading .feature-hero {
  max-width: 960px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.feature-reading .feature-hero h1 {
  max-width: 930px;
}
.feature-reading .article-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  margin-top: 36px;
}
.feature-reading .article-content {
  max-width: 740px;
}
.feature-reading .article-content > section {
  margin-bottom: 42px;
}
.feature-reading .article-content p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
}
.feature-reading .article-content h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.6px;
}
.feature-reading .article-toc {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  gap: 12px;
}
.feature-reading .article-toc > p {
  font-size: 10px;
  color: var(--muted);
}
.feature-reading .article-toc a {
  font-size: 11px;
  line-height: 1.6;
}
.feature-reading-screen {
  margin: 28px 0 0;
}
.feature-reading-screen > a {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: zoom-in;
}
.feature-reading-screen picture,
.feature-reading-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.feature-reading-screen figcaption {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.reading-screen-open {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 10px;
}
.reading-screen-open .icon {
  width: 16px;
  height: 16px;
}
.feature-mobile-toc {
  display: none;
}
@media (max-width: 1000px) and (min-width: 761px) {
  .feature-reading .article-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .feature-reading .feature-hero {
    padding: 12px 0 24px;
  }
  .feature-reading .feature-hero h1 {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 18px;
  }
  .feature-reading .feature-hero > p {
    font-size: 14px;
  }
  .feature-reading .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
  }
  .feature-reading .article-toc {
    display: none;
  }
  .feature-reading .article-content h2 {
    font-size: 23px;
  }
  .feature-reading .article-content p {
    font-size: 14px;
    line-height: 1.8;
  }
  .feature-mobile-toc {
    display: block;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .feature-mobile-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    cursor: pointer;
    list-style: none;
  }
  .feature-mobile-toc summary::-webkit-details-marker {
    display: none;
  }
  .feature-mobile-toc nav {
    display: grid;
    gap: 14px;
    padding: 8px 0 22px;
  }
  .feature-mobile-toc nav a {
    color: var(--muted);
    line-height: 1.6;
  }
  .feature-reading-screen {
    margin-top: 22px;
  }
  .feature-reading-screen > a {
    max-width: 390px;
    margin-inline: auto;
  }
  .reading-screen-open {
    bottom: 10px;
    right: 10px;
  }
}

/* Браузерное чтение на лендинге явно показывает состояние подключения расширения. */
.browser-preview-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.browser-preview-actions p {
  margin: 0;
}
.browser-preview-actions > a {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Прижимает подвал коротких публичных страниц к нижней границе окна. */
body > .wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
}
body > .wrap > header,
body > .wrap > footer {
  flex-shrink: 0;
}
body > .wrap > main {
  flex: 1 0 auto;
}
body > .wrap > footer {
  margin-top: auto;
}

/* Preserves the full English interface and its mobile screenshot. */
.story-screenshot picture {
  display: block;
}
.story-screenshot img {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Общее меню и оглавление сохраняют отступы и на узком экране. */
.public-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 760px) {
  .header:has(.mobile-site-menu) + main > .breadcrumbs {
    padding-top: 52px;
  }
  .feature-mobile-toc {
    margin-bottom: 24px;
  }
  .article-layout > .article-toc {
    display: none;
  }
}

/* Shared regional controls stay together as the header wraps. */
.region-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.header-select {
  min-height: 40px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font:
    11px Manrope,
    sans-serif;
  padding: 8px 10px;
  cursor: pointer;
}
.header-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.country-select {
  width: 164px;
}
.language-select {
  width: 66px;
}
.header .actions {
  min-width: 0;
}
@media (max-width: 760px) {
  .header {
    height: auto;
    min-height: 104px;
    padding-block: 12px;
    align-items: flex-start;
  }
  .header .logo {
    margin-top: 8px;
  }
  .header .actions {
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }
  .region-controls {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
  }
  .header-select {
    min-height: 38px;
    font-size: 10px;
    padding-inline: 6px;
  }
  .country-select {
    width: 88px;
  }
  .language-select {
    width: 60px;
  }
  .mobile-site-menu {
    top: 62px;
  }
  .header:has(.mobile-site-menu) + main > .breadcrumbs {
    padding-top: 20px;
  }
}

/* Первый экран оставляет место продукту, настройки доступны из одного меню. */
.mobile-menu-glyph {
  display: none;
}
@media (max-width: 760px) {
  .header {
    min-height: 64px;
    height: 64px;
    padding-block: 8px;
    align-items: center;
    gap: 8px;
  }
  .header .logo {
    margin-top: 0;
    width: 112px;
  }
  .header .actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin-right: 48px;
  }
  .header .actions > .region-controls,
  .header .actions > .theme-control {
    display: none;
  }
  .header .actions .button {
    min-height: 44px;
    padding: 8px 14px;
  }
  .mobile-site-menu {
    top: 10px;
    right: 0;
    left: auto;
    font-size: 11px;
  }
  .mobile-site-menu summary {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--paper);
  }
  .mobile-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mobile-menu-glyph {
    display: block;
    font-size: 20px;
    line-height: 1;
  }
  .mobile-site-menu[open] {
    width: min(310px, calc(100vw - 32px));
    padding-top: 50px;
  }
  .mobile-site-menu[open] summary {
    position: absolute;
    top: 0;
    right: 0;
  }
  .mobile-site-menu nav {
    min-width: 0;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: none;
  }
  .mobile-site-menu nav a {
    min-height: 44px;
  }
  .mobile-header-settings {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 16px 30px #00000012;
  }
  .mobile-header-settings .region-controls {
    order: 0;
    flex-basis: auto;
    flex: 1;
    justify-content: flex-start;
  }
  .mobile-header-settings .region-country {
    width: 134px;
  }
  .mobile-header-settings .region-language {
    width: 64px;
  }
  .mobile-header-settings .region-trigger {
    min-height: 44px;
  }
  .mobile-header-settings .theme-control {
    min-height: 44px;
    width: 44px;
  }
  .hero-new {
    padding-top: 24px;
    padding-bottom: 32px;
    gap: 24px;
  }
  .hero-new .hero-category {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .hero-new h1 {
    font-size: calc(clamp(29px, 7.8vw, 38px) - 2px);
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
  }
  .hero-new .hero-copy > p:not(.hero-category):not(.note) {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .hero-new .hero-buttons {
    gap: 8px;
  }
  .hero-new .hero-buttons .button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 11px;
  }
  .hero-new .hero-copy .note {
    font-size: 9px;
    line-height: 1.55;
    margin-top: 12px;
  }
  .hero-new .hero-product {
    padding: 12px;
  }
  .pricing-audience-heading {
    min-height: 0;
    margin-bottom: 12px;
  }
  .pricing-audience-heading h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .pricing-audience-heading p {
    font-size: 11px;
    line-height: 1.55;
  }
  .pricing-options {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    padding: 2px 1px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .pricing-option {
    flex: 0 0 86%;
    scroll-snap-align: start;
    padding: 18px;
  }
  .pricing-option-heading {
    min-height: 48px;
  }
  .pricing-option-heading h4 {
    font-size: 16px;
  }
  .pricing-features {
    font-size: 10px;
    grid-auto-rows: auto;
    gap: 8px;
  }
  .pricing-option-note {
    font-size: 10px;
    min-height: 36px;
  }
  .pricing-option-price {
    margin-top: 12px;
  }
  .pricing-options:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 14px;
  }
}

/* Открывает запись рядом с главным примером интерфейса. */
.demo-video-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.demo-video-button:hover {
  background: var(--soft);
}
.demo-video-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Объединяет регион и оформление в одну панель рядом со входом. */
.public-settings {
  position: relative;
}
.header .actions .settings-control {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}
.settings-control::-webkit-details-marker {
  display: none;
}
.public-settings[open] > summary {
  background: var(--soft);
}
.public-settings-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 40px #00000020;
  font-size: 12px;
}
.public-settings-panel > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}
.public-settings-panel .region-controls {
  display: grid;
  gap: 10px;
  order: 0;
}
.public-settings-panel .settings-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.public-settings-panel > .settings-row {
  margin-top: 10px;
}
.public-settings-panel .region-trigger,
.header .actions .public-settings-panel .theme-control,
.public-settings-panel .header-select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  font-size: 12px;
}
.header .actions .public-settings-panel .theme-control {
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
}
.public-settings-panel .theme-control[hidden] {
  display: none;
}
.settings-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .public-settings {
    position: static;
  }
  .public-settings-panel {
    top: calc(100% + 4px);
    right: 0;
  }
  .mobile-site-menu nav {
    border-radius: 14px;
  }
}
@media (max-width: 380px) {
  .header .logo {
    width: 96px;
  }
  .header .actions .button {
    padding-inline: 10px;
  }
}

/* Оставляет над превью одну компактную кнопку видео. */
.hero-product .product-caption {
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}
.product-demo-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.hero-product .demo-video-button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 8px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .hero-platforms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-new .hero-platforms .button {
    min-height: 44px;
  }
  .hero-product .product-caption {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .hero-product .demo-video-button {
    min-height: 44px;
  }
}

/* Встроенный интерактивный пример использует палитру и плотность приложения. */
.interactive-tour {
  scroll-margin-top: 24px;
}
.interactive-tour .demo-shell {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 0 26px 10px;
  overflow: hidden;
}
.interactive-tour [hidden] {
  display: none !important;
}
.demo-shell button,
.demo-dialog button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.demo-shell button:focus-visible,
.demo-dialog button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.demo-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.demo-shell-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-shell-bar > div > .icon {
  width: 23px;
  height: 23px;
  color: var(--accent);
}
.demo-shell-bar strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.demo-shell-bar small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.demo-reset {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  font-size: calc(12px !important - 2px);
  color: var(--muted) !important;
  min-height: 40px;
  padding: 5px;
}
.demo-reset .icon {
  width: 16px;
  height: 16px;
}
.demo-section-intro {
  padding: 22px 0 18px;
}
.demo-section-intro h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 7px;
  letter-spacing: -0.5px;
}
.demo-section-intro p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.demo-wish-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.demo-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  max-width: 510px;
  flex: 1;
}
.demo-search .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.demo-search input {
  min-width: 0;
  width: 100%;
  font: inherit;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  min-height: 42px;
  outline-offset: 2px;
}
[data-demo-count] {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}
.demo-filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 24px;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 10px;
  transition: background 0.15s ease;
}
.demo-filters button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--accent);
  border-color: var(--accent);
}
.demo-wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.demo-wish {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.demo-wish-open {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: none;
  border: 0;
  min-height: 128px;
}
.demo-wish-open > img {
  display: block;
  width: 94px;
  height: 100px;
  object-fit: cover;
  border-radius: 9px;
}
.demo-wish-open > span {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.demo-wish-open small {
  color: var(--muted);
  font-size: 9px;
}
.demo-wish-open strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.demo-wish-open span span {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
}
.demo-wish-open:hover strong {
  color: var(--accent);
}
.demo-wish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 4px 8px;
  gap: 8px;
}
.demo-wish-foot button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  min-height: 38px;
  border-radius: 8px;
  background: none;
  font-size: 9px;
  color: var(--muted);
  padding: 7px;
}
.demo-wish-foot .icon {
  width: 16px;
  height: 16px;
}
.demo-wish-foot button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--soft);
}
.demo-wish-foot button[aria-pressed="true"] .icon {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}
.demo-wish-foot button:hover {
  background: var(--soft);
}
.demo-empty,
.demo-plan-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 24px 0;
  line-height: 1.7;
}
.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 8px;
}
.demo-bottom p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.demo-bottom a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
}
.demo-bottom a .icon {
  width: 16px;
  height: 16px;
}
.demo-live {
  font-size: 10px;
  color: var(--accent);
  margin: 5px 0;
  min-height: 18px;
}
.demo-map-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}
.demo-place-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-place {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 9px;
  min-height: 74px;
}
.demo-place[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft);
}
.demo-place img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 7px;
}
.demo-place > span {
  min-width: 0;
  flex: 1;
}
.demo-place strong {
  display: block;
  font-size: 10px;
  line-height: 1.4;
}
.demo-place small {
  display: block;
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
}
.demo-place .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.demo-place-detail {
  display: grid;
  gap: 8px;
  padding: 12px 4px 0;
}
.demo-place-detail > strong {
  font-size: 12px;
  line-height: 1.4;
}
.demo-place-detail p {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.demo-kind {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.demo-place-open {
  justify-self: start;
  font-size: calc(12px !important - 2px);
  border: 0;
  background: none;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 32px;
}
.demo-map-link {
  font-size: 9px;
  color: var(--accent);
  text-underline-offset: 4px;
  text-decoration: underline;
}
.demo-map-frame {
  position: relative;
  min-width: 0;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}
.demo-map {
  position: absolute;
  inset: 0;
  min-height: 390px;
}
.demo-map-status {
  position: absolute;
  bottom: 32px;
  left: 12px;
  max-width: calc(100% - 72px);
  margin: 0;
  z-index: 2;
  padding: 7px 10px;
  background: var(--white);
  color: var(--muted);
  border-radius: 7px;
  font-size: 8px;
  line-height: 1.5;
  pointer-events: none;
}
.demo-map-retry {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: calc(12px !important - 2px);
}
.demo-map-pin {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 12px #3d352c44;
  background: #5a7b61;
  color: white !important;
}
.demo-map-pin span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
}
.demo-map-pin[aria-pressed="true"] {
  background: var(--accent);
  box-shadow:
    0 0 0 5px #80684f33,
    0 3px 12px #3d352c44;
}
.demo-plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.demo-calendar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 16px;
}
.demo-calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.demo-calendar-heading strong {
  font-size: 14px;
}
.demo-calendar-heading span {
  font-size: 9px;
  color: var(--muted);
}
.demo-weekdays,
.demo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.demo-weekdays {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
}
.demo-calendar-day {
  min-height: 55px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: calc(13px !important - 2px);
}
.demo-calendar-day[aria-pressed="true"] {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.demo-calendar-day.is-outside {
  opacity: 0.35;
  cursor: default;
}
.demo-day-dot {
  font-size: 7px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
}
.demo-day-plans h4 {
  font-size: 14px;
  margin: 2px 0 14px;
}
[data-demo-plans] {
  display: grid;
  gap: 12px;
}
.demo-plan-card {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.demo-plan-heading {
  display: flex;
  align-items: start;
  gap: 12px;
}
.demo-plan-heading time {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.7;
}
.demo-plan-open {
  padding: 0;
  min-height: 24px;
  font-size: calc(15px !important - 2px);
  font-weight: 700 !important;
  text-align: left;
  background: none;
  border: 0;
  line-height: 1.4;
}
.demo-plan-facts {
  font-size: 9px;
  color: var(--muted);
  margin: 9px 0 12px;
}
.demo-plan-people {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
}
.demo-avatars {
  display: flex;
  padding-left: 4px;
}
.demo-avatars span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -4px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 7px;
}
.demo-rsvp {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.demo-reply {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  font-size: calc(11px !important - 2px);
  padding: 7px 12px;
  min-height: 34px;
}
.demo-reply[aria-pressed="true"] {
  background: var(--accent);
  color: white !important;
  border-color: var(--accent);
}
.demo-dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  box-shadow: 0 24px 90px #20180e40;
}
.demo-dialog::backdrop {
  background: #30271c80;
  backdrop-filter: blur(4px);
}
.demo-dialog-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.demo-dialog-copy {
  padding: 24px;
}
.demo-dialog-copy h3 {
  font-size: 26px;
  line-height: 1.2;
  margin: 10px 0 14px;
  letter-spacing: -0.6px;
}
.demo-dialog-copy > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.demo-dialog-copy .demo-dialog-facts {
  font-size: 10px;
  color: var(--accent);
}
.demo-dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.demo-action {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff !important;
  font-size: calc(14px !important - 2px);
  font-weight: 600 !important;
}
.demo-action.secondary {
  color: var(--accent) !important;
  background: transparent;
}
.demo-dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  background: var(--white);
  color: var(--ink);
}
.demo-dialog-copy .demo-dialog-note {
  font-size: 9px;
  margin: 18px 0 0;
}
@media (min-width: 761px) {
  [data-demo-view]:not([hidden]) {
    animation: card-in 0.18s ease-out;
  }
}
@media (max-width: 1050px) {
  .demo-wishes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-map-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .demo-plans-layout {
    gap: 16px;
  }
  .demo-calendar {
    padding: 12px;
  }
  .demo-calendar-day {
    min-height: 48px;
  }
}
@media (max-width: 760px) {
  .interactive-tour .demo-shell {
    padding: 0 16px 8px;
    border-radius: 17px;
  }
  .demo-shell-bar {
    padding: 14px 0;
    gap: 8px;
    align-items: start;
  }
  .demo-shell-bar > div {
    gap: 7px;
  }
  .demo-shell-bar strong {
    font-size: 12px;
  }
  .demo-shell-bar small {
    font-size: 8px;
    max-width: 150px;
  }
  .demo-reset {
    font-size: calc(10px !important - 2px);
    gap: 4px;
    padding: 0;
    max-width: 98px;
    text-align: left;
  }
  .demo-reset .icon {
    width: 14px;
    height: 14px;
  }
  .demo-section-intro {
    padding: 18px 0 14px;
  }
  .demo-section-intro h3 {
    font-size: 18px;
  }
  .demo-section-intro p {
    font-size: 11px;
  }
  .demo-wishes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .demo-wish-open {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 112px;
    padding: 10px;
    gap: 12px;
  }
  .demo-wish-open > img {
    width: 86px;
    height: 86px;
  }
  .demo-wish-open strong {
    font-size: 13px;
  }
  .demo-wish-foot button {
    min-height: 40px;
    font-size: 10px;
  }
  .demo-wish-tools {
    gap: 9px;
  }
  .demo-search {
    padding: 0 8px;
  }
  .demo-search input {
    font-size: 11px;
  }
  .demo-filters {
    gap: 6px;
  }
  .demo-filters button {
    padding: 7px 11px;
    min-height: 38px;
  }
  .demo-bottom {
    display: block;
    padding-top: 16px;
  }
  .demo-bottom a {
    margin-top: 10px;
    min-height: 38px;
  }
  .demo-live {
    font-size: 9px;
    line-height: 1.5;
  }
  .demo-map-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .demo-map-frame {
    grid-row: 1;
    min-height: 300px;
  }
  .demo-map {
    min-height: 300px;
  }
  .demo-place-list {
    grid-row: 2;
  }
  .demo-place {
    min-height: 70px;
  }
  .demo-place strong {
    font-size: 11px;
  }
  .demo-place small {
    font-size: 9px;
  }
  .demo-place-detail {
    padding: 8px 2px;
  }
  .demo-plans-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .demo-calendar-day {
    min-height: 46px;
    font-size: calc(12px !important - 2px);
  }
  .demo-calendar-grid,
  .demo-weekdays {
    gap: 4px;
  }
  .demo-calendar-heading {
    margin-bottom: 16px;
  }
  .demo-calendar-heading strong {
    font-size: 13px;
  }
  .demo-dialog-image {
    height: 180px;
  }
  .demo-dialog-copy {
    padding: 20px;
  }
  .demo-dialog-copy h3 {
    font-size: 23px;
  }
  .demo-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.demo-dialog-close .icon {
  display: block;
  width: 18px;
  height: 18px;
}

/* Нижний переключатель ограничен демоблоком и не перекрывает его последние действия. */
.screen-tour.interactive-tour {
  display: block;
}
.interactive-tour > .section-intro {
  margin: 0 0 24px;
}
.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.interactive-tour .demo-shell {
  grid-area: 1 / 1;
  padding-bottom: 102px;
}
.demo-dock {
  position: sticky;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 5;
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 64px;
  margin: 0 0 20px;
}
.interactive-tour .tour-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  box-shadow:
    0 12px 32px #30271c24,
    0 2px 6px #30271c0d;
  backdrop-filter: blur(16px);
}
.interactive-tour .tour-tabs button {
  flex: 1;
  min-width: 108px;
  min-height: 48px;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.interactive-tour .tour-tabs button:hover {
  background: var(--soft);
  color: var(--ink);
}
.interactive-tour .tour-tabs button[aria-selected="true"] {
  background: var(--button);
  color: #fff;
  box-shadow: 0 2px 5px #30271c1a;
}
.interactive-tour .tour-tabs button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .interactive-tour .demo-shell {
    padding-bottom: 96px;
  }
  .demo-dock {
    width: calc(100% - 24px);
    max-width: 360px;
    height: 58px;
    margin-bottom: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .interactive-tour .tour-tabs {
    padding: 5px;
    gap: 2px;
    border-radius: 20px;
  }
  .interactive-tour .tour-tabs button {
    min-width: 0;
    min-height: 46px;
    padding: 6px;
    gap: 4px;
    border-radius: 14px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .interactive-tour .tour-tabs button {
    transition: none;
  }
}

/* Сведения карты раскрываются стандартной кнопкой информации. */
.demo-map-frame .maplibregl-ctrl-attrib {
  font-size: 10px;
  line-height: 18px;
}
.demo-map-status[hidden] {
  display: none;
}

:root{--paper:#f7f1e7;--ink:#3d352c;--muted:#706356;--accent:#80684f;--line:#e6dac8;--white:#fffaf3;--soft:#f0e7d8;--button:#80684f;--button-hover:#3d352c;}