/* Единый поток исключает перекрытие стрелки и связи при любой ширине. */
.floating-actions {
  position: fixed; z-index: 25; right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.floating-actions > .backtop,
.floating-actions > .support-fab {
  position: static; inset: auto; flex: none; margin: 0; pointer-events: auto;
}
@media (max-width: 600px) {
  .floating-actions {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    align-items: center;
  }
}

.modal.product-modal.is-loading .modal-head { display: none !important; }
/* Индикатор загрузки проекта использует цвета текущей темы. */
.modal.product-modal .modal-head .modal-title-text { color: #f5f7ee; }
.product-loading {
  --loading-accent: #527b36;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 260px; padding: 28px 12px; text-align: center;
}
body[data-tone="graphite"] .product-loading { --loading-accent: #d5ff73; }
.product-loading-symbol { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; color: var(--loading-accent); }
.product-loading-ring {
  position: absolute; inset: 0; border: 2px solid var(--line); border-top-color: var(--loading-accent);
  border-right-color: var(--loading-accent); border-radius: 50%; animation: product-loading-spin 1.1s linear infinite;
}
.product-loading-code { font: 700 20px/1 ui-monospace, Consolas, monospace; letter-spacing: -2px; }
.modal .product-loading .product-loading-title { margin: 0 0 8px; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.35; }
.modal .product-loading .product-loading-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@keyframes product-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .product-loading-ring { animation: none; } }

/* Мобильный слой загружается последним; настольная компоновка сохраняется. */
.product-detail .detail-features { display: block; }
.product-detail .detail-features .tech-stack-label {
  display: block; margin: 0 0 10px; color: var(--muted);
  font: 600 12px/1.5 Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px;
}
.product-detail .detail-tech-list { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.product-detail .detail-tech-list > span { padding: 0; border: 0; background: none; color: var(--muted); font: 12.5px/1.6 ui-monospace, Consolas, monospace; }
.product-detail .detail-tech-list > span:not(:last-child)::after { content: ' ·'; }
.product-detail .detail-tech-list .icon { display: none; }
.product-detail .detail-top > .btn.dark,
.product-detail .product-demo-cta { border: 1px solid #84968a; box-shadow: var(--card-button-shadow); }
.auth-back-link { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--ink); }
.auth-modal .modal-head { flex-wrap: wrap; gap: 8px; }

/* Общий вид выбора темы; размеры задаются отдельно для меню и подвала. */
body[data-tone] .theme-choice[data-tone] { border: 1px solid #738074 !important; border-radius: 10px; box-shadow: none !important; line-height: 1.4; }
body[data-tone] .theme-choice[data-tone="ivory"] { background: #f7f8f3 !important; color: #203a30 !important; }
body[data-tone] .theme-choice[data-tone="graphite"] { background: #10231a !important; color: #f7f8f3 !important; }
body[data-tone] .theme-choice[aria-pressed="true"] { outline: 2px solid #8bbd57; outline-offset: 1px; }
body[data-tone] .theme-choice[aria-pressed="true"]::after { content: ' ✓'; }
.tone-picker .theme-choice { padding: 7px 11px; font-size: 10px; }
.tone-picker { flex-wrap: wrap; }

/* Картинка заполняет область без полей; исходные цвета и детализация сохраняются. */
.hero-section .hero-bg .hero-art {
  inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: none; mask-image: none; -webkit-mask-image: none; transform: none !important;
}

/* Единый отступ собственной стрелки сохраняется и в настольных фильтрах. */
.catalog-controls .category-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23737d73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.footer-disclosure { min-width: 0; }
.footer-disclosure > summary { list-style: none; cursor: default; margin-bottom: 16px; }
.footer-disclosure > summary::-webkit-details-marker { display: none; }
.footer-disclosure > summary h2 { margin: 0; font-size: 13px; color: #fff; }
.footer-caption { display: grid; gap: 4px; font-family: Arial, sans-serif; }
.footer-caption strong { font-size: 20px; letter-spacing: -.6px; color: #fff; }
.footer-caption em { color: #b9de86; font-style: normal; }
.footer-caption small { font-size: 11px; }

/* Полоса выходит за оба края изображения, текст повторяется без разрыва. */
.cta figure .cta-marquee {
  position: absolute; z-index: 2; inset: auto -1px 15px; width: auto;
  max-width: none; margin: 0; padding: 5px 0; border-radius: 0;
  overflow: hidden; background: rgba(255,255,255,.58);
  border-block: 1px solid #ffffff66;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  container-type: inline-size;
}
.cta .cta-marquee-track {
  display: flex; width: max-content; color: #111827; font-size: 15px;
  line-height: 1.5; font-weight: 500; white-space: nowrap;
  animation: cta-marquee-scroll 20s linear infinite !important;
}
.cta-marquee-track > span { flex: 0 0 auto; min-width: 260px; min-width: 100cqw; padding: 0 24px; }
@keyframes cta-marquee-scroll { to { transform: translateX(-50%); } }

/* Покачивание верхней карточки; связанная пара ниже закреплена отдельно. */
@media (min-width: 901px) {
  .hero-section .hero .hero-widget-set .float-card,
  .hero-section .hero .hero-widget-set .code-window {
    translate: none !important;
    transition: none !important;
    animation: hero-widget-sway var(--sway-duration, 7s) ease-in-out var(--sway-delay, -2s) infinite !important;
  }
  .hero .hero-widget-set .float-top {
    --sway-angle: 4deg; --sway-x: 6px; --sway-y: -8px;
    --sway-duration: 6s; --sway-delay: -1.4s;
  }
  .hero .hero-widget-set .float-bottom {
    --sway-angle: -3deg; --sway-x: -7px; --sway-y: 6px;
    --sway-duration: 7.5s; --sway-delay: -4s;
  }
  .hero .hero-widget-set .code-window {
    --sway-angle: -2deg; --sway-x: 5px; --sway-y: -5px;
    --sway-duration: 9s; --sway-delay: -3s;
  }
}
@keyframes hero-widget-sway {
  0%, 100% { transform: translate(0, 0) rotate(var(--sway-angle)); }
  50% { transform: translate(var(--sway-x), var(--sway-y)) rotate(calc(var(--sway-angle) + 1deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-section .hero .hero-widget-set .float-card,
  .hero-section .hero .hero-widget-set .code-window { animation: none !important; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  .topbar { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  main.wrap { padding-top: 16px !important; }
  .header .wrap.nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 58px;
    gap: 8px !important;
    height: 60px !important;
    min-height: 60px;
    position: relative;
    padding: 0 16px !important;
  }
  .header .brand { min-width: 0; grid-column: 1; grid-row: 1; }
  .header .site-logo { width: 138px; max-width: 100%; height: 38px; object-fit: contain; }
  .header .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    height: 40px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-color: #ffffff40;
    border-radius: 12px;
    background: #ffffff0a;
  }
  .header .navtools { grid-column: 2; grid-row: 1; width: 40px !important; margin: 0; gap: 0 !important; flex-wrap: nowrap !important; }
  .header .navtools .theme-short,
  .header .navtools .iconbtn,
  .header .navtools > form,
  .header .account-label { display: none !important; }
  .header .navtools > a.account {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    min-width: 40px;
    border-radius: 12px;
  }
  .header .navtools .account svg { display: block; width: 18px; height: 18px; }
  .header .navlinks.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 8px 16px 16px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px #0003;
  }
  .header .navlinks.is-open a { min-height: 44px; }
  .header .mobile-account-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
  .header .mobile-account-links > a { display: flex; align-items: center; justify-content: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
  .header .mobile-logout { grid-column: 1 / -1; margin: 0; }
  .header .mobile-logout .btn { min-height: 36px; padding: 7px 14px; font-size: 12px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); }
  .header .mobile-theme-options {
    display: inline-flex; grid-column: 1 / -1; justify-self: start;
    width: max-content; gap: 2px; margin-top: 4px; padding: 3px;
    border: 1px solid #738074; border-radius: 40px; background: #10231a;
  }
  .header .mobile-theme-options button {
    display: grid; place-items: center; width: 36px; height: 36px;
    min-height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: #f5f7ee; box-shadow: none;
  }
  .header .mobile-theme-options button[aria-pressed="true"] { background: #eaff81; color: #17291b; }
  .header .mobile-theme-options button:focus-visible { outline: 2px solid #8bbd57; outline-offset: 2px; }
  .header .mobile-theme-options svg { width: 16px; height: 16px; }


  /* Картинка не служит фоном под текстом и остаётся чёткой на каждом слайде. */
  .hero-section { padding-top: 8px; }
  .hero-section .hero { display: flex; flex-direction: column; min-height: 0; border-radius: 18px; overflow: visible; }
  .hero-section .hero-bg {
    position: relative;
    flex: none;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 240px;
    z-index: 0;
    border-radius: 18px 18px 0 0;
    background: #0b1513;
  }
  .hero-section .hero[data-has-image="false"] .hero-bg { display: none; }
  .hero-section .hero-bg .hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    mask-image: none;
    -webkit-mask-image: none;
    transform: none !important;
  }
  .hero-section .hero-bg::after,
  .hero-section .hero-wall-grid,
  .hero-section .hero-mini,
  .hero-section .side-note,
  .hero-section .actions .ghost { display: none !important; }
  /* Используется та же верхняя карточка администратора, без дублирования данных. */
  .hero-section .hero-widget-set { display: none !important; }
  .hero-section .hero[data-has-image="false"] .hero-widget-set.is-active { display: none !important; }
  .hero-section .hero[data-has-image="true"] .hero-widget-set.is-active { display: block !important; position: absolute; top: 12px; right: -6px; width: clamp(142px, 42vw, 176px); padding: 0; z-index: 4; pointer-events: none; }
  .hero-section .hero .hero-widget-set.is-active .float-card,
  .hero-section .hero .hero-widget-set.is-active .code-window { display: none !important; }
  .hero-section .hero .hero-widget-set.is-active .float-top { display: block !important; position: relative; inset: auto; width: 100%; padding: 12px; border-radius: 14px; transform: rotate(4deg); }
  .hero-section .hero-widget-set .float-top .round-icon { width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; }
  .hero-section .hero-widget-set .float-top .round-icon svg { width: 13px; height: 13px; }
  .hero-section .hero-widget-set .float-top .tiny { font-size: 10px; line-height: 1.35; letter-spacing: 0; }
  .hero-section .hero-widget-set .float-top strong { font-size: 13px; line-height: 1.3; margin-top: 5px; }
  .hero-section .hero-widget-set .float-top .hero-widget-content { font-size: 10px; line-height: 1.35; max-height: 54px; overflow-y: auto; pointer-events: auto; }
  .hero-section .hero-copy { flex: 1 0 auto; width: 100%; padding: 20px 20px 12px; }
  .hero-section .hero h1 { margin: 12px 0; font-size: clamp(24px, 6.5vw, 30px); line-height: 1.16; letter-spacing: -.7px; overflow-wrap: anywhere; }
  .hero-section .hero-desc { font-size: 14px; line-height: 1.5; margin-bottom: 16px; max-width: none; }
  .hero-section .hero .eyebrow { font-size: 10px; letter-spacing: .6px; }
  .hero-section .hero-copy .actions { flex-direction: row; }
  .hero-section .hero-controls { flex: none; position: static; padding: 0 16px 12px; gap: 8px; }
  .hero-section .hero-controls .arrows { gap: 4px; }
  .hero-section .hero-controls .arrows button { width: 44px; height: 44px; }
  .hero-section .hero-controls .slide-num { display: none; }
  .hero-section .hero-controls .dots { min-width: 0; overflow-x: auto; }
  .hero-section .hero-controls .slide-dot { min-width: 20px; height: 44px; padding: 20px 0; }
  .promise-bar, .code-watermarks, .background-code { display: none; }

  .market-intro { margin-bottom: 16px; }
  .market-intro h1 { font-size: 24px; line-height: 1.2; }
  .market-intro p { font-size: 14px; line-height: 1.5; display: block; -webkit-line-clamp: unset; overflow: visible; }
  .category-section { padding: 20px 0 12px; }
  .category-section .section-micro { gap: 12px; align-items: baseline; font-size: 9px; line-height: 1.4; letter-spacing: .25px; }
  .category-section .category-count { flex-shrink: 0; white-space: nowrap; }
  .category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; overflow: visible; padding-bottom: 0; }
  .category-grid .category { min-width: 0; min-height: 80px; padding: 10px; gap: 8px; }
  .category-grid .category > span:last-child { min-width: 0; }
  .category-grid .category .cat-icon { width: 28px; height: 28px; border-radius: 9px; }
  .category-grid .category .cat-icon svg { width: 17px; height: 17px; }
  .category-grid .category b { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
  .category-grid .category small { font-size: 10px; }
  .catalog { padding: 16px 0 28px; }
  .section-head h2 { font-size: 28px; letter-spacing: -.8px; line-height: 1.15; }
  .catalog-quick-categories { display: none; }
  .catalog-controls .tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .catalog-controls .search { grid-column: 1 / -1; min-width: 0; padding: 11px 12px; gap: 8px; }
  .catalog-controls .search input { font-size: 16px; min-width: 0; }
  .catalog-controls .search input::placeholder { font-size: 12px; }
  .catalog-controls .search kbd { display: none; }
  .catalog-controls .category-select { width: 100%; max-width: none; font-size: 12px; min-height: 44px; padding-left: 12px; padding-right: 30px; background-position: right 10px center; }
  .product-grid .product,
  .product-grid .product:hover { min-width: 0; max-width: 100%; transform: none !important; translate: none !important; scale: none !important; }
  .product-grid .product .product-body { padding: 16px 16px 0; }
  .product-grid .product h3 { font-size: 23px; line-height: 1.2; margin: 12px 0 8px; }
  .product-grid .product p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .product-grid .product .tags { display: none; }
  .product-grid .product .format-chips { margin-bottom: 14px; }
  .product-grid .product .product-bottom { margin: 0 16px; padding: 14px 0; gap: 10px; flex-wrap: wrap; }
  .product-grid .product .card-actions { margin-left: auto; }
  .product-grid .product .demo-link, .product-grid .product .card-demo { min-height: 44px; }

  /* Полные карточки одной высоты; настольный вид сохраняется отдельно. */
  .catalog-view [role="group"] { display: none; }
  .product-grid, .product-grid.is-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 24px; }
  .product-grid .product, .product-grid.is-list .product { display: flex; flex-direction: column; height: 100%; border-radius: 18px; }
  .product-grid .product .product-top, .product-grid.is-list .product .product-top { flex: none; height: auto; min-height: 0; aspect-ratio: 5 / 3; border-radius: 0; overflow: hidden; }
  .product-grid .product .preview-button { display: block; width: 100%; height: 100%; }
  .product-grid .product .project-showcase { display: block; min-height: 0; height: 100%; }
  .product-grid .product .product-photo-backdrop,
  .product-grid .product .showcase-side,
  .product-grid .product .showcase-nav,
  .product-grid .product .showcase-browser-toolbar { display: none; }
  .product-grid .product .showcase-main { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; transform: none !important; transition: none !important; }
  .product-grid .product .showcase-main .showcase-landing { position: absolute; inset: 0; width: 100%; height: 100%; background-color: transparent; background-size: contain; background-position: center; background-repeat: no-repeat; padding: 24px; color: #f5f7ee; }
  .product-grid .product .showcase-landing::before { display: none; }
  .product-grid .product .showcase-landing > strong { max-width: 80%; color: #f5f7ee; }
  .product-grid .product .showcase-phone { left: auto; right: 18px; bottom: 12px; z-index: 3; width: 27%; height: 84%; transform: rotate(-7deg) !important; transition: none !important; }
  .product-grid .product .showcase-phone .device-screen { background: #f7f8f3; color: #203a30; }
  .product-grid .product .showcase-phone small,
  .product-grid .product .showcase-phone strong { color: #203a30; text-shadow: none; }
  /* Высота фотографии определяется оригиналом: края не обрезаются и нет полей. */
  .product-grid .product .has-photo-backdrop { aspect-ratio: auto; }
  .product-grid .product .has-photo-backdrop .preview-button,
  .product-grid .product .has-photo-backdrop .project-showcase { height: auto; }
  .product-grid .product .has-photo-backdrop .showcase-main {
    position: relative; inset: auto; height: auto; z-index: 1;
  }
  .product-grid .product .showcase-main .showcase-with-photo {
    position: relative; inset: auto; height: auto; padding: 0;
  }
  .product-grid .product .showcase-photo { height: auto; aspect-ratio: auto 5 / 3; }
  .product-grid .product .product-body, .product-grid.is-list .product .product-body { flex: 1; padding: 18px 16px 0; min-width: 0; }
  .product-grid .product .byline { min-height: 22px; font-size: 11px; }
  .product-grid .product h3 { margin: 12px 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.5px; min-height: 105.6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
  .product-grid .product p { min-height: 63px; }
  .product-grid .product .format-chips { min-height: 40px; margin-bottom: 12px; align-content: flex-start; }
  .product-grid .product .product-bottom, .product-grid.is-list .product .product-bottom { display: flex; flex: none; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 8px; margin: 0 16px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
  .product-grid .product .product-bottom .price { min-height: 76px; }
  .product-grid .product .price { display: flex; flex-direction: column; min-height: 66px; }
  .product-grid .product .price strong { font-size: 24px; margin-top: auto; overflow-wrap: anywhere; }
  .product-grid .product .price small, .product-grid .product .price del { font-size: 11px; }
  .product-grid .product .card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 44px; margin: 0; gap: 4px 10px; }
  .product-grid .product .demo-link, .product-grid .product .card-demo { font-size: 12px; }
  body[data-tone] .product-grid .favorite { top: 12px; right: 12px; width: 40px; height: 40px; z-index: 8; }
  body[data-tone] .product-grid .favorite .icon { width: 22px; height: 22px; }

  /* Короткая панель управления не повторяет полное название приложения. */
  .modal.product-modal {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .modal.product-modal .modal-head { height: 56px; min-height: 56px; padding: 6px 12px; gap: 8px; }
  .modal.product-modal #modal-label { flex: 1; min-width: 0; flex-wrap: nowrap !important; font-size: 14px !important; color: #f5f7ee !important; }
  .modal.product-modal .modal-title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .modal.product-modal .modal-fav-injected { margin-left: auto !important; width: 44px !important; height: 44px !important; min-width: 44px !important; background: #ffffff14 !important; border-color: #ffffff40 !important; }
  .modal.product-modal .modal-fav-injected svg { color: #f5f7ee !important; stroke: #f5f7ee !important; }
  .modal.product-modal .modal-fav-injected[aria-pressed="true"] svg { fill: #f5f7ee !important; }
  .modal.product-modal .modal-close { width: 44px !important; height: 44px !important; margin-left: 0 !important; }
  .modal.product-modal .modal-body { padding: 20px 16px 32px; }
  .product-detail .detail-top { gap: 16px; }
  .modal.product-modal .product-detail .detail-top h2,
  .product-detail .detail-top h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.6px; }
  .product-detail .detail-top p { font-size: 15px; line-height: 1.55; }
  .product-detail .detail-category { margin-bottom: 12px; }
  .product-detail .product-gallery { margin: 20px 0 16px; }
  .product-detail .gallery-main-stage { display: flex; flex-direction: column; aspect-ratio: auto; border: 1px solid var(--muted); border-radius: 12px; box-shadow: 0 5px 16px #0003; }
  .product-detail .gallery-main-stage img { aspect-ratio: 16 / 10; height: auto; object-fit: contain; }
  .product-detail .gallery-caption { position: static; max-width: 100%; width: 100%; border-radius: 0; padding: 8px 12px; font-size: 12px; }
  .product-detail .gallery-expand-btn { opacity: 1; width: 44px; height: 44px; top: 8px; right: 8px; }
  .product-detail .gallery-thumbnails { gap: 10px; padding: 4px 2px 10px; }
  .product-detail .gallery-thumb { flex: 0 0 80px; min-height: 50px; opacity: 1; border: 1px solid var(--muted); box-shadow: 0 3px 8px #0003; }
  .product-detail .gallery-thumb.is-active { border: 2px solid var(--lime); }
  .product-detail .detail-features { margin: 16px 0 24px; }
  .product-detail .detail-features span { display: inline; padding: 0; background: none; border: 0; color: var(--muted); font: 12px/1.6 ui-monospace, Consolas, monospace; }
  .product-detail .detail-features span:not(:last-child)::after { content: ' ·'; }
  .product-detail .detail-features svg { display: none; }
  .product-detail .detail-info { grid-template-columns: 1fr; }
  .product-detail .plan-box { padding: 20px; }

  /* Инструкция занимает компактные строки вместо нескольких экранов. */
  .launch-editorial { padding: 22px; margin-bottom: 24px; }
  .editorial-copy h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.8px; margin: 16px 0 12px; }
  .editorial-copy p { font-size: 14px; line-height: 1.5; }
  .launch-wave, .editorial-facts { display: none; }
  .how { padding-bottom: 28px; }
  .how h2 { font-size: 25px; line-height: 1.2; }
  .how-head > span { display: none; }
  .how .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .how .step { flex-direction: row; align-items: flex-start; padding: 16px; gap: 12px; min-height: 0; }
  .how .step-number { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
  .how .step h3 { font-size: 17px; margin: 2px 0 6px; }
  .how .step p { font-size: 14px; line-height: 1.5; }
  .cta { margin-bottom: 28px; }
  .cta-copy { padding: 22px; }
  .cta h2 { font-size: 28px; }
  .cta .service-lines { display: none; }
  .footer-main { gap: 8px !important; }
  .footer { padding-top: 24px; }
  .footer-about { width: 100%; margin-bottom: 16px; }
  .footer-disclosure { width: 100%; border-bottom: 1px solid #ffffff26; }
  .footer-disclosure > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; cursor: pointer; }
  .footer-disclosure > summary::after { content: '+'; font-size: 22px; font-weight: 400; color: #b9de86; }
  .footer-disclosure[open] > summary::after { content: '−'; }
  .footer-disclosure > .footer-column { padding: 8px 0 16px; }
  .footer-controls { flex-direction: column; align-items: flex-start; gap: 16px; }
  .support-fab { width: 48px; height: 48px; min-width: 48px; padding: 0; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; place-items: center; border-radius: 50%; }
  .support-fab-label { display: none; }
  .support-fab svg { width: 22px; height: 22px; }
  .backtop { bottom: calc(78px + env(safe-area-inset-bottom)); right: 20px; }
}

/* Размеры позиций не зависят от заполнения; цвет окна сохраняет прозрачность. */
.hero-section .hero .hero-widget-set .code-window {
  background-color: rgb(16 30 26 / 65%);
  background-color: color-mix(in srgb, var(--code-tint, #101e1a) 65%, transparent) !important;
  backdrop-filter: blur(3px);
}
@media (min-width: 901px) {
  .hero-section .hero {
    --code-top: 140px;
    --code-height: 190px;
    --code-width: min(31%, 340px);
  }
  .hero-section .hero .hero-widget-set .float-top {
    width: 177px !important;
    min-width: 177px;
    min-height: 150px;
  }
  .hero-section .hero .hero-widget-set .code-window {
    top: var(--code-top) !important;
    right: 10% !important;
    width: var(--code-width) !important;
    min-width: 0;
    max-width: none;
    height: var(--code-height);
    box-sizing: border-box;
    padding: 22px;
    animation: none !important;
    transform: rotate(-2deg);
    translate: none !important;
  }
  .hero-section .hero .hero-widget-set .float-bottom {
    top: calc(var(--code-top) + var(--code-height) - 22px) !important;
    bottom: auto !important;
    right: calc(10% + var(--code-width) - 70px) !important;
    width: 179px !important;
    min-width: 179px;
    min-height: 135px;
    z-index: 10;
    animation: none !important;
    transform: rotate(-13deg);
    transform-origin: top right;
    translate: none !important;
  }
}

/* Малые встречные движения сохраняют перекрытие и исходный наклон карточек. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero-section .hero .hero-widget-set .code-window {
    --sway-angle: -2deg; --sway-x: 4px; --sway-y: 3px;
    --sway-duration: 9s; --sway-delay: -3s;
    animation: hero-widget-sway var(--sway-duration) ease-in-out var(--sway-delay) infinite !important;
  }
  .hero-section .hero .hero-widget-set .float-bottom {
    --sway-angle: -13deg; --sway-x: -5px; --sway-y: -4px;
    --sway-duration: 7.5s; --sway-delay: -4s;
    animation: hero-widget-sway var(--sway-duration) ease-in-out var(--sway-delay) infinite !important;
  }
}
